[PR #1462] ci: give the Windows semantic-tests leg 20 minutes; it was cancelled at 10 in 14 of 23 runs (CI-SEMANTIC-WIN-TIME-LIMIT) #1492

Open
opened 2026-11-26 20:21:26 +01:00 by 4ld0 · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/ubiquitarianism/leonida/pull/1462
Author: @milk4sale
Created: 11/25/2026
Status: 🔄 Open

Base: main ← Head: ci/semantic-windows-time-limit


📝 Commits (1)

  • 464ef2a ci: give the Windows semantic-tests leg 20 minutes; it was cancelled at 10 in 14 of 23 runs (CI-SEMANTIC-WIN-TIME-LIMIT)

📊 Changes

1 file changed (+4 additions, -1 deletions)

View changed files

📝 .github/workflows/ci.yml (+4 -1)

📄 Description

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-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


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/ubiquitarianism/leonida/pull/1462 **Author:** [@milk4sale](https://github.com/milk4sale) **Created:** 11/25/2026 **Status:** 🔄 Open **Base:** `main` ← **Head:** `ci/semantic-windows-time-limit` --- ### 📝 Commits (1) - [`464ef2a`](https://github.com/ubiquitarianism/leonida/commit/464ef2a359360185d583d2a0b6b55517a130e2de) ci: give the Windows semantic-tests leg 20 minutes; it was cancelled at 10 in 14 of 23 runs (CI-SEMANTIC-WIN-TIME-LIMIT) ### 📊 Changes **1 file changed** (+4 additions, -1 deletions) <details> <summary>View changed files</summary> 📝 `.github/workflows/ci.yml` (+4 -1) </details> ### 📄 Description 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-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://github.com/ubiquitarianism/leonida/pull/136#issuecomment-7139519633)). 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) --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
Sign in to join this conversation.
No labels
bug
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
starred/leonida#1492
No description provided.