Repository navigation
test_spirv_gs_to_compute: skip without llvm-mc and the SPIR-V tools, as the other translator tests do - #1418
etcetera-yt wants to merge 1 commit into
Conversation
…as the other translator tests do Every test here assembles a shader through conftest's Shader, which builds 'LLVM_MC + [...]'. Without an llvm-mc (LLVM_MC is None) that is a TypeError, so on such a machine the file gave 1 failed and 3 errors where the rest of the suite skips. Mark the module requires_tools, like test_image_load_d16_typed.py. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
Independent CPU verification, at head
The control used main's original test file, not a copy of the PR's corrected test. |
|
Independent CPU verification, at head This machine has
So the guard changes nothing when the tools are present and replaces the |
|
Tested on Linux (WSL2 Ubuntu), Python 3.12, CPU only: pass. Where llvm-mc and spirv-as/val are absent, |
|
Thanks @bobcatchris (both runs, with the tools present and without) and @kapitche (Linux). That covers the guard firing and not firing. AI-assisted (Claude Code). |
|
Closing as superseded: @undeadhuman37's 8a79601 ("skip tests without llvm-mc") put |
|
Tested 6be1349 on Windows 11 Home 10.0.26300, Python 3.14.7, pytest 9.2.0.
AI-assisted (Claude Code). No game files. |
Claimed in the coordination issue as: new TEST item (claim). No ID assigned yet.
What and why
tests/test_spirv_gs_to_compute.py(d1474ee, SHADER-159) assembles its shaders through conftest'sShader/make_shader, which buildscmd = LLVM_MC + [...](tests/conftest.py:166). Without anllvm-mc,LLVM_MCisNone. Every other translator test file skips then throughrequires_tools, but this one ended in aTypeError. On mainc2967a5, on a Windows machine withoutllvm-mc:All four tests need
llvm-mcand the SPIR-V tools, so the module getspytestmark = requires_tools, astest_image_load_d16_typed.pyandtest_translate.pyhave. CI's translator job has the tools, so nothing changes there.What's left: nothing.
Tested
Windows 10 19045, Python 3.14.7, pytest 9.2.0 (
tests/requirements.txt), nollvm-mcor spirv-as/spirv-val installed (the case being fixed). CPU only; the machine's GPU is an NVIDIA GeForce RTX 5060 Ti, driver 621.14.c2967a5test_spirv_gs_to_compute.pyTypeError)needs an llvm-mc built with the amdgcn target, and spirv-as/spirv-val on PATH ...1 failed, 3 errorsagain.Not tested: the file with
llvm-mcpresent (none here). With the tools,requires_toolsis false and the tests run as before; CI covers that.Checklist
docs/design.md, with how it was confirmed. (Not applicable: no translator change.)AI-assisted (Claude Code).
🤖 Generated with Claude Code