Repository navigation
feat(patchchecker): return not initialized from auto download stubs - #23346
Conversation
PrivacyOnion
left a comment
There was a problem hiding this comment.
Verified on Linux (Ubuntu 24.04, GCC 13.3, Ninja, Release) against 1647f7dbac:
- Conventions:
tools/check_conventions.pypassed. - Build:
guest_patch_checker_client_testsbuilt cleanly. - CTest (
guest_patch_checker_client):1/1 Test #4888: guest_patch_checker_client ....... Passed 0.01 sec 100% tests passed, 0 tests failed out of 1 - Negative control: with
core/libs/prx/libScePatchCheckerClient/Export.cppreverted tomainand the new tests kept, the suite fails:Restoring the change makes it pass again.1/1 Test #4888: guest_patch_checker_client .......Subprocess aborted***Exception: 0.27 sec 0% tests passed, 1 tests failed out of 1 - Code reading:
- Verified that scePatchCheckerDisableAutoDownload and scePatchCheckerEnableAutoDownload in core/libs/prx/libScePatchCheckerClient/Export.cpp return SCE_PATCH_CHECKER_ERROR_NOT_INITIALIZED (0x80182402), matching the uninitialized behavior of all other uninitialized client exports.
- Verified that the technical debt fragment docs/dev/debt/changes/feat-patchchecker-disable-enable-auto-download.md accurately updates 'The uninitialized answers' section with upstream firmware disassembly rationale (10 exports returning 0x80182402).
- Verified that core/libs/tests/GuestPatchCheckerClient.cpp asserts both scePatchCheckerDisableAutoDownload and scePatchCheckerEnableAutoDownload return notInitialized (0x80182402).
- Verified compliance with AGENTS.md rules: no code comments added, no hardcoded title IDs or special cases, and valid fragment format under docs/dev/debt/changes/.
- Verified type safety and ABI: int APS5_VABI return type matching the 32-bit signed error code SCE_PATCH_CHECKER_ERROR_NOT_INITIALIZED across LP64 and LLP64 platforms.
Looks Good To Me
|
Windows result for head Host: Windows 11 26300, Intel i7-12700K, WinLibs GCC 15.2.0 (x86_64-ucrt-posix-seh, r6), Release,
AI-assisted: yes (Claude Code), the runs and the numbers above are from this machine. |
|
Tested head Setup: Windows 11 Pro 10.0.26200, Ryzen 7 9800X3D, WinLibs GCC 15.2.0 r7, Release,
Whole batch: the full This is one combined tree, not a run of this PR alone. AI-assisted: yes (Claude Code) |
MarcZX10
left a comment
There was a problem hiding this comment.
Reviewed — looks good
The change consistently returns the uninitialized error from both auto-download exports, and the added guest assertions cover those calls.
What I ran
No commands were run. I read the prepared diff and all three changed files at head 1647f7dbac1bf4ee9bebf543f10dfd4490cca1eb using repo_read.py.
Results
| Check | Result | Note |
|---|---|---|
| Changed code review | passed | All changed files read |
| Build and guest assertions | not run | Reported by author only |
| Debt and convention checks | not run | Reported by author only |
Findings
Blocking
None.
Non-blocking
None.
Not verified
The author reports building and running guest assertions, checking debt resolution, and checking conventions; I did not run these checks. The firmware disassembly claim in the debt note was not independently verified. No files were excluded from review.
To get this to a good state
Nothing is required.
What
Return
SCE_PATCH_CHECKER_ERROR_NOT_INITIALIZED(0x80182402) fromscePatchCheckerDisableAutoDownloadandscePatchCheckerEnableAutoDownloadbefore initialization, matching the uninitialized behavior of the other stubs inlibScePatchCheckerClient.Tested
core/libs/tests/GuestPatchCheckerClient.cppensuringscePatchCheckerDisableAutoDownloadandscePatchCheckerEnableAutoDownloadreturn0x80182402prior to initialization.python tools/debt_fold.py --check.python tools/check_conventions.py.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.mdfiles or images added to the repository (attach them to this PR)