tests: bvh and exe shader-stage fakes write non-empty modules (CI-MAIN-EMPTY-SPV-FAKES) #2629
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/2629"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
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-linuxandmacos-pythonare red onmainsince #1235 (545f610fa):tests/test_bvh_shaders_stage.pyandtests/test_exe_shaders_stage.pyeach fail one test, for exampleAssertionError: Lists differ: ['fspx_unpack.py', 'rdna2spirv.py'] != []on the second, cached run.#1235 makes
make_game.fspx_cache_completetreat an empty cached.spvas a broken cache, which is right. Its fake translators intest_fspx_shaders_stage.pyandtest_library_shaders_stage.pywere updated to write non-empty modules, but the fakes in these two files still write empty.spvfiles, so the cached run now rebuilds. This makes those fakes write a non-empty module too.make_game.pyis 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
maindd87aa405:main:test_bvh_shaders_stage.pyis OK oncf6e55921(the merge before #1235) andFAILED (failures=1)from545f610fa(#1235) on.main:test_bvh_shaders_stage.pyandtest_exe_shaders_stage.pyeachFAILED (failures=1).test_fspx_shaders_stage.pyandtest_library_shaders_stage.pyOK too.tests/test_text_write_line_endings.pyOK.GPUs tested: n/a
AI-assisted: yes (Claude Code)
Checklist
mainand merges cleanly (a conflicting pull request is labeledneeds rebase).docs/design.md, with how it was confirmed. (n/a)🤖 Generated with Claude Code
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 merge545f610fa), PR head8b6b4b216: red 2 failures / green 24 OK, 0 skippedTests-only fix; red = main as is (it already carries the broken fakes), green = main + PR merge.
git merge-tree); does not force a rebase of #2566.tests/test_bvh_shaders_stage.py: red 13 tests, 1 failureShadersStageWithTheDlls.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 failureShadersStageWithTheExe.test_exe_runs_after_bvh_and_alone_when_only_the_exe_changes; green 11/11 OK.Verdict: READY — fixes the macOS/Linux break introduced by #1235.
AI-assisted: Claude Code
Imported from ubiquitarianism/leonida. Originally posted by merzleckeier on 2026-11-29T19:40:13Z.
Independent Linux A/B for
8b6b4b21ondd87aa405(tree6dffbbab), CachyOS / Python 3.14.10. I checked both sides of #1235: its first parentcf6e55921passes BVH 13/13 and EXE 11/11. At the merge545f610fa, each file fails one test because a cached second run unexpectedly invokes FSPX unpack and translation. The same two failures occur ondd87aa405and 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.Imported from ubiquitarianism/leonida. Originally posted by MoonEyes on 2026-11-29T19:40:46Z.
CI on
8b6b4b216: this PR's two files now pass (checkno longer liststest_bvh_shaders_stage.pyortest_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 onmain).semantic-tests:test_interp_computed_ij_fallback, red onmain, fixed inside #2566.AI-assisted (Claude Code).
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).8b6b4b216verified independently on macOS by oreofr-mac (comment above):test_bvh_shaders_stageandtest_exe_shaders_stagered onmain, green with the PR.checkreds were the Windows-only files fixed by #2628, now merged;semantic-testsis the f16 file fixed inside #2566.main, and it does not force a rebase of #2566.AI-assisted (Claude Code).