Repository navigation
tests/semantic: drop test_int_to_float.py, a model-only test - #4083
Closed
slint6614-dev wants to merge 1 commit into
Closed
slint6614-dev wants to merge 1 commit into
slint6614-dev wants to merge 1 commit into
Conversation
The file imported nothing from the repository. It checked Python's own float()/struct conversions against hand-written bit patterns, plus an i32 -> f64 case for v_cvt_f64_i32, which tools/rdna2spirv.py does not implement, so it passed whatever the translator did; it was listed in DEBT in tests/test_semantic_translator_use.py. The translator paths it is about are already covered by tests that run the translator: with v_cvt_f32_i32 converted as unsigned, or v_cvt_f32_u32 as signed, test_f32_fuzz.py, test_values.py and test_translate.py fail (and test_alu_vop3_mods_hw.py for the first). A rewrite would duplicate them, so delete the file and its DEBT entry. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_013nWg6BssUf8MjNaKuMSkfc
Kam471
reviewed
Nov 22, 2026
Kam471
left a comment
Contributor
There was a problem hiding this comment.
Ran this at bccf9e0c on Windows 11:
python -I tests/test_semantic_translator_use.py-> 3 tests, OK, withtest_int_to_floatno longer inDEBT.- No other file references
test_int_to_float;git diff --checkclean.
The deleted file imported nothing from the repository and checked Python's own conversion against hand-written bits, including an op the translator does not implement (v_cvt_f64_i32), so it could pass while the translator was wrong. Removing it is the correct way to clear debt rather than moving it to the allowlist. No blocking issue.
2 tasks done
Contributor
Author
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Claimed in the coordination issue as: new TEST item, #3918 (comment)
What and why
tests/semantic/test_int_to_float.pyis inDEBTintests/test_semantic_translator_use.py. It imported nothing from the repository. It checked Python's ownfloat()/structconversions against hand-written bit patterns, plus ani32 -> f64case forv_cvt_f64_i32, whichtools/rdna2spirv.pydoesn't implement. So it passed whatever the translator did.The translator paths it is about are already covered by tests that do run the translator, so a rewrite would only duplicate them. This deletes the file and its
DEBTentry, as theDEBTcomment allows ("fixing the file, or deleting it, simply removes it from the debt"). No other file references it.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.git diff --check: clean.Coverage that stays: I mutated
tools/rdna2spirv.pyand ran every test file that usesv_cvt_f32_i32/v_cvt_f32_u32(CI-style, all green onmainfirst):v_cvt_f32_i32converted as unsigned (OpConvertUToF)test_alu_vop3_mods_hw.py,test_f32_fuzz.py,test_values.py,test_translate.pyv_cvt_f32_u32converted as signed (OpConvertSToF)test_f32_fuzz.py,test_values.py,test_translate.pyThe deleted file catches neither, since it never calls the translator.
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