Skip to content

tests: drop two stale DEBT entries from the translator-use guard - #4127

Merged
ItsNotRexed merged 1 commit into
ItsNotRexed:mainfrom
slint6614-dev:test/debt-stale-entries
Nov 23, 2026
Merged

ItsNotRexed merged 1 commit into
ItsNotRexed:mainfrom
slint6614-dev:test/debt-stale-entries

Conversation

@slint6614-dev

Copy link
Copy Markdown
Contributor

Claimed in the coordination issue as: new TEST item, #3918 (comment)

What and why

Two DEBT entries in tests/test_semantic_translator_use.py are stale, both since f9de6c1 (TEST-603):

  • test_alu_dot2acc_f16.py no longer exists.
  • test_ballot_votes.py now reaches the translator (I checked with the guard's own _reaches).

While test_ballot_votes.py stays in DEBT, the guard skips it, so a model-only overwrite of that file would pass unnoticed. That already happened to test_alu_u16_clamp.py and test_int_to_float.py (restored in #4108 and #4114).

This removes the two lines. I didn't add a staleness check like the one ALLOWLIST has. The DEBT comment says its entries never have to be kept in step with other PRs, and such a check would turn main red whenever a PR fixes a debt file without removing its entry.

Tested

Linux (WSL2), CPython 3.14.4, CPU only, no GPU, no game files, at aa2988cc:

  • python -I tests/test_semantic_translator_use.py: pass (the guard now covers test_ballot_votes.py, and it reaches the translator).
  • python -m unittest discover -s tests/semantic -p test_ballot_votes.py: pass.
  • git diff --check: clean.

This touches the same dict as #4073, #4108 and #4114. I merged all of them with this one locally: no conflict with this PR, and the guard passes on the result.

Checklist

  • 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. (No new rule: test-only.)

AI-assisted (Claude Code).

🤖 Generated with Claude Code

https://claude.ai/code/session_013nWg6BssUf8MjNaKuMSkfc

test_alu_dot2acc_f16.py no longer exists and test_ballot_votes.py
reaches the translator, both since f9de6c1 (TEST-603). While
test_ballot_votes.py stays in DEBT the guard skips it, so a model-only
overwrite of it would pass unnoticed; that has already happened to
test_alu_u16_clamp.py and test_int_to_float.py.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_013nWg6BssUf8MjNaKuMSkfc
@LocranKing

Copy link
Copy Markdown
Contributor

Tested commit 82d320dcf on Windows 11 Build 26200 / RTX 3060 Ti / driver 621.01 / Python 3.12: pass.

  • python -I -m compileall -q make_game.py tools tests: exit 0
  • python -I make_game.py --help: exit 0
  • python -I tests/test_semantic_translator_use.py -v: 3/3 passed (4.47s)
  • git diff --check: clean (exit 0)

AI-assisted. No game files.

@Kam471 Kam471 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ran this at 82d320dc on Windows 11:

  • python -I tests/test_semantic_translator_use.py -> 3 tests, OK.
  • Guard's own _reaches("tests/semantic/test_ballot_votes.py", set(), "tests/semantic") -> True, so the file does reach the translator today and no longer needs the skip.
  • tests/semantic/test_alu_dot2acc_f16.py -> absent, so that entry is stale.
  • git diff --check clean.

Both removals are exactly the stale entries described; the remaining DEBT list is unchanged. Since the guard skips listed files unconditionally, leaving test_ballot_votes.py there would keep hiding a model-only overwrite, so removing it is the safe direction. No blocking issue. Note this and #4123 touch different lines of the same DEBT set, so they should merge without conflict.

@sds-228 sds-228 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code review of 82d320d: no issues found. Both removed DEBT entries are stale: one listed test is absent and the other already translates a synthetic listing. Targeted guard suite: 3 tests OK.

AI-assisted (OpenCode).

@tupacfan04

Copy link
Copy Markdown
Contributor

Verified at the head on Windows 11 / Python 3.13.0: the diff against main is exactly the two deletions (DEBT 60 -> 58, no values changed, ALLOWLIST 9 entries untouched), the guard is 3/3, test_ballot_votes.py 3/3, compileall clean, merge clean, and the guard file is otherwise byte-identical to main.

Both entries were genuinely stale: test_alu_dot2acc_f16.py was deleted in f9de6c12, and test_ballot_votes.py imports and uses rdna2spirv (:36,67), so _reaches is true. The negative control is the useful part: a stripped copy is skipped with the entry present but reported as an offender without it, so the guard now covers the file and would fail if it stopped translating.

Approve. AI-assisted review, no game files, no GPU.

@slint6614-dev

Copy link
Copy Markdown
Contributor Author

Note for whoever merges: #5431 (@neoisg8) removes the same two DEBT lines as this PR (test_alu_dot2acc_f16.py, test_ballot_votes.py), plus 26 more stale entries. Whichever lands first makes the other conflict. If #5431 is merged first, I'll close this one; if this one is merged first, #5431 only needs to drop those two lines from its diff.

@ItsNotRexed
ItsNotRexed merged commit a8774d7 into ItsNotRexed:main Nov 23, 2026
2 of 7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants