Skip to content

GPU tests: preserve wave32 process failures on narrow subgroups - #4617

Merged
ItsNotRexed merged 1 commit into
ItsNotRexed:mainfrom
check3D:fix/wave32-process-verdict
Nov 23, 2026
Merged

ItsNotRexed merged 1 commit into
ItsNotRexed:mainfrom
check3D:fix/wave32-process-verdict

Conversation

@check3D

@check3D check3D commented Nov 23, 2026

Copy link
Copy Markdown
Contributor

Claimed in the coordination issue as TEST-1004.

What and why

Both GPU test runners could report SKIP when vk_compute_test failed. A synthetic helper that printed device: synthetic (subgroup 8..16) and then exited 1 reproduced the problem. The runners saw the subgroup width and skipped the wave32 fixture before checking how the process exited.

For wave32 lane fixtures, both runners now use the subgroup width to decide whether to skip only after a successful exit. The explicit unsupported exit (77) still skips. An ordinary process failure now fails the test.

Tested

Ran 130 tests on Linux across test_run_gpu_tests.py, test_shader_checks.py, test_gpu_test_timeout.py, and test_run_gpu_wavemask.py. All passed.

The new CPU-only regression exercises both runners. With the same narrow-subgroup message, exit 1 produces FAIL and exit 0 produces SKIP. Exit 77 with an unsupported-feature message also produces SKIP. The test uses synthetic subprocess results. No GPU or driver was used.

AI-assisted (Codex).

Checklist

  • No game data, keys or decryption, including in logs or reports.
  • Translator contract table update is inapplicable. This change affects test-runner verdicts only.

@Kam471 Kam471 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ran this at 37e66e90 on Windows 11: pytest tests/test_run_gpu_tests.py -q -> 41 passed, 52 subtests passed; git diff --check clean.

A WAVE32_LANE_DUMPS process that exits non-zero is now a failure, not a lane-size skip: only exit 77 (UNSUPPORTED) skips, and the textual wave32_lane_skip is consulted only on a clean exit, in both check.py and the runner. The added cases pin the non-zero-exit behaviour. No blocking issue.

@theswiss24

Copy link
Copy Markdown

Tested 37e66e90 (contains main d0835dd9) on a narrow-subgroup device and a 32-wide one, test programs built from main d0835dd9 (this PR changes no C++), Linux Mint 22.3, llvm-mc 20.1.2, LEONIDA_W64_EMULATE=1: pass. Every test has the same result as main on each:

GPU driver subgroup run_gpu_tests.py
Intel UHD 630 (Gen9.5) Mesa ANV 25.2.8 8..32 181/210 passed, 27 skipped, 2 failed, the same 2 as main (cs_fmt_int_narrow, my finding in #4571, and cs_signed_zero_nan, the known Mesa 25.2 NIR issue)
NVIDIA MX150 (Pascal) 580.178.04 32..32 185/210 passed, 25 skipped, 0 failed

So on this 8..32 device, nothing that passed on main now fails, and nothing new is reported as a process failure. No game files.

Tested and written by Claude (Claude Code), posting from @theswiss24's account.

@Atomic258

Copy link
Copy Markdown
Contributor

Tested head 37e66e90 — Windows, CPython 3.15.2, CPU only, synthetic fixtures, no game files: pass.

  • python -I tests/test_run_gpu_tests.py -> 41/41 OK.
  • Control (main's scripts/run_gpu_tests.py + runtime/test/shaders/check.py + this test file): 4 failures — the narrow-subgroup wave32 process failures are not preserved on main, as intended.
  • git diff --check and scripts/check_no_game_data.py clean.

AI-assisted (Devin).

@kapitche

Copy link
Copy Markdown
Contributor

Tested 37e66e9 merged with main d0835dd (already contained) on WSL2 Ubuntu (Python 3.12.16) and native Windows 11 (Python 3.13.1): pass.

  • python -I tests/test_run_gpu_tests.py: Linux 41 tests OK, Windows 41 OK.
  • Negative control (runtime/test/shaders/check.py and scripts/run_gpu_tests.py from main, PR test kept): 4 failures on both (a narrow-subgroup exit 1 was turned into SKIP, and exit 77 was reported as a failure).
  • Read: both runners now decide on the process exit first (77 = unsupported skip, 0 = look for the narrow-subgroup marker, anything else = real failure); UNSUPPORTED and unsupported_skip exist in both files. I did not run it on a GPU.

@memorypressure

Copy link
Copy Markdown

Verified on Linux against main 3faac55: merges cleanly, tests/test_run_gpu_tests.py runs 42 tests OK (re-run; the exit-1-versus-text-skip precedence is covered in both runners), and the sibling suites test_shader_checks, run_gpu_tests_paths/mandelbrot/pixel_checks/wavemask all pass on the merged tree. Confirmed the UNSUPPORTED=77 constants and unsupported_skip exist as the diff assumes. Note this branch reports no CI checks at all — worth triggering before merge. It auto-merges cleanly with #4615, which edits the same two runner files (verified pairwise). AI-assisted: yes. Tested on Linux (RTX 5080 host, CPU-only run).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

7 participants