Repository navigation
Conversation
…TEST-961) assemble_to_s() raised RuntimeError for any fixture the installed llvm-mc rejects, and run_suite() assembled every fixture up front, so one such fixture ended the whole GPU suite before any test ran. The error is now caught per fixture: the fixture is left out of the translation and reported as `FAIL <name> llvm-mc: <first error: line>`, next to the existing "missing .spv" failure, and the other fixtures still run. Its old .spv in a reused --work folder is removed first, as for any fixture. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Kam471
left a comment
There was a problem hiding this comment.
Ran this at 0576550f on Windows 11: pytest tests/test_run_gpu_tests.py -q -> 42 passed, 46 subtests passed; git diff --check clean.
An assembler error on one fixture is now that test's failure instead of aborting the whole suite, matching the readback handling. No blocking issue.
|
Apple M2 validation of the runner change (macOS 26.4, MoltenVK 1.4.2 direct, subgroup 4..32, llvm-mc 23.1.6, clean full build exit 0). Tested head 0576550.
Head fetched read-only, no rebase/edit/push. Synthetic shaders and counts only; no game files. AI-assisted. |
|
Tested 0576550 on Windows 11, NVIDIA RTX 3070 / 617.42, llvm-mc 23.1.6: it does what TEST-961 asked.
AI-assisted (Claude). |
|
Windows GPU A/B with a reused work directory on Windows 11 28000.3501, RTX 4070 Ti SUPER / 617.14,
|
Flyander
left a comment
There was a problem hiding this comment.
An llvm-mc rejection is now isolated to that fixture, reported as a FAIL, and excluded from translation; stale SPIR-V is removed first. Missing llvm-mc and GPU capability skips keep their existing behavior.
whattheflop
left a comment
There was a problem hiding this comment.
AI-assisted Windows CPU verification at 0576550f with uv CPython 3.12.13. The runner, path, and LLVM command suites passed 79 tests.
A fresh and a reused work folder each produced PASS / FAIL / PASS in fixture order, 2/3 passed, exit 1. I placed the fake LLVM rejection between two ordinary pixel fixtures. Both siblings reached the translator and harness. The failed fixture showed the first LLVM error and its seeded stale SPIR-V was removed. Existing .s and .raw files for that fixture stayed on disk, but neither was used in the failed run.
A file-level dry merge of the runner with #4426 0d062f28 was clean and preserved both batch outcomes when fake tool output included non-UTF-8 bytes. The batch used stubbed tools and no GPU or game data.
|
Automated test:
Same machine and setup as my earlier manual reports. AI-assisted (Claude Code). |
|
APPROVE. The absent-assembler path is unchanged: Minor: Approve. AI-assisted review, no game files, no GPU. |
|
Tested
AI-assisted (Claude Code). Synthetic shaders only, no game files. |
Claimed in the coordination issue as: TEST-961 (claim; split with @LouisRiverstone, who keeps the #4337 fixture fix, here)
What and why
scripts/run_gpu_tests.pyassembles every fixture before running anything, andassemble_to_s()raisesRuntimeErrorwhen llvm-mc rejects one. So a single fixture the installed llvm-mc can't assemble (today #4337's new one, with llvm-mc 23.1.6) stopped the whole GPU suite before any test ran.The error is now caught per fixture in
run_suite():.spvin a reused--workfolder is still removed first);FAIL <name> llvm-mc: <first error: line>, next to the existingmissing .spv (translation failed)case;A missing llvm-mc is unchanged:
mc_command.runstill stops with its one-line message aboutLLVM_MC/--llvm-mc.Tested
Windows 11 Pro 25H2 (build 26200), Python 3.12.10, llvm-mc 23.1.6 (conda-forge), AMD Radeon RX 6800 (RDNA2), AMD 26.8.1. No game files.
python -I tests/test_run_gpu_tests.py: 42/42 OK, with two new tests inFixtureLlvmMcRejects: the rejected fixture is aFAILwith llvm-mc's error line, is not handed to the translator, nothing runs for it, and the suite returns 1 with0/1 passed;assembler_error()picks the firsterror:line. Againstmain'srun_gpu_tests.pythey fail (2 errors).python -I tests/test_run_gpu_tests_paths.py: 20/20 OK.cs_dpp8_bogus.asm(deleted afterwards) next tocs_dpp8,--filter cs_dpp8:python -m compileall -qon both files andgit diff --check: clean.AI-assisted (Claude Code).
Checklist
docs/design.md, with how it was confirmed. (N/A: test runner only.)🤖 Generated with Claude Code