Skip to content

CI: resolve the performance reference build under its workflow prefix - #117715

Merged
fm4v merged 2 commits into
ClickHouse:masterfrom
Algunenano:perf-reference-build-workflow-prefix
Sep 2, 2026
Merged

fm4v merged 2 commits into
ClickHouse:masterfrom
Algunenano:perf-reference-build-workflow-prefix

Conversation

@Algunenano

@Algunenano Algunenano commented Sep 2, 2026 •

Copy link
Copy Markdown
Member

Performance Comparison measures against a reference clickhouse built from master. find_prev_build and find_base_release_build in ci/jobs/performance_tests.py hand-spell that artifact's key as REFs/master/<sha>/build_<type>/clickhouse. Praktika builds it with _Environment.get_s3_prefix_static, which now appends the normalized workflow name unconditionally after _should_include_workflow_name_in_s3_prefix was deleted in #110081 (merged 2026-08-31). The artifact lives at REFs/master/<sha>/masterci/build_<type>/clickhouse.

The loop returns the first sha in master_track_commits_sha that resolves, so the failure was silent and had two phases.

Until 2026-09-02 13:55 every run pinned its "master head" reference to 2abd0f27 (2026-08-31 08:23), the last master commit built under the old layout, and every master change landed after it was reported as the pull request's own. On #117619, a base58 change, 51 queries came back faster across 12 shards, 124 first-parent master commits of drift: preliminary_distinct_abandoning #0 at 1.53x is #116508, merged inside that window, and hashes, uniq_to_count, distinct_high_cardinality, promql_set_operator_presence_mask and wide_integer_division are the same story.

From 13:56 the window slid past that commit, nothing resolved, and the job took its fallback: WARNING: No build found for master track commits, falling back to latest master build, then master/aarch64/clickhouse, a 185 MB stripped artifact from a different publishing job at an unrecorded sha, against the 1.2 GB CI build the comparison expects. Both the master_head pull request runs and the MasterCI runs that feed the dashboard baseline are affected.

So I ask praktika for the prefix rather than restating it, and drop the fallback. It is what turned a hard resolution failure into two days of quietly wrong numbers; an unresolved reference now asserts, as the release_base arm already did. release_base itself has not broken yet only because the release base shas predate the cutover, and it would have failed loudly rather than drifted.

Validation, calling the real function against the live 100-commit window: build_arm_release 0/100 resolve before the change and 58/100 after, first at depth 5; build_amd_release 0/100 and 52/100, first at depth 1.

The same cutover also broke the release_base delta gate in this file: find_prev_master_slower_count and classify_missing_prev_master_run read REFs/master/<sha>/result_*.json from the report bucket, which moved under masterci/ too. Every predecessor now reads as missing, the walk classifies the whole tracking list as never scheduled, and the gate degrades to the absolute slower-count threshold. result_masterci.json resolves for none of the last 8 master commits under the old key and for 7 under the new one, the eighth having published no report at all. Second commit.

Caused by: #110081
Related: #117718
Related: #117701
Related: #117580

Changelog category (leave one):

  • CI Fix or Improvement (changelog entry is not required)

Changelog entry (a user-readable short description of the changes that goes into CHANGELOG.md):

Fix the performance comparison measuring against a stale or unrelated reference binary after the CI S3 prefix change.


Workflow [PR]
Sync PR [sync-upstream/pr/117715]

Version info

  • Merged into: 26.9.1.554 (included in 26.9 and later)

find_prev_build and find_base_release_build hand-spelled
REFs/master/<sha>/build_<type>/clickhouse. Praktika now appends the
normalized workflow name to every static S3 prefix, so the artifacts
live under REFs/master/<sha>/masterci/build_<type>/clickhouse and the
old key resolves for no commit in the tracking window.

The loop takes the first sha that resolves, so every run pinned its
"master head" reference to the last commit built under the old layout,
2026-08-31 08:23, and reported two days of master changes as the pull
request's own. Once that commit fell out of the 100-commit window the
job took the silent fallback to master/<arch>/clickhouse instead, an
unrelated artifact at an unrecorded sha.

Ask praktika for the prefix instead of restating it, and drop the
fallback: an unresolved reference now fails the job rather than
producing numbers measured against an unknown baseline.

Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
@clickhouse-gh

clickhouse-gh Bot commented Sep 2, 2026 •

Copy link
Copy Markdown
Contributor

Workflow [PR], commit [b1ae34e]

Summary: ✅


AI Review

Summary

Routes the master-reference build lookup and the previous-master perf-result lookup through Praktika's workflow-prefixed S3 layout, and removes the silent fallback to master/<arch>/clickhouse when no matching reference build is found. The earlier blocker on the release_base history walk is fixed in the current code, and I did not find any remaining correctness issues in the touched paths.

Final Verdict

✅ No remaining findings.

@clickhouse-gh clickhouse-gh Bot added the pr-ci label Sep 2, 2026
@fm4v
fm4v enabled auto-merge September 2, 2026 15:27
Comment thread ci/jobs/performance_tests.py Resolved
The release_base delta gate walks REFs/master/<sha>/result_*.json on the
report bucket, which the same prefix cutover moved under masterci/. Every
predecessor now reads as missing, so the walk classifies the whole
tracking list as never scheduled and the gate silently degrades to the
absolute slower-count threshold.

Verified against the live window: result_masterci.json resolves for none
of the last 8 master commits under the old key and for 7 of them under
the new one, the eighth having published no report at all.

Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
@fm4v
fm4v added this pull request to the merge queue Sep 2, 2026
Merged via the queue into ClickHouse:master with commit b4e1ae9 Sep 2, 2026
174 checks passed
@robot-clickhouse robot-clickhouse added the pr-synced-to-cloud The PR is synced to the cloud repo label Sep 2, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

pr-ci pr-synced-to-cloud The PR is synced to the cloud repo

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants