Skip to content

Scope interrupted shader-shard reuse to translator inputs - #7828

Open
EdenBendheim wants to merge 1 commit into
ItsNotRexed:mainfrom
EdenBendheim:fix/shader-shard-reuse-digest
Open

EdenBendheim wants to merge 1 commit into
ItsNotRexed:mainfrom
EdenBendheim:fix/shader-shard-reuse-digest

Conversation

@EdenBendheim

Copy link
Copy Markdown

Claim: #7804 (comment)

What changed

  • make_game.py: Switch interrupted shader-shard plan fingerprinting in translate() to translation_sources_digest() (the same explicit 14-module + gfx10_formats.json translator dependency list already used for completed translations) instead of hashing every top-level file in tools/.
  • Adding or editing an unrelated script in tools/ now preserves completed shader shards on resume; editing any translator module or tools/gfx10_formats.json still invalidates them. Legacy shard plans written with the older digest rebuild cleanly once through the existing mismatch/cleanup path.
  • tests/test_make_game_resume.py (TranslatorDigestTest): Covers shard reuse after unrelated tool additions/edits, invalidation on translator or gfx10_formats.json edits, and one-time recovery from a legacy plan.

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).
  • Commands run:

@TieruYT

TieruYT commented Nov 23, 2026

Copy link
Copy Markdown

Windows, Python 3.13.7, synthetic inputs. Tested 16d3a5f with the same focused tests against the implementation at dde82f2.

All four translator-digest checks passed with synthetic shards. Editing an unrelated tool preserved the completed shard, changing translator inputs rebuilt the shards, and an old plan rebuilt exactly once. On the earlier implementation two checks failed: unrelated-tool reuse and one-time migration of the old plan.

AI-assisted verification · GPT-6.2 Astra Medium

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants