tests/semantic: LEONIDA_REQUIRE_SPIRV_TOOLS=0 no longer requires the tools in active_cache and reg_ptr_hoist (TEST-REQUIRE-SPIRV-TOOLS-EQ-1) #1677
No reviewers
Labels
No labels
accessibility
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
missing claim
needs rebase
question
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/ubiquitarianism--leonida!1677
Loading…
Reference in a new issue
No description provided.
Delete branch "gh-pr/1677/head"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
@MoonEyes on GitHub · 2026-11-25 07:53 UTC · original
MoonEyes:tests/require-spirv-tools-eq-1→main· +2 −2 · 2 files · 1 commits · merged 2026-11-25 09:01 UTCClaimed in the coordination issue as: TEST-REQUIRE-SPIRV-TOOLS-EQ-1
What and why
.github/workflows/ci.yml:193setsLEONIDA_REQUIRE_SPIRV_TOOLSto'0'on non-Linux runners.tests/semantic/test_active_cache.py:56andtests/semantic/test_reg_ptr_hoist.py:59read it for truthiness, so"0"counted as "required", and both files failed in the Windowssemantic-testsleg, which has no SPIRV-Tools (main run 45369028646). They now compare with"1", astest_fma_khr.py,test_fma_khr_f64.pyandtest_spirv_tools_required.pyalready do.The two lines are the ones in draft #136 (carried over from old PR 9866). I asked there on 2026-11-24 whether anyone would rebase it down to them and had no answer, so this lands them on their own. #676 fixed the other two files of that Windows leg.
Tested
Windows 11, Python 3.14,
python -I scripts/run_semantic_tests.py tests/semantic -p <file>for both files:0113f81d46acGPUs tested: n/a
AI-assisted: yes (Claude Code made the change and ran the measurements; 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
@whoalin1 on GitHub · 2026-11-25 08:41 UTC · original
Independent verification (Windows, no SPIRV-Tools on PATH): 2-line fix (
== "1"instead of truthiness) confirmed — ci.yml setsLEONIDA_REQUIRE_SPIRV_TOOLS='0'on non-Linux which was truthy before, real bug.test_active_cache.py: unset->9 pass,=0->pass (previously failed),=1->8 expected failures without tools.test_reg_ptr_hoist.py: unset->5 pass,=0->pass,=1->4 expected failures. Only untested cell is tools-present+=1(no SPIRV-Tools installed); unaffected by this change. AI-assisted verification.@OreoFR on GitHub · 2026-11-25 08:43 UTC · original
Independent check on native Windows,
tests.semantic.test_active_cache+tests.semantic.test_reg_ptr_hoist. "No tools" means spirv-as and spirv-val offPATH; "tools" means the Vulkan SDK's are on it:LEONIDA_REQUIRE_SPIRV_TOOLSmain3f81d46ac0a9f8dc886011still requires the tools01main1On
main, these two files are the only readers of the variable that test it for truthiness;test_fma_khr,test_fma_khr_f64,test_sopc_validation,test_unary_f16_validationandtest_spirv_tools_requiredalready compare with"1". So the change covers every reader, and it matches theci.ymlswitch ('1'on Linux,'0'elsewhere).AI-assisted.
@aslan2142 on GitHub · 2026-11-25 09:01 UTC · original
Merged. Reviewed: the fix is right and covers every reader that tested the variable for truthiness.
git grep LEONIDA_REQUIRE_SPIRV_TOOLS: the other five readers already compare with"1", and no doc relies on the old meaning.spirv-as/spirv-valhidden:mainfails 12 tests with=0and this branch passes;=1still fails without the tools, and every case passes with them.main604ddff0b+a9f8dc886: the semantic suite passes (487 files, 6,279 tests, 0 files failed); the 14 docs and writer tests pass;check_no_game_data.pyis clean on the 2 changed files.Thanks, and thanks to whoalin1 and OreoFR for the Windows checks.
AI-assisted (Claude Code, Claude Opus 5.5).