[PR #300] [CLOSED] merge_check: preserve Unicode line separators in squash subjects #350

Closed
opened 2026-11-26 20:17:35 +01:00 by 4ld0 · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/ubiquitarianism/leonida/pull/300
Author: @Andretuta
Created: 11/24/2026
Status: ❌ Closed

Base: main ← Head: old-pr/10032


📝 Commits (1)

  • ac5ca02 merge_check: preserve Unicode line separators in squash subjects

📊 Changes

2 files changed (+7 additions, -1 deletions)

View changed files

📝 scripts/merge_check.py (+1 -1)
📝 tests/test_merge_check.py (+6 -0)

📄 Description

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.


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/ubiquitarianism/leonida/pull/300 **Author:** [@Andretuta](https://github.com/Andretuta) **Created:** 11/24/2026 **Status:** ❌ Closed **Base:** `main` ← **Head:** `old-pr/10032` --- ### 📝 Commits (1) - [`ac5ca02`](https://github.com/ubiquitarianism/leonida/commit/ac5ca02a671814acd2ae8d6750aed3b389eb0b27) merge_check: preserve Unicode line separators in squash subjects ### 📊 Changes **2 files changed** (+7 additions, -1 deletions) <details> <summary>View changed files</summary> 📝 `scripts/merge_check.py` (+1 -1) 📝 `tests/test_merge_check.py` (+6 -0) </details> ### 📄 Description > 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. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
4ld0 2026-11-26 20:17:35 +01:00
Sign in to join this conversation.
No labels
bug
pull-request
No milestone
No project
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
starred/leonida#350
No description provided.