Repository navigation
Conversation
…ST-604) Four semantic test files check the translated module with spirv-as and spirv-val and skip without them: test_bary_fallback.py, test_fma_khr.py, test_image_coherent.py and test_cmp_class_f32_mods.py. The semantic-tests job installed neither, so unittest reported them green on both runners although they never ran. The Ubuntu runner now installs spirv-tools and fails when the suite reports any skip. Windows still has no SPIRV-Tools, so its four checks skip there and run on Linux. tests/test_ci_registration.py checks that every tool a semantic test looks up with shutil.which() is apt-installed by that job, and that the job keeps failing on a Linux skip, with a self-test on the job as it was before. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Contributor
Author
|
Closing as a duplicate of #3091: @Etoile-Bleu claimed TEST-604 first (#2891 (comment)). I missed their claim because it landed just after I read the thread. Sorry for the noise. |
2 tasks done
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Item: TEST-604 (claim; finding by @tupacfan04).
What
Four semantic test files run spirv-as and spirv-val on the translated module and skip when those tools are missing. The
semantic-testsjob installed neither tool, so both runners reported these tests as passing even though they never ran:tests/semantic/test_bary_fallback.pytests/semantic/test_fma_khr.pytests/semantic/test_image_coherent.pytests/semantic/test_cmp_class_f32_mods.py. This fourth file wasn't in the finding; it reachedmainwith rdna2spirv: bitwise abs/neg in v_cmp(x)_class_f32 to preserve sNaNs (SHADER-457) #2542.Changes:
.github/workflows/ci.yml: on the Ubuntu runner,semantic-testsnow runsapt-get install spirv-tools, the same packagetranslator-testsuses. On Linux the job fails when unittest's summary reports anyskipped=, and it prints which tests were skipped. The Windows runner still has no SPIRV-Tools, so these four checks skip there and run on Linux. The step usesshell: bashandPYTHONUTF8=1soteeworks the same on both runners.tests/test_ci_registration.pyextends the tests: guard CI test registration across both jobs #2188 guard. Every tool a semantic test looks up withshutil.which()must be apt-installed bysemantic-tests. The job must still fail on a skip on Linux. A self-test rebuilds the job as it was before this PR and checks that both gaps are flagged, along with an unknown tool.Tested (Windows 11, no GPU needed)
python -I tests/test_ci_registration.py: 7/7 pass.python -m unittest discover -s tests/semantic -vwith SPIRV-Tools v2026.4 on PATH: 4,142 tests, OK, 0 skipped.ubuntu-latest(24.04) package locally, buttranslator-testsalready relies on it for the same flags (--target-env vulkan1.2,--allow-offset-texture-operand).AI-assisted (Claude Code).
🤖 Generated with Claude Code