translator deps: list rdna2_decode and rdna2_isa_tables (three tests red on main since #462) #529
No reviewers
Labels
No labels
accessibility
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
missing claim
needs rebase
question
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/ubiquitarianism--leonida!529
Loading…
Reference in a new issue
No description provided.
Delete branch "gh-pr/529/head"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
@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 UTCClaimed in the coordination issue as: #14
What and why
Since #462 (
c93245784),tools/rdna2spirv.pyimportsrdna2_decode, which importsrdna2_isa_tables. Neither module is in the three lists that track what the translator reads. Each list has a test, so three tests fail onmain: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, andmake_game.pykeeps the old translation.tests/test_runtime_paths.py: thepushandpull_requestpath filters in.github/workflows/runtime.ymlare 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_SOURCESchanges 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.
mainc023a365aall three tests fail. With this change:test_cmake_translator_deps5 OK,test_shader_stage_resume46 OK andtest_runtime_paths5 OK, on 3.14.8 and 3.12.10. After rebasing on554181222, the same three pass again on 3.14.8.test_make_game_translator_flags(33 tests) andtest_make_game_dry_run(24 tests): OK on both versions.test_tool_stdout_encoding(tools/pr_conflict_label.py). It fails onmaintoo, and #367 fixes it.python -m compileall -q make_game.py tools tests,git diff --checkandscripts/check_no_game_data.pyon the changed files: clean.GPUs tested: n/a (no GPU tests involved)
AI-assisted: yes
Checklist
mainand merges cleanly (a conflicting pull request is labeledneeds rebase).docs/design.md, with how it was confirmed. (n/a: no translator rule changes)@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 maind42773d, 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).