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

Open
github-bot wants to merge 1 commit from github-bot/gh-1462 into main AGit
Owner

@⁠milk4sale on GitHub · 2026-11-25 00:42 UTC · original
milk4sale:ci/semantic-windows-time-limit → main · +4 −1 · 1 files · 1 commits · open

Claimed in the coordination issue as: CI-SEMANTIC-WIN-TIME-LIMIT (#14)

What and why

The semantic-tests job runs the translator suite (tests/semantic) on windows-latest for pushes to main and for workflow_dispatch (pull requests run only its Linux leg), with timeout-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, so main is 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) Runs Test step (run_semantic_tests.py) test_mutations.py alone All other files done by
Ran to its end 9 374-577 s 250-381 s 247-365 s
Cancelled: "exceeded the maximum execution time of 10m0s" 14 cut off at 594-602 s still running, every time 413-484 s
All 23 runs (16 hourly runs of main, 7 branch runs)
Run (fork) Commit Branch Result Test step test_mutations Other files done by
45335997425 (05:49) 8f481cf16 main ran to its end 512 s 340 s 327 s
45343742700 (06:52) c023a365a main cancelled at 10 min cut at 600 s still running 434 s
45351510934 (07:53) 1c93c8697 main cancelled at 10 min cut at 598 s still running 453 s
45360123747 (08:53) d1d3fca40 main ran to its end 404 s 269 s 272 s
45369690561 (09:54) 21625bca8 main cancelled at 10 min cut at 597 s still running 444 s
45398596589 (12:57) 51f316092 main ran to its end 403 s 264 s 276 s
45409047895 (13:58) d0da7dade main cancelled at 10 min cut at 598 s still running 430 s
45420340290 (14:59) a28927849 main ran to its end 374 s 250 s 247 s
45432144669 (16:00) 1504c1af6 main ran to its end 476 s 316 s 297 s
45443953536 (17:01) fce586c6d main cancelled at 10 min cut at 597 s still running 469 s
45455214398 (18:02) 3aa975421 main ran to its end 452 s 297 s 319 s
45466210143 (19:03) 6293c1c4f main ran to its end 577 s 381 s 365 s
45476939820 (20:04) cb83398a5 main cancelled at 10 min cut at 598 s still running 437 s
45487389394 (21:04) c9e5fb7be main cancelled at 10 min cut at 602 s still running 447 s
45497605416 (22:05) 4a50cafc7 main cancelled at 10 min cut at 597 s still running 413 s
45502632816 (22:37) fd0a53907 test/ci-registration-local-mixin cancelled at 10 min cut at 599 s still running 484 s
45504536550 (22:49) 8d29ffd26 test/translate-text-only-sample ran to its end 446 s 288 s 349 s
45504603770 (22:50) 2b8a57429 scratch/ci-both-red-main-fixes cancelled at 10 min cut at 595 s still running 428 s
45505002126 (22:52) 8e98deaf2 verify/main-plus-fixes cancelled at 10 min cut at 597 s still running 416 s
45506216167 (23:01) 472795703 scratch/ci-time-limits-probe cancelled at 10 min cut at 594 s still running 478 s
45507103804 (23:06) 6558d5318 main cancelled at 10 min cut at 599 s still running 445 s
45510568820 (23:30) b45daffc0 ci/check-time-limit cancelled at 10 min cut at 596 s still running 453 s
45514815352 (00:01) ac747046a scratch/union-ci-check ran to its end 542 s 352 s 356 s

Left 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.py copies tools/ into a temporary folder and runs test_ps_semantics.py in 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 main at 05:49 UTC, 476 at 00:07), so the number will need another look later. Making test_mutations cheaper 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:56 and tests/semantic/test_reg_ptr_hoist.py:59 read LEONIDA_REQUIRE_SPIRV_TOOLS for truthiness, and ci.yml sets it to 0 on 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

  • The change is a number in the workflow and a matrix expression, so the evidence is the runs above. GitHub's context-availability table lists matrix (and not runner) for jobs.<job_id>.timeout-minutes. This pull request's own CI evaluates the expression on the Linux leg, and jactionlint checks the workflow.
  • python -I tests/test_ci_registration.py (16 tests), python -I tests/test_runner_calls_all_tests.py (3 tests) and python -m unittest discover -s tests/semantic -p test_spirv_tools_required.py (skipped without LEONIDA_REQUIRE_SPIRV_TOOLS=1, as designed), the three tests that read the workflow: all pass.
  • python -I scripts/run_semantic_tests.py tests/semantic on Linux with 24 jobs: 476 files, 6,223 tests, 0 files failed in 65 s.
  • The two files above on this branch (the same as main for them), with spirv-as, spirv-val and llvm-mc hidden from PATH: both pass with the variable unset and fail with 0 and with 1 ("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 with 0, and test_spirv_tools_required fails with 1.
  • 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 to main after merge will show it. This repository's own runs could not help either: none of its last 100 CI runs on main got 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

  • Based on current main and merges cleanly (a conflicting pull request is labeled needs rebase). It also merges cleanly with each of the 10 open pull requests that change ci.yml (#140, #374, #595, #679, #756, #771, #782, #789, #794, #1404).
  • One topic; follow-up work goes in a new pull request.
  • No game data, keys or decryption (CONTRIBUTING.md), including in logs or reports quoted here.
  • A new translator rule is in the contract table of docs/design.md, with how it was confirmed. (No translator change.)

🤖 Generated with Claude Code

**@⁠milk4sale** on GitHub · 2026-11-25 00:42 UTC · [original](https://github.com/ubiquitarianism/leonida/pull/1462) `milk4sale:ci/semantic-windows-time-limit` → `main` · +4 −1 · 1 files · 1 commits · open Claimed in the coordination issue as: CI-SEMANTIC-WIN-TIME-LIMIT (https://git.gtahub.st/github/ubiquitarianism--leonida/issues/14) ### What and why The `semantic-tests` job runs the translator suite (`tests/semantic`) on `windows-latest` for pushes to `main` and for workflow_dispatch (pull requests run only its Linux leg), with `timeout-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, so `main` is 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)` | Runs | Test step (`run_semantic_tests.py`) | `test_mutations.py` alone | All other files done by | |---|---|---|---|---| | Ran to its end | 9 | 374-577 s | 250-381 s | 247-365 s | | Cancelled: "exceeded the maximum execution time of 10m0s" | 14 | cut off at 594-602 s | still running, every time | 413-484 s | <details><summary>All 23 runs (16 hourly runs of <code>main</code>, 7 branch runs)</summary> | Run (fork) | Commit | Branch | Result | Test step | `test_mutations` | Other files done by | |---|---|---|---|---|---|---| | [45335997425](https://github.com/milk4sale/leonida/actions/runs/45335997425) (05:49) | `8f481cf16` | `main` | ran to its end | 512 s | 340 s | 327 s | | [45343742700](https://github.com/milk4sale/leonida/actions/runs/45343742700) (06:52) | `c023a365a` | `main` | cancelled at 10 min | cut at 600 s | still running | 434 s | | [45351510934](https://github.com/milk4sale/leonida/actions/runs/45351510934) (07:53) | `1c93c8697` | `main` | cancelled at 10 min | cut at 598 s | still running | 453 s | | [45360123747](https://github.com/milk4sale/leonida/actions/runs/45360123747) (08:53) | `d1d3fca40` | `main` | ran to its end | 404 s | 269 s | 272 s | | [45369690561](https://github.com/milk4sale/leonida/actions/runs/45369690561) (09:54) | `21625bca8` | `main` | cancelled at 10 min | cut at 597 s | still running | 444 s | | [45398596589](https://github.com/milk4sale/leonida/actions/runs/45398596589) (12:57) | `51f316092` | `main` | ran to its end | 403 s | 264 s | 276 s | | [45409047895](https://github.com/milk4sale/leonida/actions/runs/45409047895) (13:58) | `d0da7dade` | `main` | cancelled at 10 min | cut at 598 s | still running | 430 s | | [45420340290](https://github.com/milk4sale/leonida/actions/runs/45420340290) (14:59) | `a28927849` | `main` | ran to its end | 374 s | 250 s | 247 s | | [45432144669](https://github.com/milk4sale/leonida/actions/runs/45432144669) (16:00) | `1504c1af6` | `main` | ran to its end | 476 s | 316 s | 297 s | | [45443953536](https://github.com/milk4sale/leonida/actions/runs/45443953536) (17:01) | `fce586c6d` | `main` | cancelled at 10 min | cut at 597 s | still running | 469 s | | [45455214398](https://github.com/milk4sale/leonida/actions/runs/45455214398) (18:02) | `3aa975421` | `main` | ran to its end | 452 s | 297 s | 319 s | | [45466210143](https://github.com/milk4sale/leonida/actions/runs/45466210143) (19:03) | `6293c1c4f` | `main` | ran to its end | 577 s | 381 s | 365 s | | [45476939820](https://github.com/milk4sale/leonida/actions/runs/45476939820) (20:04) | `cb83398a5` | `main` | cancelled at 10 min | cut at 598 s | still running | 437 s | | [45487389394](https://github.com/milk4sale/leonida/actions/runs/45487389394) (21:04) | `c9e5fb7be` | `main` | cancelled at 10 min | cut at 602 s | still running | 447 s | | [45497605416](https://github.com/milk4sale/leonida/actions/runs/45497605416) (22:05) | `4a50cafc7` | `main` | cancelled at 10 min | cut at 597 s | still running | 413 s | | [45502632816](https://github.com/milk4sale/leonida/actions/runs/45502632816) (22:37) | `fd0a53907` | `test/ci-registration-local-mixin` | cancelled at 10 min | cut at 599 s | still running | 484 s | | [45504536550](https://github.com/milk4sale/leonida/actions/runs/45504536550) (22:49) | `8d29ffd26` | `test/translate-text-only-sample` | ran to its end | 446 s | 288 s | 349 s | | [45504603770](https://github.com/milk4sale/leonida/actions/runs/45504603770) (22:50) | `2b8a57429` | `scratch/ci-both-red-main-fixes` | cancelled at 10 min | cut at 595 s | still running | 428 s | | [45505002126](https://github.com/milk4sale/leonida/actions/runs/45505002126) (22:52) | `8e98deaf2` | `verify/main-plus-fixes` | cancelled at 10 min | cut at 597 s | still running | 416 s | | [45506216167](https://github.com/milk4sale/leonida/actions/runs/45506216167) (23:01) | `472795703` | `scratch/ci-time-limits-probe` | cancelled at 10 min | cut at 594 s | still running | 478 s | | [45507103804](https://github.com/milk4sale/leonida/actions/runs/45507103804) (23:06) | `6558d5318` | `main` | cancelled at 10 min | cut at 599 s | still running | 445 s | | [45510568820](https://github.com/milk4sale/leonida/actions/runs/45510568820) (23:30) | `b45daffc0` | `ci/check-time-limit` | cancelled at 10 min | cut at 596 s | still running | 453 s | | [45514815352](https://github.com/milk4sale/leonida/actions/runs/45514815352) (00:01) | `ac747046a` | `scratch/union-ci-check` | ran to its end | 542 s | 352 s | 356 s | Left out: one more run of `main` (00:07 UTC, `1154976d4`), cut off when GitHub blocked the fork's Actions at 00:16 UTC. </details> **Why the leg is slow.** `tests/semantic/test_mutations.py` copies `tools/` into a temporary folder and runs `test_ps_semantics.py` in 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 `main` at 05:49 UTC, 476 at 00:07), so the number will need another look later. Making `test_mutations` cheaper 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:56` and `tests/semantic/test_reg_ptr_hoist.py:59` read `LEONIDA_REQUIRE_SPIRV_TOOLS` for truthiness, and `ci.yml` sets it to `0` on 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](https://git.gtahub.st/github/ubiquitarianism--leonida/pulls/136)). 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 - The change is a number in the workflow and a matrix expression, so the evidence is the runs above. GitHub's context-availability table lists `matrix` (and not `runner`) for `jobs.<job_id>.timeout-minutes`. This pull request's own CI evaluates the expression on the Linux leg, and `jactionlint` checks the workflow. - `python -I tests/test_ci_registration.py` (16 tests), `python -I tests/test_runner_calls_all_tests.py` (3 tests) and `python -m unittest discover -s tests/semantic -p test_spirv_tools_required.py` (skipped without `LEONIDA_REQUIRE_SPIRV_TOOLS=1`, as designed), the three tests that read the workflow: all pass. - `python -I scripts/run_semantic_tests.py tests/semantic` on Linux with 24 jobs: 476 files, 6,223 tests, 0 files failed in 65 s. - The two files above on this branch (the same as `main` for them), with `spirv-as`, `spirv-val` and `llvm-mc` hidden from `PATH`: both pass with the variable unset and fail with `0` and with `1` ("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 with `0`, and `test_spirv_tools_required` fails with `1`. - `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 to `main` after merge will show it. This repository's own runs could not help either: none of its last 100 CI runs on `main` got 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 - [x] Based on current `main` and merges cleanly (a conflicting pull request is labeled `needs rebase`). It also merges cleanly with each of the 10 open pull requests that change `ci.yml` (#140, #374, #595, #679, #756, #771, #782, #789, #794, #1404). - [x] One topic; follow-up work goes in a new pull request. - [x] No game data, keys or decryption (CONTRIBUTING.md), including in logs or reports quoted here. - [x] A new translator rule is in the contract table of `docs/design.md`, with how it was confirmed. (No translator change.) 🤖 Generated with [Claude Code](https://claude.com/claude-code)
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 <[email protected]>
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 09:52:17 +00:00
Author
Owner

@⁠PierreEbele on GitHub · 2026-11-25 15:33 UTC · original

Reviewed 464ef2a: correct and minimal: matrix.os == 'windows-latest' && 20 || 10 for the semantic-tests timeout. GitHub's context-availability table does allow matrix in 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

**@⁠PierreEbele** on GitHub · 2026-11-25 15:33 UTC · [original](https://github.com/ubiquitarianism/leonida/pull/1462#issuecomment-7167036806) Reviewed 464ef2a: correct and minimal: `matrix.os == 'windows-latest' && 20 || 10` for the semantic-tests timeout. GitHub's context-availability table does allow `matrix` in 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
This pull request can be merged automatically.
This branch is out-of-date with the base branch
You are not authorized to merge this pull request.
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin '+refs/pull/1462/head:github-bot/gh-1462'
git switch 'github-bot/gh-1462'

Merge

Merge the changes and update on Forgejo.
git switch 'main'
git merge --no-ff 'github-bot/gh-1462'
git switch 'github-bot/gh-1462'
git rebase 'main'
git switch 'main'
git merge --ff-only 'github-bot/gh-1462'
git switch 'github-bot/gh-1462'
git rebase 'main'
git switch 'main'
git merge --no-ff 'github-bot/gh-1462'
git switch 'main'
git merge --squash 'github-bot/gh-1462'
git switch 'main'
git merge --ff-only 'github-bot/gh-1462'
git switch 'main'
git merge 'github-bot/gh-1462'
git push origin 'main'
This discussion has been locked. Commenting is limited to contributors.
No description provided.