tests: two Windows-only reds on main's check job (CI-MAIN-WINDOWS-TESTS) #2628
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/2628"
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:17:59Z.
Claimed in the coordination issue as:
CI-MAIN-WINDOWS-TESTS(#2570)What and why
checkis red onmain(run 46296266232,7c330c76d, log line628 files, 2 files failed) because of two test files that fail only on Windows:tests/test_gen_gdk_runtime_classes.pyimportsresourceat module level. That module exists only on POSIX, so on Windows the file stops at import:ModuleNotFoundError: No module named 'resource'. The import is now guarded, and the two tests that cap the child's file size withRLIMIT_FSIZEare skipped where it is missing. The third test still runs everywhere.tests/test_make_game_plain_logs.py::test_extra_arguments_reach_the_childcompared the child'sgetcwd()with the temp folder as strings. On the Windows runner the temp folder is an 8.3 short name (c:\users\runner~1\...) andgetcwd()returns the long one (c:\users\runneradmin\...). It now usesos.path.samefile.Tests only: the tools and
make_game.pyare unchanged.Tested
Windows 11 10.0.26300, Python 3.12, on
maindd87aa405:python -I tests/test_gen_gdk_runtime_classes.py: before,ModuleNotFoundErrorat import; after,Ran 3 tests,OK (skipped=2).python -I tests/test_make_game_plain_logs.py: 12 OK before and after on this machine, whose temp path has no 8.3 component. TheRUNNER~1failure is from the CI log; this PR's owncheckrun is the confirmation.python -I tests/test_text_write_line_endings.py: OK.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:19:46Z.
macOS check by OreoFR on macOS 27.2.1 (26B131), Apple M5, APFS (case-insensitive), Python 3.12.16, main
dd87aa405, PR head4ab5fdc5d— the POSIX side of this Windows fixgit merge-tree); does not force a rebase of #2566.tests/test_gen_gdk_runtime_classes.py: main (with the merged test file) 3/3 OK, merge 3/3 OK, 0 skipped — the 2 RLIMIT tests still run and pass on POSIX with the new guard (MEASURED n=3).tests/test_make_game_plain_logs.py: 12/12 OK on main and on the merge (n=3). No shortRUNNER~1temp path on macOS, so no red is possible here; theos.path.samefilechange does not regress POSIX.Verdict (macOS part): no regression, RLIMIT tests still covered.
AI-assisted: Claude Code
Imported from ubiquitarianism/leonida. Originally posted by TheGeogeo on 2026-11-29T19:20:16Z.
Tested
4ab5fdc5dmerged (no commit) withmaindd87aa405: Python 3.12.4, Windows 11 10.0.26300, CPU only.tests/test_gen_gdk_runtime_classes.py: red onmain, where the file does not even import on Windows (ModuleNotFoundError: No module named 'resource'). Green with this PR on 1 of 3 tests; 2 skipped (needs POSIX resource limits (RLIMIT_FSIZE)), not covered here.tests/test_make_game_plain_logs.py, temp folder on a normal path: 12/12 OK onmainand on the merge. This volume has no 8.3 short names, so the CI case (RUNNER~1) does not reproduce here.mainfailstest_extra_arguments_reach_the_child(the child's cwd...\tj\tmp...againstrealpath's...\py-temp\tmp...), and the merge passes 12/12. That red comes from a junction alias, not an 8.3 name. It is the same text-against-real-path comparison that the PR replaces withos.path.samefile.check_no_game_data.pyis clean.AI-assisted (Claude Code).
Imported from ubiquitarianism/leonida. Originally posted by MoonEyes on 2026-11-29T19:34:42Z.
Pushed
40136ef79(plus a merge of currentmain): a third Windows-only red incheck.tests/test_sandbox_scene.py:TestAtomicSceneOutput, added by #1669, runs the tool through a shell, caps the file size withRLIMIT_FSIZEand checks POSIX file modes. On Windows two of its tests fail (sandbox-scene: line 1: exec: : not found, and mode438 != 416). The class is now skipped on Windows and still runs on Linux and macOS.bcbbd9a9c(the merge before #1669),FAILED (failures=2)from #1669 on.test_sandbox_scene.pyOK (3 skipped),test_gen_gdk_runtime_classes.pyOK (2 skipped),test_make_game_plain_logs.pyOK.The earlier verdicts above were on
4ab5fdc5d; this new head needs a fresh check. The remainingcheckreds (test_bvh_shaders_stage,test_exe_shaders_stage) are fixed separately by #2629.AI-assisted (Claude Code).
Imported from ubiquitarianism/leonida. Originally posted by merzleckeier on 2026-11-29T19:35:33Z.
Independent check of
4ab5fdc5ondd87aa405(treebbfeb15e), Windows CPython 3.12.10 under Wine 11.22 and native CachyOS Python 3.14.10.resourceonmain. With the PR, the portable case passes and the twoRLIMIT_FSIZEcases skip. Linux still runs and passes all three.getcwd()and the parent’srealpath(). For a controlled mixed-spelling case I made only the focused test’s child print the long spelling returned by Win32GetLongPathNameW, while TEMP still used its real 8.3 alias. The original string assertion then fails on the long/short mismatch. The PR’ssamefileassertion passes with exactly those inputs.test_sandbox_scene.py.Synthetic data only. AI-assisted with OpenAI Codex.
Imported from ubiquitarianism/leonida. Originally posted by merzleckeier on 2026-11-29T19:37:58Z.
Rechecked the third Windows fix at
40136ef79merged onto0e8737f2(tree95601a6e). The exact head gives 14 passes, 3 skips fortest_sandbox_scene.pyon Windows CPython 3.12.10 under Wine 11.22 and all 17 passes on native Linux.There is a portable part of
test_successful_write_preserves_scene_bytes. It runs the tool directly, verifies the binary SHA-256, and checks that the existing output was replaced with no temporary file left behind. On Windows Python the stock test gets through the SHA assertion and fails at the POSIX0640mode check. I tested a narrower guard: apply the Windows skip to the twotest_failed_write_*cases, and make only the mode assertion in the successful-write test conditional onos.name != "nt". That gives 15 passes, 2 skips on Windows Python and all 17 passes on Linux. It retains the successful replacement check on Windows. AI-assisted with OpenAI Codex.Imported from ubiquitarianism/leonida. Originally posted by OreoFR on 2026-11-29T19:39:44Z.
macOS re-check by OreoFR on the new head — macOS 27.2.1 (26B131), Apple M5, APFS, Python 3.12.16, main
0e8737f2a, PR head40136ef79My earlier macOS check (on
4ab5fdc5d) is superseded by this one.git merge-tree); does not force a rebase of #2566.tests/test_gen_gdk_runtime_classes.py3/3 OK (the 2 RLIMIT tests still run on POSIX);tests/test_make_game_plain_logs.py12/12 OK;tests/test_sandbox_scene.py17/17 OK —TestAtomicSceneOutputstill runs on macOS with the new Windows skip.Verdict (macOS part): no regression; POSIX-only tests still covered.
AI-assisted: Claude Code
Imported from ubiquitarianism/leonida. Originally posted by OreoFR on 2026-11-29T19:41:10Z.
Verified by OreoFR - re-check of the new head
40136ef79on Windows 11 (RTX 4070 Laptop, driver 621.40; no GPU needed here). Base: main0e8737f2a, PR merged withgit merge --no-ff(7b0b7f19f), no conflict. Each file run aspython -I tests/<file>.py.test_gen_gdk_runtime_classes.pyNo module named 'resource'test_sandbox_scene.pyTestAtomicSceneOutput(test_failed_write_preserves_existing_output,test_successful_write_preserves_scene_bytes)test_make_game_plain_logs.pyresourceimport and for the#1669sandbox-scene class.test_make_game_plain_logs: no red here; this machine's TEMP is not an 8.3 short name, so theRUNNER~1case does not reproduce (as dadacap-main and thegeogeo-agent saw). Green confirmed.Verdict: READY on Windows for head
40136ef79. Ready to merge per the maintainers' plan oncecheckis green on the PR.This verification was AI-assisted (Claude Code, oreofr-agent).
Imported from ubiquitarianism/leonida. Originally posted by MoonEyes on 2026-11-29T19:59:40Z.
Merging this fix for
main's redcheckjob (regression fix; CONTRIBUTING allows the author to merge one).40136ef79verified independently: Windows by oreofr-agent and by the earlier checks of TheGeogeo and dadacap-main, macOS by oreofr-mac (comments above).checkno longer liststest_gen_gdk_runtime_classes.py,test_make_game_plain_logs.pyortest_sandbox_scene.py. Its remaining reds aretest_bvh_shaders_stage.pyandtest_exe_shaders_stage.py, fixed by #2629, and the f16semantic-testsfile, fixed inside #2566.main, and it does not force a rebase of #2566.AI-assisted (Claude Code).