Skip to content

Perf CI: fix false reds of the dashboard gate - #121847

Merged
fm4v merged 4 commits into
masterfrom
perf-ci-skip-dashboard-gate-on-master
Sep 23, 2026
Merged

fm4v merged 4 commits into
masterfrom
perf-ci-skip-dashboard-gate-on-master

Conversation

@fm4v

@fm4v fm4v commented Sep 23, 2026 •

Copy link
Copy Markdown
Member

Fixes the false reds of the performance check since #120927.

  1. Master runs failed with no master run for sha <sha> yet. The perf image has TZ=Europe/Amsterdam (from test-base), and the job wrote local time into UTC CIDB columns. After 22:00 UTC a run got the next day's event_date, and the dashboard didn't list it until midnight. The job now writes all timestamps in UTC.
  2. Learned per-query thresholds were often lost. The fetch had a 10 s timeout for a query that takes 8 to 10 s. It now uses the standard 60 s CIDB timeout, and a missing fetch posts a workflow warning.

Noisy queries scored confirmed_regression on unrelated PRs are fixed in the dashboard: https://github.com/ClickHouse/performance-comparison/pull/5

Replaces #121189 and #121090.

Related: #120927

Changelog category (leave one):

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

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

Version info

  • Merged into: 26.10.1.556-master (included in 26.10 and later)

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.
@clickhouse-gh

clickhouse-gh Bot commented Sep 23, 2026 •

Copy link
Copy Markdown
Contributor

Workflow [PR], commit [c859784]

Summary: ✅


AI Review

Summary

This 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 master_head dashboard verdict as the gate. I did not find a remaining correctness or gating issue in the current diff, and the earlier inline concern about dropping the dashboard verdict is resolved in the current code.

Final Verdict

✅ No new blockers or majors in the current version of the PR.

@clickhouse-gh clickhouse-gh Bot added the pr-ci label Sep 23, 2026
@fm4v
fm4v enabled auto-merge September 23, 2026 20:06
Comment thread ci/jobs/performance_tests.py Resolved
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.
@fm4v fm4v changed the title Perf CI: skip the dashboard gate on master runs Perf CI: write CIDB timestamps of the performance job in UTC Sep 23, 2026
`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.
@fm4v fm4v changed the title Perf CI: write CIDB timestamps of the performance job in UTC Perf CI: fix false reds of the dashboard gate Sep 23, 2026
@alexey-milovidov alexey-milovidov self-assigned this Sep 23, 2026
@clickhouse-gh clickhouse-gh Bot added the comp-ci-infrastructure CI/CD pipelines (GitHub Actions, CI scripts, runners). label Sep 23, 2026
@fm4v
fm4v added this pull request to the merge queue Sep 23, 2026
Merged via the queue into master with commit da7ece5 Sep 23, 2026
177 checks passed
@fm4v
fm4v deleted the perf-ci-skip-dashboard-gate-on-master branch September 23, 2026 23:29
@robot-clickhouse-ci-1 robot-clickhouse-ci-1 added the pr-synced-to-cloud The PR is synced to the cloud repo label Sep 23, 2026
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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

comp-ci-infrastructure CI/CD pipelines (GitHub Actions, CI scripts, runners). 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.

3 participants