translator deps: list rdna2_decode and rdna2_isa_tables (three tests red on main since #462) #529

Manually merged
github merged 1 commit from gh-pr/529/head into gh-pr/529/base 2026-11-26 09:06:36 +00:00
Owner

@⁠Boost9898 on GitHub · 2026-11-24 06:58 UTC · original
Boost9898:fix/translator-deps-rdna2-decode → main · +7 −1 · 3 files · 1 commits · merged 2026-11-24 07:37 UTC

Claimed in the coordination issue as: #14

What and why

Since #462 (c93245784), tools/rdna2spirv.py imports rdna2_decode, which imports rdna2_isa_tables. Neither module is in the three lists that track what the translator reads. Each list has a test, so three tests fail on main:

  • tests/test_cmake_translator_deps.py: LEONIDA_TRANSLATOR_DEPS (runtime/cmake/translator_deps.cmake) is missing both, so an edit to the decoder doesn't rebuild the GPU test shaders (BUILD-1064).
  • tests/test_shader_stage_resume.py: TRANSLATION_SOURCES (make_game.py) is missing both, so an edit to the decoder doesn't change the translator digest, and make_game.py keeps the old translation.
  • tests/test_runtime_paths.py: the push and pull_request path filters in .github/workflows/runtime.yml are missing both, so a change to the decoder alone doesn't start the runtime workflow.

This adds both modules to all three lists. Adding them to TRANSLATION_SOURCES changes the recorded digest, so an existing work folder translates once more after this lands, as after any other change to the translator.

Tested

Apple M4, macOS 26.5.1, Python 3.14.8 and 3.12.10, CPU only, no game files.

  • On main c023a365a all three tests fail. With this change: test_cmake_translator_deps 5 OK, test_shader_stage_resume 46 OK and test_runtime_paths 5 OK, on 3.14.8 and 3.12.10. After rebasing on 554181222, the same three pass again on 3.14.8.
  • test_make_game_translator_flags (33 tests) and test_make_game_dry_run (24 tests): OK on both versions.
  • The whole standard-library suite (469 files) on this branch has one failure, test_tool_stdout_encoding (tools/pr_conflict_label.py). It fails on main too, and #367 fixes it.
  • python -m compileall -q make_game.py tools tests, git diff --check and scripts/check_no_game_data.py on the changed files: clean.

GPUs tested: n/a (no GPU tests involved)

AI-assisted: yes

Checklist

  • Based on current main and merges cleanly (a conflicting pull request is labeled needs rebase).
  • One topic; follow-up work goes in a new pull request.
  • No game data, keys or decryption (CONTRIBUTING.md), including in logs or reports quoted here.
  • A new translator rule is in the contract table of docs/design.md, with how it was confirmed. (n/a: no translator rule changes)
**@⁠Boost9898** on GitHub · 2026-11-24 06:58 UTC · [original](https://github.com/ubiquitarianism/leonida/pull/529) `Boost9898:fix/translator-deps-rdna2-decode` → `main` · +7 −1 · 3 files · 1 commits · merged 2026-11-24 07:37 UTC Claimed in the coordination issue as: https://git.gtahub.st/github/ubiquitarianism--leonida/issues/14 ### What and why Since #462 (`c93245784`), `tools/rdna2spirv.py` imports `rdna2_decode`, which imports `rdna2_isa_tables`. Neither module is in the three lists that track what the translator reads. Each list has a test, so three tests fail on `main`: - `tests/test_cmake_translator_deps.py`: `LEONIDA_TRANSLATOR_DEPS` (`runtime/cmake/translator_deps.cmake`) is missing both, so an edit to the decoder doesn't rebuild the GPU test shaders (BUILD-1064). - `tests/test_shader_stage_resume.py`: `TRANSLATION_SOURCES` (`make_game.py`) is missing both, so an edit to the decoder doesn't change the translator digest, and `make_game.py` keeps the old translation. - `tests/test_runtime_paths.py`: the `push` and `pull_request` path filters in `.github/workflows/runtime.yml` are missing both, so a change to the decoder alone doesn't start the runtime workflow. This adds both modules to all three lists. Adding them to `TRANSLATION_SOURCES` changes the recorded digest, so an existing work folder translates once more after this lands, as after any other change to the translator. ### Tested Apple M4, macOS 26.5.1, Python 3.14.8 and 3.12.10, CPU only, no game files. - On `main` `c023a365a` all three tests fail. With this change: `test_cmake_translator_deps` 5 OK, `test_shader_stage_resume` 46 OK and `test_runtime_paths` 5 OK, on 3.14.8 and 3.12.10. After rebasing on `554181222`, the same three pass again on 3.14.8. - `test_make_game_translator_flags` (33 tests) and `test_make_game_dry_run` (24 tests): OK on both versions. - The whole standard-library suite (469 files) on this branch has one failure, `test_tool_stdout_encoding` (`tools/pr_conflict_label.py`). It fails on `main` too, and #367 fixes it. - `python -m compileall -q make_game.py tools tests`, `git diff --check` and `scripts/check_no_game_data.py` on the changed files: clean. GPUs tested: n/a (no GPU tests involved) AI-assisted: yes ### Checklist - [x] Based on current `main` and merges cleanly (a conflicting pull request is labeled `needs rebase`). - [x] One topic; follow-up work goes in a new pull request. - [x] No game data, keys or decryption (CONTRIBUTING.md), including in logs or reports quoted here. - [ ] A new translator rule is in the contract table of `docs/design.md`, with how it was confirmed. (n/a: no translator rule changes)
Since #462, tools/rdna2spirv.py imports rdna2_decode, which imports rdna2_isa_tables. Neither module was in the
three lists that track what the translator reads: LEONIDA_TRANSLATOR_DEPS (runtime/cmake/translator_deps.cmake),
TRANSLATION_SOURCES (make_game.py) and the runtime workflow's path filters. So test_cmake_translator_deps,
test_shader_stage_resume and test_runtime_paths fail on main, and an edit to the decoder neither rebuilds the GPU
test shaders, nor reruns translation, nor starts the runtime workflow.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 09:06:24 +00:00
github manually merged commit 4d64b64d1b into gh-pr/529/base 2026-11-26 09:06:36 +00:00
Author
Owner

@⁠QemmHD on GitHub · 2026-11-24 07:37 UTC · original

Merging. Why merged: my merge of #462 broke three repo-consistency tests on main (test_cmake_translator_deps, test_shader_stage_resume, test_runtime_paths): it added translator inputs (tools/rdna2_decode.py, tools/rdna2_isa_tables.py) without listing them where the translator's inputs are tracked. My pre-merge check ran the translator suites but not these three; my mistake, and thanks @⁠Boost9898 for the fix.
Why it's good: it lists the two modules in all three places (translator_deps.cmake, make_game.py's digest, and the runtime workflow's path filter; the workflow change only adds two paths, no permissions or steps). Verified on Windows 11: those three tests give 56 passed just before #462 (3eb813e), 53 passed / 3 failed with #462 and on main d42773d, and 56 passed with this PR. Note: the translator digest changes, so existing work folders re-translate once.

AI-assisted (Claude Code, Claude Opus 5.5).

**@⁠QemmHD** on GitHub · 2026-11-24 07:37 UTC · [original](https://github.com/ubiquitarianism/leonida/pull/529#issuecomment-7125199782) Merging. Why merged: my merge of #462 broke three repo-consistency tests on main (test_cmake_translator_deps, test_shader_stage_resume, test_runtime_paths): it added translator inputs (tools/rdna2_decode.py, tools/rdna2_isa_tables.py) without listing them where the translator's inputs are tracked. My pre-merge check ran the translator suites but not these three; my mistake, and thanks @⁠Boost9898 for the fix. Why it's good: it lists the two modules in all three places (translator_deps.cmake, make_game.py's digest, and the runtime workflow's path filter; the workflow change only adds two paths, no permissions or steps). Verified on Windows 11: those three tests give 56 passed just before #462 (3eb813e), 53 passed / 3 failed with #462 and on main d42773d, and 56 passed with this PR. Note: the translator digest changes, so existing work folders re-translate once. AI-assisted (Claude Code, Claude Opus 5.5).
This discussion has been locked. Commenting is limited to contributors.
No description provided.