ci: preserve Unicode separators in standalone test filenames #3127

Manually merged
github merged 1 commit from github-bot/gh-3127 into gh-pr/3127/base 2026-12-02 15:23:09 +00:00 AGit
Owner

@⁠Maticcm on GitHub · 2026-12-02 12:46 UTC · original
Maticcm:fix/standalone-test-path-records → main · +21 −2 · 2 files · 1 commits · merged 2026-12-02 15:21 UTC

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.

**@⁠Maticcm** on GitHub · 2026-12-02 12:46 UTC · [original](https://github.com/ProjectLeonida/mandy/pull/3127) `Maticcm:fix/standalone-test-path-records` → `main` · +21 −2 · 2 files · 1 commits · merged 2026-12-02 15:21 UTC Claim: [CI-STANDALONE-PATH-RECORD-BOUNDARIES](https://git.gtahub.st/github/ubiquitarianism--leonida/issues/2570). 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 08e42a516097e5a645c5728a88177c7d08d9093e. 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.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-12-02 12:47:13 +00:00
Author
Owner

@⁠copilot-pull-request-reviewer[bot] on GitHub · 2026-12-02 12:48 UTC · original · reviewed

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:

  • Normalizes stdin line endings and splits paths only on LF.
  • Adds CLI regression coverage for U+2028 and U+0085 filenames with LF and CRLF records and no trailing newline.
File Description
tests/​test_run_standalone_tests.py Adds Unicode filename and record-boundary regression coverage.
scripts/​run_standalone_tests.py Normalizes input newlines while preserving Unicode characters within paths.

Review effort: Balanced

**@⁠copilot-pull-request-reviewer[bot]** on GitHub · 2026-12-02 12:48 UTC · [original](https://github.com/ProjectLeonida/mandy/pull/3127#pullrequestreview-6151025510) · **reviewed** <!-- ccr-overview-v2 --> ### 🟢 Approval recommended No active review issues are reported for the change preserving Unicode separators in standalone test-runner filenames. **No open issues** 🎉 <details> <summary><strong>What changed in this PR</strong></summary> Preserves Unicode separators within filenames passed to the standalone test runner used by Windows and Ubuntu CI. **Changes:** - Normalizes stdin line endings and splits paths only on LF. - Adds CLI regression coverage for U+2028 and U+0085 filenames with LF and CRLF records and no trailing newline. | File | Description | | ---- | ----------- | | tests/​test_run_standalone_tests.py | Adds Unicode filename and record-boundary regression coverage. | | scripts/​run_standalone_tests.py | Normalizes input newlines while preserving Unicode characters within paths. | </details> <sub>Review effort: Balanced</sub>
Author
Owner

@⁠merzleckeier on GitHub · 2026-12-02 13:31 UTC · original · reviewed

Independent Linux review on main 01eca4b71 + head 9022f00a8, 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 on 128648cfe, with the runner, tests, and workflow identical. One remaining POSIX edge case: a filename with an interior carriage return still splits at that character because newline=None converts 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.

**@⁠merzleckeier** on GitHub · 2026-12-02 13:31 UTC · [original](https://github.com/ProjectLeonida/mandy/pull/3127#pullrequestreview-6151749908) · **reviewed** Independent Linux review on main `01eca4b71` + head `9022f00a8`, 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 on `128648cfe`, with the runner, tests, and workflow identical. One remaining POSIX edge case: a filename with an interior carriage return still splits at that character because `newline=None` converts 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.
Author
Owner

@⁠aegish-zagi on GitHub · 2026-12-02 14:37 UTC · original

Verification — VERIFY-3127

PR #3127 — ci: preserve Unicode separators in standalone test filenames (CI-STANDALONE-PATH-RECORD-BOUNDARIES)
Head 9022f00a81; MERGEABLE against main
Tests run The PR's tests/test_run_standalone_tests.py run standalone in a scratch worktree: (a) PR test file against plain main code, (b) PR test file against the PR head. Also python -I scripts/red_green.py 3127 --remote upstream --no-cargo
Red on main FAILED (failures=2) — the new test_only_newlines_separate_test_paths fails on main for both separators: main's splitlines() splits a filename containing U+2028 / U+0085 into two bogus paths ("4 files, 4 files failed", ::error file=test_before::test_before failed)
Green on PR All 6 tests pass with the PR head (OK)
Note on tooling red_green.py reported "no red" (5 pass on both) for this PR; the direct worktree run above contradicts it and is the evidence I am standing on — the tool's red side apparently did not exercise the new test against main's runner
Diff audit scripts/run_standalone_tests.py: split stdin on "\n" only, and reconfigure stdin with newline=None so no universal-newline translation eats a separator inside a filename. Two lines, one topic, claim in place, no game data
Verdict PASS — red on main, green on the PR, no regressions in the file's other 5 tests
Platform Linux, Python 3.12.3, no GPU (Profile Z)

AI-assisted: yes (Muse Wonder, Muse by Meta)

**@⁠aegish-zagi** on GitHub · 2026-12-02 14:37 UTC · [original](https://github.com/ProjectLeonida/mandy/pull/3127#issuecomment-7348859896) Verification — VERIFY-3127 | | | |---|---| | PR | #3127 — ci: preserve Unicode separators in standalone test filenames (CI-STANDALONE-PATH-RECORD-BOUNDARIES) | | Head | 9022f00a8169669b0a8fbb7a8dc30d92a66db5ac; MERGEABLE against main | | Tests run | The PR's `tests/test_run_standalone_tests.py` run standalone in a scratch worktree: (a) PR test file against plain main code, (b) PR test file against the PR head. Also `python -I scripts/red_green.py 3127 --remote upstream --no-cargo` | | Red on main | **FAILED (failures=2)** — the new test_only_newlines_separate_test_paths fails on main for both separators: main's `splitlines()` splits a filename containing U+2028 / U+0085 into two bogus paths ("4 files, 4 files failed", `::error file=test_before::test_before failed`) | | Green on PR | All 6 tests pass with the PR head (OK) | | Note on tooling | red_green.py reported "no red" (5 pass on both) for this PR; the direct worktree run above contradicts it and is the evidence I am standing on — the tool's red side apparently did not exercise the new test against main's runner | | Diff audit | scripts/run_standalone_tests.py: split stdin on "\n" only, and reconfigure stdin with newline=None so no universal-newline translation eats a separator inside a filename. Two lines, one topic, claim in place, no game data | | Verdict | **PASS** — red on main, green on the PR, no regressions in the file's other 5 tests | | Platform | Linux, Python 3.12.3, no GPU (Profile Z) | AI-assisted: yes (Muse Wonder, Muse by Meta)
Author
Owner

@⁠MoonEyes on GitHub · 2026-12-02 15:10 UTC · original

Merging. Head 9022f00a8 merges cleanly with main 83046a713 and does not force a rebase of #2566. Third-party verification by MoonEyes' agent (#3127): the new test fails red without the fix and passes green with it, on head 9022f00a81; CI is green including no-game-data, and there is no open review or question. Merged by MoonEyes.

AI-assisted (Claude Code).

**@⁠MoonEyes** on GitHub · 2026-12-02 15:10 UTC · [original](https://github.com/ProjectLeonida/mandy/pull/3127#issuecomment-7349872507) Merging. Head `9022f00a8` merges cleanly with `main` `83046a713` and does not force a rebase of #2566. Third-party verification by MoonEyes' agent (https://git.gtahub.st/github/ubiquitarianism--leonida/pulls/3127): the new test fails red without the fix and passes green with it, on head 9022f00a8169669b0a8fbb7a8dc30d92a66db5ac; CI is green including no-game-data, and there is no open review or question. Merged by MoonEyes. AI-assisted (Claude Code).
github-bot changed target branch from main to gh-pr/3127/base 2026-12-02 15:23:06 +00:00
github manually merged commit 9022f00a81 into gh-pr/3127/base 2026-12-02 15:23:09 +00:00
This discussion has been locked. Commenting is limited to contributors.
No reviewers
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.

Dependencies

No dependencies set

Reference
github/ubiquitarianism--leonida!3127
No description provided.