fix(tools): clarify import audit module inputs #6382

Closed
MarcZX10 wants to merge 1 commit from upstream-pr/6382 into main
MarcZX10 commented 2026-10-15 13:43:40 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-15T13:43:40Z.


What

Clarifies that --modules reads original ELF modules. Converted .guest.prx files are PE outputs; their PS5 imports are already recorded in the per-module registry JSON passed as positional input. If a converted PE is passed to --modules, the error now explains the expected input and where to get the imports.

Addresses the usage ambiguity reported in #6378 without treating PE host exports as PS5 module exports.

Tested

Linux (Python 3):

  • python3 -m unittest tools.tests.test_import_audit — 84 tests, 1 skipped.
  • The PE input regression checks the converted .guest.prx filename and the actionable error.
  • python3 tools/check_conventions.py --base upstream/main — passed.
  • git diff --check — passed.

Checklist

  • Based on current main; no other open PR implements the same behavior
  • One topic per PR; follow-ups go in a new pull request
  • No comments in code except technical debt
  • Unimplemented paths throw
  • No notes, investigation .md files or images added to the repository
  • New third-party code is a submodule built from source
  • Generic behavior, not specific to one title
  • Depends on: none
  • Unblocks: none
  • GPUs tested: n/a
  • AI-assisted: yes
<!-- greyfinch-sync:boykopovar/AnyPS5:issue:4874255707 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/6382). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-10-15T13:43:40Z. --- ### What Clarifies that `--modules` reads original ELF modules. Converted `.guest.prx` files are PE outputs; their PS5 imports are already recorded in the per-module registry JSON passed as positional input. If a converted PE is passed to `--modules`, the error now explains the expected input and where to get the imports. Addresses the usage ambiguity reported in #6378 without treating PE host exports as PS5 module exports. ### Tested Linux (Python 3): - `python3 -m unittest tools.tests.test_import_audit` — 84 tests, 1 skipped. - The PE input regression checks the converted `.guest.prx` filename and the actionable error. - `python3 tools/check_conventions.py --base upstream/main` — passed. - `git diff --check` — passed. ### Checklist - [x] Based on current `main`; no other open PR implements the same behavior - [x] One topic per PR; follow-ups go in a new pull request - [x] No comments in code except technical debt - [x] Unimplemented paths throw - [x] No notes, investigation `.md` files or images added to the repository - [x] New third-party code is a submodule built from source - [x] Generic behavior, not specific to one title - [x] Depends on: none - [x] Unblocks: none - [x] GPUs tested: n/a - [x] AI-assisted: yes
github-actions[bot] commented 2026-10-15 13:47:52 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by github-actions[bot] on 2026-10-15T13:47:52Z.


Some comparisons could not be completed because a pull request conflicts with the base branch. Review these shared files manually before concluding that there is no overlap.

Pull request Shared files not compared
PR 3998 docs/user/USAGE.md
PR 4891 docs/user/USAGE.md
PR 5021 docs/user/USAGE.md
PR 5925 docs/user/USAGE.md
PR 6788 docs/user/USAGE.md
PR 6802 docs/user/USAGE.md
PR 6924 docs/user/USAGE.md
PR 6946 docs/user/USAGE.md
PR 6947 docs/user/USAGE.md
PR 7450 docs/user/USAGE.md
PR 7642 docs/user/USAGE.md
<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6193631030 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/6382#issuecomment-6193631030). Originally posted by [github-actions[bot]](https://github.com/apps/github-actions) on 2026-10-15T13:47:52Z. --- <!-- pr-overlap --> Some comparisons could not be completed because a pull request conflicts with the base branch. Review these shared files manually before concluding that there is no overlap. | Pull request | Shared files not compared | |---|---| | [PR 3998](https://www.github.com/boykopovar/AnyPS5/pull/3998) | `docs/user/USAGE.md` | | [PR 4891](https://www.github.com/boykopovar/AnyPS5/pull/4891) | `docs/user/USAGE.md` | | [PR 5021](https://www.github.com/boykopovar/AnyPS5/pull/5021) | `docs/user/USAGE.md` | | [PR 5925](https://www.github.com/boykopovar/AnyPS5/pull/5925) | `docs/user/USAGE.md` | | [PR 6788](https://www.github.com/boykopovar/AnyPS5/pull/6788) | `docs/user/USAGE.md` | | [PR 6802](https://www.github.com/boykopovar/AnyPS5/pull/6802) | `docs/user/USAGE.md` | | [PR 6924](https://www.github.com/boykopovar/AnyPS5/pull/6924) | `docs/user/USAGE.md` | | [PR 6946](https://www.github.com/boykopovar/AnyPS5/pull/6946) | `docs/user/USAGE.md` | | [PR 6947](https://www.github.com/boykopovar/AnyPS5/pull/6947) | `docs/user/USAGE.md` | | [PR 7450](https://www.github.com/boykopovar/AnyPS5/pull/7450) | `docs/user/USAGE.md` | | [PR 7642](https://www.github.com/boykopovar/AnyPS5/pull/7642) | `docs/user/USAGE.md` |
oneandonlydean commented 2026-10-19 03:25:09 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by oneandonlydean on 2026-10-19T03:25:09Z.


Thanks. #7159 takes the other approach to #6378 (it reads the exports of converted PE modules instead of refusing them), and the two conflict, so we're going with #7159. Closing this one as superseded.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6258974305 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/6382#issuecomment-6258974305). Originally posted by [oneandonlydean](https://github.com/oneandonlydean) on 2026-10-19T03:25:09Z. --- Thanks. #7159 takes the other approach to #6378 (it reads the exports of converted PE modules instead of refusing them), and the two conflict, so we're going with #7159. Closing this one as superseded.

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
boykopovar/AnyPS5!6382
No description provided.