Repository navigation
run_gpu_tests: keep stdout and stderr apart in a failure detail (TEST-388) - #2354
zxcvqwerasdf wants to merge 1 commit into
Conversation
|
Full suite on the rebased head
Green on this head: |
|
Tested ffea1ac on AMD Radeon RX 9070 XT (RADV GFX1201) and the Ryzen 7 9800X3D iGPU (RADV RAPHAEL_MENDOCINO, gfx1036), Mesa 26.2.6, Linux 7.3.4: pass, no regressions.
No game files. AI-assisted. |
|
Tested ffea1ac on an RX 9070 (RDNA4), AMD 26.11.1 (LLPC), Vulkan 1.4.359, Windows 11: pass
AI-assisted |
|
Tested Runtime and test programs built from this head (MSVC 14.51, Ninja, RelWithDebInfo), native Windows
With the new AI-assisted (Claude Code); I checked the results. |
|
Tested
Verdict and exit code are unchanged in both cases (FAIL, exit 1), and the stderr text is now labelled instead of being indistinguishable from stdout. One process note: #2302 reworks the same No game files. AI-assisted verification. |
|
Tested ffea1ac 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). |
|
Tested ffea1ac on NVIDIA GeForce RTX 4060 Ti, driver 621.01, Windows 11 Home (build 26300): pass Ran: python -I scripts/run_gpu_tests.py --llvm-mc "wsl -d Ubuntu -e /usr/lib/llvm-21/bin/llvm-mc" --build --filter cs_lds Results:
CPU checks on this branch: tests/test_shader_checks.py 60 tests OK; tests/test_run_gpu_tests.py 38 tests OK; python -m unittest discover -s tests/semantic: 2567 tests OK. Notes:
|
|
Rebased on the round-42 main (head now űe94dd): kept its new \cwd\ keyword on un_cmd\ and the UNJUDGED_WORDS detail in \judge_cs_dump; the split-stream code sits next to both. \ ests/test_run_gpu_tests.py\ and \ ests/test_shader_checks.py\ re-run green on the rebased tree. |
ffea1ac to
561e94d
Compare
|
Tested
One wording nit, not blocking. With a non-zero exit and no result words, No game files. AI-assisted. |
|
Tested
No game files. AI-assisted (Claude Code). |
|
Tested 561e94d on NVIDIA GeForce RTX 5080 (driver 580.65.06), Linux, runner change only: pass
No game files. AI-assisted (Claude Code). |
|
Tested
Not run: other GPUs/vendors, Linux, the Vulkan validation layer (not installed). No game files. AI-assisted (Claude Code). |
TEST-388 (finding by @Zombins2): `run_cmd` returns stdout + stderr joined, and `vk_compute_test` prints its device line to stderr, so a failed launch or an unparseable result was reported as the device line alone — the same text in every case. `judge_cs_dump` returned the joined text on both failure paths, and `cs_cvt_f32_sat` printed its last line. `run_cmd(..., split=True)` now returns `(exit, stdout, stderr)`; `split_output` still accepts the old two-tuple, so a test that patches `run_cmd` the old way keeps working and the other 30 call sites are untouched. The two `judge_cs_dump` callers and `cs_cvt_f32_sat` pass the streams through, and `failure_detail` writes the status first — a signal by name, a Windows exception status in hex, or the exit code — then `no result words in the output` where that is what happened, then the stderr and stdout tails. A wrong word still reports just the words. Tests drive all three cases through `judge_cs_dump` and through the suite's `cs_cvt_f32_sat` loop, plus the `output:` label for callers that only kept joined text. With the script change stashed, the six new tests fail and the 32 existing ones pass. Overlaps with ItsNotRexed#2302 (@esteban-dcp), which landed on the same item a few minutes earlier and keeps the streams joined; this one adds the separation and differs in wording. Both fix it; the maintainer picks.
561e94d to
3748566
Compare
|
Tested
No game files. AI-assisted. |
Claimed as TEST-388 in #2078 (claim). Finding by @Zombins2.
Overlap: @esteban-dcp's #2302 landed on the same item a few minutes earlier and keeps the two streams joined. This one separates them, which is what the finding asks for; both fix the wording. Happy to close whichever the maintainer does not want.
What and why
run_cmdreturnedstdout + "\n" + stderrjoined, andvk_compute_testprints itsdevice: ...line to stderr — so a launch that failed, output that could not be parsed and a wrong value were all reported with the same device line.judge_cs_dumpreturned the joined text on both failure paths andcs_cvt_f32_satprinted its last line, i.e. exactly that device line.run_cmd(..., split=True)returns(exit, stdout, stderr).split_outputstill accepts the old two-tuple, so the ~30 call sites that do not need the streams are untouched and a test that patchesrun_cmdthe old way keeps working. The twojudge_cs_dumpcallers and thecs_cvt_f32_satloop pass the streams through, andfailure_detailbuilds the detail:exit_statusnames a POSIX signal (killed by SIGSEGV) and prints a Windows exception status in hex. A wrong word still reports only the words, so a numerical mismatch reads as one.Tests (
tests/test_run_gpu_tests.py)All three cases through
judge_cs_dumpand through the suite's realcs_cvt_f32_satbranch: failed launch, clean exit with no result words, wrong words, plus theoutput:label for a caller that only has joined text and the status formatting. With the script change stashed: the six new tests fail, the 32 existing ones pass.Ran on the rebased head:
tests/test_run_gpu_tests.pyandtests/test_shader_checks.py(all pass),python -m unittest discover -s tests/semantic(1671 tests OK),python -m compileall -q make_game.py tools tests scripts.CPU only, no device and no game files: the harness text is what is asserted, not a GPU run.
AI-assisted.