WIP: merge_check: preserve Unicode line separators in squash subjects #300

Closed
leonida/mandy
Andretuta wants to merge 0 commits from old-pr/10032 into main

Pull request closed

This pull request cannot be reopened because the branch was deleted.

Andretuta commented 2026-11-24 03:04:02 +00:00

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.

> 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

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

Closing: the same patch (same git patch-id) was merged through #893.
Sign in to join this conversation.
No description provided.