fix(tools): stream duplicate export search patterns #8461

Merged
mazen320 merged 1 commit from upstream-pr/8461 into main 2026-10-21 03:23:24 +00:00
mazen320 commented 2026-10-20 13:01:34 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by mazen320 on 2026-10-20T13:01:34Z.


What

Large export diffs can exceed Windows' command-line limit because duplicate detection passes every export name in one regex argument. Feed fixed-string patterns to git grep on stdin instead; the existing C++ parser still checks exact export names, definitions, library ownership and test exclusions. No export is dropped and no check is disabled.

Tested

Windows, Python and Git fixture tests. The 400-export regression fails on unchanged main with FileNotFoundError: [WinError 206], then passes with the change, retaining the real duplicate and rejecting a longer identifier with the same prefix. All four blob-read tests pass in 3.989 s, including the existing Git process-count assertions.

All 140 conventions regression tests pass (85.345 s total).

The real --base origin/main comparison also finishes rather than crashing: 235 findings / 8 errors against the old fork history. The focused --base upstream/main comparison passes. This changes developer tooling only; no game, console or GPU improvement is claimed.

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:4936118136 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/8461). Originally posted by [mazen320](https://github.com/mazen320) on 2026-10-20T13:01:34Z. --- ### What Large export diffs can exceed Windows' command-line limit because duplicate detection passes every export name in one regex argument. Feed fixed-string patterns to `git grep` on stdin instead; the existing C++ parser still checks exact export names, definitions, library ownership and test exclusions. No export is dropped and no check is disabled. ### Tested <!-- OS, title or homebrew, what was checked. "Not tested" is a valid answer. A performance change: the summary lines of main and of this PR from the same machine and scene, with the traces attached, captured as the Performance report issue form describes. --> Windows, Python and Git fixture tests. The 400-export regression fails on unchanged main with `FileNotFoundError: [WinError 206]`, then passes with the change, retaining the real duplicate and rejecting a longer identifier with the same prefix. All four blob-read tests pass in 3.989 s, including the existing Git process-count assertions. All 140 conventions regression tests pass (85.345 s total). The real `--base origin/main` comparison also finishes rather than crashing: 235 findings / 8 errors against the old fork history. The focused `--base upstream/main` comparison passes. This changes developer tooling only; no game, console or GPU improvement is claimed. ### Checklist <!-- Rules behind each item: https://github.com/boykopovar/AnyPS5/blob/main/CONTRIBUTING.md --> - [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: <!-- #PR, or none --> none - [x] Fixes: <!-- issue it closes as Fixes #N, or none --> none - [x] Unblocks: <!-- title ID and Game bring-up discussion, e.g. PPSA01325 #3232, or none --> none - [x] GPUs tested: <!-- for AGC, shader recompiler or VideoOut changes: vendor, model, driver and OS of each GPU the GPU tests ran on; otherwise n/a --> n/a - [x] AI-assisted: <!-- yes / no --> yes
github-actions[bot] commented 2026-10-21 00:30:08 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by github-actions[bot] on 2026-10-21T00:30:08Z.


Other open pull requests touch the same code. Merging one will break the other, or both implement the same thing. If this one builds on them, list them in Depends on.

Pull request Conflicting files (lines on main) Same exports Same new files
PR 8777 tools/check_conventions.py L209-210
<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6304947670 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/8461#issuecomment-6304947670). Originally posted by [github-actions[bot]](https://github.com/apps/github-actions) on 2026-10-21T00:30:08Z. --- <!-- pr-overlap --> Other open pull requests touch the same code. Merging one will break the other, or both implement the same thing. If this one builds on them, list them in **Depends on**. | Pull request | Conflicting files (lines on `main`) | Same exports | Same new files | |---|---|---|---| | [PR 8777](https://www.github.com/boykopovar/AnyPS5/pull/8777) | `tools/check_conventions.py` [L209-210](https://github.com/boykopovar/AnyPS5/blob/c82867c77ccd060849bea69cc6931faa130fd534/tools/check_conventions.py#L209-L210) | | |
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!8461
No description provided.