Repository navigation
test_lds_src2: feed llvm-mc through stdin, so a WSL LLVM_MC can read it (TEST-LDS-SRC2-MC-STDIN) - #1733
test_lds_src2: feed llvm-mc through stdin, so a WSL LLVM_MC can read it (TEST-LDS-SRC2-MC-STDIN)#1733MoonEyes wants to merge 3 commits into
Conversation
…it (TEST-LDS-SRC2-MC-STDIN)
assemble() wrote the listing to a temporary file and passed its path to
llvm-mc. With LLVM_MC set to the WSL form tools/mc_command.py documents
(wsl -d Ubuntu -e /usr/lib/llvm-21/bin/llvm-mc), llvm-mc runs inside WSL
and cannot open the Windows path, so every EncodingTests subtest failed
("No such file or directory") instead of checking the encodings. It now
reads stdin, as tools/shader_disasm.py does; the text is ASCII either way.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
lixonik
left a comment
There was a problem hiding this comment.
Independent A/B at 3d910f1f against 57ba40bd. I ran the Windows CPython 3.12.1 semantic runner with LLVM_MC invoking real LLVM 21.1.8 under Ubuntu/WSL. The base failed 63 subtests because llvm-mc received a Windows temporary path. All five tests passed on the PR with the same tool command. With llvm-mc intentionally unavailable, the two CPU cases passed and the three encoding tests skipped as expected.
AI-assisted testing. Synthetic assembly only, no GPU or game data.
|
Independent verification of head
No game files. AI-assisted (Claude Code). |
|
Merged current main ( Re-ran locally on Windows with About the four red jobs of the earlier CI run (it ran on a base 512 commits old):
AI-assisted: yes (Claude Code, Claude Opus 5.5, ran the tests and drafted this) |
Claimed in the coordination issue as: TEST-LDS-SRC2-MC-STDIN
What and why
tests/semantic/test_lds_src2.py'sassemble()wrote the listing to a temporary file and passed its path to llvm-mc. WithLLVM_MCset to the WSL command thattools/mc_command.pyand the build's error message document (wsl -d Ubuntu -e /usr/lib/llvm-21/bin/llvm-mc), llvm-mc runs inside WSL and cannot open the Windows temp path, so everyEncodingTestssubtest failed (llvm-mc: error: C:\...\in.s: No such file or directory) instead of checking the encodings. It now feeds llvm-mc through stdin, astools/shader_disasm.pydoes, and the now unusedtempfileimport goes. Same class of problem as TEST-CUBE-WINPATH (#419) in another test.Tested
Windows 11, Python 3.14,
python -I scripts/run_semantic_tests.py tests/semantic -p test_lds_src2.py:LLVM_MC=wsl -d Ubuntu -e /usr/lib/llvm-21/bin/llvm-mc(llvm 21)The rest of the suite is unchanged by this PR (one test file touched).
GPUs tested: n/a
AI-assisted: yes (Claude Code made the change and ran the tests; I checked them)
Checklist
mainand merges cleanly (a conflicting pull request is labeledneeds rebase).docs/design.md, with how it was confirmed. (n/a)🤖 Generated with Claude Code