Repository navigation
Skip only never-run master commits when looking for the relocation headroom baseline - #131700
Conversation
…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]>
|
Workflow [PR], commit [f8bff39] Summary: ❌
AI ReviewSummaryReviewed commit Final VerdictStatus: ✅ Approve |
Internal second-model review: adjudication log (click to expand)Pre-publication review by an independent model (engine: codex; 1 finding), plus my own review.
Severity: ❌ blocker / Session id: cron:clickhouse-review-slot-9:20261114-224100 |
Pre-PR validation gate (click to expand)
Session id: cron:clickhouse-impl-slot-5:20261114-222900 |
CI finish ledger - f8bff39Every failure below has an owner: a fixing PR (mine or external), or a full-effort fix task
Session id: cron:our-pr-ci-monitor:20261115-013011 |
Algunenano
left a comment
There was a problem hiding this comment.
@groeneai Can you check how often this happens? Because with the rate we merge things there is a chance that quite often master doesn't have this report ready for the nearest commit and we'll be skipping this check a lot
|
I measured it on CIDB: every PR
The skipped share is 2.5% since 2026-11-11 (77 of 3,079), and the worst day was 2026-11-17 with 40 of 425 (9.4%). A skipped run is not cached, so the next run of that build checks again. In those 194 runs the old fallback to an older commit caught nothing real: 190 were OK, and the 4 FAILs are the false reds this PR fixes (3 on 2026-11-14 after the clang-23 merge, and one today, report, 7 commits behind). The 10 real FAIL runs measured against an older commit stay FAIL: each one passed only commits where MasterCI did not run the job. The missing report is usually minutes away: it landed a median 0.5 min after the PR's build job ended, and 176 of the 194 within 10 minutes. If 2% (up to 9% on a busy day) is too often, I can make the check wait up to 10 minutes for a parent build that is still running, instead of skipping. Do you want that in this PR? |
|
No, it's fine. Thanks for the info. Let's merge as is |
221f2fb
Related: #126314
Related: #126736
Changelog category (leave one):
Changelog entry (a user-readable short description of the changes that goes into CHANGELOG.md):
The
Relocation headroomcheck ofBuild (amd_msan)no longer compares a pull request with an older master commit while the master parent's own build is still running.Description
On 2026-11-14
Build (amd_msan)/Relocation headroomfailed three unrelated PRs withdecreased by 16.23 MiB, more than 5 MiB(#124068, #131668, #117318).Root cause:
master_baselineskipped every master commit without a job report. A master job uploads its report only when it finishes, so the parent edfbc33 (#117346,Use clang-23, -16.23 MiB), still building until 20:42Z, looked like a commit that never builds, and the PRs checked seconds earlier were compared with the commit before it and charged master's own delta. Against edfbc33 they measure 0.00 to -0.03 MiB.Change: the walk now applies the rule of the performance delta gate (
classify_missing_prev_master_run, 8b06c76). A commit without a report is skipped only when its MasterCI summary shows the job never ran there (no MasterCI run, job absent,SKIPPED). Any other status, a report without the headroom row, or a lookup error other than 403/404 stops the walk: the row reports no baseline and names the commit and status (or the existingERROR), and such a PR success is not cached. One file, no wait.Validation: a local replay of all 13 behind-baseline FAILs of the last 30 days against the real S3 reports. The 10 real regressions still FAIL with identical text. The 3 false reds FAIL on master's code and pass with the change when the parent is modelled as
RUNNING; 36 cases in all, also covering the other job statuses, lookup errors, the label, master runs and empty chains.Workflow [PR]
Sync PR [sync-upstream/pr/131700]
Version info
26.11.1.2743-master(included in26.11and later)