merge_check: preserve Unicode line separators in squash subjects (OLD-10032) #893

Merged
leonida/mandy
TanmaySatyam merged 1 commit from fix/old-10032-merge-check-unicode-sep into main 2026-11-24 16:11:23 +00:00

Pull request successfully merged and closed

TanmaySatyam commented 2026-11-24 15:00:53 +00:00

Claimed in the coordination issue as: OLD-10032

Summary

Carries forward old-pr/10032 (carried-over draft #300) cleanly onto current main (3d3770c16), preserving the original author's (maxence468) commit (52742602f, 7 insertions, 1 deletion):

  • Changes out.splitlines() to out.split("\n") in scripts/merge_check.py:prior_merges() so Unicode line separators (such as U+2028) inside a squash-merge subject do not split a single git log entry into two lines and misattribute a PR number. Matches the split("\n") convention already used elsewhere in scripts/merge_check.py.
  • Adds test_unicode_line_separator_in_squash_subject in tests/test_merge_check.py.

Testing & Verification

  • AI-assisted: yes (rebase and verification).
  • Synthetic fixtures only: no game data used (python -I scripts/check_no_game_data.py scripts/merge_check.py tests/test_merge_check.py exits 0).
  • Host: Windows 11, Python 3 (stdlib-only; no runtime/GPU code touched).
  • Tests:
    • python -I tests/test_merge_check.py -v: 24/24 OK (including test_unicode_line_separator_in_squash_subject)
    • python -I tests/test_text_write_line_endings.py: 3/3 OK
    • python -m compileall -q scripts/merge_check.py tests/test_merge_check.py: OK
Claimed in the coordination issue as: OLD-10032 ### Summary Carries forward `old-pr/10032` (carried-over draft #300) cleanly onto current `main` (`3d3770c16`), preserving the original author's (`maxence468`) commit (`52742602f`, 7 insertions, 1 deletion): - Changes `out.splitlines()` to `out.split("\n")` in `scripts/merge_check.py:prior_merges()` so Unicode line separators (such as `U+2028`) inside a squash-merge subject do not split a single `git log` entry into two lines and misattribute a PR number. Matches the `split("\n")` convention already used elsewhere in `scripts/merge_check.py`. - Adds `test_unicode_line_separator_in_squash_subject` in `tests/test_merge_check.py`. ### Testing & Verification - **AI-assisted:** yes (rebase and verification). - **Synthetic fixtures only:** no game data used (`python -I scripts/check_no_game_data.py scripts/merge_check.py tests/test_merge_check.py` exits 0). - **Host:** Windows 11, Python 3 (stdlib-only; no runtime/GPU code touched). - **Tests:** - `python -I tests/test_merge_check.py -v`: 24/24 OK (including `test_unicode_line_separator_in_squash_subject`) - `python -I tests/test_text_write_line_endings.py`: 3/3 OK - `python -m compileall -q scripts/merge_check.py tests/test_merge_check.py`: OK
LewisStephens99 commented 2026-11-24 15:09:37 +00:00

Independent verification on Windows 11, Python 3.14:n- python -I tests/test_merge_check.py: 24/24 passed.n- No game data or GPU used. AI-assisted.

Independent verification on Windows 11, Python 3.14:`n- `python -I tests/test_merge_check.py`: 24/24 passed.`n- No game data or GPU used. AI-assisted.
Sign in to join this conversation.
No description provided.