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

Merged
TuroYT merged 1 commit from upstream-pr/609 into main 2026-11-25 21:27:40 +00:00
TuroYT commented 2026-11-24 09:53:36 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by TuroYT on 2026-11-24T09:53:36Z.


Claimed in the coordination issue as: GPU-RUNNER-TBUFFER-VERDICT (https://github.com/ubiquitarianism/leonida/issues/14#issuecomment-7128001621)

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).

<!-- greyfinch-sync:ubiquitarianism/leonida:issue:5469887811 --> Imported from [ubiquitarianism/leonida](https://github.com/ubiquitarianism/leonida/pull/609). Originally posted by [TuroYT](https://github.com/TuroYT) on 2026-11-24T09:53:36Z. --- Claimed in the coordination issue as: GPU-RUNNER-TBUFFER-VERDICT (https://github.com/ubiquitarianism/leonida/issues/14#issuecomment-7128001621) 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).
MoonEyes commented 2026-11-24 13:56:54 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by MoonEyes on 2026-11-24T13:56:54Z.


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).

<!-- greyfinch-sync:ubiquitarianism/leonida:comment:7133582528 --> Imported from [ubiquitarianism/leonida](https://github.com/ubiquitarianism/leonida/pull/609#issuecomment-7133582528). Originally posted by [MoonEyes](https://github.com/MoonEyes) on 2026-11-24T13:56:54Z. --- 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).
aslan2142 commented 2026-11-25 21:27:43 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by aslan2142 on 2026-11-25T21:27:43Z.


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).

<!-- greyfinch-sync:ubiquitarianism/leonida:comment:7175107818 --> Imported from [ubiquitarianism/leonida](https://github.com/ubiquitarianism/leonida/pull/609#issuecomment-7175107818). Originally posted by [aslan2142](https://github.com/aslan2142) on 2026-11-25T21:27:43Z. --- 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).
Sign in to join this conversation.
No reviewers
No labels
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Reference
ProjectLeonida/mandy!609
No description provided.