feat(tools): list verified patch catalog entries #10719
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/10719"
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 WhiteAssassins on 2026-10-24T19:13:10Z.
What
Add an opt-in
--list-verifiedmode to the offline patch advisor. It enumerates every matching catalog entry that passes the existing title/version, SHA-256 andrelinker --verify-patcheschecks. Each listed entry includes its catalog number, patch path, target hashes and the options needed to convert with that patch. Entries remain in catalog order; invalid or incompatible entries are reported individually and excluded from the verified list.Without the flag, the advisor's existing recommendation, ambiguity decision and exit statuses are unchanged. The ambiguity message now points to
--list-verified. In list mode, at least one verified entry exits0; no verified entry retains the existing1or2outcome. The output tells users to choose one file because listed entries are not combined. Listing does not download anything or modify the input. This is a small follow-up to #8900 and the broader catalog discussion #8893.Tested
python3 tools/check_test_registration.py --scripts: passed.python3 tools/check_conventions.py --base origin/main: passed.git diff --check origin/main...HEAD: passed.python3 tools/pr_overlap.py --branch feat/patch-advisor-list-verified: no code overlap reported. Several comparisons involvingdocs/user/USAGE.mdwere inconclusive because those PRs conflict withmain.Checklist
main; no other open PR implements the same functionsNotImplemented_nid_no_patch); silent stubs are listed under Silent stubs in their library's technical debt file (n/a: no unimplemented paths in this Python tool).mdfiles or images added to the repository (attach them to this PR)Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-24T19:23:00Z.
Review: APPROVED
Reviewed at exact head
decf5429c56b4a8f46cb7a011c86c6f4d60d755b. The opt-in listing keeps the existing recommendation/ambiguity behavior intact by default, verifies each catalog entry independently, reports only entries passing metadata, target hash and relinker checks, preserves catalog order, and does not modify the input. The CLI unit tests cover multiple/single/no matches, malformed and incompatible entries, hashes, spaced paths and conversion arguments. The registered synthetic-ELF integration test now exercises these cases against the native relinker and checks the input remains unchanged.I ran
python3 -m unittest tools.tests.test_suggest_patches -v(28 passed),python3 tools/check_conventions.py --base upstream/mainandgit diff --check upstream/main...HEAD(both passed). Hosted Linux, Windows, macOS arm64, macOS x86_64 and ASAN relinker jobs all pass, and the PR is mergeable. Product jobs are skipped by repository policy; the PR reports its local synthetic integration run.Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-24T19:37:10Z.
Review: APPROVED
Re-reviewed exact head
dbe74bf422e953f24c4fe9af824e5e7b7b49adfc. The latest commit only clarifies the ambiguous-match and--list-verifiedmessages, updates their unit/integration assertions, and documents the option; behavior remains unchanged. I ranpython3 -m unittest tools.tests.test_suggest_patches(24/24 passed), diff-check and conventions (pass). Hosted relinker Linux, Windows, macOS x86_64/arm64 and ASan jobs pass; product jobs are skipped by policy.Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-24T20:20:45Z.
Review: APPROVED
Reviewed the complete diff at
dbe74bf422. The opt-in listing preserves the existing default recommendation/ambiguity behavior, reports each independently rejected catalog entry, and prints verified patch paths, hashes and conversion options without implying the entries are combined. The tests cover zero/one/multiple matches, invalid/incompatible entries, paths with spaces, CLI integration and input immutability. The author reports 28 unit tests and the synthetic-ELF integration passing locally; hosted eligibility, conventions, labels and the full relinker matrix/ASAN passed. Product Linux/Windows jobs were skipped by workflow policy.Imported from boykopovar/AnyPS5. Originally posted by THEMANnt on 2026-10-25T00:01:02Z.
Review: APPROVED
Reviewed
dbe74bf422e953f24c4fe9af824e5e7b7b49adfcagainst2fade7ef4e5732580db9cc18832a2e4d6f7da489. No actionable findings in this focused review.Source review: Inspected the complete patch, verification pipeline, documentation and changed relinker integration test. Listing consumes only entries that already pass metadata, target hashes and relinker verification; it retains catalog order and explicitly requires choosing one patch. The default single-match recommendation, multiple-match ambiguity and no-match/error statuses remain separate. Extracted conversion options preserve quoting and module/executable arguments.
Validation: Windows Python 3.11:
tools/tests/test_suggest_patches.py -v, 28 passed, 0 skipped; baseline 24 passed. Baseline production with changed tests gave four expected unsupported-option SystemExit errors and one expected changed-guidance assertion failure. Conventions, whitespace and script registration passed. Effective hosted relinker matrix and ASan succeeded; full-product jobs were skipped.Scope: Local unit tests substitute relinker responses. The changed real-relinker integration script was inspected, not run locally; no game playback or full application build was performed.
Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-25T00:11:22Z.
Review: APPROVED
The opt-in mode keeps the existing recommendation path intact and lists only entries that pass the same metadata, target hash and relinker verification checks. It preserves catalog order, emits conversion options per entry, warns that patches are not combined, and does not modify the input; the tests also cover per-entry rejection and unchanged default ambiguity behavior. I ran
python3 -m unittest tools.tests.test_suggest_patches(28 passed), the conventions checker,git diff --check, andpython3 tools/check_test_registration.py --scripts; all passed. The relinker integration script needs a built native executable that is not present in this checkout, so I could not reproduce that part locally; the PR reports it passing.