run_gpu_tests: record the cs_tbuffer_store verdict (GPU-RUNNER-TBUFFER-VERDICT) #609

Manually merged
github merged 1 commit from gh-pr/609/head into gh-pr/609/base 2026-11-26 09:11:28 +00:00
Owner

@⁠TuroYT on GitHub · 2026-11-24 09:53 UTC · original
TuroYT:fix/gpu-runner-tbuffer-verdict → main · +48 −0 · 2 files · 1 commits · merged 2026-11-25 21:27 UTC

Claimed in the coordination issue as: GPU-RUNNER-TBUFFER-VERDICT (#14)

What was wrong: in scripts/run_gpu_tests.py, the cs_tbuffer_store branch of run_suite (line 1056) called tbuffer_store_test and never appended the verdict to results. Every neighbouring branch does. A failing test was missing from the summary, and a run filtered to this test reported "no runnable GPU test cases".

What changed: one line after the call, the same results.append((name, not problem, problem or "128/128 dumped words exact")) the other branches use. The count is 52 region words plus 76 untouched words, which is len(TBUFFER_STORE_WORDS) + 76 in runtime/test/shaders/check.py. A Skip verdict still shows as SKIP through the existing isinstance(detail, Skip) check in the summary. Three CPU-only tests in tests/test_run_gpu_tests.py (class TbufferStoreVerdict) cover a failure, a pass and a device skip, with tbuffer_store_test patched.

Tested:

  • python3 -m compileall -q scripts tests: no output, exit 0.
  • python3 -I tests/test_run_gpu_tests.py before the fix: Ran 67 tests, FAILED (failures=3), the three new tests (the runner printed no FAIL/PASS/SKIP row for cs_tbuffer_store).
  • python3 -I tests/test_run_gpu_tests.py after the fix: Ran 67 tests, OK.
  • python3 -I scripts/check_no_game_data.py scripts/run_gpu_tests.py tests/test_run_gpu_tests.py: exit 0.

Not tested: a real GPU run of cs_tbuffer_store (no GPU here, and the test needs the retail package for the translator fixture). The new tests do not run the real vk_compute_test.

AI-assisted (Claude Code).

**@⁠TuroYT** on GitHub · 2026-11-24 09:53 UTC · [original](https://github.com/ubiquitarianism/leonida/pull/609) `TuroYT:fix/gpu-runner-tbuffer-verdict` → `main` · +48 −0 · 2 files · 1 commits · merged 2026-11-25 21:27 UTC Claimed in the coordination issue as: GPU-RUNNER-TBUFFER-VERDICT (https://git.gtahub.st/github/ubiquitarianism--leonida/issues/14) What was wrong: in `scripts/run_gpu_tests.py`, the `cs_tbuffer_store` branch of `run_suite` (line 1056) called `tbuffer_store_test` and never appended the verdict to `results`. Every neighbouring branch does. A failing test was missing from the summary, and a run filtered to this test reported "no runnable GPU test cases". What changed: one line after the call, the same `results.append((name, not problem, problem or "128/128 dumped words exact"))` the other branches use. The count is 52 region words plus 76 untouched words, which is `len(TBUFFER_STORE_WORDS) + 76` in `runtime/test/shaders/check.py`. A `Skip` verdict still shows as SKIP through the existing `isinstance(detail, Skip)` check in the summary. Three CPU-only tests in `tests/test_run_gpu_tests.py` (class `TbufferStoreVerdict`) cover a failure, a pass and a device skip, with `tbuffer_store_test` patched. Tested: - `python3 -m compileall -q scripts tests`: no output, exit 0. - `python3 -I tests/test_run_gpu_tests.py` before the fix: `Ran 67 tests`, `FAILED (failures=3)`, the three new tests (the runner printed no FAIL/PASS/SKIP row for cs_tbuffer_store). - `python3 -I tests/test_run_gpu_tests.py` after the fix: `Ran 67 tests`, `OK`. - `python3 -I scripts/check_no_game_data.py scripts/run_gpu_tests.py tests/test_run_gpu_tests.py`: exit 0. Not tested: a real GPU run of cs_tbuffer_store (no GPU here, and the test needs the retail package for the translator fixture). The new tests do not run the real `vk_compute_test`. AI-assisted (Claude Code).
The cs_tbuffer_store branch of run_suite computed its verdict and never
appended it to results, so a failing test was missing from the summary
(a filtered run reported no runnable test at all). The branch now records
the verdict like its neighbours. A Skip still shows as SKIP.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 09:11:26 +00:00
github manually merged commit 7b94777c62 into gh-pr/609/base 2026-11-26 09:11:28 +00:00
Author
Owner

@⁠MoonEyes on GitHub · 2026-11-24 13:56 UTC · original

Reviewed locally at 7b94777c6.

  • The added line matches the neighbouring cs_fmt_* branches, and tbuffer_store_test goes through the same dump_test, so the verdict is read the same way. 128 is right: len(TBUFFER_STORE_WORDS) is 52, plus 76 untouched words.
  • No false pass: every failure path of dump_test (non-zero exit, no dump file, wrong size, wrong word) returns a non-empty string, and a Skip is turned into SKIP by the summary's isinstance(detail, Skip) before counting.
  • python -I tests/test_run_gpu_tests.py: 67 tests OK. With only the fix line removed: 3 failures, the three new tests, so they catch the bug.
  • check_no_game_data.py on both files: exit 0. Merges cleanly into current main (2d73c242f). No other open PR touches run_gpu_tests.py.

Not checked: a real GPU run.

AI-assisted review (Claude Code).

**@⁠MoonEyes** on GitHub · 2026-11-24 13:56 UTC · [original](https://github.com/ubiquitarianism/leonida/pull/609#issuecomment-7133582528) Reviewed locally at 7b94777c6. - The added line matches the neighbouring `cs_fmt_*` branches, and `tbuffer_store_test` goes through the same `dump_test`, so the verdict is read the same way. 128 is right: `len(TBUFFER_STORE_WORDS)` is 52, plus 76 untouched words. - No false pass: every failure path of `dump_test` (non-zero exit, no dump file, wrong size, wrong word) returns a non-empty string, and a `Skip` is turned into SKIP by the summary's `isinstance(detail, Skip)` before counting. - `python -I tests/test_run_gpu_tests.py`: 67 tests OK. With only the fix line removed: 3 failures, the three new tests, so they catch the bug. - `check_no_game_data.py` on both files: exit 0. Merges cleanly into current main (2d73c242f). No other open PR touches `run_gpu_tests.py`. Not checked: a real GPU run. AI-assisted review (Claude Code).
Author
Owner

@⁠aslan2142 on GitHub · 2026-11-25 21:27 UTC · original

Merged, thanks! The new test fails on main and passes with this.

  • Checked on main b26320c22 + 7b94777c6: the semantic suite passes (491 files, 6,312 tests, 0 files failed); test_run_gpu_tests, test_shader_checks pass; the 15 docs and writer tests pass; check_no_game_data.py is clean on the 2 changed files.

AI-assisted (Claude Code, Claude Opus 5.5).

**@⁠aslan2142** on GitHub · 2026-11-25 21:27 UTC · [original](https://github.com/ubiquitarianism/leonida/pull/609#issuecomment-7175107818) Merged, thanks! The new test fails on `main` and passes with this. - **Checked on `main` `b26320c22` + `7b94777c6`:** the semantic suite passes (491 files, 6,312 tests, 0 files failed); `test_run_gpu_tests`, `test_shader_checks` pass; the 15 docs and writer tests pass; `check_no_game_data.py` is clean on the 2 changed files. AI-assisted (Claude Code, Claude Opus 5.5).
This discussion has been locked. Commenting is limited to contributors.
No description provided.