Do not hide failed compute dumps behind subgroup skips #125

Open
github-bot wants to merge 1 commit from github-bot/gh-125 into main AGit
Owner

@⁠Andretuta on GitHub · 2026-11-24 02:23 UTC · original
ubiquitarianism:old-pr/9859 → main · +76 −10 · 4 files · 1 commits · draft

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.

**@⁠Andretuta** on GitHub · 2026-11-24 02:23 UTC · [original](https://github.com/ubiquitarianism/leonida/pull/125) `ubiquitarianism:old-pr/9859` → `main` · +76 −10 · 4 files · 1 commits · draft > 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.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 08:45:19 +00:00
This pull request has changes conflicting with the target branch.
  • runtime/test/shaders/check.py
  • tests/test_shader_checks.py
View command line instructions

Manual merge helper

Use this merge commit message when completing the merge manually.

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin '+refs/pull/125/head:github-bot/gh-125'
git switch 'github-bot/gh-125'

Merge

Merge the changes and update on Forgejo.
git switch 'main'
git merge --no-ff 'github-bot/gh-125'
git switch 'github-bot/gh-125'
git rebase 'main'
git switch 'main'
git merge --ff-only 'github-bot/gh-125'
git switch 'github-bot/gh-125'
git rebase 'main'
git switch 'main'
git merge --no-ff 'github-bot/gh-125'
git switch 'main'
git merge --squash 'github-bot/gh-125'
git switch 'main'
git merge --ff-only 'github-bot/gh-125'
git switch 'main'
git merge 'github-bot/gh-125'
git push origin 'main'
This discussion has been locked. Commenting is limited to contributors.
No description provided.