tests: add source-built mesh57 loop refusal fixture (#2413 T6) #2614

Merged
SimSalabimse merged 2 commits from upstream-pr/2622 into main 2026-11-25 23:50:19 +00:00
SimSalabimse commented 2026-11-25 23:29:36 +00:00 (Migrated from github.com)

Imported from R0Y00/Xbox2Windows. Originally posted by SimSalabimse on 2026-11-25T23:29:36Z.


Change

Adds a source-built mesh57 loop refusal fixture for #2413 T6 (loops outside mesh57 group-memory exchanges). Locks tip’s current refusal with a mutant so T6 lowerings have a negative control. No shared-interface change; does not overlap RavenCurseBurg/RonLogic R1 runtime wiring.

Refs #2413
Refs #1759
Refs #870

Verification

Commit: 5366e34d on SimSalabimse:cursor/mesh57-t6-loop-refusal-61fa

python -B tests/startup_mesh57_loop_refusal_check.py

Result: pass (also skeleton + docs_links green on the agent host).

Evidence and follow-up

Fixture is source-built / synthetic (no title assets). Assumes tip still refuses these loops; a later T6 lowering PR should flip the mutant from refuse → translate without rewriting the harness. Public check is the Python refusal oracle above.

Checklist

  • This pull request covers one reviewable behavior.
  • I included the exact command and result for every check I ran.
  • I considered a negative control or failure case for a new fixture.
  • I updated README/docs when a capability or build requirement changed.
  • I did not include game files, dumps, distribution links or secrets.

AI-assisted contribution.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:issue:6615909639 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/pull/2622). Originally posted by [SimSalabimse](https://github.com/SimSalabimse) on 2026-11-25T23:29:36Z. --- ## Change Adds a source-built mesh57 loop refusal fixture for #2413 T6 (loops outside mesh57 group-memory exchanges). Locks tip’s current refusal with a mutant so T6 lowerings have a negative control. No shared-interface change; does not overlap RavenCurseBurg/RonLogic R1 runtime wiring. Refs #2413 Refs #1759 Refs #870 ## Verification Commit: `5366e34d` on `SimSalabimse:cursor/mesh57-t6-loop-refusal-61fa` ``` python -B tests/startup_mesh57_loop_refusal_check.py ``` Result: pass (also skeleton + docs_links green on the agent host). ## Evidence and follow-up Fixture is source-built / synthetic (no title assets). Assumes tip still refuses these loops; a later T6 lowering PR should flip the mutant from refuse → translate without rewriting the harness. Public check is the Python refusal oracle above. ## Checklist - [x] This pull request covers one reviewable behavior. - [x] I included the exact command and result for every check I ran. - [x] I considered a negative control or failure case for a new fixture. - [ ] I updated README/docs when a capability or build requirement changed. - [x] I did not include game files, dumps, distribution links or secrets. AI-assisted contribution.
upstream-sync closed this pull request 2026-11-26 00:01:02 +00:00
tedin7 commented 2026-11-26 00:01:02 +00:00 (Migrated from github.com)

Imported from R0Y00/Xbox2Windows. Originally posted by tedin7 on 2026-11-25T23:42:09Z.

Review: COMMENTED


Review of head 5366e34d5 (tests-only fixture plus CI/CTest/docs wiring; no translator change).

Checked:

  • Fixture refuses the back-edge with the exact named message, publishes only the .fail, and the mutant (back-edge replaced by s_nop) translates to ok. Exact-string oracle, so a wrong refusal reason is caught.
  • Wiring is consistent with the sibling startup_mesh57_skeleton entry: CMake add_test, both lists in .github/workflows/windows.yml (the binary llvm-mc-15 row and the Linux file list), the AGENTS.md command list and docs/experiments.md. The workflow edit only adds the new check to existing lists; the PR's own CI run exercises it.
  • Overlap: #2630 (constant-trip lowering) says it extends this fixture and keeps unconditional back-edges refused, so the two fit together. Whichever lands second may need a small rebase of the test list lines.
  • Host-only; no GPU lowering, so no WARP readback is needed. No startup claim made.

Commands run (Linux, head checked out, 14 commits behind main):

  • python3 -B tests/startup_mesh57_loop_refusal_check.py: ok
  • python3 -B tests/startup_mesh57_loop_refusal_check.py binary /usr/bin/llvm-mc-19: rc 0 (assembled words match the embedded words for fixture and mutant)
  • python3 tests/docs_links_check.py, python3 tests/bidi_controls_check.py: OK
  • git diff --check origin/main...HEAD: clean
  • Mutation (change the expected refusal string): the fixture check FAILS with the got/want message.

No blocking issues.

AI-assisted; commands listed were executed locally.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:review:6066546097 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/pull/2622#pullrequestreview-6066546097). Originally posted by [tedin7](https://github.com/tedin7) on 2026-11-25T23:42:09Z. **Review:** COMMENTED --- Review of head 5366e34d5 (tests-only fixture plus CI/CTest/docs wiring; no translator change). Checked: - Fixture refuses the back-edge with the exact named message, publishes only the `.fail`, and the mutant (back-edge replaced by `s_nop`) translates to `ok`. Exact-string oracle, so a wrong refusal reason is caught. - Wiring is consistent with the sibling `startup_mesh57_skeleton` entry: CMake `add_test`, both lists in `.github/workflows/windows.yml` (the `binary llvm-mc-15` row and the Linux file list), the AGENTS.md command list and docs/experiments.md. The workflow edit only adds the new check to existing lists; the PR's own CI run exercises it. - Overlap: #2630 (constant-trip lowering) says it extends this fixture and keeps unconditional back-edges refused, so the two fit together. Whichever lands second may need a small rebase of the test list lines. - Host-only; no GPU lowering, so no WARP readback is needed. No startup claim made. Commands run (Linux, head checked out, 14 commits behind main): - `python3 -B tests/startup_mesh57_loop_refusal_check.py`: ok - `python3 -B tests/startup_mesh57_loop_refusal_check.py binary /usr/bin/llvm-mc-19`: rc 0 (assembled words match the embedded words for fixture and mutant) - `python3 tests/docs_links_check.py`, `python3 tests/bidi_controls_check.py`: OK - `git diff --check origin/main...HEAD`: clean - Mutation (change the expected refusal string): the fixture check FAILS with the got/want message. No blocking issues. AI-assisted; commands listed were executed locally.
tedin7 commented 2026-11-26 00:01:13 +00:00 (Migrated from github.com)

Imported from R0Y00/Xbox2Windows. Originally posted by tedin7 on 2026-11-25T23:46:02Z.


Win2025 WARP receipt for head 10729e16 after updating with main.

Verified on Windows Server 2025 (Build 26100, MSVC 14.44.35207 + D3D12 WARP) at commit 10729e168733c22519b9f5ffe7b3c7ca1c9d2a81:

  • Windows Python checks: tests/startup_mesh57_loop_refusal_check.py ok (0.2s)
  • sccache: 0/12 hits; wall 5.9s

AI-assisted; commands listed were executed locally.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7178020886 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/pull/2622#issuecomment-7178020886). Originally posted by [tedin7](https://github.com/tedin7) on 2026-11-25T23:46:02Z. --- Win2025 WARP receipt for head 10729e16 after updating with main. Verified on Windows Server 2025 (Build 26100, MSVC 14.44.35207 + D3D12 WARP) at commit `10729e168733c22519b9f5ffe7b3c7ca1c9d2a81`: - **Windows Python checks**: `tests/startup_mesh57_loop_refusal_check.py` ok (`0.2s`) - `sccache`: 0/12 hits; wall `5.9s` AI-assisted; commands listed were executed locally.
tedin7 commented 2026-11-26 00:01:14 +00:00 (Migrated from github.com)

Imported from R0Y00/Xbox2Windows. Originally posted by tedin7 on 2026-11-25T23:48:04Z.


Win2025 WARP receipt for head 10729e16 after updating with main (focused on the mesh57 tests).

Verified on Windows Server 2025 (Build 26100, MSVC 14.44.35207 + D3D12 WARP) at commit 10729e168733c22519b9f5ffe7b3c7ca1c9d2a81:

  • Debug (--preset dev):
    • Build (cmake --build --preset dev -- -j 2): 4.38s (configure 2.70s)
    • Test (ctest --preset dev -R 'startup_mesh57' --parallel 6 --no-tests=error --output-on-failure): 9/10 passed (2.42s: startup_mesh57_formatted_load_hardware 0.78s, startup_mesh57_formatted_load_warp 0.80s, startup_mesh57_skeleton 0.82s, startup_mesh57_loop_refusal 0.29s, startup_mesh57_skeleton_exchange_hardware 0.41s, startup_mesh57_skeleton_wave_shift_hardware 0.65s, startup_mesh57_skeleton_wave_shift_warp 0.62s, startup_mesh57_skeleton_exchange_warp 2.15s, startup_mesh57_skeleton_draw_hardware 2.26s, startup_mesh57_skeleton_draw_warp 2.26s); skipped (capability, not a pass): startup_mesh57_skeleton_exchange_hardware
  • Release /O2 (--preset release):
    • Build (cmake --build --preset release -- -j 2): 4.57s (configure 2.36s)
    • Test (ctest --preset release -R 'startup_mesh57' --parallel 6 --no-tests=error --output-on-failure): 9/10 passed (2.47s: startup_mesh57_loop_refusal 0.26s, startup_mesh57_skeleton_exchange_hardware 0.36s, startup_mesh57_skeleton_wave_shift_hardware 0.60s, startup_mesh57_skeleton 0.71s, startup_mesh57_formatted_load_hardware 0.72s, startup_mesh57_skeleton_wave_shift_warp 0.58s, startup_mesh57_formatted_load_warp 0.66s, startup_mesh57_skeleton_draw_hardware 1.92s, startup_mesh57_skeleton_draw_warp 1.86s, startup_mesh57_skeleton_exchange_warp 1.63s); skipped (capability, not a pass): startup_mesh57_skeleton_exchange_hardware
  • Windows Python checks: tests/startup_mesh57_loop_refusal_check.py ok (0.2s)
  • sccache: 28/43 hits; wall 22.8s

AI-assisted; commands listed were executed locally.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7178069402 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/pull/2622#issuecomment-7178069402). Originally posted by [tedin7](https://github.com/tedin7) on 2026-11-25T23:48:04Z. --- Win2025 WARP receipt for head 10729e16 after updating with main (focused on the mesh57 tests). Verified on Windows Server 2025 (Build 26100, MSVC 14.44.35207 + D3D12 WARP) at commit `10729e168733c22519b9f5ffe7b3c7ca1c9d2a81`: - **Debug (`--preset dev`)**: - Build (`cmake --build --preset dev -- -j 2`): `4.38s` (configure `2.70s`) - Test (`ctest --preset dev -R 'startup_mesh57' --parallel 6 --no-tests=error --output-on-failure`): **9/10 passed** (`2.42s`: `startup_mesh57_formatted_load_hardware` `0.78s`, `startup_mesh57_formatted_load_warp` `0.80s`, `startup_mesh57_skeleton` `0.82s`, `startup_mesh57_loop_refusal` `0.29s`, `startup_mesh57_skeleton_exchange_hardware` `0.41s`, `startup_mesh57_skeleton_wave_shift_hardware` `0.65s`, `startup_mesh57_skeleton_wave_shift_warp` `0.62s`, `startup_mesh57_skeleton_exchange_warp` `2.15s`, `startup_mesh57_skeleton_draw_hardware` `2.26s`, `startup_mesh57_skeleton_draw_warp` `2.26s`); skipped (capability, not a pass): `startup_mesh57_skeleton_exchange_hardware` - **Release `/O2` (`--preset release`)**: - Build (`cmake --build --preset release -- -j 2`): `4.57s` (configure `2.36s`) - Test (`ctest --preset release -R 'startup_mesh57' --parallel 6 --no-tests=error --output-on-failure`): **9/10 passed** (`2.47s`: `startup_mesh57_loop_refusal` `0.26s`, `startup_mesh57_skeleton_exchange_hardware` `0.36s`, `startup_mesh57_skeleton_wave_shift_hardware` `0.60s`, `startup_mesh57_skeleton` `0.71s`, `startup_mesh57_formatted_load_hardware` `0.72s`, `startup_mesh57_skeleton_wave_shift_warp` `0.58s`, `startup_mesh57_formatted_load_warp` `0.66s`, `startup_mesh57_skeleton_draw_hardware` `1.92s`, `startup_mesh57_skeleton_draw_warp` `1.86s`, `startup_mesh57_skeleton_exchange_warp` `1.63s`); skipped (capability, not a pass): `startup_mesh57_skeleton_exchange_hardware` - **Windows Python checks**: `tests/startup_mesh57_loop_refusal_check.py` ok (`0.2s`) - `sccache`: 28/43 hits; wall `22.8s` AI-assisted; commands listed were executed locally.
Sign in to join this conversation.
No reviewers
No labels
No milestone
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.

Reference
R0Y00/Xbox2Windows!2614
No description provided.