feat(libSceNpWebApi2): implement push event abort handles #4188

Closed
MarcZX10 wants to merge 1 commit from upstream-pr/4188 into main
MarcZX10 commented 2026-10-12 00:56:33 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-12T00:56:33Z.


What

Carries the ready implementation from screamm’s feat/npwebapi2-push-event-abort branch, preserving the original commit author. Tracks push-event handles per library context, marks a handle aborted, returns ABORTED when creating a filter on an aborted handle, validates/deletes handles, and removes a context’s handles on termination. This replaces the existing throwing sceNpWebApi2PushEventAbortHandle export.

The signature, error values, and behavior are based on shadPS4’s PS4 implementation. Their PS5 accuracy is unverified; this limitation and the unmodelled timeouts are documented in TechnicalDebt. PR #3399 only added the export as a throwing stub. This does not overlap #4178’s trace-tag export.

Tested

  • Linux Release configure with GCC, BUILD_TESTING=ON, and ANYPS5_ENABLE_SPIRV_TOOLS=ON completed.
  • Built guest_np_web_api2_tests with Ninja (117/117 steps).
  • ctest --test-dir /tmp/AnyPS5-4174-build -R '^guest_np_web_api2$' --output-on-failure --timeout 60 passed (1/1).
  • python3 tools/check_conventions.py --base upstream/main --head HEAD passed.
  • git diff --check passed.

Checklist

  • Based on current main; no other open PR implements the same function
  • 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 in TechnicalDebt
  • No notes, investigation .md files or images added to the repository
  • New third-party code is a submodule built from source
  • Generic behaviour, not specific to one title
  • Depends on: none
  • AI-assisted: yes (original commit co-authored by Claude; carried and validated with Codex)
<!-- greyfinch-sync:boykopovar/AnyPS5:issue:4823672824 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/4188). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-10-12T00:56:33Z. --- ### What Carries the ready implementation from screamm’s `feat/npwebapi2-push-event-abort` branch, preserving the original commit author. Tracks push-event handles per library context, marks a handle aborted, returns `ABORTED` when creating a filter on an aborted handle, validates/deletes handles, and removes a context’s handles on termination. This replaces the existing throwing `sceNpWebApi2PushEventAbortHandle` export. The signature, error values, and behavior are based on shadPS4’s PS4 implementation. Their PS5 accuracy is unverified; this limitation and the unmodelled timeouts are documented in TechnicalDebt. PR #3399 only added the export as a throwing stub. This does not overlap #4178’s trace-tag export. ### Tested - Linux Release configure with GCC, `BUILD_TESTING=ON`, and `ANYPS5_ENABLE_SPIRV_TOOLS=ON` completed. - Built `guest_np_web_api2_tests` with Ninja (117/117 steps). - `ctest --test-dir /tmp/AnyPS5-4174-build -R '^guest_np_web_api2$' --output-on-failure --timeout 60` passed (1/1). - `python3 tools/check_conventions.py --base upstream/main --head HEAD` passed. - `git diff --check` passed. ### Checklist - [x] Based on current `main`; no other open PR implements the same function - [x] One topic per PR; follow-ups go in a new PR - [x] No comments in code except technical debt - [x] Unimplemented paths throw (`NotImplemented_nid_no_patch`); silent stubs are listed in TechnicalDebt - [x] No notes, investigation `.md` files or images added to the repository - [x] New third-party code is a submodule built from source - [x] Generic behaviour, not specific to one title - [x] Depends on: none - [x] AI-assisted: yes (original commit co-authored by Claude; carried and validated with Codex)
github-actions[bot] commented 2026-10-12 00:56:56 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by github-actions[bot] on 2026-10-12T00:56:56Z.


Progress report (1acfa7f → 6aa5280)

📈 System libraries: 86.39% (+0.03%, +1 implemented functions)

✅ 1 implemented
Library Name
libSceNpWebApi2 sceNpWebApi2PushEventAbortHandle
<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6115857077 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/4188#issuecomment-6115857077). Originally posted by [github-actions[bot]](https://github.com/apps/github-actions) on 2026-10-12T00:56:56Z. --- <!-- progress-report --> ### Progress report (1acfa7f → 6aa5280) 📈 **System libraries**: 86.39% (+0.03%, +1 implemented functions) <details> <summary>✅ 1 implemented</summary> | Library | Name | | - | - | | libSceNpWebApi2 | `sceNpWebApi2PushEventAbortHandle` | </details>
blawesom commented 2026-10-12 15:44:40 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by blawesom on 2026-10-12T15:44:40Z.


Rebase handoff — rebased onto current main, authorship unchanged.

One TechnicalDebt.md conflict: main had added three stub entries where this PR removes the sceNpWebApi2PushEventAbortHandle one it implements — kept main's other two entries (sceNpAuthGetAuthorizedAppCode, sceSaveDataUnknown_RvID8BVeg), dropped the implemented stub's entry.

Verified on Linux (CachyOS, kernel 7.2.9, GCC 16.2.1, Ninja, Release, BUILD_TESTING=ON, AMD RX 9070 XT / RADV):

  • builds; tools/check_conventions.py --base origin/main passes
  • full suite: 957/957 passed

To pick it up:

git fetch https://github.com/blawesom/AnyPS5 rebase/4188
git checkout <your branch>
git merge --ff-only FETCH_HEAD

Head is c77726cd0.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6127627619 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/4188#issuecomment-6127627619). Originally posted by [blawesom](https://github.com/blawesom) on 2026-10-12T15:44:40Z. --- **Rebase handoff** — rebased onto current `main`, authorship unchanged. One `TechnicalDebt.md` conflict: main had added three stub entries where this PR removes the `sceNpWebApi2PushEventAbortHandle` one it implements — kept main's other two entries (`sceNpAuthGetAuthorizedAppCode`, `sceSaveDataUnknown_RvID8BVeg`), dropped the implemented stub's entry. Verified on Linux (CachyOS, kernel 7.2.9, GCC 16.2.1, Ninja, Release, `BUILD_TESTING=ON`, AMD RX 9070 XT / RADV): - builds; `tools/check_conventions.py --base origin/main` passes - **full suite: 957/957 passed** **To pick it up:** ``` git fetch https://github.com/blawesom/AnyPS5 rebase/4188 git checkout <your branch> git merge --ff-only FETCH_HEAD ``` Head is `c77726cd0`.
MarcZX10 commented 2026-10-12 19:43:41 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-12T19:43:41Z.


Thanks for preparing the rebase and running the full Linux suite. I see the handoff at c77726cd0 with authorship preserved and 957/957 tests passing. The PR still points to 6aa5280, so I have not adopted that handoff yet; I will verify the branch and its diff before updating the PR.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6131396631 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/4188#issuecomment-6131396631). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-10-12T19:43:41Z. --- Thanks for preparing the rebase and running the full Linux suite. I see the handoff at `c77726cd0` with authorship preserved and 957/957 tests passing. The PR still points to `6aa5280`, so I have not adopted that handoff yet; I will verify the branch and its diff before updating the PR.
xXPBSXx commented 2026-10-12 20:40:47 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by xXPBSXx on 2026-10-12T20:40:47Z.


Windows test of head 6aa5280bf merged onto current main (fa0cc752a, clean merge; built together with four other open PRs, so the run is for the combination): Windows 10 (19045), MinGW-w64 GCC 15.2.0 (WinLibs r7), Release, full build 0 errors, -j2.

guest_np_web_api2 (the test this PR changes) passes. The seven tests of the five PRs (guest_coredump_user_data, guest_np_web_api2, guest_execvp, guest_math, guest_wide_conversion, guest_wide_strings, guest_character) all pass.

Not checked: that the test fails without the change, Linux, a title run.

AI-assisted (Claude Code).

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6132243233 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/4188#issuecomment-6132243233). Originally posted by [xXPBSXx](https://github.com/xXPBSXx) on 2026-10-12T20:40:47Z. --- Windows test of head `6aa5280bf` merged onto current `main` (`fa0cc752a`, clean merge; built together with four other open PRs, so the run is for the combination): Windows 10 (19045), MinGW-w64 GCC 15.2.0 (WinLibs r7), Release, full build 0 errors, `-j2`. `guest_np_web_api2` (the test this PR changes) passes. The seven tests of the five PRs (`guest_coredump_user_data`, `guest_np_web_api2`, `guest_execvp`, `guest_math`, `guest_wide_conversion`, `guest_wide_strings`, `guest_character`) all pass. Not checked: that the test fails without the change, Linux, a title run. AI-assisted (Claude Code).
oneandonlydean commented 2026-10-13 01:37:57 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by oneandonlydean on 2026-10-13T01:37:57Z.


Closing, as #4375 (the same commit): no title is seen calling sceNpWebApi2PushEventAbortHandle (#4174), and it also changes what CreateHandle, DeleteHandle and CreateFilter return for every title, from PS4 codes. Reopen with the log line where a title stops at it on main, without the removal of docs/dev/debt/libSceNpAuth.md and the sceSaveDataUnknown_RvID8BVeg entry.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6136188215 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/4188#issuecomment-6136188215). Originally posted by [oneandonlydean](https://github.com/oneandonlydean) on 2026-10-13T01:37:57Z. --- Closing, as #4375 (the same commit): no title is seen calling `sceNpWebApi2PushEventAbortHandle` (#4174), and it also changes what `CreateHandle`, `DeleteHandle` and `CreateFilter` return for every title, from PS4 codes. Reopen with the log line where a title stops at it on main, without the removal of `docs/dev/debt/libSceNpAuth.md` and the `sceSaveDataUnknown_RvID8BVeg` entry.

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