feat(tools): report each converted title's current stop in import_audit #4606
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/4606"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Imported from boykopovar/AnyPS5. Originally posted by Nixitov on 2026-10-12T16:40:05Z.
What
tools/import_audit.pynow reports each converted title's current stop: the first unresolved import in the registry order, which is the import the loader fails on. This is exactly the "line where it stops on current main" that a function PR must quote, and it removes the manual relink-and-run step every contributor currently does to find it (the workflow in #1578).nonewhen every import resolves.--jsonresult as astopslist (registry, nid, library, name).Tested
python tools/tests/test_import_audit.pypasses (39 tests), including two new ones: the stop is the first unresolved import (not the first import, and not a later one), and it isnonewhen every import resolves.Current stop (first unresolved import, in registry order): EDyhWelj7UY [libkernel.prx], matching the loader line observed when the title is run.python tools/check_conventions.py --base origin/mainpasses.Checklist
main; no other open PR implements the same functionsNotImplemented_nid_no_patch); silent stubs are listed in TechnicalDebt.mdfiles or images added to the repository (attach them to this PR)Imported from boykopovar/AnyPS5. Originally posted by Nixitov on 2026-10-12T18:53:52Z.
Thanks bot. This is a same-file overlap only, not duplicated logic:
tools/import_audit.py(its report andmain), and #4415 also touches its test.stopssection (the first unresolved import, in registry order) plus its tests; it does not touch the code those PRs change.Happy to rebase after any of them lands; nothing here depends on them.
AI-assisted: yes
Imported from boykopovar/AnyPS5. Originally posted by xXPBSXx on 2026-10-13T13:03:34Z.
Windows test: head
7eae85946merged onto currentmain94d995772, together with 8 other open pull requests in one build (the merges were conflict-free); a failure would have been bisected per PR. Windows 10, MinGW GCC (WinLibs), Ninja Release,-j2: full build 0 errors; ctest for the tests this change adds or touches: import_audit passed;python tools/check_conventions.py --base upstream/mainpassed for the combined tree. I did not run the new tests againstmainwithout the change.AI-assisted (Claude Code).
Imported from boykopovar/AnyPS5. Originally posted by Nixitov on 2026-10-13T14:09:28Z.
Thanks for the Windows run across the combined tree (head merged onto
main94d995772) — good to have the audit passing with this change in place. Agreed the new tests are only meaningful with the change applied.Imported from boykopovar/AnyPS5. Originally posted by adriadam10 on 2026-10-13T14:43:45Z.
Checked the diff, ran
import_audittests locally (29/29 in scope) and confirmed the two new tests fail without the change; Windows run by @xXPBSXx also passed. Merging.Imported from boykopovar/AnyPS5. Originally posted by adriadam10 on 2026-10-13T14:53:08Z.
Rebased onto current
main(conflict intools/import_audit.pymain(): kept main'ssummarizeover module references and thestopsline).test_import_audit.py46 tests OK, scoped ctest 29/29; logic unchanged. Merging once CI is green.