Repository navigation
Split the TSan integration test jobs into eight batches - #120883
alexey-milovidov merged 4 commits into
Conversation
Integration tests (amd_tsan, N/6) runs the whole integration suite on AMD_MEDIUM with three xdist workers against a two-hour pytest --session-timeout (session_timeout_parallel = 7200s). Six batches leave no margin: on runs where nothing failed at all, the heaviest shard (5/6) sits at a median of 92.4 minutes, 77% of the 120-minute budget, and over 30 days 347 clean jobs across the six shards ran past 110 minutes. When ordinary per-tree variance consumes the rest, xdist aborts the session and the job reports "ERROR: session-timeout occurred during test execution" with partial results and an unrun tail, so a real failure in that tail is invisible. Three jobs in 30 days were cut with zero other failing tests: 3/6 twice, seven days apart (fb5ccee, 7c29249), and 5/6 once (baab92b). The remaining Timeout rows on 2/6 co-occur with test_storage_nats/test_nats_jet_stream.py failures and are a separate defect, not counted here. Rather than raise the session timeout, raise the batch count, which is the lever already applied to every other full-suite integration flavor: ASan (ASAN_IT_NUM_BATCHES), MSan and LLVM coverage all run eight batches on the same runner class, and amd_tsan was the last one still on six. The aggregate compute is unchanged (same tests, two more per-batch setups) and the job returns its answer sooner. Two independent estimates agree on the effect: the same-flavor 6-to-8 ratio measured on the ASan arm (0.78 at p50/p90/p99) puts the heaviest TSan shard at about 72 minutes, and repacking the ~529 minutes of median per-tree work over eight batches at the observed packing spread puts it at about 69 minutes, so roughly 58% of budget instead of 77%. That is the band amd_msan already occupies at eight batches on the same runner class. This reduces the exposure rather than eliminating it: amd_msan at eight batches still produced two Timeout rows in 30 days. It also does not address the 2/6 NATS failures, which are not a capacity problem. No test is weakened or skipped. Related: ClickHouse#118440
Mechanical output of `PYTHONPATH=./ci:. python3 -m praktika yaml` after the previous commit. The four workflows that carry the arm rename their six amd_tsan integration jobs to N/8 and gain two more; merge_queue.yml and nightly.yml carry none and are unchanged.
Internal second-model review: adjudication log (click to expand)Pre-publication review by an independent model (engine: codex; 0 findings), plus my own cold
Severity: ❌ blocker / Checks I ran independently rather than taking from the change: every statistic in the description Session id: cron:clickhouse-review-slot-11:20260918-163500 |
Pre-PR validation gate (click to expand)
Session id: cron:clickhouse-impl-slot-6:20260918-162000 |
|
Workflow [PR], commit [dc0e5ef] Summary: ✅ AI ReviewSummaryThis PR changes the non-required full-suite Final Verdict
|
|
already approved by @maxknv, removed myself |
…ration-eight-batches
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Related: #118440
Related: #118933
Changelog category (leave one):
Changelog entry (a user-readable short description of the changes that goes into CHANGELOG.md):
Not required: this changes CI job geometry only.
Description
Integration tests (amd_tsan, N/6)runs the whole integration suite onAMD_MEDIUMwith threexdist workers against a two-hour pytest
--session-timeout. Six batches leave no margin, so ashard is cut mid-suite and reports
ERROR: session-timeout occurred during test executionwithpartial results and an unrun tail, where a real failure would be invisible.
The margin, measured on clean runs only (nothing failed), 30 days: the heaviest shard
5/6has amedian of 92.4 minutes, 77% of the 120-minute budget, and about 350 clean jobs ran past 110 minutes.
Three jobs were cut with zero other failing tests:
3/6twice, seven days apart (fb5cceef1329,7c292497f75d), and5/6once (baab92b33c78). Every otherTimeoutrow co-occurs withtest_storage_nats/test_nats_jet_stream.pyfailures; those jobs were red regardless, so I excludethem from the count, and this change does not address them.
amd_tsanwas the last full-suite integration flavor still on six batches, with ASan, MSan andLLVM coverage all on eight on the same runner class. Raising the count rather than the timeout
keeps aggregate compute unchanged, since only the parallelism differs, and the job returns its
answer sooner.
Projected effect, by two independent methods that agree at 0.775 against 0.78: scoring
get_optimal_test_batchagainst measured per-module CIDB durations puts the heaviest shard at73 minutes, 61% of budget, and that model reproduces the six observed shard medians to within 4%
(k = 1.008 +- 0.020), including which shard is heaviest; separately, the same-flavor 6-to-8 ratio
measured on the ASan arm after #118933 gives the same figure.
Cost: two more concurrent
AMD_MEDIUMjobs per run, on four workflows. This reduces the exposurerather than eliminating it, since
amd_msanat eight batches still produced twoTimeoutrows in30 days.
The second commit is the mechanical
praktika yamlregeneration.Workflow [PR]
Sync PR [sync-upstream/pr/120883]
Version info
26.10.1.2093-master(included in26.10and later)