feat(libSceAcm): track sceAcmBatchJobPriority gap and test throw #7064

Closed
jagrat04 wants to merge 1 commit from upstream-pr/7064 into main
jagrat04 commented 2026-10-17 09:49:15 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by jagrat04 on 2026-10-17T09:49:15Z.


What

Tracks sceAcmBatchJobPriority gap in technical debt and verifies that calls throw NotImplemented_nid_no_patch:

  • Retains NotImplemented_nid_no_patch(__func__) for sceAcmBatchJobPriority in core/libs/prx/libSceAcm/Export.cpp as its command encoding and DSP scheduling behavior remain unverified.
  • Documents the signature (AcmBatchInfo* batch, std::uint32_t priority) and unverified behavior gap under Unknown function info in docs/dev/debt/libSceAcm.md.
  • Preserves the scePadVrControllerGetTriggerEffectStates entry in docs/dev/debt/libScePad.md.
  • Adds unit tests in core/libs/tests/GuestAcm.cpp asserting that calling sceAcmBatchJobPriority throws std::runtime_error.

Tested

  • Linux (Ubuntu 24.04 via WSL2, GCC 15.2): ninja -C build-linux libSceAcm guest_acm_tests && ctest --test-dir build-linux -R guest_acm --output-on-failure (100% passed).
  • Conventions: python3 tools/check_conventions.py --base origin/main passed with 0 violations.

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
  • Unblocks: none
  • GPUs tested: n/a
  • AI-assisted: yes
<!-- greyfinch-sync:boykopovar/AnyPS5:issue:4899071384 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/7064). Originally posted by [jagrat04](https://github.com/jagrat04) on 2026-10-17T09:49:15Z. --- ### What Tracks `sceAcmBatchJobPriority` gap in technical debt and verifies that calls throw `NotImplemented_nid_no_patch`: - Retains `NotImplemented_nid_no_patch(__func__)` for `sceAcmBatchJobPriority` in `core/libs/prx/libSceAcm/Export.cpp` as its command encoding and DSP scheduling behavior remain unverified. - Documents the signature `(AcmBatchInfo* batch, std::uint32_t priority)` and unverified behavior gap under `Unknown function info` in `docs/dev/debt/libSceAcm.md`. - Preserves the `scePadVrControllerGetTriggerEffectStates` entry in `docs/dev/debt/libScePad.md`. - Adds unit tests in `core/libs/tests/GuestAcm.cpp` asserting that calling `sceAcmBatchJobPriority` throws `std::runtime_error`. ### Tested <!-- OS, title or homebrew, what was checked. "Not tested" is a valid answer. A performance change: the summary lines of main and of this PR from the same machine and scene, with the traces attached, captured as the Performance report issue form describes. --> - Linux (Ubuntu 24.04 via WSL2, GCC 15.2): `ninja -C build-linux libSceAcm guest_acm_tests && ctest --test-dir build-linux -R guest_acm --output-on-failure` (100% passed). - Conventions: `python3 tools/check_conventions.py --base origin/main` passed with 0 violations. ### 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] Unblocks: none - [x] GPUs tested: n/a - [x] AI-assisted: yes
github-actions[bot] commented 2026-10-17 09:49:59 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by github-actions[bot] on 2026-10-17T09:49:59Z.


Progress report (c61d20f → bd6fc6b)

📈 System libraries: 42.34% (+0.01%, +1 implemented functions)

✅ 1 implemented
Library Name
libSceAcm sceAcmBatchJobPriority
⚪ 1 behaviourally empty (constant return or throw)
Library Name
libSceAcm sceAcmBatchJobPriority
<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6232478069 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/7064#issuecomment-6232478069). Originally posted by [github-actions[bot]](https://github.com/apps/github-actions) on 2026-10-17T09:49:59Z. --- <!-- progress-report --> ### Progress report (c61d20f → bd6fc6b) 📈 **System libraries**: 42.34% (+0.01%, +1 implemented functions) <details> <summary>✅ 1 implemented</summary> | Library | Name | | - | - | | libSceAcm | `sceAcmBatchJobPriority` | </details> <details> <summary>⚪ 1 behaviourally empty (constant return or throw)</summary> | Library | Name | | - | - | | libSceAcm | `sceAcmBatchJobPriority` | </details>
oneandonlydean commented 2026-10-17 10:11:25 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by oneandonlydean on 2026-10-17T10:11:25Z.


Thanks, the sceAcmBatchJobPriority change itself looks good. One docs fix before merge:

Deleting the "Unknown function info" section also drops the libScePad scePadVrControllerGetTriggerEffectStates entry. That function is still a NotImplemented stub and isn't listed anywhere else. Please keep that entry, or move it to libScePad.md. Please also keep "signature unknown" in the new bullet.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6232674571 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/7064#issuecomment-6232674571). Originally posted by [oneandonlydean](https://github.com/oneandonlydean) on 2026-10-17T10:11:25Z. --- Thanks, the sceAcmBatchJobPriority change itself looks good. One docs fix before merge: Deleting the "Unknown function info" section also drops the libScePad `scePadVrControllerGetTriggerEffectStates` entry. That function is still a NotImplemented stub and isn't listed anywhere else. Please keep that entry, or move it to `libScePad.md`. Please also keep "signature unknown" in the new bullet.
jagrat04 commented 2026-10-17 21:46:57 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by jagrat04 on 2026-10-17T21:46:57Z.


Updated debt docs to retain the scePadVrControllerGetTriggerEffectStates entry and noted signature unknown for sceAcmBatchJobPriority. Thanks!

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6241711990 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/7064#issuecomment-6241711990). Originally posted by [jagrat04](https://github.com/jagrat04) on 2026-10-17T21:46:57Z. --- Updated debt docs to retain the scePadVrControllerGetTriggerEffectStates entry and noted signature unknown for sceAcmBatchJobPriority. Thanks!
MarcZX10 commented 2026-10-23 19:07:11 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-23T19:07:11Z.

Review: CHANGES_REQUESTED


The function still discards both batch and priority and returns success, while the PR describes ACM batches as silent no-ops. This is a non-UI audio path, so the repository rules do not permit recording it as a successful implementation without executing the requested operation. Please either implement and evidence the behavior of sceAcmBatchJobPriority, or leave it on NotImplemented_nid_no_patch and keep the signature/behavior gap in technical debt. The added test currently locks in the false-success path and should follow whichever behavior you can substantiate.

<!-- greyfinch-sync:boykopovar/AnyPS5:review:5633229439 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/7064#pullrequestreview-5633229439). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-10-23T19:07:11Z. **Review:** CHANGES_REQUESTED --- The function still discards both `batch` and `priority` and returns success, while the PR describes ACM batches as silent no-ops. This is a non-UI audio path, so the repository rules do not permit recording it as a successful implementation without executing the requested operation. Please either implement and evidence the behavior of `sceAcmBatchJobPriority`, or leave it on `NotImplemented_nid_no_patch` and keep the signature/behavior gap in technical debt. The added test currently locks in the false-success path and should follow whichever behavior you can substantiate.
THEMANnt commented 2026-10-25 23:11:51 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by THEMANnt on 2026-10-25T23:11:51Z.

Review: COMMENTED


Re-reviewed a0a68436db9e21e7a5c5f3fd42bcc52421e1840e. Final approval remains pending.

The earlier merge-conflict blocker has cleared: GitHub now reports this head mergeable. The submitted test still checks the existing unsupported-priority exception and the debt text still leaves scheduling/encoding unimplemented. The current patch also contains a Pad debt entry documenting an unresolved import; it does not add an implementation claim.

Validation: The exact current GuestAcm.cpp passes GCC 15.2 C++23 syntax compilation with its current API declaration. Earlier source inspection established that BatchJobPriority routes through NotImplemented_nid_no_patch and throws runtime_error. No new actionable code defect was verified.

Pending: The complete linked GuestAcm target has not been executed in this review environment. This is a COMMENT recording the resolved conflict and remaining runtime-validation limit, not an approval or a request to change otherwise consistent code.

<!-- greyfinch-sync:boykopovar/AnyPS5:review:5645823981 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/7064#pullrequestreview-5645823981). Originally posted by [THEMANnt](https://github.com/THEMANnt) on 2026-10-25T23:11:51Z. **Review:** COMMENTED --- Re-reviewed `a0a68436db9e21e7a5c5f3fd42bcc52421e1840e`. Final approval remains pending. The earlier merge-conflict blocker has cleared: GitHub now reports this head mergeable. The submitted test still checks the existing unsupported-priority exception and the debt text still leaves scheduling/encoding unimplemented. The current patch also contains a Pad debt entry documenting an unresolved import; it does not add an implementation claim. **Validation:** The exact current GuestAcm.cpp passes GCC 15.2 C++23 syntax compilation with its current API declaration. Earlier source inspection established that BatchJobPriority routes through NotImplemented_nid_no_patch and throws runtime_error. No new actionable code defect was verified. **Pending:** The complete linked GuestAcm target has not been executed in this review environment. This is a COMMENT recording the resolved conflict and remaining runtime-validation limit, not an approval or a request to change otherwise consistent code.
THEMANnt commented 2026-10-26 04:05:43 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by THEMANnt on 2026-10-26T04:05:43Z.

Review: APPROVED


Re-reviewed a0a68436db9e21e7a5c5f3fd42bcc52421e1840e. Approve; the earlier validation blocker is resolved.

The missing execution step is complete. The test catches the existing unsupported-priority exception and retains normal context cleanup. The debt text keeps command encoding and DSP scheduling explicitly unverified; the additional Pad import debt remains documented. No actionable findings.

Validation: Compiled and ran the complete exact GuestAcm.cpp with the exact current libSceAcm/Export.cpp and current public API declarations. Build, Windows unwind-section conversion and executable run all return 0. The full assertion sequence, including BatchJobPriority's runtime_error check, executes successfully.

Scope: The executable uses existing libc linkage for ancillary support; this is a pinned-source integration test, not a full dependency rebuild. No DSP, console, headset or game behavior is claimed.

<!-- greyfinch-sync:boykopovar/AnyPS5:review:5647254692 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/7064#pullrequestreview-5647254692). Originally posted by [THEMANnt](https://github.com/THEMANnt) on 2026-10-26T04:05:43Z. **Review:** APPROVED --- Re-reviewed `a0a68436db9e21e7a5c5f3fd42bcc52421e1840e`. Approve; the earlier validation blocker is resolved. The missing execution step is complete. The test catches the existing unsupported-priority exception and retains normal context cleanup. The debt text keeps command encoding and DSP scheduling explicitly unverified; the additional Pad import debt remains documented. No actionable findings. **Validation:** Compiled and ran the complete exact GuestAcm.cpp with the exact current libSceAcm/Export.cpp and current public API declarations. Build, Windows unwind-section conversion and executable run all return 0. The full assertion sequence, including BatchJobPriority's runtime_error check, executes successfully. **Scope:** The executable uses existing libc linkage for ancillary support; this is a pinned-source integration test, not a full dependency rebuild. No DSP, console, headset or game behavior is claimed.
MarcZX10 commented 2026-10-28 22:24:50 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-28T22:24:50Z.

Review: APPROVED


The current head a0a68436db9e21e7a5c5f3fd42bcc52421e1840e now leaves sceAcmBatchJobPriority on NotImplemented_nid_no_patch, records the unknown signature/behavior in technical debt, preserves the Pad debt entry, and tests the unsupported-call exception. That addresses my earlier false-success finding. The author reports Linux guest_acm passing; an independent Windows run reports the full selected suite with no failures from this PR, and another reviewer built and ran the complete exact GuestAcm.cpp/Export.cpp assertion path successfully. Hosted eligibility, conventions, and labels pass; product jobs are skipped. Current main has no changes in the three PR-touched files since the branch base. I did not run a local build. No remaining blocker; approved.

<!-- greyfinch-sync:boykopovar/AnyPS5:review:5690488594 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/7064#pullrequestreview-5690488594). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-10-28T22:24:50Z. **Review:** APPROVED --- The current head `a0a68436db9e21e7a5c5f3fd42bcc52421e1840e` now leaves `sceAcmBatchJobPriority` on `NotImplemented_nid_no_patch`, records the unknown signature/behavior in technical debt, preserves the Pad debt entry, and tests the unsupported-call exception. That addresses my earlier false-success finding. The author reports Linux `guest_acm` passing; an independent Windows run reports the full selected suite with no failures from this PR, and another reviewer built and ran the complete exact `GuestAcm.cpp`/`Export.cpp` assertion path successfully. Hosted eligibility, conventions, and labels pass; product jobs are skipped. Current `main` has no changes in the three PR-touched files since the branch base. I did not run a local build. No remaining blocker; approved.

Pull request closed

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!7064
No description provided.