Repository navigation
Conversation
The header of the test says the bounds are more than 10 standard deviations wide, but the last query (`SHUFFLE LIMIT 1000` of `numbers_mt(10000000)`, 10 value buckets) did not meet that. Every bucket count is hypergeometric with mean 100 and sd 9.49, so `min(c) > 50` and `max(c) < 150` are only 5.27 sd, and the mean bound 500000 is 5.48 sd (sd 91283). Exact tails: P(X >= 150) = 4.48e-07 per bucket, so a uniform SHUFFLE fails the query at up to 4.5e-06 per run. Observed: 1 master failure (`max(c) < 150` false) in about 27.7k runs over 30 days. Take a 10x larger sample instead: `SHUFFLE LIMIT 10000`, counts in (650, 1350) = 11.7 sd (sd 29.98), mean within 300000 = 10.4 sd (sd 28853). Relative to the mean the bounds are tighter than before (+-35% vs +-50% on counts, +-6% vs +-10% on the mean), so the check is more sensitive to a real bias. The query still samples a small fraction of every stream (8 streams of ~1.25M rows). Validation with the master debug build (a33e1c1), through clickhouse local: - uniformity, 2000 runs at k = 1000 and 2000 at k = 10000, plus 500 each with max_threads 1/2/16: bucket means, pooled variance (90.7 vs model 90.0; 904.6 vs 899.1), sd of the mean (90770 vs 91283; 28899 vs 28853) and tail rates (max >= 125: 122/2000, model 118) all match a uniform sample, so the failure is the bound and not the sampler; - a 1.5x weight on one bucket: the old query catches it in 85/300 runs, the new one in 299/300. The test: 20/20 before; 100/100 with random settings and 50/50 without after; median duration 0.29 s before, 0.34 s after. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Internal second-model review: adjudication log (click to expand)Pre-publication review by an independent model (engine: codex; 1 finding) plus my own review (1 nit).
Severity: ❌ blocker / Session id: cron:clickhouse-review-slot-48:20261114-172300 |
Pre-PR validation gate (click to expand)
Session id: cron:clickhouse-impl-slot-40:20261114-170501 |
|
Workflow [PR], commit [aa3f0fd] Summary: ✅ AI ReviewSummaryThe PR stabilizes Final Verdict✅ Approve |
The flaky check of this PR failed the test with "Test runs too long (> 180s)": `amd_debug` p50 141 s (5 runs 187-194 s), `amd_binary` p50 148 s (5 runs 213-214 s). In that job 8 workers run the same changed test under the thread fuzzer, which migrates the thread on every mutex operation, so the cost follows the number of chunks through the pipeline, not the rows. Its `query_log` puts the two full `SHUFFLE`s of 1M rows at 68 s + 64 s of a 141 s run: at `max_block_size = 1000` every part of the scatter is a 125-row piece. In the flaky check of ClickHouse#100305 the test shared the workers with 18 other new tests, which hid this (`amd_debug` p50 80-131 s over 7 heads). Run those two queries with `max_block_size = 10000`. The rows and the bounds are unchanged, and every part of the shuffle still has 12 buckets (125000 / 10000), so the multi-bucket path and the partial output blocks are still exercised (192 output blocks). Measured with the master debug build and the CI thread fuzzer settings, one copy on a server: the file takes 54-59 s instead of 309-341 s (query 3 129-135 s -> 7 s, query 4 134-144 s -> 8-9 s); 16 runs in flaky-check mode with 8 workers: all OK, p50 58 s, max 63 s. Without the fuzzer: 50/50 OK with random settings, 20/20 without. Without `SHUFFLE` both queries still return 0, as does query 4 for a shuffle within 10000-row blocks only. Co-Authored-By: Claude Opus 5.5 <[email protected]>
CI finish ledger - ddbb560Every failure below has an owner: a fixing PR (mine or external), or a full-effort fix task
Session id: cron:our-pr-ci-monitor:20261114-223011 |
|
Fixing PR for the |
…adroom baseline `master_baseline` took the nearest commit of the run's master chain whose `Build (amd_msan)` report existed and skipped every commit without one. A master job uploads its report only in `post_run`, so a parent that is still building looked like one that never builds, and the PR was compared with an older commit. On 2026-11-14 ClickHouse#117346 (`Use clang-23`) moved the msan layout by -16.23 MiB; its own master build ran until 20:42Z, and ClickHouse#124068, ClickHouse#131668 and ClickHouse#117318, checked a few seconds earlier, were compared with the commit before it and failed with exactly master's delta. Apply the rule the performance delta gate uses for the same walk (`classify_missing_prev_master_run`, 8b06c76): when the job report is missing, read the commit's MasterCI summary and skip the commit only when MasterCI never ran there, the run has no such job, or the job is `SKIPPED`. Any other status, a report without the headroom row, or a lookup error other than 403/404 stops the walk: no baseline (the header names the commit and its status) or the existing `ERROR`. A PR success without a baseline because the walk stopped is not cached, since master's state is not a build digest input. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Related: #100305
Changelog category (leave one):
Changelog entry (a user-readable short description of the changes that goes into CHANGELOG.md):
Not required.
Description
The last query of
05481_shuffle_randomnessfailed on master withmax(c) < 150false. Its bounds were 5.3 standard deviations, not the "more than 10" the header states: a perfectly uniformSHUFFLE LIMIT 1000fails it at up to 4.5e-06 per run (1 master failure in ~27.7k runs in 30 days).With
SHUFFLE LIMIT 10000the bounds are 11.7 sd (counts) and 10.4 sd (mean), yet tighter relative to the mean, so a real bias is caught more often (a 1.5x weight on one bucket: 299/300 runs, was 85/300).The flaky check of this PR also showed the file taking up to 214 s with 8 copies of it under the thread fuzzer, about 90% of it in the two full
SHUFFLEs of 1M rows atmax_block_size = 1000. They now usemax_block_size = 10000(same rows and bounds, still 12 buckets per part): with the fuzzer the file takes 54-59 s instead of 309-341 s locally.Validation: 5500 local runs over 5 shapes (
max_threads1/2/8/16) match the uniform model in variance, mean and tails, so the sampler is not at fault. The test passes 100/100 with random settings.Workflow [PR]
Sync PR [sync-upstream/pr/131668]