Repository navigation
Pick the bugfix-validation master binary from the PR's master parent chain - #127524
alexey-milovidov merged 1 commit into
Conversation
…chain `find_master_builds` walked `master_commits`, the raw `commits?sha=master` listing that Config Workflow fetches when it runs. A re-run (for example after the `can be tested` label lands hours after the PR event) runs Config Workflow again, so the listing is the current master, while the checkout, `tests/config` and `ci/` stay those of the original merge commit. The downloaded binary can then be newer than the tree it is started with. After ClickHouse#125817 added a startup check that a filesystem cache's `max_file_segment_size` fits each SLRU queue, such binaries exit with BAD_ARGUMENTS on the older trees' 1Mi cache disk (`tests/config/config.d/storage_conf_03517.xml`), and the changed tests never run. In the public repository walk `master_track_commits_sha` instead: the first-parent chain from the merge commit's master parent, already stored for every PR and used by the performance, build-profile diff, coverage and parser-memory jobs. The binary is then the newest built master commit that the tested tree contains. Like those jobs, it does not fall back to the unanchored listing: a chain without a built commit fails the job. Synced private PRs keep `master_commits`, because their own master commits have no public builds. 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; 1 full pass, no fix round needed).
Severity: ❌ blocker / Session id: cron:clickhouse-review-slot-8:20261023-004400 |
Pre-PR validation gate (click to expand)
Session id: cron:clickhouse-impl-slot-5:20261023-003400 |
|
cc @maxknv @leshikus, could you review this and add the |
|
Workflow [PR], commit [3f137c3] Summary: ✅ AI ReviewSummaryPR #127524 anchors public bugfix-validation binaries to the tested tree's master-parent history while preserving private-repository behavior. No actionable findings. Final Verdict✅ Approve |
c0302c2
Related: #125817
Changelog category (leave one):
Changelog entry (a user-readable short description of the changes that goes into CHANGELOG.md):
Bugfix validation now downloads the master binary of the PR's own master parent chain, so it is never newer than the test configs it is started with.
Description
No related open issue found.
Bugfix validation (functional tests, *)can fail atStart ClickHouse Server: the downloaded master binary exits with code 36 three times and the changed tests never run. Example: #127364, amd64. On 2026-10-22 this hit 14 runs on 7 PRs, all re-runs after thecan be testedlabel.Root cause:
find_master_buildswalksmaster_commits, the rawcommits?sha=masterlisting that Config Workflow fetches when it runs. A re-run runs Config Workflow again, so the listing is the current master, while the checkout andtests/configstay those of the original merge commit. In the example the tree is masterb212e420(before #125817) and the binary is4558eb8f(after it), which rejects the tree's 1Mi SLRU cache disk instorage_conf_03517.xmlat startup (max_file_segment_size ... must not exceed the size of each SLRU queue,BAD_ARGUMENTS).Change: in the public repository walk
master_track_commits_sha, the first-parent chain from the merge commit's master parent that is already stored for every PR and used by the performance, build-profile diff and coverage jobs. Like them, there is no fallback to the unanchored listing. Synced private PRs keepmaster_commits.Validation (local, no harness test): with the failing runs' real kv data the old code picks a binary outside the PR's chain and the new code picks its master parent (both arches, 3 PRs); fail-closed, partial-build and private-repo cases checked. On the real binaries,
4558eb8fwith the old config exits 36 with the message above, whileb212e420with the same config, and4558eb8fwith #125817's config, start. Already-red PRs keep their old merge commit and need a new push.Workflow [PR]
Sync PR [sync-upstream/pr/127524]
Version info
26.11.1.698-master(included in26.11and later)