fix(prx): report four exports that always throw as not implemented #10984

Merged
EagleBearerYS merged 3 commits from upstream-pr/10984 into main 2026-10-27 06:59:18 +00:00
EagleBearerYS commented 2026-10-25 12:24:11 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by EagleBearerYS on 2026-10-25T12:24:11Z.


What

Four exports threw a bare std::logic_error on every valid call, so tools/progress.py counted them as implemented:

  • sceNpEntitlementAccessAbortRequest and sceNpEntitlementAccessDeleteRequest: the library keeps no request table.
  • sceContentDeleteByPath and sceContentDeleteById: after initialization, the console's error for content that isn't in the library is unknown.

No source gives their behaviour (searched: shadPS4, Orbital, KytyPS5, SharpProspero, SharpEmu, fpPS4, REmu). So they now go through NotImplemented_nid_no_patch, which counts them as todo: 6,070 → 6,066 of 12,293.

This changes no behaviour a valid call sees, beyond the exception text. ContentDelete's NOT_INITIALIZED (0x809D5002) and argument errors are unchanged. The abort/delete check moves from guest_offline_imports to the library's own guest_entitlements test, and both debt entries name the missing piece.

Tested

  • GitHub's runners: run 40191893907. guest_entitlements, guest_entitlements_missing, guest_offline_imports and guest_content_delete pass 10 of 10 on Linux and on Windows, 0 skipped. With this PR's tests and main's Export.cpp files, they fail.
  • Linux x86-64 (Ubuntu 24.04, gcc 13.3.0), no title:
    • each commit's test fails with its product change reverted and passes with it;
    • CI-configured build, then ctest as an unprivileged user: 2,219 tests, 2,124 passed, 90 skipped and 5 failed. The five need IPv6, which that machine lacks: guest_net_buffer_validation, guest_socket_options, guest_socket_stream_options, guest_socket_address_length and guest_tcp.
  • 8ed27932f2, following the rule that tests don't require a placeholder to throw (run). The tests no longer require the exact <name> not implemented text from sceContentDeleteByPath, sceContentDeleteById (two IDs), sceNpEntitlementAccessAbortRequest and sceNpEntitlementAccessDeleteRequest, since such a check fails once the call is implemented. The helper and catch those checks used go too. The calls still throw, as the debt entries say, and the argument checks stay. guest_content_delete, guest_entitlements, guest_entitlements_missing and guest_offline_imports pass 10 runs in a row. Linux: 4 run, 4 pass, 0 skip, 0 fail. Windows: 4 run, 4 pass, 0 skip, 0 fail. Suites: libc and libkernel pass on Linux (144 and 207). On Windows libc passes (171), and libkernel has 1 failure of 223: guest_raise_in_system_call timed out at 30 s, as it did on both arms of an unrelated run today. The suites ran with APS5_SKIP_TIMING_TESTS=1, which relaxes precise_wait's median bounds on GitHub's hosted runners.

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; proposed to merge before #9834 (merge order only: both edit core/libs/tests/GuestOfflineImports.cpp, and #9834 is a draft waiting on #9630 and a native x86-64 run), asked of its author, waiting for their reply
  • Fixes: none
  • Unblocks: none
  • GPUs tested: none needed (no GPU code)
  • AI-assisted: yes
<!-- greyfinch-sync:boykopovar/AnyPS5:issue:5004696291 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/10984). Originally posted by [EagleBearerYS](https://github.com/EagleBearerYS) on 2026-10-25T12:24:11Z. --- ### What Four exports threw a bare `std::logic_error` on every valid call, so `tools/progress.py` counted them as implemented: - `sceNpEntitlementAccessAbortRequest` and `sceNpEntitlementAccessDeleteRequest`: the library keeps no request table. - `sceContentDeleteByPath` and `sceContentDeleteById`: after initialization, the console's error for content that isn't in the library is unknown. No source gives their behaviour (searched: shadPS4, Orbital, KytyPS5, SharpProspero, SharpEmu, fpPS4, REmu). So they now go through `NotImplemented_nid_no_patch`, which counts them as todo: 6,070 → 6,066 of 12,293. This changes no behaviour a valid call sees, beyond the exception text. ContentDelete's NOT_INITIALIZED (`0x809D5002`) and argument errors are unchanged. The abort/delete check moves from `guest_offline_imports` to the library's own `guest_entitlements` test, and both debt entries name the missing piece. ### Tested - **GitHub's runners:** [run 40191893907](https://github.com/EagleBearerYS/AnyPS5/actions/runs/40191893907). `guest_entitlements`, `guest_entitlements_missing`, `guest_offline_imports` and `guest_content_delete` pass 10 of 10 on Linux and on Windows, 0 skipped. With this PR's tests and main's `Export.cpp` files, they fail. - **Linux** x86-64 (Ubuntu 24.04, gcc 13.3.0), no title: - each commit's test fails with its product change reverted and passes with it; - CI-configured build, then `ctest` as an unprivileged user: 2,219 tests, 2,124 passed, 90 skipped and 5 failed. The five need IPv6, which that machine lacks: `guest_net_buffer_validation`, `guest_socket_options`, `guest_socket_stream_options`, `guest_socket_address_length` and `guest_tcp`. - **8ed27932f2, following the rule that tests don't require a placeholder to throw** ([run](https://github.com/EagleBearerYS/AnyPS5/actions/runs/40338080018)). The tests no longer require the exact `<name> not implemented` text from `sceContentDeleteByPath`, `sceContentDeleteById` (two IDs), `sceNpEntitlementAccessAbortRequest` and `sceNpEntitlementAccessDeleteRequest`, since such a check fails once the call is implemented. The helper and catch those checks used go too. The calls still throw, as the debt entries say, and the argument checks stay. `guest_content_delete`, `guest_entitlements`, `guest_entitlements_missing` and `guest_offline_imports` pass 10 runs in a row. Linux: 4 run, 4 pass, 0 skip, 0 fail. Windows: 4 run, 4 pass, 0 skip, 0 fail. Suites: libc and libkernel pass on Linux (144 and 207). On Windows libc passes (171), and libkernel has 1 failure of 223: `guest_raise_in_system_call` timed out at 30 s, as it did on both arms of [an unrelated run](https://github.com/EagleBearerYS/AnyPS5/actions/runs/40323841743) today. The suites ran with `APS5_SKIP_TIMING_TESTS=1`, which relaxes `precise_wait`'s median bounds on GitHub's hosted runners. ### 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: none; proposed to merge before #9834 (merge order only: both edit `core/libs/tests/GuestOfflineImports.cpp`, and #9834 is a draft waiting on #9630 and a native x86-64 run), [asked of its author](https://github.com/boykopovar/AnyPS5/pull/10984#issuecomment-6398040119), waiting for their reply - [x] Fixes: none - [x] Unblocks: none - [x] GPUs tested: none needed (no GPU code) - [x] AI-assisted: yes
MarcZX10 commented 2026-10-25 12:33:11 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-25T12:33:11Z.

Review: APPROVED


Reviewed exact head eacd1ad6109945bef507e5446e9f26dceab374fc. The four paths now use the repository's standard unimplemented-path signal, while the existing initialization and argument checks stay ahead of it. The tests move request abort/delete coverage to the entitlement test and assert the new error type and message. I found no blocking issue.

I independently ran check_conventions.py, git diff --check, and C++20 syntax checks for both exports and the affected tests; all passed. The hosted product build jobs are skipped for this PR. I did not run CTest locally; the Linux suite results and five IPv6-dependent failures in the PR description are author-reported.

<!-- greyfinch-sync:boykopovar/AnyPS5:review:5643212903 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/10984#pullrequestreview-5643212903). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-10-25T12:33:11Z. **Review:** APPROVED --- Reviewed exact head `eacd1ad6109945bef507e5446e9f26dceab374fc`. The four paths now use the repository's standard unimplemented-path signal, while the existing initialization and argument checks stay ahead of it. The tests move request abort/delete coverage to the entitlement test and assert the new error type and message. I found no blocking issue. I independently ran `check_conventions.py`, `git diff --check`, and C++20 syntax checks for both exports and the affected tests; all passed. The hosted product build jobs are skipped for this PR. I did not run CTest locally; the Linux suite results and five IPv6-dependent failures in the PR description are author-reported.
MarcZX10 commented 2026-10-25 13:06:17 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-25T13:06:17Z.

Review: DISMISSED


One repository-rule item needs follow-up before this PR is ready: the current overlap report identifies open PR #9834 on GuestOfflineImports.cpp. I checked both current heads, and a three-way merge of them reports a content conflict in that file. #9834 changes the nearby sceHttpSendRequest expectation; this PR removes the abort/delete assertions from the same test file and relocates them to GuestEntitlements.cpp. They cover different behavior, but the branches still conflict.

Please agree with #9834's author which PR should merge first, then record that order in this PR's Depends on checklist line and rebase/resolve the test-file conflict as needed. I found no duplicate implementation in these changes; this request is only to make the required sequencing explicit and keep both test changes mergeable.

<!-- greyfinch-sync:boykopovar/AnyPS5:review:5643321506 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/10984#pullrequestreview-5643321506). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-10-25T13:06:17Z. **Review:** DISMISSED --- One repository-rule item needs follow-up before this PR is ready: the current overlap report identifies open PR #9834 on `GuestOfflineImports.cpp`. I checked both current heads, and a three-way merge of them reports a content conflict in that file. #9834 changes the nearby `sceHttpSendRequest` expectation; this PR removes the abort/delete assertions from the same test file and relocates them to `GuestEntitlements.cpp`. They cover different behavior, but the branches still conflict. Please agree with #9834's author which PR should merge first, then record that order in this PR's `Depends on` checklist line and rebase/resolve the test-file conflict as needed. I found no duplicate implementation in these changes; this request is only to make the required sequencing explicit and keep both test changes mergeable.
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!10984
No description provided.