[PR #1677] [MERGED] 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) #1690

Closed
opened 2026-11-26 20:22:07 +01:00 by 4ld0 · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/ubiquitarianism/leonida/pull/1677
Author: @MoonEyes
Created: 11/25/2026
Status: ✅ Merged
Merged: 11/25/2026
Merged by: @aslan2142

Base: main ← Head: tests/require-spirv-tools-eq-1


📝 Commits (1)

  • a9f8dc8 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)

📊 Changes

2 files changed (+2 additions, -2 deletions)

View changed files

📝 tests/semantic/test_active_cache.py (+1 -1)
📝 tests/semantic/test_reg_ptr_hoist.py (+1 -1)

📄 Description

Claimed in the coordination issue as: TEST-REQUIRE-SPIRV-TOOLS-EQ-1

What and why

.github/workflows/ci.yml:193 sets LEONIDA_REQUIRE_SPIRV_TOOLS to '0' on non-Linux runners. tests/semantic/test_active_cache.py:56 and tests/semantic/test_reg_ptr_hoist.py:59 read it for truthiness, so "0" counted as "required", and both files failed in the Windows semantic-tests leg, which has no SPIRV-Tools (main run 45369028646). They now compare with "1", as test_fma_khr.py, test_fma_khr_f64.py and test_spirv_tools_required.py already 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:

no SPIRV-Tools, unset no SPIRV-Tools, 0 no SPIRV-Tools, 1 SPIRV-Tools, 1
main 3f81d46ac pass fail fail (expected) not run
this PR pass pass fail (expected) pass

GPUs tested: n/a

AI-assisted: yes (Claude Code made the change and ran the measurements; I checked them)

Checklist

  • Based on current main and merges cleanly (a conflicting pull request is labeled needs rebase).
  • One topic; follow-up work goes in a new pull request.
  • No game data, keys or decryption (CONTRIBUTING.md), including in logs or reports quoted here.
  • A new translator rule is in the contract table of docs/design.md, with how it was confirmed. (n/a)

🤖 Generated with Claude Code


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/ubiquitarianism/leonida/pull/1677 **Author:** [@MoonEyes](https://github.com/MoonEyes) **Created:** 11/25/2026 **Status:** ✅ Merged **Merged:** 11/25/2026 **Merged by:** [@aslan2142](https://github.com/aslan2142) **Base:** `main` ← **Head:** `tests/require-spirv-tools-eq-1` --- ### 📝 Commits (1) - [`a9f8dc8`](https://github.com/ubiquitarianism/leonida/commit/a9f8dc886b25daa7bff5a6f08c83235a188a7637) 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) ### 📊 Changes **2 files changed** (+2 additions, -2 deletions) <details> <summary>View changed files</summary> 📝 `tests/semantic/test_active_cache.py` (+1 -1) 📝 `tests/semantic/test_reg_ptr_hoist.py` (+1 -1) </details> ### 📄 Description Claimed in the coordination issue as: TEST-REQUIRE-SPIRV-TOOLS-EQ-1 ### What and why `.github/workflows/ci.yml:193` sets `LEONIDA_REQUIRE_SPIRV_TOOLS` to `'0'` on non-Linux runners. `tests/semantic/test_active_cache.py:56` and `tests/semantic/test_reg_ptr_hoist.py:59` read it for truthiness, so `"0"` counted as "required", and both files failed in the Windows `semantic-tests` leg, which has no SPIRV-Tools (main run 45369028646). They now compare with `"1"`, as `test_fma_khr.py`, `test_fma_khr_f64.py` and `test_spirv_tools_required.py` already 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: | | no SPIRV-Tools, unset | no SPIRV-Tools, `0` | no SPIRV-Tools, `1` | SPIRV-Tools, `1` | |---|---|---|---|---| | main 3f81d46ac | pass | **fail** | fail (expected) | not run | | this PR | pass | **pass** | fail (expected) | pass | GPUs tested: n/a AI-assisted: yes (Claude Code made the change and ran the measurements; I checked them) ### Checklist - [x] Based on current `main` and merges cleanly (a conflicting pull request is labeled `needs rebase`). - [x] One topic; follow-up work goes in a new pull request. - [x] No game data, keys or decryption (CONTRIBUTING.md), including in logs or reports quoted here. - [ ] A new translator rule is in the contract table of `docs/design.md`, with how it was confirmed. (n/a) 🤖 Generated with [Claude Code](https://claude.com/claude-code) --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
4ld0 2026-11-26 20:22:07 +01:00
Sign in to join this conversation.
No labels
bug
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
starred/leonida#1690
No description provided.