[PR #1000] [MERGED] tests: keep failed GPU dispatches visible (GPU-PIN-EXIT-STATUS) #1036

Closed
opened 2026-11-26 20:19:52 +01:00 by 4ld0 · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/ubiquitarianism/leonida/pull/1000
Author: @Okachamie
Created: 11/24/2026
Status: ✅ Merged
Merged: 11/25/2026
Merged by: @QemmHD

Base: main ← Head: gpu-pin-exit-status


📝 Commits (1)

  • e55b3be tests: fail when a subgroup warning precedes a dispatch error

📊 Changes

4 files changed (+26 additions, -7 deletions)

View changed files

📝 runtime/test/shaders/check.py (+1 -1)
📝 scripts/run_gpu_tests.py (+4 -2)
📝 tests/test_run_gpu_tests.py (+14 -2)
📝 tests/test_shader_checks.py (+7 -2)

📄 Description

Claimed in the coordination issue as: GPU-PIN-EXIT-STATUS

What and why

vk_compute_test can print that a requested subgroup size is unavailable before it dispatches. A later dispatch error or crash could then be reported as a skip by both GPU test runners. Require exit zero before treating that warning as a skip, and include the exit status in failed compute dump reports. Explicit unsupported-feature exits still skip.

Tested

  • Both regression cases reproduced the false skip on main. The synthetic tests cover an ordinary failure, Linux SIGSEGV status, and Windows access-violation status.
  • 158 game-free unit tests passed across tests/test_run_gpu_tests.py, tests/test_shader_checks.py, and tests/test_run_gpu_wavemask.py.
  • cs_barrier_loop passed via both runners, with native settings and with LEONIDA_W64_EMULATE=1. Both partial-wave64 fixtures skipped on the native 32-lane device and passed with emulation. All fixture translations passed spirv-val.

GPUs tested: NVIDIA GeForce RTX 5090 Laptop GPU, NVIDIA 620.73.04, CachyOS 7.3.5-2-cachyos.

AI-assisted: yes

Checklist

  • Based on current main and merges cleanly.
  • One topic.
  • No game data, keys or decryption.
  • New translator rule in docs/design.md (N/A; test runner changes).

🔄 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/1000 **Author:** [@Okachamie](https://github.com/Okachamie) **Created:** 11/24/2026 **Status:** ✅ Merged **Merged:** 11/25/2026 **Merged by:** [@QemmHD](https://github.com/QemmHD) **Base:** `main` ← **Head:** `gpu-pin-exit-status` --- ### 📝 Commits (1) - [`e55b3be`](https://github.com/ubiquitarianism/leonida/commit/e55b3be88a1db454d7a53eb2beb81985d8995e45) tests: fail when a subgroup warning precedes a dispatch error ### 📊 Changes **4 files changed** (+26 additions, -7 deletions) <details> <summary>View changed files</summary> 📝 `runtime/test/shaders/check.py` (+1 -1) 📝 `scripts/run_gpu_tests.py` (+4 -2) 📝 `tests/test_run_gpu_tests.py` (+14 -2) 📝 `tests/test_shader_checks.py` (+7 -2) </details> ### 📄 Description Claimed in the coordination issue as: [GPU-PIN-EXIT-STATUS](https://github.com/ubiquitarianism/leonida/issues/14#issuecomment-7138045642) ### What and why `vk_compute_test` can print that a requested subgroup size is unavailable before it dispatches. A later dispatch error or crash could then be reported as a skip by both GPU test runners. Require exit zero before treating that warning as a skip, and include the exit status in failed compute dump reports. Explicit unsupported-feature exits still skip. ### Tested - Both regression cases reproduced the false skip on main. The synthetic tests cover an ordinary failure, Linux SIGSEGV status, and Windows access-violation status. - 158 game-free unit tests passed across `tests/test_run_gpu_tests.py`, `tests/test_shader_checks.py`, and `tests/test_run_gpu_wavemask.py`. - `cs_barrier_loop` passed via both runners, with native settings and with `LEONIDA_W64_EMULATE=1`. Both partial-wave64 fixtures skipped on the native 32-lane device and passed with emulation. All fixture translations passed `spirv-val`. GPUs tested: NVIDIA GeForce RTX 5090 Laptop GPU, NVIDIA 620.73.04, CachyOS 7.3.5-2-cachyos. AI-assisted: yes ### Checklist - [x] Based on current `main` and merges cleanly. - [x] One topic. - [x] No game data, keys or decryption. - [ ] New translator rule in `docs/design.md` (N/A; test runner changes). --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
4ld0 2026-11-26 20:19:52 +01:00
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#1036
No description provided.