Repository navigation
Perf CI: fix false reds of the dashboard gate - #121847
Merged
Merged
Conversation
In `master_head` mode a master run looked up its own run on the performance dashboard and failed the check when the dashboard did not list it within 600 s (`no master run for sha <sha> yet`). About 20% of the red performance checks since #120927 were master runs failing this way. A master run has nothing to block, so the gate now runs only for PRs; run errors still fail the check.
Contributor
|
Workflow [PR], commit [c859784] Summary: ✅
AI ReviewSummaryThis PR makes the performance-comparison job write its CIDB timestamps in UTC and surfaces a workflow warning when the learned historical thresholds cannot be fetched, while keeping the Final Verdict✅ No new blockers or majors in the current version of the PR. |
fm4v
enabled auto-merge
September 23, 2026 20:06
This reverts commit 7e1cdc3.
The performance image inherits `TZ=Europe/Amsterdam` from `test-base`, and the job wrote `datetime.now()` and `datetime.fromtimestamp()` into the UTC `event_date`, `event_time` and `check_start_time` columns, so every row was two hours ahead in summer. For a run that uploads after 22:00 UTC, `event_date` is the next day. The performance dashboard lists runs only up to the current UTC date, so it did not list such a master run until UTC midnight, and the dashboard gate failed the shard with `no master run for sha <sha> yet`. Every red master perf shard since #120927 started between 18:00 and 24:00 UTC. Example: `Performance Comparison (amd_release, master_head, 5/6)` of master `8b9fd5bf05d1` started at 21:12:24 UTC per `checks`, while its `perf_test_times_v1` rows carry `check_start_time` 23:10:52 and `event_date` 2026-09-20. The previous commit of this branch skipped the gate on master, which would have removed the only regression verdict of `master_head` on master; it is reverted.
`Select historical data` used a 10 s timeout for a query that takes 8 to 10 s, so many runs lost their per-query thresholds and judged every query against the 0.15 floor. Use `Settings.CI_DB_QUERY_TIMEOUT_SEC` (60 s) and post a workflow warning when the thresholds are missing. Taken from #121189.
alexey-milovidov
approved these changes
Sep 23, 2026
This was referenced Sep 23, 2026
Merged
This was referenced Sep 25, 2026
Open
Closed
Use the query condition cache when a filter is moved to PREWHERE after an early row estimate
#122339
Open
pull Bot
pushed a commit
to Haofei/ClickHouse
that referenced
this pull request
Sep 26, 2026
The REPORT-stage uploads of a performance shard probed CIDB once and
skipped the whole step when that probe failed ("CIDB not ready -
skipping"), and a failed INSERT was not retried either. That was fine
while the tables were informational (ClickHouse#108712), but since ClickHouse#120927 the
performance dashboard computes the master_head verdict from exactly
these tables. A CIDB refusal of seconds or an overload of minutes
therefore dropped the shard's rows, and perf_dashboard_gate then waited
600 s for data that was never sent and failed the shard with "dashboard
did not serve this shard within 600s", blaming the dashboard.
Measured: ClickHouse#113589 arm 6/6 skipped all three uploads on "Connection
refused" and failed after 614 s. On 2026-09-25 a CIDB overload
(TOO_MANY_SIMULTANEOUS_QUERIES, read timeouts) failed 70 shards on 21
PRs and master. In 74 of the 76 occurrences since 2026-09-22 that are
not the time zone shape fixed by ClickHouse#121847, an upload was skipped or
failed. The same run of ClickHouse#122252 is the control: amd 1/6 uploaded and
got its verdict in 2 s, while arm 6/6 skipped the uploads and failed.
Now one helper runs all four INSERT sites. In master_head mode the
three tables the verdict is computed from (query_metric_runs_v1,
query_metrics_v2, perf_test_times_v1) are retried every 60 s until one
600 s deadline, which is taken when the uploads start and shared with
the gate's wait. The other tables keep a single attempt, and nothing is
sent after the deadline. Every attempt carries the same
insert_deduplication_token, because some INSERTs that timed out on the
client had committed on the server. If one of the three inputs was not
uploaded, the gate fails at once and names it instead of polling the
dashboard. A shard without a verdict still fails, as ClickHouse#120927 designed,
and release_base keeps its single call.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
This was referenced Sep 26, 2026
3 of 11 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes the false reds of the performance check since #120927.
no master run for sha <sha> yet. The perf image hasTZ=Europe/Amsterdam(fromtest-base), and the job wrote local time into UTC CIDB columns. After 22:00 UTC a run got the next day'sevent_date, and the dashboard didn't list it until midnight. The job now writes all timestamps in UTC.Noisy queries scored
confirmed_regressionon unrelated PRs are fixed in the dashboard: https://github.com/ClickHouse/performance-comparison/pull/5Replaces #121189 and #121090.
Related: #120927
Changelog category (leave one):
Workflow [PR]
Sync PR [sync-upstream/pr/121847]
Version info
26.10.1.556-master(included in26.10and later)