Repository navigation
Split coverage and amd_msan integration tests into more batches - #108564
alexey-milovidov merged 3 commits into
Conversation
Pre-PR validation gate (click to expand)
Session id: cron:clickhouse-worker-slot-0:20260626-021500 |
|
cc @maxknv @leshikus — could you review this? The |
|
Workflow [PR], commit [47c5618] Summary: ✅ AI ReviewSummaryThis PR splits Final VerdictStatus: ✅ Approve |
|
@groeneai, instead of raising the timeout, increase the number of job batches. We should try to keep the run time tight to avoid tail latency in the CI pipeline. |
The Integration tests (amd_llvm_coverage, N/M) jobs intermittently fail with a whole-batch "ERROR: session-timeout occurred during test execution" (a synthetic Timeout row, no individual test failure). Coverage-instrumented binaries run roughly 3-5x slower, and at 5 batches each batch packs right up to the parallel session-timeout: over 10 days the balanced (sum/3) per-batch time reaches ~7240-7260s for batches 2/3/4, on top of a 7200s budget, so any packing imbalance tips them over. The job reported all tests OK; the batch simply ran out of wall-clock and xdist raised "session-timeout exceeded". Rather than raise the timeout, keep the per-batch run time tight and increase the batch count so each batch's wall-clock stays comfortably under the budget (less tail latency in the CI pipeline). Going from 5 to 8 coverage batches cuts the per-batch module set to ~5/8, bringing the worst balanced per-batch time to ~4500s with ~38% headroom under the unchanged 7200s session-timeout. The extra batches run in parallel, so this trades a small amount of runner time for shorter and more reliable batch wall-clock. LLVM_IT_NUM_BATCHES also drives the coverage profdata artifact list, so the single constant scales both the jobs and their artifacts. Also split Integration tests (amd_msan) from 6 to 8 batches for the same reason. No test is weakened or skipped. Co-Authored-By: Claude Opus 4.8 <[email protected]>
1f986f8 to
591b8b7
Compare
|
@maxknv done, pivoted as requested:
No timeout raised; per-batch run time kept tight. Diff is 2 files, +3/-3. |
Regenerated .github/workflows/master.yml and pull_request.yml via 'python3 -m ci.praktika yaml' to match the ci/defs batch-count changes (amd_llvm_coverage 5->8, amd_msan 6->8). Fixes the Config Workflow check. Co-Authored-By: Claude Opus 4.8 <[email protected]>
…ntegration-session-timeout # Conflicts: # .github/workflows/pull_request.yml
…integration-session-timeout Split coverage and amd_msan integration tests into more batches
Changelog category (leave one):
Changelog entry (a user-readable short description of the changes that goes into CHANGELOG.md):
...
Description
The
Integration tests (amd_llvm_coverage, N/M)jobs intermittently fail with a whole-batchERROR: session-timeout occurred during test execution(a syntheticTimeoutrow, no individual test failure). Coverage-instrumented binaries run roughly 3-5x slower, and at 5 batches each batch packs right up to the parallel session-timeout: over 10 days the balanced (sum/3) per-batch time reaches ~7240-7260s for batches 2/3/4 on top of a 7200s budget, so any packing imbalance tips a batch over. The job reports all tests OK; the batch simply runs out of wall-clock and xdist raisessession-timeout exceeded.Per @ maxknv's review request: rather than raise the timeout, keep the per-batch run time tight and increase the batch count so each batch's wall-clock stays comfortably under the budget (less tail latency in the CI pipeline).
LLVM_IT_NUM_BATCHES, which also drives the coverage profdata artifact list, so one constant scales both jobs and artifacts). Worst balanced per-batch time drops from ~7260s to ~4500s, ~38% headroom under the unchanged 7200s session-timeout.Integration tests (amd_msan): 6 -> 8 batches, for the same reason.No test is weakened or skipped.
CI report for the timing-out coverage batch on PR #105905: https://s3.amazonaws.com/clickhouse-test-reports/json.html?PR=105905&sha=595fce765ad136596140d6a969b7bb6dff649699&name_0=PR&name_1=Integration%20tests%20%28amd_llvm_coverage%2C%202%2F5%29
Version info
26.7.1.199(included in26.7and later)