Repository navigation
Conversation
`find_master_builds` hand-spelled the S3 prefix of the reference master binaries as `REFs/master/<sha>`. Praktika's uploader derives that prefix from `_Environment.get_s3_prefix_static`, which gained a trailing `/<normalized workflow name>` segment, so a master build artifact now lives at `REFs/master/<sha>/masterci/build_<type>/clickhouse`. Every `curl -sfI` probe therefore gets a 404, the `all` over the requested build types never holds for any candidate commit, and the function returns `None` for the x86 and the ARM build-type set alike. Both callers then abort on `assert build_urls, "Could not find master builds in S3"`, so all four per-arch `Bugfix validation` jobs fail before starting a server, and `Finish Workflow` then fails its `new_tests_check.py` hook on every pull request that carries a `Bug Fix` changelog category. The onset lagged the prefix change by about ten hours because `master_commits` holds a 50-entry listing, which is roughly a twelve-hour window: the failures began once the newest commit predating the change aged out of it. Take the prefix from `_Environment.get_s3_prefix_static` instead of spelling it again here, so this reader cannot drift from the uploader that writes the objects. Co-Authored-By: Claude Opus 5 <[email protected]>
Internal second-model review: adjudication log (click to expand)Pre-publication review by an independent model (engine: codex; 0 findings) plus my own cold
Severity: ❌ blocker / Session id: cron:clickhouse-review-slot-11:20260901-004200 |
Pre-PR validation gate (click to expand)
Session id: cron:clickhouse-impl-slot-5:20260901-002400 |
|
Workflow [PR], commit [0c5e7f0] Summary: ✅ AI ReviewSummaryThis PR updates Final Verdict✅ No blocking or major issues found in the current diff. |
|
cc @maxknv, could you review this? The workflow-name segment #110081 added to |
|
@vitlibar Yes, #117580 fixes it, so my #117433 is redundant. Same defect and same function: #117580 inserts the normalized workflow segment into the master-build key that
All 47 remaining errors are that same assert, on 20 heads. Every head that has hit it since the merge (34 shas, counting the Two things #117580 leaves in place, if the sweep #117287 started is worth continuing: the key is still spelled at the call site rather than derived from |
Changelog category (leave one):
Changelog entry (a user-readable short description of the changes that goes into CHANGELOG.md):
Fix
Bugfix validationfailing to locate the reference master binaries in S3 after the artifact prefix gained a workflow-name segment.Description
_Environment.get_s3_prefix_staticgained a trailing/<normalized workflow name>segmentin #110081, so a master build artifact now lives at
REFs/master/<sha>/masterci/build_<type>/clickhouse.find_master_buildsstillhand-spelled the old
REFs/master/<sha>/build_<type>/clickhouse, so everycurl -sfIprobe404s and the function returns
Nonefor the x86 and the ARM build-type set alike. Bothcallers then abort on
assert build_urls, "Could not find master builds in S3".So all four per-arch
Bugfix validationjobs fail before starting a server, andFinish Workflowthen fails itsnew_tests_check.pyhook: every pull request carrying aBug Fixcategory is blocked on a required check while the bug it fixes is never measured.CI DB shows 0 occurrences in the preceding 7 days, then onset at 2026-08-31 19:00 UTC rising
to 32 rows over 19 distinct pull requests by 23:00 UTC. The ~10h lag is
master_commitsbeing a 50-entry (~12h) listing: failures began once the newest commit predating the change
aged out of it.
This takes the prefix from
_Environment.get_s3_prefix_static, the same function theuploader uses (
ci/praktika/runner.py:925), instead of spelling it here a second time, sothis reader cannot drift from the writer again.
Validated credential-free against the links the uploader itself recorded in the MasterCI
report, not against a URL I built: on master tip all 8 relevant artifacts match the derived
prefix and 0 match the old one. Exercising
find_master_buildswith its two collaboratorsstubbed and those recorded links as ground truth gives
Nonebefore the change and the fullURL set after, on both arch sets, stable over 100 invocations, with an incomplete build set
still walked past. This PR is
CI Fix or Improvement, soBugfix validationis notscheduled on it and I cannot self-validate in CI.
Related: #110081
Related: #117287
Other places that still hand-spell the old prefix (code read, not measured)
Same root cause, deliberately not in this PR, which restores a merge-gating check:
performance_tests.py:1280, 1290, 1454-1455, 1510masterciparser_memory_check.py:73mastercillvm_coverage_job.py:608-612, 706-707, 752-756pr,masterciscripts/generate_diff_coverage_report.sh:32masterciscripts/release_packages.py:38, 162releasebranchciscripts/create_release.py:642, 732-775releasebranchci.github/workflows/retry_infra_failures.yml:118prupdate_toolchain_dockerfile.py:36-37optimizetoolchaindocker/binary-builder/Dockerfile:55, 72optimizetoolchain,optimizeclickhouseCI DB is silent for all of them, but for the two reference-build lookups in
performance_tests.pythat silence is not evidence of health.find_prev_buildwalksmaster_track_commits_sha, 50 first-parent master commits, a longer window than themaster_commitslisting above, and the release binaries carryretention: long, so it isstill reaching pre-change commits. Once it stops, its
Noneis swallowed by the fixed.../master/<arch>/clickhousefallback atperformance_tests.py:1758-1774: the MasterCIcommit-to-commit baseline silently stops being the previous commit, which is the
self-comparison
store_data.py:477-490exists to prevent, and no failure row is produced.find_base_release_buildasserts instead. Neither performance job carriesallow_failure.The two
Dockerfilesites are inert today:TOOLCHAIN_COMMITis pinned to a pre-changecommit, and
CLICKHOUSE_PROFILES_COMMIT=nonenever takes that branch. Theretry_infra_failures.ymlone fails closed, so the retry silently never fires. Docs andlocal helpers (
ci/CLAUDE.md:12,utils/auto-bisect/helpers/download.sh) are stale too.Workflow [PR]
Sync PR [sync-upstream/pr/117433]