[PR #125] Do not hide failed compute dumps behind subgroup skips #175

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

📋 Pull Request Information

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

Base: main ← Head: old-pr/9859


📝 Commits (1)

  • 44481fd Do not skip failed compute dumps after subgroup warning

📊 Changes

4 files changed (+76 additions, -10 deletions)

View changed files

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

📄 Description

Carried over from old PR 9859 by WebIdentity1 in the original Leonida repository, which went private on 23 Nov 2026. The code is the branch old-pr/9859, 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.
WebIdentity1: 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):

Claim: https://github.com/ProjectLeonida/Leonida/issues/9677#issuecomment-7116630322

Problem and fix

Both GPU test runners can report SKIP when vk_compute_test prints a requested subgroup size as unavailable and later fails. A validation error after the dispatch can leave a complete word dump and exit 1; the subgroup warning currently hides that failure. An earlier failure can also leave the warning without a complete dump.

An unpinned dispatch can legitimately exit 1 when its words differ at the wrong wave width, so exit status alone cannot decide. The shared skip rule now requires status 0 or 1, a complete eight-word dump, and no validation-error count. check.py applies it to dump mode, and run_gpu_tests.py applies it to its pinned dump case. Other modes and exit-77 unsupported behavior remain as before.

Validation

  • New CPU-only fake-child cases drive both runners with a successful unpinned dump, a wrong-width exit-1 dump, an exit-1 dump followed by 1 validation errors, an exit-1 incomplete dump, exit 2, and exit 77. The validation/incomplete/exit-2 cases report failure; the legitimate unpinned and unsupported cases remain skips. The new tests fail on unchanged main 2d53a8055 and pass on this head, rebased to 7067ff2f2.
  • Focused test_shader_checks.py classes: 17 passed. Full test_run_gpu_tests.py: 63 passed.
  • Full test_shader_checks.py: 84 baseline tests and 85 head tests, with the same 15 errors, all in the unrelated Wave64Checks fake harness (cwd argument). No new or resolved error IDs.
  • Full semantic baseline/head comparison: 459 files / 6,046 tests; the same 49 failure IDs in test_exec_computed and test_image_atomics_guard, zero new or resolved IDs. The later main update to 7067ff2f2 touched docs and tests/test_design_contract_rows.py, not these sources or semantic tests.
  • Python compileall, make_game.py --help, changed-file no-game-data scan, and git diff --check passed. Automated merge-tree checks with open fixture PRs #9781 and #4669 are clean.

Tested on macOS 27.2 arm64 / Apple M5 Ultra. This regression uses synthetic process output; no GPU, driver, or game files were used for this fix.

AI-assisted: yes.


🔄 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/125 **Author:** [@Andretuta](https://github.com/Andretuta) **Created:** 11/24/2026 **Status:** 🔄 Open **Base:** `main` ← **Head:** `old-pr/9859` --- ### 📝 Commits (1) - [`44481fd`](https://github.com/ubiquitarianism/leonida/commit/44481fdb9f2bf0e4f4daca77174f156d46703639) Do not skip failed compute dumps after subgroup warning ### 📊 Changes **4 files changed** (+76 additions, -10 deletions) <details> <summary>View changed files</summary> 📝 `runtime/test/shaders/check.py` (+14 -1) 📝 `scripts/run_gpu_tests.py` (+4 -4) 📝 `tests/test_run_gpu_tests.py` (+37 -4) 📝 `tests/test_shader_checks.py` (+21 -1) </details> ### 📄 Description > Carried over from **old PR 9859** by `WebIdentity1` in the original Leonida repository, which went private on 23 Nov 2026. The code is the branch `old-pr/9859`, 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. > `WebIdentity1`: 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): Claim: https://github.com/ProjectLeonida/Leonida/issues/9677#issuecomment-7116630322 ## Problem and fix Both GPU test runners can report `SKIP` when `vk_compute_test` prints a requested subgroup size as unavailable and later fails. A validation error after the dispatch can leave a complete word dump and exit 1; the subgroup warning currently hides that failure. An earlier failure can also leave the warning without a complete dump. An unpinned dispatch can legitimately exit 1 when its words differ at the wrong wave width, so exit status alone cannot decide. The shared skip rule now requires status 0 or 1, a complete eight-word dump, and no validation-error count. `check.py` applies it to dump mode, and `run_gpu_tests.py` applies it to its pinned dump case. Other modes and exit-77 unsupported behavior remain as before. ## Validation - New CPU-only fake-child cases drive both runners with a successful unpinned dump, a wrong-width exit-1 dump, an exit-1 dump followed by `1 validation errors`, an exit-1 incomplete dump, exit 2, and exit 77. The validation/incomplete/exit-2 cases report failure; the legitimate unpinned and unsupported cases remain skips. The new tests fail on unchanged main `2d53a8055` and pass on this head, rebased to `7067ff2f2`. - Focused `test_shader_checks.py` classes: 17 passed. Full `test_run_gpu_tests.py`: 63 passed. - Full `test_shader_checks.py`: 84 baseline tests and 85 head tests, with the same 15 errors, all in the unrelated `Wave64Checks` fake harness (`cwd` argument). No new or resolved error IDs. - Full semantic baseline/head comparison: 459 files / 6,046 tests; the same 49 failure IDs in `test_exec_computed` and `test_image_atomics_guard`, zero new or resolved IDs. The later main update to `7067ff2f2` touched docs and `tests/test_design_contract_rows.py`, not these sources or semantic tests. - Python compileall, `make_game.py --help`, changed-file no-game-data scan, and `git diff --check` passed. Automated merge-tree checks with open fixture PRs `#9781` and `#4669` are clean. Tested on macOS 27.2 arm64 / Apple M5 Ultra. This regression uses synthetic process output; no GPU, driver, or game files were used for this fix. AI-assisted: yes. --- <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#175
No description provided.