[PR #609] [MERGED] run_gpu_tests: record the cs_tbuffer_store verdict (GPU-RUNNER-TBUFFER-VERDICT) #652

Closed
opened 2026-11-26 20:18:36 +01:00 by 4ld0 · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/ubiquitarianism/leonida/pull/609
Author: @TuroYT
Created: 11/24/2026
Status: ✅ Merged
Merged: 11/25/2026
Merged by: @aslan2142

Base: main ← Head: fix/gpu-runner-tbuffer-verdict


📝 Commits (1)

  • 7b94777 run_gpu_tests: record the cs_tbuffer_store verdict (GPU-RUNNER-TBUFFER-VERDICT)

📊 Changes

2 files changed (+48 additions, -0 deletions)

View changed files

📝 scripts/run_gpu_tests.py (+1 -0)
📝 tests/test_run_gpu_tests.py (+47 -0)

📄 Description

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


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/ubiquitarianism/leonida/pull/609 **Author:** [@TuroYT](https://github.com/TuroYT) **Created:** 11/24/2026 **Status:** ✅ Merged **Merged:** 11/25/2026 **Merged by:** [@aslan2142](https://github.com/aslan2142) **Base:** `main` ← **Head:** `fix/gpu-runner-tbuffer-verdict` --- ### 📝 Commits (1) - [`7b94777`](https://github.com/ubiquitarianism/leonida/commit/7b94777c62e4e902fe6c7669725a046aa9b3c5d9) run_gpu_tests: record the cs_tbuffer_store verdict (GPU-RUNNER-TBUFFER-VERDICT) ### 📊 Changes **2 files changed** (+48 additions, -0 deletions) <details> <summary>View changed files</summary> 📝 `scripts/run_gpu_tests.py` (+1 -0) 📝 `tests/test_run_gpu_tests.py` (+47 -0) </details> ### 📄 Description 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). --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
4ld0 2026-11-26 20:18:36 +01:00
Sign in to join this conversation.
No labels
bug
pull-request
No milestone
No project
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.

Dependencies

No dependencies set

Reference
starred/leonida#652
No description provided.