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

Manually merged
github merged 1 commit from gh-pr/893/head into gh-pr/893/base 2026-11-26 09:26:47 +00:00
Owner

@⁠TanmaySatyam on GitHub · 2026-11-24 15:00 UTC · original
TanmaySatyam:fix/old-10032-merge-check-unicode-sep → main · +7 −1 · 2 files · 1 commits · merged 2026-11-24 16:11 UTC

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
**@⁠TanmaySatyam** on GitHub · 2026-11-24 15:00 UTC · [original](https://github.com/ubiquitarianism/leonida/pull/893) `TanmaySatyam:fix/old-10032-merge-check-unicode-sep` → `main` · +7 −1 · 2 files · 1 commits · merged 2026-11-24 16:11 UTC 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
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 09:26:45 +00:00
github manually merged commit 52742602f9 into gh-pr/893/base 2026-11-26 09:26:47 +00:00
Author
Owner

@⁠LewisStephens99 on GitHub · 2026-11-24 15:09 UTC · original

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.

**@⁠LewisStephens99** on GitHub · 2026-11-24 15:09 UTC · [original](https://github.com/ubiquitarianism/leonida/pull/893#issuecomment-7135556218) 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.
This discussion has been locked. Commenting is limited to contributors.
No description provided.