Repository navigation
TEST-837: Require fresh GPU test readbacks - #3786
ItsNotRexed merged 1 commit into
Conversation
Kam471
left a comment
There was a problem hiding this comment.
Ran this at 99fb9e37 on Windows 11:
python -I tests/test_run_gpu_tests.py-> 39 tests, OK.python -I tests/test_shader_checks.py-> 72 tests, OK.compileallandgit diff --checkclean.
The fix closes both halves of the bug: the output is removed before the harness starts (so a fresh --work cannot raise FileNotFoundError on an exit-0 no-write), and exit 0 now requires the output to exist (so a reused --work cannot compare the previous frame). One helper used by both the runner and the mesh workgroup test keeps the two paths consistent.
Heads-up: #3785 also edits scripts/run_gpu_tests.py and tests/test_run_gpu_tests.py (its verdict_line change). The hunks look separate, but whichever of #3785/#3786 lands first, the other should rebase and rerun this pair. No test failure here.
|
Tested GPU suite, identical to the
The
Tests you changed: Limit to state: this run was green everywhere, so the new stale-readback detection never triggered in the output Machine: Linux Mint 22 (Ubuntu 24.04 base), NVIDIA driver 615.71.09, Vulkan 1.4.351, |
|
Verified at the head on Windows 11 / Python 3.13.0: Tests: branch 39 + 72 pass, merged 41 + 77, other Approve. AI-assisted review, no game files, no GPU. |
|
Tested
No game files. AI-assisted (Claude Code). |
Claimed as TEST-837 in coordination #3574.
What and why
With a reused
--workdirectory, an exit-0 harness that did not write a frame could pass by comparing the previous run's pixels. In a fresh directory the same exit could instead raiseFileNotFoundErrorand stop the suite. I reproduced both with the actualps_opsrunner path and a synthetic 4,096-pixel frame.Use one fresh-readback check for the runner's direct framebuffer-producing calls and the shared mesh workgroup test. Remove the previous output before starting the harness, then require the output file on exit 0. Preserve unsupported-device skips and launch failures. A missing frame is now a failed case with its own message, so the remaining cases can run.
Tested
python -I tests/test_run_gpu_tests.py(39 passed),python -I tests/test_shader_checks.py(72 passed), Python compilation andgit diff --checkpassed.vk_harness,vk_compute_test, andvk_store_test, then ranpython3 -I scripts/run_gpu_tests.py --llvm-mc /usr/lib/llvm-18/bin/llvm-mc --build /tmp/leonida-gpu --work /tmp/reused --filter ps_ops.asm --require-passtwice in the same work directory. Both runs passed with all 4,096 pixels exact.The change covers sequential reuse of the runner's work directory. Native GPU execution and the full unfiltered suite were outside this run. No game files used. AI-assisted (Codex).