mirror of
https://github.com/ubiquitarianism/leonida.git
synced 2026-11-26 23:10:53 +01:00
[PR #940] [CLOSED] tests/semantic: sopc and unary f16 validation skip spirv-val without SPIRV-Tools (TEST-SPIRV-TOOLS-OPTIONAL) #977
Labels
No labels
bug
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
starred/leonida#977
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
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?
📋 Pull Request Information
Original PR: https://github.com/ubiquitarianism/leonida/pull/940
Author: @Luna-OS
Created: 11/24/2026
Status: ❌ Closed
Base:
main← Head:fix/semantic-spirv-tools-optional📝 Commits (1)
773ce69tests/semantic: sopc and unary f16 validation skip spirv-val without SPIRV-Tools (TEST-SPIRV-TOOLS-OPTIONAL)📊 Changes
2 files changed (+9 additions, -2 deletions)
View changed files
📝
tests/semantic/test_sopc_validation.py(+5 -1)📝
tests/semantic/test_unary_f16_validation.py(+4 -1)📄 Description
Claimed in the coordination issue as: TEST-SPIRV-TOOLS-OPTIONAL (https://github.com/ubiquitarianism/leonida/issues/14#issuecomment-7135902691)
What and why
AGENTS.md says
python -I scripts/run_semantic_tests.py tests/semanticneeds no LLVM, SPIR-V tools or GPU. On a machine without SPIRV-Tools it ends red anyway:Both files assert that
spirv-as/spirv-valare on PATH (1 + 15 failures), while the other 60-odd files that use those tools skip the step. These two now use the same pattern astests/semantic/test_reg_ptr_hoist.py:spirv-as/spirv-valstep is skipped; the translation and the interpreter checks in the same tests still run (askipTestwould have dropped those too);LEONIDA_REQUIRE_SPIRV_TOOLS=1(the CI Linux leg,tests/semantic/test_spirv_tools_required.py) a missing tool is still a failure.Tested
Windows 11, Python 3.13.7, no SPIRV-Tools, no game files:
test_sopc_validation.py: OK (was 1 failure); withLEONIDA_REQUIRE_SPIRV_TOOLS=1: still fails, as intendedtest_unary_f16_validation.py: OK (was 15 failures); withLEONIDA_REQUIRE_SPIRV_TOOLS=1: still fails, as intendedtests/test_ci_registration.py: OKNot run with SPIRV-Tools installed here; the validation code path itself is unchanged.
GPUs tested: n/a
AI-assisted: yes (Claude Code)
Checklist
mainand merges cleanly.🤖 Generated with Claude Code
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.