mirror of
https://github.com/ubiquitarianism/leonida.git
synced 2026-11-26 22:05:54 +01:00
[PR #361] [MERGED] CI-WIN-TIMEOUT: a hung Windows runtime test fails on its own instead of cancelling the job #413
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#413
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/361
Author: @ItsMrDubey
Created: 11/24/2026
Status: ✅ Merged
Merged: 11/24/2026
Merged by: @QemmHD
Base:
main← Head:ci-windows-runtime-time📝 Commits (1)
e862862ci: a hung Windows runtime test fails on its own instead of cancelling the job📊 Changes
2 files changed (+10 additions, -2 deletions)
View changed files
📝
.github/workflows/runtime.yml(+6 -2)📝
runtime/CMakeLists.txt(+4 -0)📄 Description
Claimed in the coordination issue as: CI-WIN-TIMEOUT (https://github.com/ubiquitarianism/leonida/issues/14#issuecomment-7121328982)
What and why
Old #3828 ("Slow ci"). The Runtime workflow's
windowsjob has not finished once in this repo's history. I went through all 205 Runtime runs (24 Nov 00:33 to 03:40 UTC):cancel-in-progresson pull requests, plus main's own pending pushes being coalesced. Those jobs stop at 0-3 min, mostly before the build ends. That part is not a bug.windowsjob that got as far as ctest (12 jobs, PR and main pushes) was cancelled at exactly 20 min bytimeout-minutes, each time whileStart 14: loaderwas running. Tests 1-13 take 0.01 s each.loadernever finished, and in some of those jobs it ran a long time:loaderloaderloaderloaderloaderloaderThe same
loader_test.exepassed in 11 s under Wine (job 138172394462, built from760012c). Locally on Windows 11 it takes 12-50 s, depending on how hard Defender scans the images it writes. So the test does not hang everywhere. It hangs on the hosted Windows runner, which matches what #239 (45676e8) describes: the LEONIDA_COMPAT_DIR case loads a file Windows cannot map, and the runner waits on a "Bad Image" box. #239 merged at 03:36 UTC, after all of these runs, and no Windows job has run on it yet.This PR keeps the next hang like that from eating the whole job, and gives a cold build enough time to finish:
runtime/CMakeLists.txt:loadergetsTIMEOUT 180. Without it the CTest default applies (include(CTest)means 1500 s), and that is longer than the job.runtime.yml: the Windows ctest step runs with--timeout 300. Any test without a TIMEOUT of its own now fails after 5 min instead of 25. Tests that set their own (900 s, 3600 s and so on) keep it. The slowest test on the Linux and macOS jobs isxdxr_build_check, at 49 s and 106 s.timeout-minutesgoes from 20 to 35 on thewindowsjob. The measured cold-cache build (main, job 138125499713) took 18.3 min of build plus about 0.7 min of setup, leaving under 1 min for 294 tests.I checked the sccache setup and left it unchanged.
CMAKE_CXX_COMPILER_LAUNCHER=sccacheis set and debug info is already/Z7(CMP0141=NEW,CMAKE_MSVC_DEBUG_INFORMATION_FORMAT=Embedded). The project is CXX only, so a C launcher would do nothing. PR runs hit 65-66 % from the GHA cache, and the misses are the changed sources. The build is slow because a 430-object MSVC build takes long, not because the cache is wired wrong.Expected change: with #239 in,
loadershould pass in seconds and the job should finish in roughly 5-19 min of build plus the ctest run. If a test hangs again, the job reports that test as aTimeoutfailure within 3-5 min, instead of a 20-minute "The operation was canceled" with no test named.Not covered here: the
winejobs on main pushes also hit their 20-minute limit. That run had several 120 s per-test timeouts (module_names: unimplementedKERNEL32.CopyFile2under Wine;dxgi_host_parity;dxgi_waitable_latency). Theloadertest itself passed there.Tested
Windows 11, Python 3.11.9, MSVC 14.29 + Ninja, no GPU.
loader_teston this branch.ctest -R ^loader$ --show-only=json-v1showsTIMEOUT 180, andctest -Vprints "Test timeout computed to be: 180" (the property wins over--timeout 300).ctest -R ^loader$ --timeout 300: passed in 12.5 s.loader_test.exedirectly: 95 checks, 0 failed (36-50 s with Defender on).c07ec72), including with the process error mode cleared to 0. It did not hang (93 checks, 0 failed, 28 s). The box seems specific to the runner, so the evidence for the hang is the CI logs above.python -m pytest -q tests/test_runtime_paths.py tests/test_cmake_vulkan_missing.py: 7 passed, 3 skipped.timeout-minutes: 35, the new ctest command). actionlint was not available locally; the jactionlint job runs on this PR.python -I scripts/check_no_game_data.py .github/workflows/runtime.yml runtime/CMakeLists.txt: clean.AI-assisted: yes
Checklist
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.