Repository navigation
ci: give the Windows semantic-tests leg 20 minutes; it was cancelled at 10 in 14 of 23 runs (CI-SEMANTIC-WIN-TIME-LIMIT) - #1462
Conversation
…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.<job_id>.timeout-minutes (the runner context is not available there).
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
Reviewed 464ef2a: correct and minimal: AI-assisted review. Recommendation: Merge |
Claimed in the coordination issue as: CI-SEMANTIC-WIN-TIME-LIMIT (#14 (comment))
What and why
The
semantic-testsjob runs the translator suite (tests/semantic) onwindows-latestfor pushes tomainand for workflow_dispatch (pull requests run only its Linux leg), withtimeout-minutes: 10. On GitHub's hosted runner the Windows leg does not fit in that. It was cancelled at the limit in 14 of the 23 runs I could measure, and a cancelled job prints no summary, somainis red on that leg whether its tests pass or not.This gives the Windows leg 20 minutes and says why in a comment next to the limit. The Linux leg keeps 10, so pull request runs do not change. Nothing else changes.
Measured on my fork (
milk4sale/leonida, the same workflow file and runner label) on 24 November 2026, from the job logs:semantic-tests (windows-latest)run_semantic_tests.py)test_mutations.pyaloneAll 23 runs (16 hourly runs of
main, 7 branch runs)test_mutations8f481cf16mainc023a365amain1c93c8697maind1d3fca40main21625bca8main51f316092maind0da7dademaina28927849main1504c1af6mainfce586c6dmain3aa975421main6293c1c4fmaincb83398a5mainc9e5fb7bemain4a50cafc7mainfd0a53907test/ci-registration-local-mixin8d29ffd26test/translate-text-only-sample2b8a57429scratch/ci-both-red-main-fixes8e98deaf2verify/main-plus-fixes472795703scratch/ci-time-limits-probe6558d5318mainb45daffc0ci/check-time-limitac747046ascratch/union-ci-checkLeft out: one more run of
main(00:07 UTC,1154976d4), cut off when GitHub blocked the fork's Actions at 00:16 UTC.Why the leg is slow.
tests/semantic/test_mutations.pycopiestools/into a temporary folder and runstest_ps_semantics.pyin a new process, 14 times in a row (the baseline and 13 mutations). On the Windows runner that file took 250-381 s, against 25-42 s on the Linux leg in the five Linux runs I looked at. The runner starts the largest files first and this one is small, so it starts 124-196 s in and finishes last: in all 23 runs it was the last file still running.Why 20. In the cancelled runs every other file was slower too (all done by 413-484 s instead of 247-365 s). In the 9 finished runs the whole test step took 1.28-1.60 times (mean 1.49) as long as the other files did; applied to the cancelled runs, that puts their test step at about 620-780 s, 10.3 to 13 minutes. 20 minutes leaves about 50% over that. The suite keeps growing (465 files on
mainat 05:49 UTC, 476 at 00:07), so the number will need another look later. Makingtest_mutationscheaper on Windows, or starting it first, would be the lasting answer; I have not attempted that here.What this does not fix
With the limit raised, the Windows leg runs to its end and still fails on two files:
tests/semantic/test_active_cache.py:56andtests/semantic/test_reg_ptr_hoist.py:59readLEONIDA_REQUIRE_SPIRV_TOOLSfor truthiness, andci.ymlsets it to0on Windows. Draft #136 fixes both (== "1", as the other readers of the variable already do), and MoonEyes offered to carry that change as its own pull request (comment). This pull request does not touch either file. In the four Windows runs that finished after #676 merged (17:10 UTC), those two were the only files that failed, so with both changes the leg should be green.Tested
matrix(and notrunner) forjobs.<job_id>.timeout-minutes. This pull request's own CI evaluates the expression on the Linux leg, andjactionlintchecks the workflow.python -I tests/test_ci_registration.py(16 tests),python -I tests/test_runner_calls_all_tests.py(3 tests) andpython -m unittest discover -s tests/semantic -p test_spirv_tools_required.py(skipped withoutLEONIDA_REQUIRE_SPIRV_TOOLS=1, as designed), the three tests that read the workflow: all pass.python -I scripts/run_semantic_tests.py tests/semanticon Linux with 24 jobs: 476 files, 6,223 tests, 0 files failed in 65 s.mainfor them), withspirv-as,spirv-valandllvm-mchidden fromPATH: both pass with the variable unset and fail with0and with1("spirv-as / spirv-val required but not found on PATH"). The other readers of the variable (test_sopc_validation,test_unary_f16_validation,test_fma_khr,test_fma_khr_f64,test_spirv_tools_required) pass with0, andtest_spirv_tools_requiredfails with1.python -I scripts/check_no_game_data.py .github/workflows/ci.yml: clean.Not measured: a run of this branch on
windows-latest. GitHub blocked the fork's Actions at 00:16 UTC on 25 November, so I could not dispatch one; the first push tomainafter merge will show it. This repository's own runs could not help either: none of its last 100 CI runs onmaingot as far as starting the Windows leg (98 were cancelled and 2 were still queued when I looked).GPUs tested: n/a (one workflow file)
AI-assisted: yes (Claude Code)
Checklist
mainand merges cleanly (a conflicting pull request is labeledneeds rebase). It also merges cleanly with each of the 10 open pull requests that changeci.yml(tools/native: unified zero-dependency Rust workspace for 8 hot accelerators (13x-228x, Python fallback) #140, ci: a docs-only pull request runs every test that reads the document it changes (OLD-799) #374, ci: persist-credentials: false on the 9 checkout steps that lacked it (CI-SECURITY-CREDENTIALS) #595, CI: build the Linux runtime with Clang, build rpf9dump on Linux, run Build.sh (follow-up to #227) #679, ci: collect all failures in Linux and macOS standard-library jobs, reconfigure runner streams #756, ci: add nightly main snapshots without expanding push queues (CI-MAIN-SIGNAL) #771, mask_channels: make the --json staging deletable when a replace fails (MASK-CHANNELS-STAGE-CLEANUP) #782, story_index: make the staging file deletable when a replace fails (STORY-INDEX-STAGE-CLEANUP) #789, rpf9_names: make the staging file deletable when a replace fails (RPF9-NAMES-STAGE-CLEANUP) #794, ci: give the Windows check job 30 minutes; it needs 21 and was cancelled at 15 on every run (CI-CHECK-TIME-LIMIT) #1404).docs/design.md, with how it was confirmed. (No translator change.)🤖 Generated with Claude Code