w64_graphics: a vk_harness timeout fails that fixture; the rest still run (#9764) #48

Closed
Andretuta wants to merge 1 commit from upstream-pr/48 into main
Andretuta commented 2026-11-24 02:07:22 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by Andretuta on 2026-11-24T02:07:22Z.


Carried over from old PR 9770 by Joaco9020 in the original Leonida repository, which went private on 23 Nov 2026. The code is the branch old-pr/9770, exactly that PR's last commit. All carried-over PRs are listed in #17.
Opened as a draft, and the CI runs the opening started were cancelled so 250 PRs don't fill the queue. Re-run CI here when you review it.
Joaco9020: this is your work. Feel free to take it over, by pushing to the branch or opening your own PR and closing this one.


Original description (mentions and #N references are disabled; the numbers refer to the old repository):

Fixes #9764. Claim: https://github.com/ProjectLeonida/Leonida/issues/9677#issuecomment-7115571350

Depends on: none.

What and why

runtime/test/shaders/w64_graphics.py runs vk_harness through subprocess.run(..., timeout=120) in four places (_draw_heap, _wave_size, live_width, draw). A draw that hangs past the timeout raised subprocess.TimeoutExpired out of main(), so a multi-fixture run ended in a traceback and never reported the fixtures after it (#9764).

main() now catches TimeoutExpired around each fixture's check(), prints vk_harness timed out after 120 s on that fixture's line (counted as a failure), runs the remaining fixtures, and still exits 1. Five lines; the four call sites are unchanged.

Tested

Windows 11, Python 3.12.10, on main 5d74c2723:

  • python -I tests/test_w64_graphics_args.py: 4 tests OK, including the new test_a_timeout_fails_that_fixture_and_the_rest_still_run: a fake vk_harness times out on its first call and reports the device as unsupported afterwards; ps_w64_a_skip gets the timeout line, gs_w64_a_ring is still checked (SKIP), and main() returns 1.
  • Negative control: the new test against the old w64_graphics.py errors with the TimeoutExpired traceback from the issue.
  • python -m pytest tests/test_w64_graphics_probe.py tests/test_w64_graphics_reference.py: 5 passed.
  • Real run on an NVIDIA GeForce RTX 3070 (driver 621.01, VS 2022 build): w64_graphics.py <fixtures> runtime/build/RelWithDebInfo: 17 ok, 12 tier C SKIP, exit 0, the same as before the change.

No game files.

AI-assisted: yes (Claude).

🤖 Generated with Claude Code

<!-- greyfinch-sync:ubiquitarianism/leonida:issue:5464713778 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/pull/48). Originally posted by [Andretuta](https://github.com/Andretuta) on 2026-11-24T02:07:22Z. --- > Carried over from **old PR 9770** by `Joaco9020` in the original Leonida repository, which went private on 23 Nov 2026. The code is the branch `old-pr/9770`, exactly that PR's last commit. All carried-over PRs are listed in #17. > Opened as a draft, and the CI runs the opening started were cancelled so 250 PRs don't fill the queue. Re-run CI here when you review it. > `Joaco9020`: this is your work. Feel free to take it over, by pushing to the branch or opening your own PR and closing this one. --- Original description (mentions and `#N` references are disabled; the numbers refer to the old repository): Fixes `#9764`. Claim: https://github.com/ProjectLeonida/Leonida/issues/9677#issuecomment-7115571350 Depends on: none. ### What and why `runtime/test/shaders/w64_graphics.py` runs `vk_harness` through `subprocess.run(..., timeout=120)` in four places (`_draw_heap`, `_wave_size`, `live_width`, `draw`). A draw that hangs past the timeout raised `subprocess.TimeoutExpired` out of `main()`, so a multi-fixture run ended in a traceback and never reported the fixtures after it (`#9764`). `main()` now catches `TimeoutExpired` around each fixture's `check()`, prints `vk_harness timed out after 120 s` on that fixture's line (counted as a failure), runs the remaining fixtures, and still exits 1. Five lines; the four call sites are unchanged. ### Tested Windows 11, Python 3.12.10, on `main` `5d74c2723`: - `python -I tests/test_w64_graphics_args.py`: 4 tests OK, including the new `test_a_timeout_fails_that_fixture_and_the_rest_still_run`: a fake `vk_harness` times out on its first call and reports the device as unsupported afterwards; `ps_w64_a_skip` gets the timeout line, `gs_w64_a_ring` is still checked (SKIP), and `main()` returns 1. - **Negative control**: the new test against the old `w64_graphics.py` errors with the `TimeoutExpired` traceback from the issue. - `python -m pytest tests/test_w64_graphics_probe.py tests/test_w64_graphics_reference.py`: 5 passed. - Real run on an **NVIDIA GeForce RTX 3070** (driver 621.01, VS 2022 build): `w64_graphics.py <fixtures> runtime/build/RelWithDebInfo`: 17 ok, 12 tier C SKIP, exit 0, the same as before the change. No game files. AI-assisted: yes (Claude). 🤖 Generated with [Claude Code](https://claude.com/claude-code)
MoonEyes commented 2026-11-28 10:38:46 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by MoonEyes on 2026-11-28T10:38:46Z.


Thanks for this change. The single commit of this PR is already in main with an identical patch (2191b71de, merged via #27), so I am closing this one as already merged. If you think this is a mistake, please reopen.

AI-assisted (Claude Code, Claude Opus 5.5)

<!-- greyfinch-sync:ubiquitarianism/leonida:comment:7238030061 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/pull/48#issuecomment-7238030061). Originally posted by [MoonEyes](https://github.com/MoonEyes) on 2026-11-28T10:38:46Z. --- Thanks for this change. The single commit of this PR is already in main with an identical patch (2191b71de, merged via #27), so I am closing this one as already merged. If you think this is a mistake, please reopen. AI-assisted (Claude Code, Claude Opus 5.5)

Pull request closed

Sign in to join this conversation.
No reviewers
No labels
No milestone
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.

Reference
ProjectLeonida/mandy!48
No description provided.