[PR #604] [MERGED] make_game: the stage tool lists must name the decoder they run through (STAGE-DEP-CACHE) #645

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

📋 Pull Request Information

Original PR: https://github.com/ubiquitarianism/leonida/pull/604
Author: @Headache3318
Created: 11/24/2026
Status: ✅ Merged
Merged: 11/24/2026
Merged by: @ubiquitarianism

Base: main ← Head: fix/stage-dep-cache-decoder-tools


📝 Commits (1)

  • 76b9d17 make_game: the stage tool lists must name the decoder they run through

📊 Changes

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

View changed files

📝 make_game.py (+11 -3)
📝 tests/test_shader_stage_resume.py (+38 -0)

📄 Description

Claimed in the coordination issue as: STAGE-DEP-CACHE (issue #14, comment 7127857615). Depends on: none.

FSPX_TOOLS, LIBRARY_TOOLS and BVH_TOOLS key the shaders / pipeline-library / BVH caches on the bytes of the programs that produced them, but none of them names the decoder half of the chain: fspx_unpack.py --disasm imports shader_disasm.py (tools/fspx_unpack.py:205), which decodes through rdna2_decode.py, rdna2_isa_tables.py and mc_command.py, so an edited decoder leaves the old listings in the cache and translates them again. The library stage also carves through shader_carve.py (tools/shader_library.py:201), which was not listed either. Adds a tests/test_shader_stage_resume.py case that fails when a module the chain imports is missing from a list, so the next link cannot be left out silently.

AI-assisted (Hermes agent on behalf of @Headache3318). Tested at base 7430f59b2, Arch Linux, 8-core x86-64, python 3.14.9: python3 -I tests/test_shader_stage_resume.py, test_bvh_shaders_stage.py, test_fspx_shaders_stage.py, test_make_game_resume.py all OK; python3 -m compileall -q make_game.py tools tests exit 0; git diff --check clean; python3 -I scripts/check_no_game_data.py make_game.py tests/test_shader_stage_resume.py exit 0. No GPU run (another check on this box owns the GPU) and no game package on this machine, so no corpus count and no resume run against a real built work folder.


🔄 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/604 **Author:** [@Headache3318](https://github.com/Headache3318) **Created:** 11/24/2026 **Status:** ✅ Merged **Merged:** 11/24/2026 **Merged by:** [@ubiquitarianism](https://github.com/ubiquitarianism) **Base:** `main` ← **Head:** `fix/stage-dep-cache-decoder-tools` --- ### 📝 Commits (1) - [`76b9d17`](https://github.com/ubiquitarianism/leonida/commit/76b9d170cbf28cab82ab6abed660121b0f1a4b25) make_game: the stage tool lists must name the decoder they run through ### 📊 Changes **2 files changed** (+49 additions, -3 deletions) <details> <summary>View changed files</summary> 📝 `make_game.py` (+11 -3) 📝 `tests/test_shader_stage_resume.py` (+38 -0) </details> ### 📄 Description Claimed in the coordination issue as: STAGE-DEP-CACHE (issue #14, comment 7127857615). Depends on: none. `FSPX_TOOLS`, `LIBRARY_TOOLS` and `BVH_TOOLS` key the shaders / pipeline-library / BVH caches on the bytes of the programs that produced them, but none of them names the decoder half of the chain: `fspx_unpack.py --disasm` imports `shader_disasm.py` (tools/fspx_unpack.py:205), which decodes through `rdna2_decode.py`, `rdna2_isa_tables.py` and `mc_command.py`, so an edited decoder leaves the old listings in the cache and translates them again. The library stage also carves through `shader_carve.py` (tools/shader_library.py:201), which was not listed either. Adds a `tests/test_shader_stage_resume.py` case that fails when a module the chain imports is missing from a list, so the next link cannot be left out silently. **AI-assisted** (Hermes agent on behalf of @Headache3318). Tested at base `7430f59b2`, Arch Linux, 8-core x86-64, python 3.14.9: `python3 -I tests/test_shader_stage_resume.py`, `test_bvh_shaders_stage.py`, `test_fspx_shaders_stage.py`, `test_make_game_resume.py` all OK; `python3 -m compileall -q make_game.py tools tests` exit 0; `git diff --check` clean; `python3 -I scripts/check_no_game_data.py make_game.py tests/test_shader_stage_resume.py` exit 0. No GPU run (another check on this box owns the GPU) and no game package on this machine, so no corpus count and no resume run against a real built work folder. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
4ld0 2026-11-26 20:18:34 +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#645
No description provided.