mirror of
https://github.com/ubiquitarianism/leonida.git
synced 2026-11-27 00:15:51 +01:00
[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
Labels
No labels
bug
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
starred/leonida#1492
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
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?
📋 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)
464ef2aci: 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-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
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.