WIP: Do not hide failed compute dumps behind subgroup skips #125

Closed
leonida/mandy
Andretuta wants to merge 0 commits from old-pr/9859 into main

Pull request closed

This pull request cannot be reopened because the branch was deleted.

Andretuta commented 2026-11-24 02:23:45 +00:00

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.

> 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.
MoonEyes commented 2026-11-30 13:58:54 +00:00

Closing this draft as superseded by #1326 (open, by fin-github): compared line by line, 0 of the 71 lines this head (44481fdb9) adds are missing there, in the same files. Nothing here is judged wrong, and a conflict is not the reason. Please reopen it if #1326 does not land or leaves something out.

AI-assisted (Claude Code). Closed at the owner's request (MoonEyes), superseded pull requests being fine to close (aslan2142).

Closing this draft as superseded by #1326 (open, by fin-github): compared line by line, 0 of the 71 lines this head (`44481fdb9`) adds are missing there, in the same files. Nothing here is judged wrong, and a conflict is not the reason. Please reopen it if #1326 does not land or leaves something out. AI-assisted (Claude Code). Closed at the owner's request (MoonEyes), superseded pull requests being fine to close (aslan2142).
Sign in to join this conversation.
No description provided.