[PR #452] make_game: scope interrupted shader-shard reuse to translator inputs #503

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

📋 Pull Request Information

Original PR: https://github.com/ubiquitarianism/leonida/pull/452
Author: @EdenBendheim
Created: 11/24/2026
Status: 🔄 Open

Base: main ← Head: ubiq/shader-shard-reuse-digest


📝 Commits (1)

  • 805d476 Scope interrupted shader-shard reuse to translator inputs

📊 Changes

2 files changed (+79 additions, -36 deletions)

View changed files

📝 make_game.py (+3 -16)
📝 tests/test_make_game_resume.py (+76 -20)

📄 Description

Claim: https://github.com/ubiquitarianism/leonida/issues/14#issuecomment-7123162857

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.

🔄 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/452 **Author:** [@EdenBendheim](https://github.com/EdenBendheim) **Created:** 11/24/2026 **Status:** 🔄 Open **Base:** `main` ← **Head:** `ubiq/shader-shard-reuse-digest` --- ### 📝 Commits (1) - [`805d476`](https://github.com/ubiquitarianism/leonida/commit/805d47615dda77129576486f48ca7de8bf010b48) Scope interrupted shader-shard reuse to translator inputs ### 📊 Changes **2 files changed** (+79 additions, -36 deletions) <details> <summary>View changed files</summary> 📝 `make_game.py` (+3 -16) 📝 `tests/test_make_game_resume.py` (+76 -20) </details> ### 📄 Description Claim: https://github.com/ubiquitarianism/leonida/issues/14#issuecomment-7123162857 ### 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. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
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#503
No description provided.