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

Merged
Boost9898 merged 1 commit from upstream-pr/529 into main 2026-11-24 07:37:57 +00:00
Boost9898 commented 2026-11-24 06:58:45 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by Boost9898 on 2026-11-24T06:58:45Z.


Claimed in the coordination issue as: https://github.com/ubiquitarianism/leonida/issues/14#issuecomment-7124404311

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)
<!-- greyfinch-sync:ubiquitarianism/leonida:issue:5467615622 --> Imported from [ubiquitarianism/leonida](https://github.com/ubiquitarianism/leonida/pull/529). Originally posted by [Boost9898](https://github.com/Boost9898) on 2026-11-24T06:58:45Z. --- Claimed in the coordination issue as: https://github.com/ubiquitarianism/leonida/issues/14#issuecomment-7124404311 ### 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)
QemmHD commented 2026-11-24 07:37:54 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by QemmHD on 2026-11-24T07:37:54Z.


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).

<!-- greyfinch-sync:ubiquitarianism/leonida:comment:7125199782 --> Imported from [ubiquitarianism/leonida](https://github.com/ubiquitarianism/leonida/pull/529#issuecomment-7125199782). Originally posted by [QemmHD](https://github.com/QemmHD) on 2026-11-24T07:37:54Z. --- 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).
Sign in to join this conversation.
No reviewers
No labels
No milestone
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.

Reference
ProjectLeonida/mandy!529
No description provided.