make_game: scope interrupted shader-shard reuse to translator inputs #452

Open
github-bot wants to merge 1 commit from github-bot/gh-452 into main AGit
Owner

@⁠EdenBendheim on GitHub · 2026-11-24 05:40 UTC · original
EdenBendheim:ubiq/shader-shard-reuse-digest → main · +79 −36 · 2 files · 1 commits · open

Claim: #14

What changed

  • make_game.py: Use translation_sources_digest() (the explicit translator dependency list already used for completed translations) instead of hashing all top-level tools/ files when checking interrupted shader-shard plans on resume. Unrelated tools/ additions or edits now preserve completed shards; translator module or gfx10_formats.json edits still invalidate them, and legacy shard plans rebuild cleanly once.
  • tests/test_make_game_resume.py: Covers shard reuse after unrelated tool edits, invalidation on translator/format-table edits, and one-time recovery from a legacy plan (with LF writes pinned).

Testing & Disclosure

  • AI-assisted: Implemented with Codex (gpt-6.2-sol) and reviewed with Codex (gpt-6.2-astra).
  • Environment: macOS 27.3, Apple M1 Max (CPU-only, synthetic fixtures, zero game data).
  • Verified on ubiquitarianism/leonida main (8f481cf16): test_make_game_resume.py full suite (16/16), test_make_game_dry_run.py (24/24), check_no_game_data.py, LF check — all passed.
**@⁠EdenBendheim** on GitHub · 2026-11-24 05:40 UTC · [original](https://github.com/ubiquitarianism/leonida/pull/452) `EdenBendheim:ubiq/shader-shard-reuse-digest` → `main` · +79 −36 · 2 files · 1 commits · open Claim: https://git.gtahub.st/github/ubiquitarianism--leonida/issues/14 ### What changed - **`make_game.py`**: Use `translation_sources_digest()` (the explicit translator dependency list already used for completed translations) instead of hashing all top-level `tools/` files when checking interrupted shader-shard plans on resume. Unrelated `tools/` additions or edits now preserve completed shards; translator module or `gfx10_formats.json` edits still invalidate them, and legacy shard plans rebuild cleanly once. - **`tests/test_make_game_resume.py`**: Covers shard reuse after unrelated tool edits, invalidation on translator/format-table edits, and one-time recovery from a legacy plan (with LF writes pinned). ### Testing & Disclosure - **AI-assisted:** Implemented with Codex (`gpt-6.2-sol`) and reviewed with Codex (`gpt-6.2-astra`). - **Environment:** macOS 27.3, Apple M1 Max (CPU-only, synthetic fixtures, zero game data). - **Verified on `ubiquitarianism/leonida` `main` (`8f481cf16`):** `test_make_game_resume.py` full suite (16/16), `test_make_game_dry_run.py` (24/24), `check_no_game_data.py`, LF check — all passed.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 09:00:57 +00:00
Author
Owner

@⁠PierreEbele on GitHub · 2026-11-24 21:02 UTC · original

Reviewed 805d47615: the interrupted-shard plan now fingerprints
TRANSLATION_SOURCES instead of every file in tools/. Ran tests/test_make_game_resume.py on the
PR tree (16/16) and against main (the PR's copy fails there in exactly the 4 cases this changes),
plus the interrupt/translator-flags/cleanup/empty-translation/stage-resume/merge/cmake-deps
suites on the PR tree and on a simulated merge with current main — all pass. Also probed a real
rdna2spirv.py --shard run with a Python audit hook on both trees: it opens only
TRANSLATION_SOURCES files (0 misses, incl. gfx10_formats.json and the in-process assembler), so
the narrower fingerprint cannot reuse stale shards across a translator edit. AI-assisted review.

**@⁠PierreEbele** on GitHub · 2026-11-24 21:02 UTC · [original](https://github.com/ubiquitarianism/leonida/pull/452#issuecomment-7144403725) Reviewed 805d47615: the interrupted-shard plan now fingerprints TRANSLATION_SOURCES instead of every file in tools/. Ran tests/test_make_game_resume.py on the PR tree (16/16) and against main (the PR's copy fails there in exactly the 4 cases this changes), plus the interrupt/translator-flags/cleanup/empty-translation/stage-resume/merge/cmake-deps suites on the PR tree and on a simulated merge with current main — all pass. Also probed a real rdna2spirv.py --shard run with a Python audit hook on both trees: it opens only TRANSLATION_SOURCES files (0 misses, incl. gfx10_formats.json and the in-process assembler), so the narrower fingerprint cannot reuse stale shards across a translator edit. AI-assisted review.
This pull request can be merged automatically.
This branch is out-of-date with the base branch
You are not authorized to merge this pull request.
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin '+refs/pull/452/head:github-bot/gh-452'
git switch 'github-bot/gh-452'

Merge

Merge the changes and update on Forgejo.
git switch 'main'
git merge --no-ff 'github-bot/gh-452'
git switch 'github-bot/gh-452'
git rebase 'main'
git switch 'main'
git merge --ff-only 'github-bot/gh-452'
git switch 'github-bot/gh-452'
git rebase 'main'
git switch 'main'
git merge --no-ff 'github-bot/gh-452'
git switch 'main'
git merge --squash 'github-bot/gh-452'
git switch 'main'
git merge --ff-only 'github-bot/gh-452'
git switch 'main'
git merge 'github-bot/gh-452'
git push origin 'main'
This discussion has been locked. Commenting is limited to contributors.
No description provided.