Repository navigation
Resolve the master clickhouse-examples binary under its workflow prefix - #117701
Algunenano merged 1 commit into
Conversation
…efix `Parser memory check` errored in its `Resolve master binary` step on every pull request from 2026-09-02 10:14:18Z with `No master binary found in 100 tracked commits`. `main` returns early there, so the check produced no signal at all, and because the job sets no `allow_failure` the error counted toward `Mergeable Check`. The last green run started 10:30:22Z; 49 erroring runs across 48 distinct pull requests followed by 13:03:42Z. `get_merge_base_profiler_url` hand-spelled the artifact key as `REFs/master/<sha>/build_arm_release/clickhouse-examples`. Praktika uploads job artifacts to `<env.get_s3_prefix()>/<normalized job name>`, and `_Environment.get_s3_prefix_static` now appends the normalized workflow name unconditionally after `_should_include_workflow_name_in_s3_prefix` was deleted in ClickHouse#110081 (merged 2026-08-31T08:54:37Z). That helper returned `not workflow_name.startswith(("pr", "main", "master"))`, so it suppressed the segment for exactly the flows this job reads, which is why the hand-spelled key was correct before and is a permanent miss now. The artifact lives at `REFs/master/<sha>/masterci/build_arm_release/clickhouse-examples`, which is also the link `Build (arm_release)` records for itself in that workflow's own `result_masterci.json` report. The break arrived about two days after that merge because the loop returns the first sha in `master_track_commits_sha` that resolves, and `store_data.py` fills that key with 100 first-parent commits of the master parent of the merge commit praktika builds. That window currently spans 1.99 days, so it had to slide entirely past the cutover before the loop could exhaust. It is also why every open pull request broke at one instant rather than one at a time, and why a legacy fallback would rescue nothing. Asking praktika for the prefix removes the duplicated layout knowledge that caused this, so a later move follows automatically and a signature change fails loudly instead of returning 403 for 100 shas. Validated by calling the real function against the live 100-sha window with `master_track_commits_sha` stubbed: before the change it printed the reported message and returned an empty string, with the old key resolving for 0 of 100 shas; after it resolves at depth 7, with the new key resolving for 54 of 100. A master sha whose build has not published yet resolves on neither key, so the probe still discriminates. Reported by @ bacek at ClickHouse#116552 (comment) Failing job: https://github.com/ClickHouse/ClickHouse/actions/runs/33612463648/job/100219799384 CI report: https://s3.amazonaws.com/clickhouse-test-reports/praktika.html?PR=116552&sha=d5fa6652f262ce060c04c2206ec141660a43d597&name_0=PR&name_1=Parser%20memory%20check Pull request: ClickHouse#116552 Related: ClickHouse#110081 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-8:20260902-133600 |
Pre-PR validation gate (click to expand)
Session id: cron:clickhouse-impl-slot-4:20260902-130001 |
|
Workflow [PR], commit [46ecfcc] Summary: ✅ AI ReviewSummaryThis PR fixes Final Verdict
|
|
cc @qoega, could you review this? |
d4f4f2a
Changelog category (leave one):
Changelog entry (a user-readable short description of the changes that goes into CHANGELOG.md):
Fix
Parser memory checkerroring on every pull request because it looked for the masterclickhouse-examplesbuild artifact under its pre-cutover S3 key.Description
Parser memory checkerrors in itsResolve master binarystep before running anything, withNo master `clickhouse-examples` artifact was found. The first error started 2026-09-02 10:14:18Z; 58 runs across 57 pull requests had errored by 13:41:07Z. The job sets noallow_failure, so it blocksMergeable Check.get_merge_base_profiler_urlhand-spelled the artifact key asREFs/master/<sha>/build_arm_release/clickhouse-examples. Praktika builds that key with_Environment.get_s3_prefix_static, which now appends the normalized workflow name unconditionally, after_should_include_workflow_name_in_s3_prefixwas deleted in #110081 (merged 2026-08-31). That helper suppressed the segment for exactly the pr/main/master flows, which is why the hand-spelled key used to be correct. The artifact now lives atREFs/master/<sha>/masterci/build_arm_release/clickhouse-examples, matching the linkBuild (arm_release)records in its ownMasterCIreport.The loop returns the first sha in
master_track_commits_shathat resolves, and that window is 100 first-parent master commits, currently 1.99 days, its oldest already newer than the cutover. That is why the break arrived two days after that merge, why a run configured earlier can still be green, and why a legacy fallback would rescue nothing.So I ask praktika for the prefix instead of restating it; a later prefix change then follows automatically. Merged sibling #117580 spells the segment by hand in
bugfix_validation; say the word and I will match it in one line.Validation, calling the real function against the live window: 0 of 100 shas resolve before the change, 54 after, first at depth 7. A master sha with no published build resolves on neither path. The job runs from this pull request's own tree, so it is its own end-to-end test.
Not fixed here: the same layout in
performance_tests.py,llvm_coverage_job.py,update_toolchain_dockerfile.py,generate_diff_coverage_report.sh,binary-builder/Dockerfile,retry_infra_failures.yml, andci/CLAUDE.md. Each reads a different workflow, so each needs its own segment.No related open issue found.
Reported by @ bacek at #116552 (comment)
CI report: https://s3.amazonaws.com/clickhouse-test-reports/praktika.html?PR=116552&sha=d5fa6652f262ce060c04c2206ec141660a43d597&name_0=PR&name_1=Parser%20memory%20check
Related: #116552
Workflow [PR]
Sync PR [sync-upstream/pr/117701]