OLD-10026: test: unit tests for tools/rdna2_isa_tables.py #1019
No reviewers
No assignees
Labels
No labels
bug
dependencies
documentation
enhancement
missing claim
needs rebase
needs-triage
question
ready-for-agent
submodules
No project
No milestone
Dependencies
No dependencies set
Notifications
1 participant
Due date
No due date set.
Reference
leonida/mandy!1019
Loading…
Reference in a new issue
No description provided.
Delete branch "carry/old-10026-rdna2-isa-tables"
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?
Pull request successfully merged and closed
Claimed in the coordination issue as: OLD-10026
What and why
Carries forward
old-pr/10026(draft #294) rebased onto currentmain:tools/rdna2_isa_tables.pycovering instruction tables, opcode lookups, operand constraints, and encoding classifications.Original commit preserved:
Ritolino <230431388+Ritolino@users.noreply.github.com>.Tested
python -I tests/test_rdna2_isa_tables.py: 5/5 passedpython -I scripts/check_no_game_data.py tests/test_rdna2_isa_tables.py: passed (no game data)python -I tests/test_text_write_line_endings.py: passedpython -m compileall -q make_game.py tools tests: cleanGPUs tested: n/a
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).Reviewed a29750431: ran
python3 -I tests/test_rdna2_isa_tables.pyon the PR tree and again with the file copied into a main worktree — OK, 5 tests in both (expected for a test-only PR over an unmodified module). Probed that the suite has teeth: the promoted-parity loops hit 190/41/79 real entries (not vacuous), the unmapped-SOP1 negative control holds (0x7F absent, max key 0x49), and everyTABLE_BOUNDSentry matchesrdna2_decode.py's field masks. No finding. AI-assisted review.Recommendation: Merge
Hi @klikso, thanks for these tests. I merged this pull request onto current
mainlocally and ran them: they pass, and they also pass on plainmain. The "Is it mergeable?" list in CONTRIBUTING.md asks for "A new test that fails onmainand passes with the pull request", so as it stands this one doesn't show a bug thatmainstill has. If one of these cases did fail before a fix that has since landed, could you say which commit, or add a case that still fails onmain? If the tests are meant to lock in behaviourmainalready has, please say so in the description and a maintainer can decide.AI-assisted (Claude Code, Claude Opus 5.5).
#1019 | head
a2975043142c24c7d445cbad334536e0977310ef|python3 -I tests/test_rdna2_isa_tables.py -v| red: 5 passed | green: 5 passed | Passed on both treesThis adds tests of the ISA tables, including decoding and invalid inputs. All five already passed on pinned main.
Copied the PR tests onto clean main
4a54aedcb6b66525e0c9f72a6ea10263337c9141for the baseline, then merged that main into the recorded PR head and reran those files. Ubuntu 26.04.1 (WSL2), Python 3.14.4. Unittest failure/error counts include subtests where applicable. AI-assisted with OpenAI Codex. Batch claim.Merged, thank you @klikso! This PR (OLD-10026: test: unit tests for tools/rdna2_isa_tables.py) passed its own tests with main merged in during sodove's verification of this shader batch, so it went in with the batch.
AI-assisted (Claude Code, Claude Opus 5.5), posted for the maintainers.