From 464ef2a359360185d583d2a0b6b55517a130e2de Mon Sep 17 00:00:00 2001 From: milk4sale <53350507+milk4sale@users.noreply.github.com> Date: Tue, 24 Nov 2026 18:40:33 -0600 Subject: [PATCH] ci: give the Windows semantic-tests leg 20 minutes; it was cancelled at 10 in 14 of 23 runs (CI-SEMANTIC-WIN-TIME-LIMIT) The semantic-tests job runs tests/semantic on windows-latest for pushes to main and for workflow_dispatch, with timeout-minutes: 10. On GitHub's hosted runner that leg does not fit: in 23 runs of the CI workflow on a fork on 24 November 2026 (16 hourly runs of main and 7 branch runs), 14 were cancelled at the limit ("exceeded the maximum execution time of 10m0s"), each time with tests/semantic/test_mutations.py the only file still running. A cancelled job prints no summary. The 9 runs that finished spent 374-577 s in the test step. test_mutations is the long pole there. It copies tools/ and runs test_ps_semantics.py in a new process 14 times in a row, and it took 250-381 s in the runs that finished, against 25-42 s on the Linux leg. The runner starts it 124-196 s in, because it starts the largest files first and this one is small. In the cancelled runs the other files were slower too (done by 413-484 s instead of 247-365 s); scaled the same way, their test step comes to about 620-780 s, 10.3 to 13 minutes. The Windows leg gets 20 minutes, about 1.5 times that. The Linux leg, the only one pull requests run, takes 3 to 5 minutes and keeps 10, so pull request runs are unchanged. The limit is a matrix expression: GitHub allows the matrix context in jobs..timeout-minutes (the runner context is not available there). Co-Authored-By: Claude Opus 5.5 --- .github/workflows/ci.yml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 8aa6133dc3..5c649fce3f 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -163,7 +163,10 @@ jobs: needs: change-scope if: ${{ !cancelled() && needs.change-scope.outputs.docs-only != 'true' }} runs-on: ${{ matrix.os }} - timeout-minutes: 10 + # The Windows leg does not fit in 10 minutes. On windows-latest, 14 of 23 runs on 24 November 2026 were cancelled + # at 10, each time with test_mutations.py the only file still running (250-381 s there, 25-42 s on Linux), and the + # 9 that finished spent 374-577 s in the test step. The Linux leg, the one pull requests run, takes 3-5 minutes. + timeout-minutes: ${{ matrix.os == 'windows-latest' && 20 || 10 }} strategy: matrix: # Pull requests run the Linux leg only: in 914 sampled pull request runs the Windows leg never failed while the