fix: report seven always-throwing content and audio exports as not implemented #11009

Merged
EagleBearerYS merged 4 commits from upstream-pr/11009 into main 2026-10-26 16:36:36 +00:00
EagleBearerYS commented 2026-10-25 14:09:20 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by EagleBearerYS on 2026-10-25T14:09:20Z.


What

This is #10984's fix applied to seven more exports. Each of them threw a bare exception on every valid call, so tools/progress.py counted it as implemented. The final path now goes through NotImplemented_nid_no_patch, which counts it as todo (6,104 → 6,097 of 12,305).

A valid call sees no change in behaviour beyond the exception: it still throws, now with the text <name> not implemented, and the four ContentSearch calls throw a runtime_error where they threw a logic_error. Every early answer (NOT_INITIALIZED, argument and handle errors, RequireSession) is unchanged, and each debt entry keeps the old reason.

  • sceAudioPropagationSourceCalculateAudioPaths: threw runtime_error("sceAudioPropagationSourceCalculateAudioPaths"), as propagation is not implemented.
  • sceContentExportGetProgress: "progress requires the calling title SDK compatibility mode".
  • sceContentExportFromDataWithThumbnail: "the host has no media library to export into".
  • sceContentSearchGetMetadataFieldInfo, sceContentSearchGetMetadataValue: "metadata id was never opened, as the host content library is empty, and the console's error for it is unknown". ThrowUnknownMetadataId had no other callers and is removed.
  • sceContentSearchOpenMetadata, sceContentSearchOpenMetadataByContentId: " is not in the host content library, which is empty, and the console's error for it is unknown".

Related: #10984 (the same fix for four exports); #11042 (the same fix for five network and kernel exports).

Tested

  • GitHub's runners: run 40199525220. guest_audio_propagation, guest_content_export and guest_content_search pass 10 of 10 on Linux and on Windows, 0 skipped. With main's implementation, they fail on both.
  • Linux (Ubuntu 24.04, gcc 13.3, CI flags):
    • Each test requires the exact <name> not implemented text. It fails with its commit's product change reverted and passes with it.
    • Full ctest: 2,163 passed, 91 skipped, 6 failed. The six failures are the IPv6 socket tests, because the test machine has IPv6 disabled.
  • No title tested.
  • d55cd28762, after oneandonlydean's review (run): the three tests no longer call the seven unsupported paths. The exact <name> not implemented checks above, their RequireNotImplemented/NotImplemented helpers and the output checks that followed those calls are gone; the argument, session and handle checks stay. Those cover only the early answers, which this PR doesn't change, so the tests no longer tell this PR's code from main's; the change shows in tools/progress.py's count. guest_audio_propagation, guest_content_export and guest_content_search pass 10 runs in a row. Linux: 3 run, 3 pass, 0 skip, 0 fail. Windows: 3 run, 3 pass, 0 skip, 0 fail. Suites: libc and libkernel pass on Linux (144 and 207) and on Windows (171 and 223). 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
  • Fixes: none
  • Unblocks: none
  • GPUs tested: n/a
  • AI-assisted: yes
<!-- greyfinch-sync:boykopovar/AnyPS5:issue:5005472006 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/11009). Originally posted by [EagleBearerYS](https://github.com/EagleBearerYS) on 2026-10-25T14:09:20Z. --- ### What This is #10984's fix applied to seven more exports. Each of them threw a bare exception on every valid call, so `tools/progress.py` counted it as implemented. The final path now goes through `NotImplemented_nid_no_patch`, which counts it as todo (6,104 → 6,097 of 12,305). A valid call sees no change in behaviour beyond the exception: it still throws, now with the text `<name> not implemented`, and the four ContentSearch calls throw a `runtime_error` where they threw a `logic_error`. Every early answer (NOT_INITIALIZED, argument and handle errors, `RequireSession`) is unchanged, and each debt entry keeps the old reason. - `sceAudioPropagationSourceCalculateAudioPaths`: threw `runtime_error("sceAudioPropagationSourceCalculateAudioPaths")`, as propagation is not implemented. - `sceContentExportGetProgress`: "progress requires the calling title SDK compatibility mode". - `sceContentExportFromDataWithThumbnail`: "the host has no media library to export into". - `sceContentSearchGetMetadataFieldInfo`, `sceContentSearchGetMetadataValue`: "metadata id <n> was never opened, as the host content library is empty, and the console's error for it is unknown". `ThrowUnknownMetadataId` had no other callers and is removed. - `sceContentSearchOpenMetadata`, `sceContentSearchOpenMetadataByContentId`: "<path or content id> is not in the host content library, which is empty, and the console's error for it is unknown". Related: #10984 (the same fix for four exports); #11042 (the same fix for five network and kernel exports). ### Tested - **GitHub's runners:** [run 40199525220](https://github.com/EagleBearerYS/AnyPS5/actions/runs/40199525220). `guest_audio_propagation`, `guest_content_export` and `guest_content_search` pass 10 of 10 on Linux and on Windows, 0 skipped. With main's implementation, they fail on both. - **Linux** (Ubuntu 24.04, gcc 13.3, CI flags): - Each test requires the exact `<name> not implemented` text. It fails with its commit's product change reverted and passes with it. - Full ctest: 2,163 passed, 91 skipped, 6 failed. The six failures are the IPv6 socket tests, because the test machine has IPv6 disabled. - No title tested. - **d55cd28762, after oneandonlydean's review** ([run](https://github.com/EagleBearerYS/AnyPS5/actions/runs/40279852025)): the three tests no longer call the seven unsupported paths. The exact `<name> not implemented` checks above, their `RequireNotImplemented`/`NotImplemented` helpers and the output checks that followed those calls are gone; the argument, session and handle checks stay. Those cover only the early answers, which this PR doesn't change, so the tests no longer tell this PR's code from main's; the change shows in `tools/progress.py`'s count. `guest_audio_propagation`, `guest_content_export` and `guest_content_search` pass 10 runs in a row. Linux: 3 run, 3 pass, 0 skip, 0 fail. Windows: 3 run, 3 pass, 0 skip, 0 fail. Suites: libc and libkernel pass on Linux (144 and 207) and on Windows (171 and 223). 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 - [x] Fixes: none - [x] Unblocks: none - [x] GPUs tested: n/a - [x] AI-assisted: yes
MarcZX10 commented 2026-10-25 14:15:50 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-25T14:15:50Z.

Review: APPROVED


Reviewed the seven export paths and their validation order. The changes preserve the earlier uninitialized, handle, argument and session checks, then route the still-unimplemented valid-call paths through NotImplemented_nid_no_patch, making progress classification accurate without adding placeholder success. The corresponding tests require the standard not-implemented diagnostic, and the debt entries retain the unresolved behavior. The reported Linux/Windows focused tests and policy checks pass; the unrelated IPv6 test failures are clearly separated.

<!-- greyfinch-sync:boykopovar/AnyPS5:review:5643626298 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/11009#pullrequestreview-5643626298). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-10-25T14:15:50Z. **Review:** APPROVED --- Reviewed the seven export paths and their validation order. The changes preserve the earlier uninitialized, handle, argument and session checks, then route the still-unimplemented valid-call paths through `NotImplemented_nid_no_patch`, making progress classification accurate without adding placeholder success. The corresponding tests require the standard not-implemented diagnostic, and the debt entries retain the unresolved behavior. The reported Linux/Windows focused tests and policy checks pass; the unrelated IPv6 test failures are clearly separated.
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!11009
No description provided.