[PR #529] [MERGED] translator deps: list rdna2_decode and rdna2_isa_tables (three tests red on main since #462) #577

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

📋 Pull Request Information

Original PR: https://github.com/ubiquitarianism/leonida/pull/529
Author: @Boost9898
Created: 11/24/2026
Status: ✅ Merged
Merged: 11/24/2026
Merged by: @QemmHD

Base: main ← Head: fix/translator-deps-rdna2-decode


📝 Commits (1)

  • 4d64b64 translator deps: list rdna2_decode and rdna2_isa_tables

📊 Changes

3 files changed (+7 additions, -1 deletions)

View changed files

📝 .github/workflows/runtime.yml (+4 -0)
📝 make_game.py (+1 -1)
📝 runtime/cmake/translator_deps.cmake (+2 -0)

📄 Description

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)

🔄 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/529 **Author:** [@Boost9898](https://github.com/Boost9898) **Created:** 11/24/2026 **Status:** ✅ Merged **Merged:** 11/24/2026 **Merged by:** [@QemmHD](https://github.com/QemmHD) **Base:** `main` ← **Head:** `fix/translator-deps-rdna2-decode` --- ### 📝 Commits (1) - [`4d64b64`](https://github.com/ubiquitarianism/leonida/commit/4d64b64d1bdbcb82debf5db6f0492e129a4ad2d2) translator deps: list rdna2_decode and rdna2_isa_tables ### 📊 Changes **3 files changed** (+7 additions, -1 deletions) <details> <summary>View changed files</summary> 📝 `.github/workflows/runtime.yml` (+4 -0) 📝 `make_game.py` (+1 -1) 📝 `runtime/cmake/translator_deps.cmake` (+2 -0) </details> ### 📄 Description 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) --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
4ld0 2026-11-26 20:18:21 +01:00
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#577
No description provided.