Repository navigation
Warn when the perf reference build is older than the tested master - #124592
Conversation
The `master_head` perf comparison uses as reference the newest master commit with a published build. When master CI lags, that commit is older than the master revision merged into the PR, and every change merged in between shows up as a change of the PR. Report this in `report.html`, in the Praktika result and on the performance dashboard (as a `perf_run_errors_v1` row with `test = '(warning)'`), with a link that lists the commits in between. Co-Authored-By: Claude Opus 5.5 <[email protected]>
|
Workflow [PR], commit [f646ee3] Summary: ✅
AI ReviewSummaryThis PR teaches the performance-comparison job to warn when its Findings
Final Verdict
|
egor-click
left a comment
There was a problem hiding this comment.
looks reasonable, but maybe this comment is worth addressing, i am not running lots of local runs, so i am not that sure if this is smth that would actually be a problem though
`stale_reference_warning` recovered the selected reference by rereading `master_track_commits_sha` and looking for the commit in the build URL. That missed local runs, whose commits come from `local_master_track_commits`, and depended on the S3 layout that `master_build_links` hides. Return the commits from the tested master down to the reference from `find_prev_build` instead. Co-Authored-By: Claude Opus 5.5 <[email protected]>
| reference_warning = stale_reference_warning(reference_chain) | ||
|
|
||
| if compare_against_release: | ||
| print("It's a comparison against latest release baseline") |
There was a problem hiding this comment.
On a --param report rerun this flag is recomputed from the current S3 state, not from the reference binary already cached in perf_left. If the original run had to fall back to an older baseline but MasterCI publishes the missing build before the rerun, find_prev_build now returns the newer commit, reference_warning goes empty here, and the rerun silently drops both the Reference baseline Praktika row and run-warnings.tsv even though the report is still comparing against the older binary left on disk.
The install stage already persists reference-source.txt / the actual reference_sha; the warning needs to be derived from that persisted baseline (or stored alongside it) when resuming after INSTALL_CLICKHOUSE_REFERENCE, instead of being recomputed from fresh build availability.
There was a problem hiding this comment.
🤖 This only affects local resumed runs: CI never passes --param (the job command in ci/defs/job_configs.py is performance_tests.py --test-options "{PARAMETER}"), so every CI run goes through INSTALL_CLICKHOUSE_REFERENCE and computes the warning for the binary it installs. The existing local latest-master warning has the same behavior on a resumed run, so I'm leaving it as is.
In
master_headmode the performance comparison uses as reference the newest master commit that has a published build. When master CI lags behind, that commit is older than the master revision merged into the PR, so every change merged into master in between shows up as a change of the PR, with nothing in the report saying so.Example: #123552 was merged with master
538719e18bbdbut compared againste95690ab45b6, the newest master with a build. Its report lists 2x fasterencrypt_decrypt_empty_stringqueries that come from #124103; every other PR compared against the same reference with #124103 in its merge commit shows the same.When the reference is not the tested master revision, the job now:
report.html(not counted as an error) and a "Reference baseline" row in the Praktika result;perf_run_errors_v1as a row withtest = '(warning)', so performance.ci.clickhouse.com can show it without a schema change.The warning names both commits and links to the GitHub compare view that lists the commits in between. Since the warning shares the table with run errors, the
insert_deduplication_tokenof report uploads now includes the source file, otherwise the second insert into the same table would be dropped as a duplicate.Related: #123552
Related: #124103
Changelog category (leave one):
Workflow [PR]
Sync PR [sync-upstream/pr/124592]
Version info
26.10.1.1866-master(included in26.10and later)