tests: bvh and exe shader-stage fakes write non-empty modules (CI-MAIN-EMPTY-SPV-FAKES) #2629

Merged
MoonEyes merged 1 commit from upstream-pr/2629 into main 2026-11-29 19:59:48 +00:00
MoonEyes commented 2026-11-29 19:27:44 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by MoonEyes on 2026-11-29T19:27:44Z.


Claimed in the coordination issue as: CI-MAIN-EMPTY-SPV-FAKES (#2570)

What and why

stdlib-tests-linux and macos-python are red on main since #1235 (545f610fa): tests/test_bvh_shaders_stage.py and tests/test_exe_shaders_stage.py each fail one test, for example AssertionError: Lists differ: ['fspx_unpack.py', 'rdna2spirv.py'] != [] on the second, cached run.

#1235 makes make_game.fspx_cache_complete treat an empty cached .spv as a broken cache, which is right. Its fake translators in test_fspx_shaders_stage.py and test_library_shaders_stage.py were updated to write non-empty modules, but the fakes in these two files still write empty .spv files, so the cached run now rebuilds. This makes those fakes write a non-empty module too. make_game.py is unchanged.

I merged #1235 with a verdict that did not run these two neighbouring files; this fixes what that merge broke.

Tested

Windows 11 10.0.26300, Python 3.12, on main dd87aa405:

  • Bisected on main: test_bvh_shaders_stage.py is OK on cf6e55921 (the merge before #1235) and FAILED (failures=1) from 545f610fa (#1235) on.
  • main: test_bvh_shaders_stage.py and test_exe_shaders_stage.py each FAILED (failures=1).
  • With this PR: both OK. test_fspx_shaders_stage.py and test_library_shaders_stage.py OK too. tests/test_text_write_line_endings.py OK.

GPUs tested: n/a

AI-assisted: yes (Claude Code)

Checklist

  • Based on current main and merges cleanly (a conflicting pull request is labeled needs rebase).
  • One topic; follow-up work goes in a new pull request.
  • 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. (n/a)

🤖 Generated with Claude Code

<!-- greyfinch-sync:ubiquitarianism/leonida:issue:5554264425 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/pull/2629). Originally posted by [MoonEyes](https://github.com/MoonEyes) on 2026-11-29T19:27:44Z. --- Claimed in the coordination issue as: `CI-MAIN-EMPTY-SPV-FAKES` (#2570) ### What and why `stdlib-tests-linux` and `macos-python` are red on `main` since #1235 (`545f610fa`): `tests/test_bvh_shaders_stage.py` and `tests/test_exe_shaders_stage.py` each fail one test, for example `AssertionError: Lists differ: ['fspx_unpack.py', 'rdna2spirv.py'] != []` on the second, cached run. #1235 makes `make_game.fspx_cache_complete` treat an empty cached `.spv` as a broken cache, which is right. Its fake translators in `test_fspx_shaders_stage.py` and `test_library_shaders_stage.py` were updated to write non-empty modules, but the fakes in these two files still write empty `.spv` files, so the cached run now rebuilds. This makes those fakes write a non-empty module too. `make_game.py` is unchanged. I merged #1235 with a verdict that did not run these two neighbouring files; this fixes what that merge broke. ### Tested Windows 11 10.0.26300, Python 3.12, on `main` `dd87aa405`: - Bisected on `main`: `test_bvh_shaders_stage.py` is OK on `cf6e55921` (the merge before #1235) and `FAILED (failures=1)` from `545f610fa` (#1235) on. - `main`: `test_bvh_shaders_stage.py` and `test_exe_shaders_stage.py` each `FAILED (failures=1)`. - With this PR: both OK. `test_fspx_shaders_stage.py` and `test_library_shaders_stage.py` OK too. `tests/test_text_write_line_endings.py` OK. GPUs tested: n/a AI-assisted: yes (Claude Code) ### Checklist - [x] Based on current `main` and merges cleanly (a conflicting pull request is labeled `needs rebase`). - [x] One topic; follow-up work goes in a new pull request. - [x] 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. (n/a) 🤖 Generated with [Claude Code](https://claude.com/claude-code)
OreoFR commented 2026-11-29 19:29:43 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by OreoFR on 2026-11-29T19:29:43Z.


Verified by OreoFR on macOS 27.2.1 (26B131), Apple M5, APFS (case-insensitive), Python 3.12.16, main dd87aa405 (contains the #1235 merge 545f610fa), PR head 8b6b4b216 : red 2 failures / green 24 OK, 0 skipped

Tests-only fix; red = main as is (it already carries the broken fakes), green = main + PR merge.

  • Merge: clean (git merge-tree); does not force a rebase of #2566.
  • tests/test_bvh_shaders_stage.py: red 13 tests, 1 failure ShadersStageWithTheDlls.test_the_builder_runs_after_fspx_and_alone_when_only_its_dll_changes; green 13/13 OK.
  • tests/test_exe_shaders_stage.py: red 11 tests, 1 failure ShadersStageWithTheExe.test_exe_runs_after_bvh_and_alone_when_only_the_exe_changes; green 11/11 OK.
  • (MEASURED n=3) identical on every run; nothing skipped.

Verdict: READY — fixes the macOS/Linux break introduced by #1235.

AI-assisted: Claude Code

<!-- greyfinch-sync:ubiquitarianism/leonida:comment:7261323867 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/pull/2629#issuecomment-7261323867). Originally posted by [OreoFR](https://github.com/OreoFR) on 2026-11-29T19:29:43Z. --- Verified by OreoFR on macOS 27.2.1 (26B131), Apple M5, APFS (case-insensitive), Python 3.12.16, main dd87aa405 (contains the #1235 merge 545f610fa), PR head 8b6b4b216 : red 2 failures / green 24 OK, 0 skipped Tests-only fix; red = main as is (it already carries the broken fakes), green = main + PR merge. - Merge: clean (`git merge-tree`); does not force a rebase of #2566. - `tests/test_bvh_shaders_stage.py`: **red** 13 tests, 1 failure `ShadersStageWithTheDlls.test_the_builder_runs_after_fspx_and_alone_when_only_its_dll_changes`; **green** 13/13 OK. - `tests/test_exe_shaders_stage.py`: **red** 11 tests, 1 failure `ShadersStageWithTheExe.test_exe_runs_after_bvh_and_alone_when_only_the_exe_changes`; **green** 11/11 OK. - (MEASURED n=3) identical on every run; nothing skipped. **Verdict: READY** — fixes the macOS/Linux break introduced by #1235. AI-assisted: Claude Code
merzleckeier commented 2026-11-29 19:40:13 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by merzleckeier on 2026-11-29T19:40:13Z.


Independent Linux A/B for 8b6b4b21 on dd87aa405 (tree 6dffbbab), CachyOS / Python 3.14.10. I checked both sides of #1235: its first parent cf6e55921 passes BVH 13/13 and EXE 11/11. At the merge 545f610fa, each file fails one test because a cached second run unexpectedly invokes FSPX unpack and translation. The same two failures occur on dd87aa405 and both pass with this PR.

I ran the CI Linux stdlib selection of 628 files on each tree. The only change in file outcome was BVH and EXE, both from fail to pass. Two shared local harness failures passed on separate reruns on both trees: the signal tests with default SIGINT handling and the mutation tests with a writable checkout and Git index. Across the run and those controls, the file results are 626/628 vs. 628/628. The GitHub Linux stdlib job is also green.

The same two fixture failures reproduce on the #2566 merge tree 11039d32. This fix applies cleanly and gives 13/13 BVH and 11/11 EXE there. The neighboring FSPX and library suites pass 24/24 and 17/17 before and after. Synthetic fixtures only. AI-assisted with OpenAI Codex.

<!-- greyfinch-sync:ubiquitarianism/leonida:comment:7261461840 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/pull/2629#issuecomment-7261461840). Originally posted by [merzleckeier](https://github.com/merzleckeier) on 2026-11-29T19:40:13Z. --- Independent Linux A/B for `8b6b4b21` on `dd87aa405` (tree `6dffbbab`), CachyOS / Python 3.14.10. I checked both sides of #1235: its first parent `cf6e55921` passes BVH 13/13 and EXE 11/11. At the merge `545f610fa`, each file fails one test because a cached second run unexpectedly invokes FSPX unpack and translation. The same two failures occur on `dd87aa405` and both pass with this PR. I ran the CI Linux stdlib selection of **628 files** on each tree. The only change in file outcome was BVH and EXE, both from fail to pass. Two shared local harness failures passed on separate reruns on both trees: the signal tests with default SIGINT handling and the mutation tests with a writable checkout and Git index. Across the run and those controls, the file results are **626/628 vs. 628/628**. The [GitHub Linux stdlib job](https://github.com/ProjectLeonida/mandy/actions/runs/46301024833/job/141465822857) is also green. The same two fixture failures reproduce on the #2566 merge tree `11039d32`. This fix applies cleanly and gives 13/13 BVH and 11/11 EXE there. The neighboring FSPX and library suites pass 24/24 and 17/17 before and after. Synthetic fixtures only. AI-assisted with OpenAI Codex.
MoonEyes commented 2026-11-29 19:40:46 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by MoonEyes on 2026-11-29T19:40:46Z.


CI on 8b6b4b216: this PR's two files now pass (check no longer lists test_bvh_shaders_stage.py or test_exe_shaders_stage.py). The remaining reds are not from this change:

  • check: test_gen_gdk_runtime_classes.py, test_make_game_plain_logs.py, test_sandbox_scene.py, the Windows-only failures fixed by #2628.
  • translator-tests: test_mesh_serial_waves (CI-MESH-SERIAL-WAVES-ADDR64, red on main).
  • semantic-tests: test_interp_computed_ij_fallback, red on main, fixed inside #2566.

AI-assisted (Claude Code).

<!-- greyfinch-sync:ubiquitarianism/leonida:comment:7261469240 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/pull/2629#issuecomment-7261469240). Originally posted by [MoonEyes](https://github.com/MoonEyes) on 2026-11-29T19:40:46Z. --- CI on `8b6b4b216`: this PR's two files now pass (`check` no longer lists `test_bvh_shaders_stage.py` or `test_exe_shaders_stage.py`). The remaining reds are not from this change: - `check`: `test_gen_gdk_runtime_classes.py`, `test_make_game_plain_logs.py`, `test_sandbox_scene.py`, the Windows-only failures fixed by #2628. - `translator-tests`: `test_mesh_serial_waves` (CI-MESH-SERIAL-WAVES-ADDR64, red on `main`). - `semantic-tests`: `test_interp_computed_ij_fallback`, red on `main`, fixed inside #2566. AI-assisted (Claude Code).
MoonEyes commented 2026-11-29 19:59:46 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by MoonEyes on 2026-11-29T19:59:46Z.


Merging this fix for the regression #1235 caused on main (regression fix; CONTRIBUTING allows the author to merge one).

  • Head 8b6b4b216 verified independently on macOS by oreofr-mac (comment above): test_bvh_shaders_stage and test_exe_shaders_stage red on main, green with the PR.
  • CI on this head: neither file fails any more. The remaining check reds were the Windows-only files fixed by #2628, now merged; semantic-tests is the f16 file fixed inside #2566.
  • No conflict with main, and it does not force a rebase of #2566.

AI-assisted (Claude Code).

<!-- greyfinch-sync:ubiquitarianism/leonida:comment:7261721988 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/pull/2629#issuecomment-7261721988). Originally posted by [MoonEyes](https://github.com/MoonEyes) on 2026-11-29T19:59:46Z. --- Merging this fix for the regression #1235 caused on `main` (regression fix; CONTRIBUTING allows the author to merge one). - Head `8b6b4b216` verified independently on macOS by oreofr-mac (comment above): `test_bvh_shaders_stage` and `test_exe_shaders_stage` red on `main`, green with the PR. - CI on this head: neither file fails any more. The remaining `check` reds were the Windows-only files fixed by #2628, now merged; `semantic-tests` is the f16 file fixed inside #2566. - No conflict with `main`, and it does not force a rebase of #2566. AI-assisted (Claude Code).
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
ProjectLeonida/mandy!2629
No description provided.