Repository navigation
Conversation
`Integration tests (amd_asan_ubsan, db disk, old analyzer, N/6)` ends as a
job-level `ERROR: session-timeout occurred during test execution` with a
synthetic `Timeout` row and, in the canonical case, zero failing tests. The
parallel pytest phase is cut by its own graceful `--session-timeout`, so the
shard publishes no verdict for the tests it never reached; a parallel-phase
timeout also sets `has_error`, which skips the sequential phase entirely. The
shard is therefore red without having tested anything, which is signal loss on a
required check rather than a bug report.
Such a run is not a hung suite, not a packing problem and not a memory problem.
It is a run whose runner executed essentially every test slower than that same
test's own median on that same shard. Dividing each test's duration by its own
7-day median on the same shard, then taking the median of those ratios per job
run:
arm job runs median slowdown p90 max runs > 1.10
Timeout 10 1.189 1.327 1.327 8 (80%)
passed 7123 0.999 1.028 1.313 45 (0.63%)
That ordinary variance is enough only because the bound sits close to what the
shard already spends. Median realised worker-seconds over three days of green
runs, against the 3 workers x 7200 s the phase is allowed:
shard realised (s) % of 21600 tolerance Timeout runs in 3 d
1/6 17838 82.6 1.211 0
2/6 18237 84.4 1.184 1
3/6 18567 86.0 1.163 4
4/6 17869 82.7 1.209 0
5/6 18841 87.2 1.146 3
6/6 18509 85.7 1.167 2
The two tightest shards own 7 of the 10 firings and the two loosest own none,
which is the cheapest confirmation that the margin, not the suite, is what
varies.
9000 and not 8100: required wall time is realised / 3 workers, times the
slowdown, over a worker utilisation of about 0.98 (green runs reach 96.6% to
99.7% of the bound, so the workers are near saturation). At the worst observed
slowdown of 1.327 the tightest shard needs 8504 s. 8100 would lift that shard to
a tolerance of 1.290 against an already-observed 1.327, so it fails the very
distribution it was chosen from. 9000 covers the whole observed distribution with
5% to 7% spare on every shard.
Raising it costs the 7123 green runs nothing, because the bound is a ceiling on a
suite that is not finishing rather than a budget: those runs finish and exit well
below either value. The hard subprocess backstop tracks the bound to 9600 s, so
the graceful path stays reachable, and the worst case of 9600 + 3600 + 600 =
13800 s leaves about 4200 s under praktika's 5 hour job default.
Deliberately unchanged: `session_timeout_sequential`, because the sequential
phase costs 38 s to 190 s per shard against 3600 s, a tolerance of 51x to 95x;
the `is_llvm_coverage` branch, which now clamps back down to 7200 for a lane that
manages its budget by skipping the tests that do not fit and has zero `Timeout`
rows in 14 days; the flaky-check clamp, which already bounds both phases below
the external cancellation ceiling; and the operator `--session-timeout` flag,
whose doubling is that flag's own contract.
Two honest costs. A genuinely hung suite now holds its runner about 30 minutes
longer. Runs previously cut at 7200 s will execute the modules they never
reached, which is what they were always meant to do, but those modules get their
first exposure on a slow runner. Release branches carry their own copy of this
file, so the larger `db disk, N/4` Timeout population there is not addressed
here.
Internal second-model review: adjudication log (click to expand)Pre-publication review by an independent model (engine: codex; 3 gate findings, all nits, plus 6 Measurement window: the three days to 2026-09-06, reproduced independently at review time on the One reading note on the commit message: in its slowdown table
Severity: ❌ blocker / Session id: cron:clickhouse-review-slot-8:20260906-052500 |
Pre-PR validation gate (click to expand)
Session id: cron:clickhouse-impl-slot-4:20260906-040900 |
|
Workflow [PR], commit [18223c2] Summary: ✅ AI ReviewSummaryThis PR raises the default parallel Findings
Final VerdictChanges requested. |
|
cc @maxknv, could you review this? It raises |
|
It's too large a value for a timeout. If the job is taking so long, we either need to add more shards or change the runner type |
|
Understood, I will not reopen it. Data in case it helps with the shards/runner call: these jobs are not failing a test, they exhaust the session bound and die with partial results. Over the last 14 days The release branches are further over the bound, and they run a separate config ( On the batch-count axis I am not duplicating anything: #118933 is open for eight batches, and #116591 plus #115963 (duration weighting so the six shards balance) are already merged. |
make it 7 shards then. you can continue in this pr |
|
Will do. I will drop the timeout change and make this PR the batch count change instead: One sizing note, since the current margin is thin: over the last 14 days the shards that do finish have a median of 104 min and a p99 of 116 min against the 120 min bound (33,911 completed shard jobs), and 8.5 percent of them land past 110 min. Splitting 6 into 7 takes about 14 percent off the test portion, which should put the p99 near 100 min. I will push to this branch shortly. Could you reopen the PR once the push lands? I would rather not reopen one you closed. |
make it 8 then |
| hard_killed = False | ||
| session_timeout_parallel = 3600 * 2 | ||
| # A ceiling for a suite that is not finishing, not a budget the shard is expected to spend. | ||
| session_timeout_parallel = 9000 |
There was a problem hiding this comment.
This default is shared by every integration-job parametrization except the explicit is_llvm_coverage override, so the PR turns a slow-runner problem in amd_asan_ubsan, db disk, old analyzer, N/6 into a repo-wide timeout policy change. A genuine hang in unrelated lanes like amd_tsan, amd_msan, arm_binary, distributed plan, bugfix validation, or amd_binary_excluded_from_llvm will now hold its runner for an extra 30 minutes even though the evidence here only covers one overloaded shard family. Please fix the shard geometry or runner choice for that family in ci/defs/job_configs.py instead of relaxing the shared timeout guard here.
|
Status here, since you reopened this for the eight batches: the change is written ( I am fixing that on my side and will push here. If you would rather not wait on me, #118933 makes the same 6 -> 8 move (for both ASan parameter sets), and this PR is then a no-op to close. |
|
Update, and then this PR has nothing left to carry. #118933 landed the same 6 to 8 split on master on 09-12, so the change I said I would push here is now a no-op against master, and I am not pushing it. Eight batches did the job. Same 14 day window, The disposition is yours, since you closed and reopened this one: I would close it as superseded by #118933, but I will not touch its state. I am raising it only because the title here still reads the timeout raise you rejected, and I would rather that not stand as if it were pending work. |
Related: #111327
Changelog category (leave one):
Changelog entry (a user-readable short description of the changes that goes into CHANGELOG.md):
Raise the integration tests' parallel pytest session timeout from 7200 to 9000 seconds so an ordinarily slow runner no longer cuts a shard before it has reported any test result.
Description
Integration tests (amd_asan_ubsan, db disk, old analyzer, N/6)fails as a job-levelERROR: session-timeout occurred during test executionwith a syntheticTimeoutrow and, canonically, zero failing tests. The parallel pytest phase is cut by its own graceful--session-timeout, so the shard reports no verdict for the tests it never reached, and the cut also skips the sequential phase. It goes red without having tested anything.The trigger is runner speed, not the suite, packing or memory. Dividing each test's duration by its own 7-day median on the same shard and taking the median per job run, the 10
Timeoutruns of the last three days sit at 1.189 with 80% above 1.10, against 0.999 and 0.63% for the 7123 that passed. 20% is enough only because the bound sits close to what the shard already spends: median realised worker-seconds are 82.6% to 87.2% of the3 workers x 7200 sallowed, so a shard tolerates just 1.146x to 1.211x. The firing order follows, the two tightest shards owning 7 of the 10 runs and the two loosest none.9000 and not 8100: at the worst observed slowdown of 1.327 the tightest shard needs 8504 s, so 8100 would leave a tolerance of 1.290, below a slowdown already seen. 9000 leaves 5.5% to 10.6% spare. Green runs pay nothing: the bound is a ceiling on a suite that is not finishing, not a budget they spend; they exit well below either value. The hard backstop follows to 9600 s and the worst case stays about 4200 s under praktika's 5 hour job default.
Two costs. A genuinely hung suite now holds its runner about 30 minutes longer. Release branches carry their own copy of this file, so the larger
db disk, N/4Timeout population there is not addressed here.Per-shard margin, three days of green runs
Timeoutruns in 3 dTolerance is the slowdown factor a shard absorbs before its realised cost crosses the bound.
Workflow [PR]
Sync PR [sync-upstream/pr/118384]