GPU test runners: report failed compute dumps after subgroup warnings (DRAFT-125) #1326

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

@⁠fin-github on GitHub · 2026-11-24 21:54 UTC · original
fin-github:codex/draft-125 → main · +76 −10 · 4 files · 1 commits · open

Claimed in the coordination issue as: DRAFT-125 (#14).

What and why

Supersedes draft #125 (old PR 9859 by WebIdentity1) and preserves the original commit author. A requested subgroup size can be unavailable, yet the fallback dispatch can still run. In dump mode, both GPU test runners now require a complete eight-word dump, no validation errors, and status 0 or 1 before treating an unpinned dispatch as a skip. The reserved exit-77 path still handles unsupported devices.

Tested

  • Added regression cases reproduced on upstream main at 4a50cafc7. The two runners incorrectly skipped synthetic child failures with an unpinned subgroup warning.
  • Windows 11, CPython 3.14.4: python -I tests/test_run_gpu_tests.py (65 passed) and python -I tests/test_shader_checks.py (88 passed). The cases also exercise legitimate unpinned and exit-77 skips.
  • python -I -m py_compile runtime/test/shaders/check.py scripts/run_gpu_tests.py tests/test_run_gpu_tests.py tests/test_shader_checks.py, python -I scripts/run_gpu_tests.py --help, python -I scripts/check_no_game_data.py runtime/test/shaders/check.py scripts/run_gpu_tests.py tests/test_run_gpu_tests.py tests/test_shader_checks.py, and git diff --check upstream/main...HEAD passed.

GPUs tested: N/A (synthetic child output, CPU only).

AI-assisted: yes (Codex).

Checklist

  • Based on upstream main; the original commit applied cleanly.
  • One topic.
  • No game data, keys, or decryption.

Translator contract: N/A.

**@⁠fin-github** on GitHub · 2026-11-24 21:54 UTC · [original](https://github.com/ubiquitarianism/leonida/pull/1326) `fin-github:codex/draft-125` → `main` · +76 −10 · 4 files · 1 commits · open Claimed in the coordination issue as: DRAFT-125 (https://git.gtahub.st/github/ubiquitarianism--leonida/issues/14). ### What and why Supersedes draft #125 (old PR 9859 by WebIdentity1) and preserves the original commit author. A requested subgroup size can be unavailable, yet the fallback dispatch can still run. In dump mode, both GPU test runners now require a complete eight-word dump, no validation errors, and status 0 or 1 before treating an unpinned dispatch as a skip. The reserved exit-77 path still handles unsupported devices. ### Tested - Added regression cases reproduced on upstream `main` at `4a50cafc7`. The two runners incorrectly skipped synthetic child failures with an unpinned subgroup warning. - Windows 11, CPython 3.14.4: `python -I tests/test_run_gpu_tests.py` (65 passed) and `python -I tests/test_shader_checks.py` (88 passed). The cases also exercise legitimate unpinned and exit-77 skips. - `python -I -m py_compile runtime/test/shaders/check.py scripts/run_gpu_tests.py tests/test_run_gpu_tests.py tests/test_shader_checks.py`, `python -I scripts/run_gpu_tests.py --help`, `python -I scripts/check_no_game_data.py runtime/test/shaders/check.py scripts/run_gpu_tests.py tests/test_run_gpu_tests.py tests/test_shader_checks.py`, and `git diff --check upstream/main...HEAD` passed. GPUs tested: N/A (synthetic child output, CPU only). AI-assisted: yes (Codex). ### Checklist - [x] Based on upstream `main`; the original commit applied cleanly. - [x] One topic. - [x] No game data, keys, or decryption. Translator contract: N/A.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 09:47:31 +00:00
Author
Owner

@⁠whoalin1 on GitHub · 2026-11-24 23:29 UTC · original

Independent verification (AI-assisted, overnight review batch):

  • Checked out d646d67; diff touches runtime/test/shaders/check.py (new unpinned_compute_dump_skip, used for dump mode), scripts/run_gpu_tests.py (subgroup_pin_skip now takes the exit code), and both test files.
  • Logic reviewed: skip now requires exit code 0/1, no N validation errors line (matches the %u validation errors format printed by vk_validation.h:72 only when count > 0), and a complete out[0..7] line before unpinned_subgroup_skip can skip. Non-dump modes keep the old rule.
  • python -I -m pytest tests/test_run_gpu_tests.py tests/test_shader_checks.py: 157 passed + 458 subtests (includes the new synthetic-child regression cases for exit 0/1/2/77, validation-error and incomplete-dump variants).
  • python -I scripts/check_no_game_data.py on all four changed files: clean. py -3.14 -m compileall -q tools tests make_game.py: clean.
  • No GPU needed (all tests stub the child process); no game files.
  • One observation, non-blocking: for NON-dump compute modes the unpinned-subgroup skip still applies before the code != 0 failure check, so an exotic exit code (e.g. 2) plus the warning would still skip there. vk_compute_test only exits 0/1/77 in practice, so this is theoretical; possibly worth a follow-up note.
  • LGTM.
**@⁠whoalin1** on GitHub · 2026-11-24 23:29 UTC · [original](https://github.com/ubiquitarianism/leonida/pull/1326#issuecomment-7147458494) Independent verification (AI-assisted, overnight review batch): - Checked out d646d67; diff touches `runtime/test/shaders/check.py` (new `unpinned_compute_dump_skip`, used for dump mode), `scripts/run_gpu_tests.py` (`subgroup_pin_skip` now takes the exit code), and both test files. - Logic reviewed: skip now requires exit code 0/1, no `N validation errors` line (matches the `%u validation errors` format printed by vk_validation.h:72 only when count > 0), and a complete `out[0..7]` line before `unpinned_subgroup_skip` can skip. Non-dump modes keep the old rule. - `python -I -m pytest tests/test_run_gpu_tests.py tests/test_shader_checks.py`: 157 passed + 458 subtests (includes the new synthetic-child regression cases for exit 0/1/2/77, validation-error and incomplete-dump variants). - `python -I scripts/check_no_game_data.py` on all four changed files: clean. `py -3.14 -m compileall -q tools tests make_game.py`: clean. - No GPU needed (all tests stub the child process); no game files. - One observation, non-blocking: for NON-dump compute modes the unpinned-subgroup skip still applies before the `code != 0` failure check, so an exotic exit code (e.g. 2) plus the warning would still skip there. vk_compute_test only exits 0/1/77 in practice, so this is theoretical; possibly worth a follow-up note. - LGTM.
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/1326/head:github-bot/gh-1326'
git switch 'github-bot/gh-1326'

Merge

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