[PR #764] [MERGED] tests: drop the 27 DEBT entries of test_semantic_translator_use that no longer exempt anything (TEST-GUARD-STALE-DEBT) #802

Closed
opened 2026-11-26 20:19:05 +01:00 by 4ld0 · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/ubiquitarianism/leonida/pull/764
Author: @qhukz13
Created: 11/24/2026
Status: ✅ Merged
Merged: 11/24/2026
Merged by: @ubiquitarianism

Base: main ← Head: cont/guard-stale-debt


📝 Commits (2)

  • ee4dfb0 tests: the f64 rcp/rsq/sqrt/cvt oracle files check the translator, and spirv_interp divides doubles as doubles (TEST-F64-ORACLES-TRANSLATE)
  • 13cb507 tests: drop the 27 DEBT entries of test_semantic_translator_use that no longer exempt anything (TEST-GUARD-STALE-DEBT)

📊 Changes

7 files changed (+189 additions, -32 deletions)

View changed files

➕ tests/semantic/f64_translate.py (+43 -0)
📝 tests/semantic/test_valu_cvt_f32_f64.py (+33 -0)
📝 tests/semantic/test_valu_rcp_f64.py (+34 -0)
📝 tests/semantic/test_valu_rsq_f64.py (+34 -0)
📝 tests/semantic/test_valu_sqrt_f64.py (+35 -0)
📝 tests/spirv_interp.py (+10 -1)
📝 tests/test_semantic_translator_use.py (+0 -31)

📄 Description

Claimed in the coordination issue as: TEST-GUARD-STALE-DEBT (narrowed in a follow-up comment: no new check, cleanup only)

Depends on: #746 (it removes four neighbouring DEBT entries; this branch is on top of it, so its commit shows here until #746 is merged)

What and why

tests/test_semantic_translator_use.py exempts the files in DEBT from its check that every tests/semantic test reaches rdna2spirv. By the guard's own _reaches, 26 of those files already run the translator: the eight saveexec files, add_sub_co, alignbyte, perm, sad_u32, lerp_u8, mul_hi, dot4/dot8, cndmask_b64, int_to_float, and the f16 fract/pack/pk_*/rcp/rsq/sqrt files. test_lds_add_sub_src2_u32.py no longer exists. Their entries kept those files out of the check they now pass, so if one stopped calling the translator nothing would notice.

This removes the 27 entries. DEBT keeps the nine files that still model the answer themselves (div_fixup, fma_f64, fract_f64, the three frexp files, minmax_f64, mul_f64, trig_f64).

Not changed: the design in the comment above DEBT. An entry still does not have to be removed by the PR that fixes the file, and there is no new staleness check, so fixing a file never conflicts with another PR here.

Tested

  • python -I tests/test_semantic_translator_use.py: OK with the 27 entries gone (each of the 26 files passes the check on its own; the 27th file does not exist).
  • tests/test_text_write_line_endings.py, scripts/check_no_game_data.py: OK.

Linux, CPU only; no GPU, no game files.

AI-assisted (Claude Code).

🤖 Generated with Claude Code


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/ubiquitarianism/leonida/pull/764 **Author:** [@qhukz13](https://github.com/qhukz13) **Created:** 11/24/2026 **Status:** ✅ Merged **Merged:** 11/24/2026 **Merged by:** [@ubiquitarianism](https://github.com/ubiquitarianism) **Base:** `main` ← **Head:** `cont/guard-stale-debt` --- ### 📝 Commits (2) - [`ee4dfb0`](https://github.com/ubiquitarianism/leonida/commit/ee4dfb04c7de6a6a8858b0d8ef9b43f8c9c3b91e) tests: the f64 rcp/rsq/sqrt/cvt oracle files check the translator, and spirv_interp divides doubles as doubles (TEST-F64-ORACLES-TRANSLATE) - [`13cb507`](https://github.com/ubiquitarianism/leonida/commit/13cb507629d53f5a80a938cb0c1731008ba2eff3) tests: drop the 27 DEBT entries of test_semantic_translator_use that no longer exempt anything (TEST-GUARD-STALE-DEBT) ### 📊 Changes **7 files changed** (+189 additions, -32 deletions) <details> <summary>View changed files</summary> ➕ `tests/semantic/f64_translate.py` (+43 -0) 📝 `tests/semantic/test_valu_cvt_f32_f64.py` (+33 -0) 📝 `tests/semantic/test_valu_rcp_f64.py` (+34 -0) 📝 `tests/semantic/test_valu_rsq_f64.py` (+34 -0) 📝 `tests/semantic/test_valu_sqrt_f64.py` (+35 -0) 📝 `tests/spirv_interp.py` (+10 -1) 📝 `tests/test_semantic_translator_use.py` (+0 -31) </details> ### 📄 Description Claimed in the coordination issue as: TEST-GUARD-STALE-DEBT (narrowed in a follow-up comment: no new check, cleanup only) Depends on: #746 (it removes four neighbouring DEBT entries; this branch is on top of it, so its commit shows here until #746 is merged) ### What and why `tests/test_semantic_translator_use.py` exempts the files in `DEBT` from its check that every `tests/semantic` test reaches `rdna2spirv`. By the guard's own `_reaches`, 26 of those files already run the translator: the eight `saveexec` files, `add_sub_co`, `alignbyte`, `perm`, `sad_u32`, `lerp_u8`, `mul_hi`, `dot4`/`dot8`, `cndmask_b64`, `int_to_float`, and the f16 `fract`/`pack`/`pk_*`/`rcp`/`rsq`/`sqrt` files. `test_lds_add_sub_src2_u32.py` no longer exists. Their entries kept those files out of the check they now pass, so if one stopped calling the translator nothing would notice. This removes the 27 entries. `DEBT` keeps the nine files that still model the answer themselves (`div_fixup`, `fma_f64`, `fract_f64`, the three `frexp` files, `minmax_f64`, `mul_f64`, `trig_f64`). Not changed: the design in the comment above `DEBT`. An entry still does not have to be removed by the PR that fixes the file, and there is no new staleness check, so fixing a file never conflicts with another PR here. ### Tested - `python -I tests/test_semantic_translator_use.py`: OK with the 27 entries gone (each of the 26 files passes the check on its own; the 27th file does not exist). - `tests/test_text_write_line_endings.py`, `scripts/check_no_game_data.py`: OK. Linux, CPU only; no GPU, no game files. AI-assisted (Claude Code). 🤖 Generated with [Claude Code](https://claude.com/claude-code) --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
4ld0 2026-11-26 20:19:05 +01:00
Sign in to join this conversation.
No labels
bug
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
starred/leonida#802
No description provided.