Repository navigation
Conversation
The module uses the make_shader fixture, which needs llvm-mc, but unlike the other translator tests it was not gated by requires_tools. Without llvm-mc, pytest fails in fixture setup with TypeError: unsupported operand type(s) for +: 'NoneType' and 'list' instead of skipping.
Flyander
left a comment
There was a problem hiding this comment.
I compared both patches: #1418 already adds the same module-level pytestmark = requires_tools to this exact test file, with the same skip behavior. The coordinator has also flagged this TEST-203 overlap in #1380. Please close this duplicate or coordinate a distinct change before merge; #1418 is the earlier complete fix.
|
Superseded by Verified on The same failure the PR fixed is already gone, so I'm closing it rather than rebasing a duplicate. The branch |
What was wrong
tests/test_spirv_gs_to_compute.pyuses themake_shaderfixture, which shells out tollvm-mc, but it was the only translator test module not gated byrequires_tools. On a machine withoutllvm-mc, pytest crashes in fixture setup instead of skipping:All four tests take
make_shader(directly or through thegs_trifixture), so the module-level marker is correct. Sibling modules (test_translate.py,test_mesh_compute.py,test_image_load_d16_typed.py) already use it; this module (d1474ee1, SHADER-159) missed it.Fix
Before / after on the same machine (no
llvm-mc)Before:
1 failed, 3 errorsas above.After:
With the documented WSL tool setup (
LLVM_MC=wsl -d Ubuntu -e /usr/lib/llvm-21/bin/llvm-mc), the same four tests still run:4 passed.Full suite after the change:
4273 passed, 456 skipped, 24922 subtests passed(0 failures). The documented Windows CI loop also passes 151/151 stdlib test files, and the semantic suite is 1194 tests, OK.Test-only change; no game data.