Repository navigation
Conversation
… slows down on the tested server only The run-trend check (ClickHouse#129330) judged the tested server's runs of a query alone. perf.py runs every query on both servers in the same runs, so in a PR that changes only files under tests/ both servers run the same server code, and a test whose runs leave more work for the next run slows down both. A slowdown of the tested server alone is that server's own drift: on ClickHouse#122537 (tests only), `insert_select_squashing_dynamic ClickHouse#1` inserts the same 2,000,000 rows into a Null table every run; tested 0.087 -> 0.114 s (corr 0.99, x1.31, system CPU time 35 -> 69 ms), reference flat (corr 0.50, x1.05). In such a PR a flagged query now fails only when the reference series also rises by either of the check's bounds (corr > 0.8 or last/first > 1.2). Either, not both: files written by earlier runs slow down both servers unevenly while the disk writes them out; requiring both would have caught number_formatting_formats (before ClickHouse#127695) in 20% of arm jobs instead of 61%. A query without a reference series, and any PR that changes a file outside tests/ (the compiler pin, the builder image, CI scripts and docs included), are judged as before. Validated locally on the CI job's query-runs.tsv with the PR's real file list, on the 12 failures of the check since its merge and on 4 known self-growing tests rebuilt from CIDB query_metric_runs_v1: only the ClickHouse#122537 failure is dropped. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Internal second-model review: 1 finding fixed, 1 nit noted
|
|
cc @leshikus, could you review this? In a PR that changes only files under tests/, the Performance Comparison run-trend check now flags a query only when its reference-server runs also rise (correlation above 0.8 or last/first above 1.2), which drops the false failure on #122537 where only the tested server drifted. |
Pre-PR validation gate (click to expand)
Session id: cron:clickhouse-impl-slot-6:20261120-131400 |
|
Workflow [PR], commit [8b4890a] Summary: ✅
AI ReviewSummaryPR #133241, reviewed at All 16 focused validation checks passed, including replay of the exact archived measurements from the reported failure, reference thresholds, missing samples, changed-path scoping, and malformed input. The added field from Final VerdictStatus: ✅ Approve |
Related: #122537
Related: #129330
Related: #132631
Changelog category (leave one):
Changelog entry (a user-readable short description of the changes that goes into CHANGELOG.md):
Not required: CI-only change.
Description
The run-trend check (#129330) failed
Performance Comparison (arm_release, master_head, 5/8)of #122537, which changes only tests, oninsert_select_squashing_dynamic #1: the same 2,000,000 rows inserted into aNulltable every run. Tested server: 0.087, 0.091, 0.102, 0.107, 0.114 s (correlation 0.99, last/first 1.31). Reference server: 0.102, 0.103, 0.104, 0.101, 0.107 s (0.50, 1.05).perf.pyruns every query on both servers in the same runs. When a PR changes only files undertests/, both servers run the same server code, so a test whose runs leave more work for the next run slows down both, and a slowdown of the tested server alone comes from that server. In such a PR the check now also requires the reference series to rise, by either of its two bounds (correlation above 0.8 or last/first above 1.2). A query without a reference series, and every PR that changes a file outsidetests/, are judged as before.Either bound, not both: files written by earlier runs slow down both servers unevenly while the disk writes them out. Requiring both would catch
number_formatting_formats(before #127695) in 20% of arm jobs instead of 61% (CIDB backtest, 2026-10-08 to 11-19); with either, 61%.Validated locally on the job's
query-runs.tsvand the 537 changed files of #122537: the old check fails, the new one passes, and it fails again withsrc/Core/Settings.cppadded to the list. Of the 12 failures of the check since its merge, only this one is dropped; the other 11 are read-only queries (#132631). Lost signal: in a PR that changes only tests, a query that slows down on the tested server only.The alternative is reverting #129330.
Workflow [PR]
Sync PR [sync-upstream/pr/133241]