Repository navigation
tests: drop two stale DEBT entries from the translator-use guard - #4127
slint6614-dev wants to merge 1 commit into
Conversation
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
|
Tested commit
AI-assisted. No game files. |
Kam471
left a comment
There was a problem hiding this comment.
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 --checkclean.
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.
|
Verified at the head on Windows 11 / Python 3.13.0: the diff against Both entries were genuinely stale: Approve. AI-assisted review, no game files, no GPU. |
Claimed in the coordination issue as: new TEST item, #3918 (comment)
What and why
Two
DEBTentries intests/test_semantic_translator_use.pyare stale, both since f9de6c1 (TEST-603):test_alu_dot2acc_f16.pyno longer exists.test_ballot_votes.pynow reaches the translator (I checked with the guard's own_reaches).While
test_ballot_votes.pystays inDEBT, the guard skips it, so a model-only overwrite of that file would pass unnoticed. That already happened totest_alu_u16_clamp.pyandtest_int_to_float.py(restored in #4108 and #4114).This removes the two lines. I didn't add a staleness check like the one
ALLOWLISThas. TheDEBTcomment says its entries never have to be kept in step with other PRs, and such a check would turnmainred 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 coverstest_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
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