OLD-10026: test: unit tests for tools/rdna2_isa_tables.py #1019

Open
github-bot wants to merge 1 commit from github-bot/gh-1019 into main AGit
Owner

@⁠klikso on GitHub · 2026-11-24 16:59 UTC · original
klikso:carry/old-10026-rdna2-isa-tables → main · +189 −0 · 1 files · 1 commits · open

Claimed in the coordination issue as: OLD-10026

What and why

Carries forward old-pr/10026 (draft #294) rebased onto current main:

  • Adds comprehensive unit tests for tools/rdna2_isa_tables.py covering instruction tables, opcode lookups, operand constraints, and encoding classifications.

Original commit preserved: Ritolino <[email protected]>.

Tested

  • python -I tests/test_rdna2_isa_tables.py: 5/5 passed
  • python -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: passed
  • python -m compileall -q make_game.py tools tests: clean

GPUs tested: n/a

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).
**@⁠klikso** on GitHub · 2026-11-24 16:59 UTC · [original](https://github.com/ubiquitarianism/leonida/pull/1019) `klikso:carry/old-10026-rdna2-isa-tables` → `main` · +189 −0 · 1 files · 1 commits · open Claimed in the coordination issue as: OLD-10026 ### What and why Carries forward `old-pr/10026` (draft #294) rebased onto current `main`: - Adds comprehensive unit tests for `tools/rdna2_isa_tables.py` covering instruction tables, opcode lookups, operand constraints, and encoding classifications. Original commit preserved: `Ritolino <230431388+[email protected]>`. ### Tested - `python -I tests/test_rdna2_isa_tables.py`: 5/5 passed - `python -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`: passed - `python -m compileall -q make_game.py tools tests`: clean GPUs tested: n/a 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. - [x] A new translator rule is in the contract table of `docs/design.md`, with how it was confirmed: n/a (no translator rule).
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 09:33:50 +00:00
Author
Owner

@⁠PierreEbele on GitHub · 2026-11-25 14:33 UTC · original

Reviewed a29750431: ran python3 -I tests/test_rdna2_isa_tables.py on 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 every TABLE_BOUNDS entry matches rdna2_decode.py's field masks. No finding. AI-assisted review.

Recommendation: Merge

**@⁠PierreEbele** on GitHub · 2026-11-25 14:33 UTC · [original](https://github.com/ubiquitarianism/leonida/pull/1019#issuecomment-7165452353) Reviewed a29750431: ran `python3 -I tests/test_rdna2_isa_tables.py` on 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 every `TABLE_BOUNDS` entry matches `rdna2_decode.py`'s field masks. No finding. AI-assisted review. **Recommendation:** Merge
This pull request can be merged automatically.
This branch is out-of-date with the base branch
You are not authorized to merge this pull request.
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin '+refs/pull/1019/head:github-bot/gh-1019'
git switch 'github-bot/gh-1019'

Merge

Merge the changes and update on Forgejo.
git switch 'main'
git merge --no-ff 'github-bot/gh-1019'
git switch 'github-bot/gh-1019'
git rebase 'main'
git switch 'main'
git merge --ff-only 'github-bot/gh-1019'
git switch 'github-bot/gh-1019'
git rebase 'main'
git switch 'main'
git merge --no-ff 'github-bot/gh-1019'
git switch 'main'
git merge --squash 'github-bot/gh-1019'
git switch 'main'
git merge --ff-only 'github-bot/gh-1019'
git switch 'main'
git merge 'github-bot/gh-1019'
git push origin 'main'
This discussion has been locked. Commenting is limited to contributors.
No description provided.