Repository navigation
Conversation
The performance tests were split into 6 batches per architecture in ClickHouse#89598 (2025-11-05), when the suite had 400 tests. It has 844 now. Every amd shard pays about 28 minutes of fixed work (21.3 min setup, 6.9 min after the benchmark) on top of its share of the 418 benchmark minutes, and the tests are dealt round-robin over the sorted file names, so the heaviest shard depends on the current list. Today 5/6 gets 87.3 benchmark minutes, which projects to 115.6 min against the 7200 s job timeout (measured p50 110.3 min since the list changed). A slower host then kills the job in whatever phase is running, and it reports nothing: 11 true-master kills on 2026-11-03, 22 on master and 20 on 12 pull requests in the last 7 days, e.g. https://github.com/ClickHouse/ClickHouse/actions/runs/41725276546/job/126262491921 https://github.com/ClickHouse/ClickHouse/actions/runs/41701684670/job/126237391419 With 8 batches the heaviest amd shard projects to 83.9 min, and the worst shard of a run stays under 97.3 min at p99 over the measured host-speed spread. The price is +56 runner-minutes per master commit (+9.6% of amd perf). On pull requests the amd jobs run only with the `pr-performance` or `ci-performance` label or a "Performance Improvement" body. arm stays at 6: it runs the same tests about 15% faster, had no timeout kill in 30 days (heaviest shard projected at 98.6 min), and runs on every pull request, so more arm batches would cost every PR that runs perf. The workflow files are regenerated with `PYTHONPATH=./ci:. python3 -m praktika yaml`. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Internal second-model review: adjudication log (click to expand)Pre-publication review by an independent model (engine: codex; 0 findings) plus my own cold review (3 findings, all on the PR text).
Severity: ❌ blocker / |
Pre-PR validation gate (click to expand)
Session id: cron:clickhouse-impl-slot-41:20261104-043300 |
|
cc @egor-click, could you review this and add the |
|
Workflow [PR], commit [9556c55] Summary: ✅ AI ReviewSummarySplits the Missing context / blind spots
Final Verdict✅ Approve. The documented capacity analysis supports this CI configuration change; no blocking issues identified. |
|
@groeneai Can you please audit how we've increased the performance checks lately too? We should:
Also, it's odd that we only increase amd and not arm, so we should also investigate that. Let's open a ticket and start creating smaller PRs addressing these issues, please |
|
Acknowledged. I'll open an issue for the audit (queries over 1 s, queries that test the same path, duplicated files, and why only amd needs more batches), link it here, and send one small PR per finding. I'll also come back to this PR with the amd vs arm result. |
|
I opened #129258 with the audit. Two results that matter for this PR:
I'll first send a PR that bounds the digest cost and re-measure the amd shards with it. If they are back near 100 min at p90, I'll close this PR; otherwise it stays as it is. |
|
let me take a look at this today, i’ll check how we can improve this, i have some ideas |
Add separate instrumented shards to `NightlyCoverage`. Reuse `perf.py` to collect setup, first execution, repeated execution, and teardown coverage, with expanded-query hashes and snapshot manifests. Export source coverage through the existing CIDB coverage pipeline; do not publish performance measurements from instrumented runs. Context: ClickHouse#129176 ClickHouse#129303
|
Re-measured on master after #129279 merged. Since 2026-11-11 the amd_release master_head shards ran p50/p90 86/96 min (92/102 before #128261, 100/113 after it); 2 of 2473 runs timed out, the last on 2026-11-13 04:15Z. Over the last 72 h every amd shard's p99 is at most 103 min, so the two extra batches are not needed now. Closing this PR as I said above. |
Related: #129051
Changelog category (leave one):
Changelog entry (a user-readable short description of the changes that goes into CHANGELOG.md):
...
Description
Performance Comparison (amd_release, master_head, N/6)jobs now hit their 7200 s timeout. A killed job ends in ERROR without a report, in whatever phase it was (benchmark, confirm, log export, report). In the last 7 days that happened 22 times on master (11 on 2026-11-03) and 15 times on 11 PRs, for example master 5/6 and #129051 4/6.The suite had 400 tests when it was split into 6 (#89598) and has 844 now. Each amd shard pays about 28 min of fixed setup and teardown plus its share of 418 benchmark minutes. The tests are dealt round-robin over the sorted names, so the heaviest shard depends on the list. Today 5/6 gets 87.3 benchmark minutes, projected at 115.6 min in total (measured p50 110.3), and a slower host pushes it past 120.
This PR raises the amd batch count to 8. Projected from the per-test durations in 154 master job logs, the heaviest shard comes to 83.9 min, and the worst shard of a run stays under 97.3 min at p99. The cost is +56 runner-minutes per master commit (+9.6% of amd perf). On PRs the amd jobs run only with
pr-performance/ci-performanceor a "Performance Improvement" body. The workflow YAML is regenerated withpython3 -m praktika yaml.arm stays at 6: its heaviest shard (5/6) measures p50 106 min, max 112, on master since the test list last changed, with no timeout on master in 30 days outside the 2026-10-16 CI Logs outage (4 on PRs in the last 7 days). arm runs on every PR, so two more arm batches would cost every PR about 56 runner-minutes. If the suite grows as in October (+21% a month), arm 5/6 passes 120 min in about a month, and the amd shards are near 110 min again in about two.
Workflow [PR]
Sync PR [sync-upstream/pr/129176]