Skip to content

Perf CI: treat a dashboard 500 for its own missing CIDB table as an outage - #128255

Merged
alexey-milovidov merged 1 commit into
ClickHouse:masterfrom
groeneai:perf-dashboard-missing-cidb-table-is-outage
Oct 30, 2026
Merged

alexey-milovidov merged 1 commit into
ClickHouse:masterfrom
groeneai:perf-dashboard-missing-cidb-table-is-outage

Conversation

@groeneai

@groeneai groeneai commented Oct 30, 2026 •

Copy link
Copy Markdown
Collaborator

Related: #125734

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):

Not required: CI-only change.

Description

On 2026-10-30 four Performance Comparison (arm_release, master_head, N/6) jobs failed with performance dashboard verdict unavailable: dashboard did not serve this shard within 600s: HTTP 500 ... code: 60, message: Unknown table expression identifier 'perf_test_times_v1' (failing job), although each of their own reports had 0 slower queries. While the dashboard was being switched to the new CIDB, its backend answered this 500 for about 3 minutes (also for query_metrics_v2, the other table it reads); the same requests were answered with 200 afterwards.

dashboard_did_not_answer treats a dashboard 5xx as an outage only for the measured messages connect: connection refused and context canceled. So this one was a hard PerfDashboardError, and the shard failed instead of being judged by its own report (the fallback from #125734). This PR adds Unknown table expression identifier to DASHBOARD_OUTAGE_SIGNATURES. It applies only to a 5xx with the application's JSON envelope: a 4xx with this text, a non-JSON body and every other 5xx keep their classification, and a hard error seen earlier in the wait still wins. These three messages are the only dashboard 5xx answers in Performance Comparison results over the last 90 days.

Validated locally against a fake dashboard serving the logged bodies: the incident replay fails the shard on master and reaches the own-report fallback (judged by this shard's report instead: 0 slower) with the fix; a summary with a slower query still fails, and the negative controls are unchanged. Independent of #128236 (same file, no overlapping hunks).

🤖 Generated with Claude Code


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

Version info

  • Merged into: 26.11.1.946-master (included in 26.11 and later)

On 2026-10-30 the performance dashboard backend was switched to a new
CIDB (explained by egor-click on ClickHouse#128236). For about 3 minutes
(14:09:54Z to 14:13:05Z, measured from the polls of 6 shards) it
answered HTTP 500 with ClickHouse code 60 for the tables it reads:

  failed to resolve performance comparison run: code: 60, message:
  Unknown table expression identifier 'perf_test_times_v1'
  failed to load performance comparison rows: code: 60, message:
  Unknown table expression identifier 'query_metrics_v2'

`dashboard_did_not_answer` knew no signature for this message, so the
500 was a `PerfDashboardError`; the poll loop keeps the first hard
error, and `main` failed the shard instead of judging it by its own
report. Four `Performance Comparison (arm_release, master_head, N/6)`
jobs whose 600 s wait ended inside the window failed this way
(ClickHouse#126879 6/6, ClickHouse#128209 1/6 and 3/6, ClickHouse#128097 2/6), all with 0 slower
queries. Shards whose wait outlived the window got the same requests
answered with 200 and passed.

The request cannot cause this answer: the table names are the
backend's own storage, and identical requests (same run id and test)
were served after the window. It is the case the class documents,
"the dashboard, or the CIDB tables it reads, did not answer", so add
the measured signature next to the two existing ones. Only a 5xx with
an application envelope is affected; a 4xx with this text, a non-JSON
body, and every other 5xx keep their classification, and a real hard
error seen before or after it still wins.

Validated locally against a fake dashboard serving the logged bodies:
the incident replay fails on master and reaches the own-report
fallback with the fix.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@groeneai

Copy link
Copy Markdown
Collaborator Author
Internal second-model review: adjudication log (click to expand)

Pre-publication review by an independent model (engine: codex; 0 findings) and my own cold review of the same head (0 blockers, 0 majors; one PR-description wording nit, fixed before publication). Nothing to adjudicate.

Session id: cron:clickhouse-review-slot-8:20261030-153700

@groeneai

Copy link
Copy Markdown
Collaborator Author
Pre-PR validation gate (click to expand)
# Question Answer
a Deterministic repro? Yes. A local fake dashboard replays the logged answers (404 NotFound, then the 500 code 60 body until the deadline); on master the shard FAILs on every run with no own-report suffix, as in CI.
b Root cause explained? The dashboard's CIDB tables were missing during its switch to the new CIDB, so it answered 500 Unknown table expression identifier; dashboard_did_not_answer had no signature for it, so it was a hard PerfDashboardError and main failed the shard instead of judging its own report.
c Fix matches root cause? Yes. One measured signature in the single classifier; the wait, the sticky hard error and the fallback are unchanged.
d Test intent preserved / new tests added? CI-script change: no committed test, validated locally (no tests for the test infrastructure, #119766).
e Both directions demonstrated? Yes. Master: PerfDashboardError, FAIL. Fix: PerfDashboardUnavailable, judged by this shard's report instead: 0 slower, OK. Three mutations of the fix (entry dropped, lowercased, 4xx-only) are caught.
f Fix is general across code paths? Yes. All three dashboard requests (run lookup, test data, confidence) classify through the same function. The CIDB insert side stays hard on purpose, since there the job names the table.
g Fix generalizes across inputs (params/datatypes/wrappers)? Yes. Both measured variants (perf_test_times_v1, query_metrics_v2); 400/404/500/502; JSON envelope vs non-JSON; hard error before/after; later success; a summary with a slower query (still FAIL).
h Backward compatible? (maintainer-approved exception only) Yes. CI only; only this message class changes classification.
i Invariants and contracts preserved? Yes. PerfDashboardUnavailable still means "the dashboard, or the CIDB tables it reads, did not answer"; an earlier hard error still wins, a later 200 still wins, the fallback still fails any slower query.

Session id: cron:clickhouse-impl-slot-7:20261030-152413

@clickhouse-gh

clickhouse-gh Bot commented Oct 30, 2026 •

Copy link
Copy Markdown
Contributor

Workflow [PR], commit [abe2fb8]

Summary: ✅


AI Review

Summary

PR #128255 classifies dashboard HTTP 5xx application errors containing Unknown table expression identifier as outages, allowing master_head performance shards to use their own reports. No actionable findings at abe2fb88031e9964eb62ff486c18a3fba5dc3506. Focused local validation passed 554 assertions covering the incident replay, negative controls, hard-error precedence, dashboard recovery, and local slowdown failures.

Final Verdict

Status: ✅ Approve.

@groeneai

Copy link
Copy Markdown
Collaborator Author

cc @egor-click, could you review this and add the can be tested label so CI runs? During the switch to the new CIDB the dashboard answered HTTP 500 Unknown table expression identifier for about 3 minutes, and since that message was not a known outage signature, four master_head shards with 0 slower queries failed instead of falling back to their own report; this adds it to DASHBOARD_OUTAGE_SIGNATURES.

@clickhouse-gh clickhouse-gh Bot added the pr-ci label Oct 30, 2026
@clickhouse-gh clickhouse-gh Bot added the comp-ci-infrastructure CI/CD pipelines (GitHub Actions, CI scripts, runners). label Oct 30, 2026
@egor-click egor-click added the can be tested Allows running workflows for external contributors label Oct 30, 2026
@alexey-milovidov alexey-milovidov self-assigned this Oct 30, 2026
@alexey-milovidov
alexey-milovidov added this pull request to the merge queue Oct 30, 2026
Merged via the queue into ClickHouse:master with commit c3a944f Oct 30, 2026
354 of 355 checks passed
@robot-ch-test-poll robot-ch-test-poll added the pr-synced-to-cloud The PR is synced to the cloud repo label Oct 30, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

can be tested Allows running workflows for external contributors 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.

4 participants