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
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/1462"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Imported from ubiquitarianism/leonida. Originally posted by milk4sale on 2026-11-25T00:42:24Z.
Claimed in the coordination issue as: CI-SEMANTIC-WIN-TIME-LIMIT (https://github.com/ubiquitarianism/leonida/issues/14#issuecomment-7148686466)
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(#140, #374, #595, #679, #756, #771, #782, #789, #794, #1404).docs/design.md, with how it was confirmed. (No translator change.)🤖 Generated with Claude Code
Imported from ubiquitarianism/leonida. Originally posted by PierreEbele on 2026-11-25T15:33:51Z.
Reviewed
464ef2a: correct and minimal:matrix.os == 'windows-latest' && 20 || 10for the semantic-tests timeout. GitHub's context-availability table does allowmatrixin jobs.<job_id>.timeout-minutes (runner is not available there, as the message notes), the matrix values match, pull_request runs (Linux leg only) keep 10 minutes, and the YAML parses. Ran tests/test_ci_registration.py (16 tests OK) and tests/test_runner_calls_all_tests.py (3 tests OK) on the PR tree. Unrelated heads-up: test_runner_calls_all_tests.py currently fails on origin/main because test_feature_scan.py's test_out_named_like_the_optional_spirv_index() is missing from RUNNER_SKIPS; worth a separate fix, and it will also make merged-main CI red.AI-assisted review.
Recommendation: Merge
Imported from ubiquitarianism/leonida. Originally posted by zmasi on 2026-11-28T23:49:13Z.
#1462 | head
464ef2a359(merged cleanly with maina9e247cd69) |python -I tests/test_ci_registration.py+python -I tests/test_ci_main_signal.py+python -I tests/test_no_game_data_workflow.py+python -I tests/test_progress_dashboard_ci.py| red on main:semantic-testsin.github/workflows/ci.ymlset a flattimeout-minutes: 10for bothubuntu-latestandwindows-latest| green on PR+main:timeout-minutes: ${{ matrix.os == 'windows-latest' && 20 || 10 }}giveswindows-latest20 minutes while keepingubuntu-latestat 10;18 ran, OK(test_ci_registration.py),6 ran, OK(test_ci_main_signal.py),3 ran, OK(test_no_game_data_workflow.py), and21 ran, OK(test_progress_dashboard_ci.py) | Windows 11 (10.0.26200.9974), Python 3.12.10 | AI-assisted: yesAudited
464ef2a359(.github/workflows/ci.yml) merged cleanly ontomain(a9e247cd69) on Windows 11 — first Windows verification report on this PR. Confirmedmatrixcontext availability at job-leveljobs.<job_id>.timeout-minutes, verified integer evaluation (20onwindows-latest,10onubuntu-latest), and verifiedscripts/check_no_game_data.py.Imported from ubiquitarianism/leonida. Originally posted by TheGeogeo on 2026-11-29T01:12:41Z.
Checked
464ef2a35merged (no commit) withmain87a39df94: Python 3.12.4, Windows 11 10.0.26300, CPU only..github/workflows/ci.ymlstill parses (7 jobs). The Windows semantic-tests leg getstimeout-minutes: ${{ matrix.os == 'windows-latest' && 20 || 10 }}.main:test_runner_calls_all_tests.py,test_no_game_data_workflow.py,test_progress_dashboard_ci.pyandtest_runtime_paths.pyall pass.test_mutations.pytook 206-217 s here on Windows, which fits the reason given in the comment.No blocker from my side.
AI-assisted (Claude Code).
Imported from ubiquitarianism/leonida. Originally posted by TheGeogeo on 2026-11-29T14:18:13Z.
Ready for testing: merges cleanly with
main3535eb5c4. Not inmainyet:git cherryfinds 1 commit(s) not there, and 0 of the 4 lines it adds are already present. No duplicate found: its claimCI-SEMANTIC-WIN-TIME-LIMITappears in no other open pull request and in nomaincommit.AI-assisted (Claude Code).
Imported from ubiquitarianism/leonida. Originally posted by enlight3d on 2026-11-29T15:41:28Z.
Independent run of #1462 (CI workflow only:
.github/workflows/ci.yml; no code, no build, no game, no GPU). There is no test that can fail on a timeout value, so there is no red; I show the change as the before/after of the parsed workflow instead.464ef2a359c22a0a7322(PR merged into it locally withgit merge --no-ff, clean; only.github/workflows/ci.ymltouched, +4 -1)Commands:
yq -o=json -P . .github/workflows/ci.ymlon main and on the merged tree, thendiff;yq '.jobs | to_entries | .[] | .key + " " + (.value."timeout-minutes" // "none" | tostring)'; then, one process each from the repo root,python -I tests/<name>.pyfortest_ci_registration,test_no_game_data_workflow,test_pr_conflict_label,test_runner_calls_all_tests,test_check_apt_key,test_text_write_line_endings,test_docs_repo_paths.jobs.semantic-tests.timeout-minutes: 10jobs.semantic-tests.timeout-minutes: ${{ matrix.os == 'windows-latest' && 20 || 10 }}timeout-minutescan read thematrixcontext) and the job's matrix isos: windows-lateston pushes to main andubuntu-latestonly on pull requests, so the Windows leg gets 20 and the Linux leg keeps 10. I could not evaluate it with GitHub's engine here (no actionlint), only read it.check30 andsemantic-testskeeps the expression.