mirror of
https://github.com/ubiquitarianism/leonida.git
synced 2026-11-26 22:20:51 +01:00
[PR #5] [MERGED] tests: the BVH shader-stage fixture writes the FSPX key the step checks for #63
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#63
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/5
Author: @wavehs
Created: 11/24/2026
Status: ✅ Merged
Merged: 11/24/2026
Merged by: @ubiquitarianism
Base:
main← Head:test-bvh-fspx-cache-key📝 Commits (1)
90edda5tests: the BVH shader-stage fixture writes the FSPX key the step checks for📊 Changes
1 file changed (+4 additions, -2 deletions)
View changed files
📝
tests/test_bvh_shaders_stage.py(+4 -2)📄 Description
Claimed in the coordination issue as: none — the original project's coordination issue was lost with its repository, and this repository has no such issue yet. This fixes the red
tests/test_bvh_shaders_stage.pyonmain; no other open pull request touches it.Depends on: none.
What and why
make_game.fspx_cache_completeonly accepts an FSPX translation index whose compute row carriesfspx_code_sha256(added by32c010551), the key the runtime looks the program up by. The fakerdna2spirv.pyintests/test_bvh_shaders_stage.pystill wrote a row with just"stage": "cs", soshaders()treated the FSPX cache as incomplete and ranfspx_unpack.py+rdna2spirv.pyagain on every call. The test's secondstage()assertion then failed:The fake now writes the key, as the real translator does (
tests/test_fspx_shaders_stage.py:167). One test file, one row of the fake's index; no tool code changes.Tested
main@30daa6958, macOS 15 arm64 (Apple M3 Pro), CPython 3.15.2, CPU only, no game files:tests/test_bvh_shaders_stage.pymain@30daa6958FAILED (failures=1)— the diff aboveRan 13 tests ... OKAlso
python -I tests/test_fspx_shaders_stage.py→ 23 tests OK,python -m compileall -q make_game.py tools testsclean,python -I scripts/check_no_game_data.py tests/test_bvh_shaders_stage.pyclean.Not run: Windows, any GPU test, the translator suite (no translator code). The assertion is platform-neutral.
AI-assisted: yes.
Checklist
docs/design.md, with how it was confirmed. (Not applicable: no translator change.)🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.