Repository navigation
run_gpu_tests: a test program that dies puts its exit status in the FAIL line (runner part of #3174) - #3785
run_gpu_tests: a test program that dies puts its exit status in the FAIL line (runner part of #3174)#3785zzEmmazz wants to merge 3 commits into
Conversation
…AIL line Nineteen rows show the last output line of a test program that judges itself (cs_wavemask, cs_lds, cs_exec64, cs_bvh, cs_bvh32, the vk_store_test, vk_texture_test and vk_bindless_test rows). A program that died before its verdict had only printed its device or extension line, or nothing, so the row read "FAIL ps_tex" or "FAIL cs_sample_lz_int_d16 device: ..." (ItsNotRexed#3174). verdict_line() keeps the last line for exit 0 and uses check.py's failure() otherwise: "exit -11: device: ...", "exit 3221225477: no test output". The texture-constant rows no longer report "4096 pixels differ" for a frame that was never read. Pass/fail and the suite's exit code do not change. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Kam471
left a comment
There was a problem hiding this comment.
Ran this at d4d8c9c3 on Windows 11: python -I tests/test_run_gpu_tests.py -> 41 tests, OK; compileall and git diff --check clean.
verdict_line is applied to every self-judging row (compute wavemask, LDS/EXEC64/BVH, image store/load, texture, PS text) and delegates to check.failure(rc, msg, 1), so a program that died gets exit <status>: <last lines> instead of a misleading device line. The rc == 0 path keeps the last line unchanged, and the existing skip/translation-failure cases still pass. No blocking issue.
|
Tested at the head on Windows 11 / Python 3.13.0: The format is right: Minor: Approve. AI-assisted review, no game files, no GPU. |
|
Tested GPU suite on both cards, identical to the
One honest limit: because the whole suite was green on both cards, the new wording you added (the exit status in Machine: Linux Mint 22 (Ubuntu 24.04 base), NVIDIA driver 615.71.09, Vulkan 1.4.351, |
…atus-in-fail-line # Conflicts: # tests/test_run_gpu_tests.py
|
Tested
No game files. AI-assisted (Claude Code). |
|
Tested e8c9155 merged onto main 03b09a0 on an RTX 5090 (driver 616.92), Windows 11, Vulkan SDK 1.4.363. The GPU test programs were built from the same tree:
AI-assisted (Claude Code). |
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
|
Merged AI-assisted. |
|
Tested Rechecked the runner on the NVIDIA success path with AI-assisted verification with synthetic inputs. |
|
Tested da502d4 on NVIDIA RTX 4080, driver 610.88, Windows 11: pass Ran (MSVC 19.44 / VS 2022 BuildTools, Ninja, RelWithDebInfo, Vulkan SDK 1.4.363.0, native
AI-assisted. |
Refs #3174 (the runner's part; the Mesa crash is #3243's and the per-lane branch rows are not touched, so this does not close it)
Claimed in the coordination issue as: #3574 (comment)
What and why
In #3174 four rows fail without a reason:
FAIL cs_sample_lz_int_d16 device: ...,FAIL ps_texwith no detail, andFAIL ps_texture_sample/ps_texture_sample_d16 enabled VK_KHR_maintenance8. Their test programs had died (the other rows of the same report sayexit -11), but these rows print only the program's last output line, and a program that dies before its verdict has printed its device or extension line, or nothing.verdict_line(rc, msg)keeps the last line for exit 0 and otherwise usescheck.py'sfailure(), the format the other rows already have:exit -11: device: ...,exit 3221225477: no test output. It replaces the nine places with that expression, 19 rows:cs_wavemask,cs_lds,cs_exec64,cs_bvh,cs_bvh32,cs_imgstore,cs_imgload,cs_imgload_d16,cs_sample_lz_int_d16,ps_texture_sample,ps_cube_sample,ps_texture_sample_d16,ps_sample_c_lz,ps_sample_c_lz_a16,ps_gather_wrap,ps_gather_border,ps_array_resinfo,ps_tex,ps_imgatomic. The three texture-constant rows also stop reporting4096 pixels differ from ...after a non-zero exit, when no frame was read. Pass/fail and the suite's exit code do not change.#2302 and #2354 (TEST-388) do the same job for the
cs_*dump rows with their own helper; they touch none of these lines, but all three editscripts/run_gpu_tests.pyandtests/test_run_gpu_tests.py.Tested
python -I tests/test_run_gpu_tests.py: 41 tests pass. With only the new tests applied onf847748c: 27 failures and 1 error (13 rows x 2 exit codes, the pixel-count case, and the missing helper), for example['cs_lds', 'device: X'] != ['cs_lds', 'exit -11: device: X'].TestProgramThatDiesBeforeItsVerdictrunsrun_suitewithsubprocess.runstubbed, the test program returning -11 or 0xC0000005 after printing what the rows in GPU tests: 9 failures on Intel Arc B580 (Mesa 26.2.5) with texture/sample crashes and per-lane wave branch mismatch #3174 show. It is defined above the file's__main__block.tests/test_run_gpu_pixel_checks.py,test_run_gpu_tests_paths.py,test_run_gpu_wavemask.py,test_gpu_blocked_program.py,test_gpu_build_dir.py,test_gpu_test_timeout.py,test_gpu_unsupported_stage.py,test_shader_checks.py,test_ci_registration.py,test_text_write_line_endings.py: pass.python -m compileall -q make_game.py tools tests scripts: clean.python -I scripts/run_gpu_tests.py --build runtime\build, whole suite, onf847748cand with this change. Windows 11 (26200), MSVC 14.50 (VS 2026), llvm-mc 21.1.8, Vulkan SDK 1.4.363:ps_sdwa_f16_const, which fails onmaintoo (rdna2spirv: declare DenormPreserve 16 so a driver keeps f16 denormals (SHADER-526) #3040, rdna2spirv: widen f16 denormal operands without UnpackHalf2x16 (NVIDIA reads them as 0) #3220).Not checked: a test program that really crashes in a driver (neither GPU here crashes on these rows, so that path ran only through the stub), Linux, and the full
tests/andtests/semanticsuites.Checklist
docs/design.md, with how it was confirmed. (Not a translator rule.)AI-assisted.