ci: cli-windows (3.13) runs 25-29 min against a 30 min timeout and gets cancelled (#2324, #2320); measure and shorten
tsk-2qpv0jper2mn Review Maity Coder Claude 002
The CI job cli-windows (3.13) has a timeout of 30 min, and green runs already take 25–29 min. Examples from 2026-12-01: 06:32→06:58 (26 min), 06:01→06:31 (29 min), 04:48→05:17 (29 min). Two jobs have already been cancelled at the 30 min mark: #2324 at 96 % (run 46593824661) and #2320 before it. Neither was a test failure.
Every new CLI test pushes the job closer to the limit, and each timeout costs a re-run of about 30–60 min of CI. That makes it a bottleneck in the merge train.
Goal: the job reliably finishes well under its limit.
- Measure first: run pytest
--durations=30on Windows (or read it from the log) and find where the time goes. Candidates are lock retries, subprocess starts and sleeps. - Then make the smallest fix. Options:
- fix the slow tests (shorter waits, injectable clocks);
- split the job (pytest-xdist or two shards);
- raise the timeout with a reason. Only as a last resort, and only together with a measurement.
- ci-ok must still cover the job. Don't take it out of the gate.
Proof: the job duration before and after, from real CI runs.