check.py: an unsupported texture-constant or partial-wave test is a skip, not a failure (TEST-CHECK-UNSUPPORTED-SKIP) #1126

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

@⁠MalexAson on GitHub · 2026-11-24 18:57 UTC · original
MalexAson:fix/check-unsupported-skips → main · +108 −2 · 2 files · 1 commits · open

Claimed in the coordination issue as: TEST-CHECK-UNSUPPORTED-SKIP

What and why

runtime/test/shaders/check.py turns a test program's exit 77 ("unsupported: ...") into a skip in most checks. Three did not:

  • texture_constant_test (ps_gather_wrap, ps_gather_border, ps_gather4_c_l, ps_array_resinfo) had no UNSUPPORTED case, so vk_texture_test's 77 came out as exit 77: unsupported: ..., a failure.
  • partial_wave_test (cs_w64x_partial, cs_w64x_partial_scmp) returned failure() for any non-zero exit code before asking compute_unsupported().
  • table_fetch_test did return a Skip, but with the program's whole output instead of the usual one-line SKIP (unsupported: ...).

On a device without shaderInt64 (Intel Iris Xe, Windows driver 31.0.101.4255) check.py printed six failures and exited 1, where run_gpu_tests.py skips the same six tests. All three now report SKIP (unsupported: <reason>). In partial_wave_test a 77 that names no reason stays a failure, as compute_unsupported documents.

Tested

  • New tests/test_check_unsupported_skips.py, 9 tests fed the two programs' output from that driver: 9 fail on main, 9 pass with the change.
  • python -I on tests/test_partial_wave_subgroup.py, tests/test_shader_checks.py, tests/test_run_gpu_tests.py and tests/test_text_write_line_endings.py: OK. python -m compileall and scripts/check_no_game_data.py on the two changed files: clean.
  • Not re-run on a GPU without shaderInt64: the driver that showed it has been updated since. With Intel 32.0.101.7092, which reports shaderInt64, check.py exits 0 (170 of 222 pass, 52 skipped, on 3aa975421).

GPUs tested: Intel Iris Xe (8086:a7a0), Windows 11: Intel 31.0.101.4255 (where it was found) and 32.0.101.7092

AI-assisted: yes

Checklist

  • Based on current main and merges cleanly (a conflicting pull request is labeled needs rebase).
  • One topic; follow-up work goes in a new pull request.
  • No game data, keys or decryption (CONTRIBUTING.md), including in logs or reports quoted here.
  • A new translator rule is in the contract table of docs/design.md, with how it was confirmed. (no translator rule)

🤖 Generated with Claude Code

**@⁠MalexAson** on GitHub · 2026-11-24 18:57 UTC · [original](https://github.com/ubiquitarianism/leonida/pull/1126) `MalexAson:fix/check-unsupported-skips` → `main` · +108 −2 · 2 files · 1 commits · open Claimed in the coordination issue as: TEST-CHECK-UNSUPPORTED-SKIP ### What and why `runtime/test/shaders/check.py` turns a test program's exit 77 ("unsupported: ...") into a skip in most checks. Three did not: - `texture_constant_test` (`ps_gather_wrap`, `ps_gather_border`, `ps_gather4_c_l`, `ps_array_resinfo`) had no `UNSUPPORTED` case, so `vk_texture_test`'s 77 came out as `exit 77: unsupported: ...`, a failure. - `partial_wave_test` (`cs_w64x_partial`, `cs_w64x_partial_scmp`) returned `failure()` for any non-zero exit code before asking `compute_unsupported()`. - `table_fetch_test` did return a `Skip`, but with the program's whole output instead of the usual one-line `SKIP (unsupported: ...)`. On a device without `shaderInt64` (Intel Iris Xe, Windows driver 31.0.101.4255) `check.py` printed six failures and exited 1, where `run_gpu_tests.py` skips the same six tests. All three now report `SKIP (unsupported: <reason>)`. In `partial_wave_test` a 77 that names no reason stays a failure, as `compute_unsupported` documents. ### Tested - New `tests/test_check_unsupported_skips.py`, 9 tests fed the two programs' output from that driver: 9 fail on `main`, 9 pass with the change. - `python -I` on `tests/test_partial_wave_subgroup.py`, `tests/test_shader_checks.py`, `tests/test_run_gpu_tests.py` and `tests/test_text_write_line_endings.py`: OK. `python -m compileall` and `scripts/check_no_game_data.py` on the two changed files: clean. - Not re-run on a GPU without `shaderInt64`: the driver that showed it has been updated since. With Intel 32.0.101.7092, which reports `shaderInt64`, `check.py` exits 0 (170 of 222 pass, 52 skipped, on `3aa975421`). GPUs tested: Intel Iris Xe (8086:a7a0), Windows 11: Intel 31.0.101.4255 (where it was found) and 32.0.101.7092 AI-assisted: yes ### Checklist - [x] Based on current `main` and merges cleanly (a conflicting pull request is labeled `needs rebase`). - [x] One topic; follow-up work goes in a new pull request. - [x] No game data, keys or decryption (CONTRIBUTING.md), including in logs or reports quoted here. - [ ] A new translator rule is in the contract table of `docs/design.md`, with how it was confirmed. (no translator rule) 🤖 Generated with [Claude Code](https://claude.com/claude-code)
texture_constant_test had no UNSUPPORTED case and partial_wave_test returned failure() before asking
compute_unsupported(), so vk_texture_test's and vk_compute_test's exit 77 came out as "exit 77: unsupported: ...".
table_fetch_test returned a Skip holding the program's whole output. All three now report
"SKIP (unsupported: <reason>)", like the other checks.

Co-Authored-By: Claude Fable 5.2 <[email protected]>
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 09:39:25 +00:00
Author
Owner

@⁠abnalstlll-byte on GitHub · 2026-11-24 19:16 UTC · original · approved these changes

Reviewed and verified. Correctly translates process exit code 77 (unsupported) into SKIP (unsupported: ...) across texture_constant_test, partial_wave_test, and table_fetch_test in runtime/test/shaders/check.py, preventing false test suite failures on GPUs lacking optional features like shaderInt64. Verified via tests/test_check_unsupported_skips.py (9/9 PASS). 100% clean-room.

**@⁠abnalstlll-byte** on GitHub · 2026-11-24 19:16 UTC · [original](https://github.com/ubiquitarianism/leonida/pull/1126#pullrequestreview-6045742140) · **approved these changes** Reviewed and verified. Correctly translates process exit code 77 (`unsupported`) into `SKIP (unsupported: ...)` across `texture_constant_test`, `partial_wave_test`, and `table_fetch_test` in `runtime/test/shaders/check.py`, preventing false test suite failures on GPUs lacking optional features like `shaderInt64`. Verified via `tests/test_check_unsupported_skips.py` (9/9 PASS). 100% clean-room.
Author
Owner

@⁠Deedlyy on GitHub · 2026-11-24 20:15 UTC · original

Recommendation: [MERGE]

Reasoning: check.py treats exit 77 (unsupported) as a skip in texture_constant_test, partial_wave_test and table_fetch_test, matching the other checks, so unsupported hardware stops showing false failures. Small test-harness fix with 100 lines of tests. CI (label, change-scope, no-game-data and the Runtime jobs) is still queued awaiting maintainer workflow approval, so nothing has run in CI yet; GitHub reports no merge conflict with main. Merge once the queued checks are green.

Impact level: 3/10

**@⁠Deedlyy** on GitHub · 2026-11-24 20:15 UTC · [original](https://github.com/ubiquitarianism/leonida/pull/1126#issuecomment-7143257632) **Recommendation:** [MERGE] **Reasoning:** `check.py` treats exit 77 (unsupported) as a skip in `texture_constant_test`, `partial_wave_test` and `table_fetch_test`, matching the other checks, so unsupported hardware stops showing false failures. Small test-harness fix with 100 lines of tests. CI (label, change-scope, no-game-data and the Runtime jobs) is still queued awaiting maintainer workflow approval, so nothing has run in CI yet; GitHub reports no merge conflict with `main`. Merge once the queued checks are green. **Impact level:** 3/10
This pull request can be merged automatically.
This branch is out-of-date with the base branch
You are not authorized to merge this pull request.
View command line instructions

Checkout

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

Merge

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