Repository navigation
check: name a lost stdout when a compute test exits 0 with no result - #7439
bobcatchris wants to merge 2 commits into
Conversation
devnull34
left a comment
There was a problem hiding this comment.
Verified: passes all 13 tests in Wave32LaneDumps. When a compute test exits 0 with no result line matching expected patterns, it accurately clarifies '(no result line from vk_compute_test; stdout may have been lost)' instead of an ambiguous failure report.
|
I checked Four exit-zero inputs show where the final prefix check disagrees with the expected result format:
A fifth child printed only Valid results in all three formats passed. A wrong numeric dump retained its output, exit 1 retained the pipeline error, and exit 77 retained the unsupported-device skip. A local comparison change passed four focused regression methods on Windows Python 3.11.9 and 3.12.6. Discovery on its base and patch showed the same 15 existing mock errors. With #7094 applied to a scratch copy of the local patch, discovery passed 92/92. This replay exercised the Python checker on CPU. The cause of the GPU process's intermittent missing output remains open. |
|
Tested 2b47090 on Arch Linux, Python 3.14.10, CPU only: pass — Wave32LaneDumps 13/13 OK including the new lost-stdout test. Negative control: merge-base check.py → exactly 1 failure (the new test; old code prints the bare device line); the full file's 15 mock-harness errors are identical before/after, i.e. pre-existing. Complements #7484 (verified composable, different layers). No game files, no GPU. AI-assisted. |
|
Tested 2b47090 on Windows 11 (CPU only, no GPU needed): pass Windows 11 Pro, Python 3.14.7, CPU only (no GPU or game files involved); pytest/numpy/Pillow pinned from
Note: this PR and #7433 touch the same test file; with both applied the whole file is green. AI-assisted (Claude Code, Claude Opus 5.5). |
The exit-0 lost-stdout note matched a line prefix, so a truncated dump or a prefixed mismatch count silenced or contradicted it. Check the mode's actual result line and call an unreadable dump malformed.
|
Thanks for the replay. All five cases are handled at
Four focused regression methods cover the four table rows. They fail 4/4 at
AI-assisted. |
|
CPU-only check on Linux (Python 3.14.10, no GPU needed), base
Nothing found beyond the author's own report. AI-assisted. |
|
AI-assisted check on CachyOS x86-64, CPython 3.14.10. CPU only; GPU not used. Compared The correct eight-word dump passed on both. Head distinguished missing stdout from a truncated dump; base gave the same two stderr lines for both. One limit remains when the child returns a valid but wrong result: for a wrong eight-word dump, |
|
Tested
No game files. AI-assisted (Claude Code). |
Claimed on board #7333 (unclaimed finding 7107367864 by iTzAlvar). CPU-side diagnostic fix; no game data, no GPU needed to test it.
The finding reports compute runs that exit 0 with empty stdout, where
check.pyreported onlyexit 0: device: ...— the last stderr line — so the failure looked like a test result rather than a lost result line.compute_test()now appends an explicit note when the exit is 0 and noout[0..7],N mismatchesorcompute subgroup size:line was seen. This does not change which tests pass or fail, only the diagnostic.Tested: new regression
Wave32LaneDumps.test_exit_zero_without_a_result_line_says_stdout_was_lostfails on unpatched main with the exact message from the finding (exit 0: device: RTX 5080 ...), passes with the fix.python3 -I tests/test_shader_checks.py85 tests, with the same 15 pre-existingharness() got an unexpected keyword argument 'cwd'errors as clean main8575d36ed(84 tests, same 15 errors) — reproduced in a separate worktree, so no new errors.git diff --checkclean.AI-assisted.