build: merge docs/dev/debt files with the union driver #18328

Merged
oneandonlydean merged 2 commits from upstream-pr/18328 into main 2026-11-12 23:01:16 +00:00
oneandonlydean commented 2026-11-11 08:57:50 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by oneandonlydean on 2026-11-11T08:57:50Z.


What

Adds a .gitattributes line, docs/dev/debt/*.md merge=union, so git merges of the technical debt files keep both sides instead of stopping on a conflict.

Debt files are mostly lists that PRs append to. When several open PRs add a bullet to the same library's file, each merge into main makes the rest conflict on adjacent lines, although every addition is wanted. For example, 26 of 30 open libSceLibreSsl PRs conflicted only on docs/dev/debt/libSceLibreSsl.md.

This is a repository-wide setting, so it is the owner's call. Close it if you would rather keep resolving these by hand.

Limits:

  • It applies to local git merge, git rebase, git cherry-pick and merge-main commits. GitHub's web merge and its mergeable flag may not use custom merge drivers, so a PR can still show as conflicting there until someone merges main into it locally.
  • Union keeps both versions of a line that both sides changed. For a line holding a count (for example "N bodies = X named + Y NID"), that gives two lines and no conflict, so whoever merges still has to check such lines.

Tested

git check-attr merge reports union for files under docs/dev/debt/ and unspecified elsewhere. No code change.

Checklist

  • Based on current main; no other open PR implements the same functions
  • One topic per PR; follow-ups go in a new PR
  • No comments in code except technical debt
  • Unimplemented paths throw (NotImplemented_nid_no_patch); silent stubs are listed under Silent stubs in their library's technical debt file
  • No notes, investigation .md files or images added to the repository (attach them to this PR)
  • New third-party code is a submodule built from source
  • Generic behaviour, not specific to one title
  • Depends on: none
  • Fixes: none
  • Unblocks: none
  • GPUs tested: n/a
  • AI-assisted: yes
<!-- greyfinch-sync:boykopovar/AnyPS5:issue:5256606401 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/18328). Originally posted by [oneandonlydean](https://github.com/oneandonlydean) on 2026-11-11T08:57:50Z. --- ### What Adds a `.gitattributes` line, `docs/dev/debt/*.md merge=union`, so git merges of the technical debt files keep both sides instead of stopping on a conflict. Debt files are mostly lists that PRs append to. When several open PRs add a bullet to the same library's file, each merge into main makes the rest conflict on adjacent lines, although every addition is wanted. For example, 26 of 30 open libSceLibreSsl PRs conflicted only on `docs/dev/debt/libSceLibreSsl.md`. This is a repository-wide setting, so it is the owner's call. Close it if you would rather keep resolving these by hand. Limits: - It applies to local `git merge`, `git rebase`, `git cherry-pick` and merge-main commits. GitHub's web merge and its mergeable flag may not use custom merge drivers, so a PR can still show as conflicting there until someone merges main into it locally. - Union keeps both versions of a line that both sides changed. For a line holding a count (for example "N bodies = X named + Y NID"), that gives two lines and no conflict, so whoever merges still has to check such lines. ### Tested `git check-attr merge` reports `union` for files under `docs/dev/debt/` and `unspecified` elsewhere. No code change. ### Checklist - [x] Based on current `main`; no other open PR implements the same functions - [x] One topic per PR; follow-ups go in a new PR - [x] No comments in code except [technical debt](https://github.com/boykopovar/AnyPS5/blob/main/docs/dev/CONVENTIONS.md) - [x] Unimplemented paths throw (`NotImplemented_nid_no_patch`); silent stubs are listed under Silent stubs in their library's [technical debt](https://github.com/boykopovar/AnyPS5/tree/main/docs/dev/debt) file - [x] No notes, investigation `.md` files or images added to the repository (attach them to this PR) - [x] New third-party code is a submodule built from source - [x] Generic behaviour, not specific to one title - [x] Depends on: none - [x] Fixes: none - [x] Unblocks: none - [x] GPUs tested: n/a - [x] AI-assisted: yes
MarcZX10 commented 2026-11-12 16:26:12 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-11-12T16:26:12Z.

Review: COMMENTED


Reviewed — no blocking findings

Nothing blocks this; the points below are optional.

The head is 26da7e127e80380b56db31fd2acd9d10048a51e9. The change adds one line to a new .gitattributes file, so the review covers that single file.

What I ran

  • Head SHA: 26da7e127e80380b56db31fd2acd9d10048a51e9, read through repo_read.py.
  • Commands:
python3 repo_read.py search "docs/dev/debt" .gitattributes
python3 repo_read.py search "debt" docs/dev

Results

Check Result Note
Diff read (.gitattributes, 1 line) passed Matches the description
Debt files exist at head under docs/dev/debt/ passed The *.md pattern matches them
git check-attr merge for the pattern not run Author-reported only
Raw reader output (excerpt)
26da7e127e80380b56db31fd2acd9d10048a51e9:.gitattributes:1:docs/dev/debt/*.md merge=union
1 matching lines at 26da7e127e80.
26da7e127e80380b56db31fd2acd9d10048a51e9:docs/dev/debt/libAacs.md:1:# libAacs technical debt
26da7e127e80380b56db31fd2acd9d10048a51e9:docs/dev/debt/libSceAgc.md:1:# libSceAgc technical debt

Findings

Blocking

None.

Non-blocking

  • .gitattributes:1 — the union driver keeps both sides of any line that both branches changed, with no conflict marker. The description already says this for count lines. A debt file's structured lines (for example a Labels: or Closes when: line, which the debt tooling reads) would be kept twice in the same way. Nothing in this diff shows that happening; see Not verified.

Not verified

  • The git check-attr merge result stated in the description. I did not run it.
  • The claim that 26 of 30 open libSceLibreSsl PRs conflicted on one file. I have no access to those PRs.
  • How tools/debt_report.py parses debt files after a union merge. I did not read it, so I cannot say whether a duplicated structured line would break it.
  • GitHub's web merge: the description says it may ignore custom merge drivers. I did not check this.

Files read: .gitattributes (full diff). Files reviewed: .gitattributes. Excluded by rule: none.

To get this to a good state

Nothing is required.

Optional: state in the description which local git command was used for the check-attr check, so it can be rerun.

<!-- greyfinch-sync:boykopovar/AnyPS5:review:5878101917 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/18328#pullrequestreview-5878101917). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-11-12T16:26:12Z. **Review:** COMMENTED --- # Reviewed — no blocking findings Nothing blocks this; the points below are optional. The head is `26da7e127e80380b56db31fd2acd9d10048a51e9`. The change adds one line to a new `.gitattributes` file, so the review covers that single file. ## What I ran - Head SHA: `26da7e127e80380b56db31fd2acd9d10048a51e9`, read through `repo_read.py`. - Commands: ``` python3 repo_read.py search "docs/dev/debt" .gitattributes python3 repo_read.py search "debt" docs/dev ``` ## Results | Check | Result | Note | | --- | --- | --- | | Diff read (`.gitattributes`, 1 line) | passed | Matches the description | | Debt files exist at head under `docs/dev/debt/` | passed | The `*.md` pattern matches them | | `git check-attr merge` for the pattern | not run | Author-reported only | <details> <summary>Raw reader output (excerpt)</summary> ``` 26da7e127e80380b56db31fd2acd9d10048a51e9:.gitattributes:1:docs/dev/debt/*.md merge=union 1 matching lines at 26da7e127e80. ``` ``` 26da7e127e80380b56db31fd2acd9d10048a51e9:docs/dev/debt/libAacs.md:1:# libAacs technical debt 26da7e127e80380b56db31fd2acd9d10048a51e9:docs/dev/debt/libSceAgc.md:1:# libSceAgc technical debt ``` </details> ## Findings **Blocking** None. **Non-blocking** - `.gitattributes:1` — the union driver keeps both sides of any line that both branches changed, with no conflict marker. The description already says this for count lines. A debt file's structured lines (for example a `Labels:` or `Closes when:` line, which the debt tooling reads) would be kept twice in the same way. Nothing in this diff shows that happening; see Not verified. ## Not verified - The `git check-attr merge` result stated in the description. I did not run it. - The claim that 26 of 30 open libSceLibreSsl PRs conflicted on one file. I have no access to those PRs. - How `tools/debt_report.py` parses debt files after a union merge. I did not read it, so I cannot say whether a duplicated structured line would break it. - GitHub's web merge: the description says it may ignore custom merge drivers. I did not check this. Files read: `.gitattributes` (full diff). Files reviewed: `.gitattributes`. Excluded by rule: none. ## To get this to a good state Nothing is required. Optional: state in the description which local `git` command was used for the `check-attr` check, so it can be rerun.
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
boykopovar/AnyPS5!18328
No description provided.