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

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

📋 Pull Request Information

Original PR: https://github.com/ubiquitarianism/leonida/pull/48
Author: @Andretuta
Created: 11/24/2026
Status: 🔄 Open

Base: main ← Head: old-pr/9770


📝 Commits (1)

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

📊 Changes

2 files changed (+36 additions, -1 deletions)

View changed files

📝 runtime/test/shaders/w64_graphics.py (+4 -1)
📝 tests/test_w64_graphics_args.py (+32 -0)

📄 Description

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


🔄 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/48 **Author:** [@Andretuta](https://github.com/Andretuta) **Created:** 11/24/2026 **Status:** 🔄 Open **Base:** `main` ← **Head:** `old-pr/9770` --- ### 📝 Commits (1) - [`2424197`](https://github.com/ubiquitarianism/leonida/commit/24241976987b13d7c21a8f926804444da0dfec1a) w64_graphics: a vk_harness timeout fails that fixture; the rest still run (#9764) ### 📊 Changes **2 files changed** (+36 additions, -1 deletions) <details> <summary>View changed files</summary> 📝 `runtime/test/shaders/w64_graphics.py` (+4 -1) 📝 `tests/test_w64_graphics_args.py` (+32 -0) </details> ### 📄 Description > 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) --- <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#100
No description provided.