merge_check: preserve Unicode line separators in squash subjects #300

Closed
Andretuta wants to merge 1 commit from upstream-pr/300 into main
Andretuta commented 2026-11-24 03:04:02 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by Andretuta on 2026-11-24T03:04:02Z.


Carried over from old PR 10032 by maxence468 in the original Leonida repository, which went private on 23 Nov 2026. The code is the branch old-pr/10032, exactly that PR's last commit. All carried-over PRs are listed in #17.
Opened as a draft, and the CI runs the opening started were cancelled so 250 PRs don't fill the queue. Re-run CI here when you review it.
maxence468: this is your work. Feel free to take it over, by pushing to the branch or opening your own PR and closing this one.


Original description (mentions and #N references are disabled; the numbers refer to the old repository):

Claim: https://github.com/ProjectLeonida/Leonida/issues/9677#issuecomment-7116837902

Git separates log records with LF. A Unicode line separator inside a squash subject is part of that subject. Splitting there made the history scan attribute the merge to an earlier PR number and miss the trailing one. Split on LF only.

The regression creates a temporary Git repository. On the parent it attributed the commit to #10; on this branch it correctly attributes it to #11. Windows CPU only, no GPU or game inputs. Of 21 merge_check tests, 20 passed. Both subcases of test_duplicate_check_reports_failed_blob_reads also failed on the parent in an independent run. Changed-file game-data and whitespace checks passed.

Semantic suite: 6,046 tests in 459 files; failures in test_exec_computed, test_image_atomics_guard, test_sopc_validation and test_unary_f16_validation. This PR touches only merge_check and its test. AI-assisted with Codex.

<!-- greyfinch-sync:ubiquitarianism/leonida:issue:5465293500 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/pull/300). Originally posted by [Andretuta](https://github.com/Andretuta) on 2026-11-24T03:04:02Z. --- > Carried over from **old PR 10032** by `maxence468` in the original Leonida repository, which went private on 23 Nov 2026. The code is the branch `old-pr/10032`, exactly that PR's last commit. All carried-over PRs are listed in #17. > Opened as a draft, and the CI runs the opening started were cancelled so 250 PRs don't fill the queue. Re-run CI here when you review it. > `maxence468`: this is your work. Feel free to take it over, by pushing to the branch or opening your own PR and closing this one. --- Original description (mentions and `#N` references are disabled; the numbers refer to the old repository): Claim: https://github.com/ProjectLeonida/Leonida/issues/9677#issuecomment-7116837902 Git separates log records with LF. A Unicode line separator inside a squash subject is part of that subject. Splitting there made the history scan attribute the merge to an earlier PR number and miss the trailing one. Split on LF only. The regression creates a temporary Git repository. On the parent it attributed the commit to `#10`; on this branch it correctly attributes it to `#11`. Windows CPU only, no GPU or game inputs. Of 21 merge_check tests, 20 passed. Both subcases of test_duplicate_check_reports_failed_blob_reads also failed on the parent in an independent run. Changed-file game-data and whitespace checks passed. Semantic suite: 6,046 tests in 459 files; failures in test_exec_computed, test_image_atomics_guard, test_sopc_validation and test_unary_f16_validation. This PR touches only merge_check and its test. AI-assisted with Codex.
ubiquitarianism commented 2026-11-24 16:17:48 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by ubiquitarianism on 2026-11-24T16:17:48Z.


Closing: the same patch (same git patch-id) was merged through #893.

<!-- greyfinch-sync:ubiquitarianism/leonida:comment:7137431869 --> Imported from [ubiquitarianism/leonida](https://github.com/ubiquitarianism/leonida/pull/300#issuecomment-7137431869). Originally posted by [ubiquitarianism](https://github.com/ubiquitarianism) on 2026-11-24T16:17:48Z. --- Closing: the same patch (same git patch-id) was merged through #893.

Pull request closed

Sign in to join this conversation.
No reviewers
No labels
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.

Reference
ProjectLeonida/mandy!300
No description provided.