mirror of
https://github.com/ubiquitarianism/leonida.git
synced 2026-11-26 23:35:53 +01:00
[PR #1235] make_game: rebuild empty compute shader modules on resume #1265
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#1265
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/1235
Author: @titoreinaldo
Created: 11/24/2026
Status: 🔄 Open
Base:
main← Head:contrib/r2-cache📝 Commits (1)
bb68bb9make_game: rebuild empty cached compute shader modules📊 Changes
3 files changed (+32 additions, -13 deletions)
View changed files
📝
make_game.py(+10 -1)📝
tests/test_fspx_shaders_stage.py(+11 -7)📝
tests/test_library_shaders_stage.py(+11 -5)📄 Description
Claimed in the coordination issue as: BUILD-EMPTY-SPV-CACHE
Claim in #14
What and why
Both the FSPX and pipeline-library stages accepted a zero-byte
.spvif its filename, index and settings marker were still present. Rerunning the shaders step skipped the rebuild and left an unusable module for the runtime. The shared cache check now requires every indexed module to be a nonempty regular file. It uses one stat per entry.Tested
python -m pytest -q tests/test_fspx_shaders_stage.py tests/test_library_shaders_stage.py— 41 passed, plus 21 subtests passed.spirv-val --target-env vulkan1.2, and the third invocation preserved each module’s modification time.python -I make_game.py --helpandpython -m compileall -q make_game.py tools testspassed. The shared base58be9cdfran 6,168 translator tests in 470 files with zero failing files. Verified a clean merge withmainat705ea091.GPUs tested: CPU-only build and recovery on Windows 11 Pro 26H2 build 26300.9974, Python 3.12.14.
AI-assisted: yes, OpenAI Codex. All inputs were synthetic.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.