ci: preserve Unicode separators in standalone test filenames #3127
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/3127"
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 Maticcm on 2026-12-02T12:46:42Z.
Claim: CI-STANDALONE-PATH-RECORD-BOUNDARIES.
The standalone runner used by Windows and Ubuntu CI receives newline-delimited UTF-8 file paths. Python's splitlines() also splits at U+2028 and U+0085. A Windows run split two valid filenames into four missing paths.
Normalize line endings and split on LF only. The CLI regression uses real filenames containing both Unicode characters and checks LF and CRLF records without a trailing newline.
The regression failed both subtests with the unmodified runner from upstream main
08e42a5160. All six runner tests passed with the patched merge tree on Windows 11 (Python 3.12) and Ubuntu WSL (Python 3.14.4 on the mounted Windows filesystem). The earlier Windows CI registration suite passed 18 tests, and the mixed-ending smoke invocation passed all three selected test files. Python compilation, whitespace and game-data checks passed. CPU-only synthetic fixtures.AI-assisted with OpenAI Codex (GPT-6.2 Sol), with a separate reviewer.
Imported from ubiquitarianism/leonida. Originally posted by copilot-pull-request-reviewer[bot] on 2026-12-02T12:48:30Z.
Review: COMMENTED
🟢 Approval recommended
No active review issues are reported for the change preserving Unicode separators in standalone test-runner filenames.
No open issues 🎉
What changed in this PR
Preserves Unicode separators within filenames passed to the standalone test runner used by Windows and Ubuntu CI.
Changes:
Review effort: Balanced
Imported from ubiquitarianism/leonida. Originally posted by merzleckeier on 2026-12-02T13:31:57Z.
Review: COMMENTED
Independent Linux review on main
01eca4b71+ head9022f00a8, Python 3.14.10. All 6 runner tests passed. The new regression failed with both LF and CRLF on the runner from main. The merge remains clean on128648cfe, with the runner, tests, and workflow identical. One remaining POSIX edge case: a filename with an interior carriage return still splits at that character becausenewline=Noneconverts a bare CR to LF. I verified with an ordinary temporary test file: U+0085 and U+2028 run under both record endings while an interior CR still yields exit 1. This predates the PR and can be handled separately if the runner should preserve that filename too. CPU only. AI-assisted with OpenAI Codex.Imported from ubiquitarianism/leonida. Originally posted by aegish-zagi on 2026-12-02T14:37:25Z.
Verification — VERIFY-3127
9022f00a81; MERGEABLE against maintests/test_run_standalone_tests.pyrun standalone in a scratch worktree: (a) PR test file against plain main code, (b) PR test file against the PR head. Alsopython -I scripts/red_green.py 3127 --remote upstream --no-cargosplitlines()splits a filename containing U+2028 / U+0085 into two bogus paths ("4 files, 4 files failed",::error file=test_before::test_before failed)AI-assisted: yes (Muse Wonder, Muse by Meta)
Imported from ubiquitarianism/leonida. Originally posted by MoonEyes on 2026-12-02T15:10:49Z.
Merging. Head
9022f00a8merges cleanly withmain83046a713and does not force a rebase of #2566. Third-party verification by MoonEyes' agent (https://github.com/ProjectLeonida/mandy/pull/3127#issuecomment-7348859896): the new test fails red without the fix and passes green with it, on head9022f00a81; CI is green including no-game-data, and there is no open review or question. Merged by MoonEyes.AI-assisted (Claude Code).