Repository navigation
Add synth io lags to Iceberg perf CI - #119976
Conversation
Mark every SYSTEM ENABLE FAILPOINT fill query of the synthetic-IO suites with do_not_check_in_pr="119976": the reference (left) build predates these failpoints, so without the attribute the enable fails there, kills the test, and leaves the failpoints enabled on the new server for the rest of the batch. With it, perf.py tolerates the reference-side failure and runs the suites on the new server only, until the failpoints reach the reference builds - then the attribute becomes inert and real left/right comparisons begin. #119976 Co-Authored-By: Claude Fable 5 <[email protected]>
|
Workflow [PR], commit [72dea7a] Summary: ✅
AI ReviewSummaryAdds synthetic object-storage latency, eight Iceberg performance suites, failpoint lifecycle handling, and dataset cache recovery. Reviewing head Findings
Missing context / blind spots
Final Verdict
|
49270c0 to
5ac92d3
Compare
Mark every SYSTEM ENABLE FAILPOINT fill query of the synthetic-IO suites with do_not_check_in_pr="119976": the reference (left) build predates these failpoints, so without the attribute the enable fails there, kills the test, and leaves the failpoints enabled on the new server for the rest of the batch. With it, perf.py tolerates the reference-side failure and runs the suites on the new server only, until the failpoints reach the reference builds - then the attribute becomes inert and real left/right comparisons begin. #119976 Co-Authored-By: Claude Fable 5 <[email protected]>
e3a163c to
a64fbce
Compare
5ac92d3 to
b5154bc
Compare
Mark every SYSTEM ENABLE FAILPOINT fill query of the synthetic-IO suites with do_not_check_in_pr="119976": the reference (left) build predates these failpoints, so without the attribute the enable fails there, kills the test, and leaves the failpoints enabled on the new server for the rest of the batch. With it, perf.py tolerates the reference-side failure and runs the suites on the new server only, until the failpoints reach the reference builds - then the attribute becomes inert and real left/right comparisons begin. #119976 Co-Authored-By: Claude Fable 5 <[email protected]>
Build profile diff (arm_release)Comparing ✅ No significant changes. Binary sizes
The official master build is compiled with Compile time of recompiled translation units9 translation units recompiled, 16 s compile time in total, 9 of them have a recent master baseline. |
Override the perf-CI reference (left) build to the candidate's own PR build, so master_head compares the candidate against itself. The master_head reference lacks the s3_slow_*/local_object_storage_slow_* failpoints, so every synthio query is demoted to the partial (new-server-only) section and gets no dashboard page. With both servers carrying the failpoints the do_not_check_in_pr fill queries succeed on both connections, producing real comparison rows, dashboard pages and flamegraphs for the synthio suites. Revert before merge. Related: #119976 Related: #119147
3796053 to
8b8dab4
Compare
5dd5423 to
32c9072
Compare
664a91e to
b5fddf3
Compare
| throw Exception(ErrorCodes::BAD_ARGUMENTS, "LocalObjectStorage doesn't support append to files"); | ||
|
|
||
| /// Simulated per-request latency of a slow store, the PUT analogue (once at buffer creation = one upload). | ||
| fiu_do_on(FailPoints::local_object_storage_slow_response, { sleepForMilliseconds(simulated_io_latency_ms); }); |
There was a problem hiding this comment.
And also to LocalObjectStorage::exists
b5fddf3 to
b3ff334
Compare
|
📊 Cloud Performance Report ✅ AI verdict: This PR adds perf-test infrastructure: two failpoints that are off by default and add simulated delay to local object storage and S3 HTTP responses, new synthetic-IO Iceberg perf tests, failpoint handling in the perf runner, and CI dataset download logic. ClickBench and TPC-H run on local MergeTree tables and never turn on these failpoints. When a failpoint is off, the check costs almost nothing and is not on these queries' read path. So the flagged improvements on ClickBench Q33/Q34 and TPC-H Q1/Q7 have been downgraded to not sure as noise: all four queries have noisy histories, and Q33/Q34 land inside master's recent range. The not-sure rows Q28, Q30 and Q31 are also within master's normal variation, and none of them can be tied to this diff. clickbenchFlagged queries (5 of 43)
Change = percent below ×2; the ratio of medians (×N faster/slower) beyond, where percent understates the scale. q-value = BH-FDR adjusted p; smaller is stronger evidence. MIRAI flags a query when q < fdr_q (default 0.10) — the value the verdict is based on. tpch_adapted_1_officialFlagged queries (2 of 22)
Change = percent below ×2; the ratio of medians (×N faster/slower) beyond, where percent understates the scale. q-value = BH-FDR adjusted p; smaller is stronger evidence. MIRAI flags a query when q < fdr_q (default 0.10) — the value the verdict is based on. Debug info
|
daa0e6c to
771bddc
Compare
0e75eac to
e221be8
Compare
e221be8 to
0d9d3d3
Compare
0d9d3d3 to
72dea7a
Compare
| def report_clean(): | ||
| """`CHServer.run_test` reuses the servers only after this marker.""" | ||
| if teardown_clean_result and not enabled_failpoints: | ||
| print("teardown-complete") |
There was a problem hiding this comment.
compare.sh callers too
This protects CHServer.run_test, but ci/jobs/scripts/perf/compare.sh also reuses the servers: run_tests catches a failed runner and continues at lines 563–572, and the confirmation loop does the same at lines 1046–1062. Neither checks teardown-complete.
If an enable succeeds and both disable attempts fail, perf.py now correctly exits nonzero without this marker, but these callers still start another test with the failpoint enabled. A SELECT 1 health probe succeeds on a server with injected storage latency, so it does not trigger a restart. This contaminates subsequent performance comparisons and confirmation results. I reproduced the continuation using the actual run_tests function with the real runner's mocked-driver cleanup-failure output.
Please make both loops stop or restart the servers when cleanup is unconfirmed, or exclude failpoint suites from those paths.
libfiu never leaves its slow path once the first failpoint is enabled: `has_any_failpoint_been_registered` is set by `fiu_enable` and never reset, so from then on every `fiu_do_on` of the server process takes a global rwlock and a hash lookup. The perf job runs all the tests of a shard on the same two servers, so the `iceberg_suite_*_synthio_*` tests (ClickHouse#119976), which enable `s3_slow_response` or `local_object_storage_slow_response`, made every test that ran after them slower and noisier: a 10M-key GROUP BY checks a failpoint per key, and `removing_group_by_keys` went from 0.1% to 28% of master runs with a difference over 10% on amd (ClickHouse#100759). Each of these tests is a twin of an `iceberg_suite_*` test that only adds the failpoint, so without it they would duplicate the existing tests. Remove them, together with the `<failpoint>` element of `perf.py` (and its handling in test discovery and profile collection), which nothing else uses. The style check now rejects a failpoint in any performance test, fragment or file they pull in with a `file` attribute (the `tests/benchmarks` query files), both the element and a `SYSTEM ENABLE|DISABLE FAILPOINT` statement. Co-Authored-By: Claude Opus 5.5 <[email protected]>
The first `fiu_enable` sets libfiu's `has_any_failpoint_been_registered`, which is never reset, so every later `fiu_do_on` of the server takes libfiu's global rwlock and a hash lookup, also after `SYSTEM DISABLE FAILPOINT`. `Aggregator::drainAdaptivePartition` checks one per inserted key. The `iceberg_suite_*_synthio_*` tests of ClickHouse#119976 enable a failpoint, and the job runs all tests of a shard on the same two servers in name order, so since 2026-10-28 every test sorted after them is measured on such servers: about 17 tests 1.3-24x slower and noisier on both arches (`removing_group_by_keys #0` 0.13 -> 1.46 s on amd). Order the failpoint tests last in the job's test list, in compare.sh's confirmation reruns and in its standalone `run_tests`. The compare.sh paths do not measure when the order cannot be computed: the confirmation is skipped (original verdicts kept) and `run_tests` exits 1. Related: ClickHouse#100759 Co-Authored-By: Claude Opus 5.5 <[email protected]>
Adds synthetic lags (via failpoints) into iceberg_suite_* perf tests to simulate io delays and to stress alternative code paths. It's more async focused compared to existing iceberg tests, where Local+S3 remote endpoints reply immediately.
Also, added a new perf test macro -
failpoint. It enables/disables the given failpoint in a safe way: if the failpoint doesn't exist on any left/right version - the entire test will be skipped.Changelog category (leave one):
Changelog entry (a user-readable short description of the changes that goes into CHANGELOG.md):
Add synth io lags to Iceberg perf CI
Workflow [PR]
Sync PR [sync-upstream/pr/119976]
Version info
26.11.1.847-master(included in26.11and later)