feat(libSceNpCppWebApi): iterate Vector<String> with begin, end and the Iterator<String> operators #11221

Merged
AlexFigas merged 8 commits from upstream-pr/11221 into main 2026-11-02 22:35:01 +00:00
AlexFigas commented 2026-10-25 22:06:36 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by AlexFigas on 2026-10-25T22:06:36Z.


What

Vector<String>::begin, Vector<String>::end and the Iterator<String> operators ++, * and != were NotImplemented stubs with no parameters. They now walk a Vector<String> built with pushBack, using the layout of the module that PPSA21564 bundles (sce_module/libSceNpCppWebApi.prx, the library's own code):

Export Module code Here
Vector<String>::begin (0xaf60) / end (0xafe0) returns the iterator through the hidden result pointer in rdi (vector in rsi). RefObject::RefObject writes the 32-bit count at +0 (mov dword ptr [rdi], 0), the element pointer goes at +8, and rax returns the iterator same signature and layout; the pointer is the first or one-past-last element of the host body, or null for a vector that never had a pushBack. For a body with no elements, end returns the element pointer unchanged, without adding to it
Iterator<String>::operator++ (0xbb70) add qword ptr [rdi + 8], 0x20, returns this advances by one 0x20-byte String and returns the iterator
Iterator<String>::operator* (0xbb50) returns [rdi + 8] returns the element
Iterator<String>::operator!= (0xbbc0) compares the pointers at +8 same

The 0x10-byte iterator gets a CommonIterator struct in Api.hpp. As Vector::empty, size and operator[] already do, begin and end throw on a body this library did not create (another magic, or IntrusivePtr elements), because its element layout is unknown. ConstIterator<String>::~ConstIterator already matched the module, which jumps to the no-op RefObject::~RefObject.

The Vector debt entry now says these work, and the other element types' iterators and copyFrom still throw. I left line 20's general "iterators ... throw" alone.

This PR and my #10925 both edited debt line 16, so this branch was stacked on #10925. #10925 has merged and only this PR's commit is left; its debt line applies this PR's begin/end sentence to #10925's version of the entry, trimmed to stay under 1000 characters.

Tested

On Ubuntu 24.04 under WSL2 (GCC 13.3, Release), head 4dce45f518 merged into main a4eca2a056 (f6ed031241), ctest -R np_cpp_web_api passes all 10 tests, main's alias, matchmaking, title cloud storage and activities tests included, 3 runs each. guest_np_cpp_web_api_string gains two cases:

  • An empty vector gives equal begin and end. After three pushBacks, the iteration visits "first", "second" and "third" in order. * returns the pointer at +8, ++ returns the iterator itself, the count at +0 is 0, end - begin is 3 × 0x20, and nothing is written past the 0x10 bytes of either iterator.
  • begin and end throw on a host body holding IntrusivePtr elements. A title-provided Vector<String> body still throws as an unmodelled case, but the test does not require it.

Also run:

  • python3 core/libs/tests/test_public_headers.py --audit-only verifies 405 libraries and 27873 exports.
  • python3 tools/check_conventions.py --base origin/main passes.
  • python3 tools/pr_overlap.py --branch feat/npcppwebapi-string-vector-iteration reports #12808 and #13255 in docs/dev/debt/libSceNpCppWebApi.md. #13255 also adds declarations next to this PR's in Api.hpp and declares Depends on: #11221. #12801, #11631, #14122 and #14136 merge with this head without conflicts. #12447 already conflicts with main in the debt file and does not depend on this PR.

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 (#10925 has merged)
  • Fixes: none
  • Unblocks: none
  • GPUs tested: n/a
  • AI-assisted: yes
<!-- greyfinch-sync:boykopovar/AnyPS5:issue:5009187109 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/11221). Originally posted by [AlexFigas](https://github.com/AlexFigas) on 2026-10-25T22:06:36Z. --- ### What `Vector<String>::begin`, `Vector<String>::end` and the `Iterator<String>` operators `++`, `*` and `!=` were `NotImplemented` stubs with no parameters. They now walk a `Vector<String>` built with `pushBack`, using the layout of the module that PPSA21564 bundles (`sce_module/libSceNpCppWebApi.prx`, the library's own code): | Export | Module code | Here | |---|---|---| | `Vector<String>::begin` (0xaf60) / `end` (0xafe0) | returns the iterator through the hidden result pointer in `rdi` (vector in `rsi`). `RefObject::RefObject` writes the 32-bit count at +0 (`mov dword ptr [rdi], 0`), the element pointer goes at +8, and `rax` returns the iterator | same signature and layout; the pointer is the first or one-past-last element of the host body, or null for a vector that never had a `pushBack`. For a body with no elements, `end` returns the element pointer unchanged, without adding to it | | `Iterator<String>::operator++` (0xbb70) | `add qword ptr [rdi + 8], 0x20`, returns `this` | advances by one 0x20-byte `String` and returns the iterator | | `Iterator<String>::operator*` (0xbb50) | returns `[rdi + 8]` | returns the element | | `Iterator<String>::operator!=` (0xbbc0) | compares the pointers at +8 | same | The 0x10-byte iterator gets a `CommonIterator` struct in `Api.hpp`. As `Vector::empty`, `size` and `operator[]` already do, `begin` and `end` throw on a body this library did not create (another magic, or `IntrusivePtr` elements), because its element layout is unknown. `ConstIterator<String>::~ConstIterator` already matched the module, which jumps to the no-op `RefObject::~RefObject`. The `Vector` debt entry now says these work, and the other element types' iterators and `copyFrom` still throw. I left line 20's general "iterators ... throw" alone. This PR and my #10925 both edited debt line 16, so this branch was stacked on #10925. #10925 has merged and only this PR's commit is left; its debt line applies this PR's `begin`/`end` sentence to #10925's version of the entry, trimmed to stay under 1000 characters. ### 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. --> On Ubuntu 24.04 under WSL2 (GCC 13.3, Release), head 4dce45f518 merged into `main` a4eca2a056 (f6ed031241), `ctest -R np_cpp_web_api` passes all 10 tests, `main`'s alias, matchmaking, title cloud storage and activities tests included, 3 runs each. `guest_np_cpp_web_api_string` gains two cases: - An empty vector gives equal `begin` and `end`. After three `pushBack`s, the iteration visits "first", "second" and "third" in order. `*` returns the pointer at +8, `++` returns the iterator itself, the count at +0 is 0, `end - begin` is 3 × 0x20, and nothing is written past the 0x10 bytes of either iterator. - `begin` and `end` throw on a host body holding `IntrusivePtr` elements. A title-provided `Vector<String>` body still throws as an unmodelled case, but the test does not require it. Also run: - `python3 core/libs/tests/test_public_headers.py --audit-only` verifies 405 libraries and 27873 exports. - `python3 tools/check_conventions.py --base origin/main` passes. - `python3 tools/pr_overlap.py --branch feat/npcppwebapi-string-vector-iteration` reports #12808 and #13255 in `docs/dev/debt/libSceNpCppWebApi.md`. #13255 also adds declarations next to this PR's in `Api.hpp` and declares `Depends on: #11221`. #12801, #11631, #14122 and #14136 merge with this head without conflicts. #12447 already conflicts with `main` in the debt file and does not depend on this PR. ### 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 (#10925 has merged) - [x] Fixes: none - [x] Unblocks: none - [x] GPUs tested: n/a - [x] AI-assisted: yes
MarcZX10 commented 2026-10-25 22:24:30 +00:00 (Migrated from github.com)

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

Review: CHANGES_REQUESTED


I found one correctness issue in the empty-vector end() path: it performs pointer arithmetic on a null element pointer when the vector is valid but has no elements. I requested a small guard for that case. I reviewed the current diff and its added iteration coverage; hosted eligibility, conventions, intake, labels, and report checks pass. Product build/test jobs were skipped by path policy, and I did not run the reported WSL focused test locally.

<!-- greyfinch-sync:boykopovar/AnyPS5:review:5645659324 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/11221#pullrequestreview-5645659324). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-10-25T22:24:30Z. **Review:** CHANGES_REQUESTED --- I found one correctness issue in the empty-vector `end()` path: it performs pointer arithmetic on a null element pointer when the vector is valid but has no elements. I requested a small guard for that case. I reviewed the current diff and its added iteration coverage; hosted eligibility, conventions, intake, labels, and report checks pass. Product build/test jobs were skipped by path policy, and I did not run the reported WSL focused test locally.
MarcZX10 commented 2026-10-27 11:01:08 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-27T11:01:08Z.

Review: CHANGES_REQUESTED


The code and tests are tied to the bundled module's Vector layout, and the PR clearly limits unsupported host bodies by throwing. I am not approving this submitted stack yet: its merge-base is 74acfad65b, while current main is 3fea2a937b. Main has since changed every path this PR edits: Export.cpp, Api.hpp, and docs/dev/debt/libSceNpCppWebApi.md. The branch also carries open dependency #10925.

Please coordinate the rebase with #10925, update this stack onto current main, and rerun the focused np_cpp_web_api tests on the integrated head. The existing report is detailed, but it describes a branch based on main 74acfad65b, so it does not validate the current implementation and fixtures. I found no separate iterator defect in the submitted diff; current-tree integration is the remaining blocker.

<!-- greyfinch-sync:boykopovar/AnyPS5:review:5665964552 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/11221#pullrequestreview-5665964552). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-10-27T11:01:08Z. **Review:** CHANGES_REQUESTED --- The code and tests are tied to the bundled module's Vector<String> layout, and the PR clearly limits unsupported host bodies by throwing. I am not approving this submitted stack yet: its merge-base is 74acfad65b3f0fd4eab653f3a3989d298fba1157, while current main is 3fea2a937ba9fbab2f06c51691fe0c5763659aa3. Main has since changed every path this PR edits: Export.cpp, Api.hpp, and docs/dev/debt/libSceNpCppWebApi.md. The branch also carries open dependency #10925. Please coordinate the rebase with #10925, update this stack onto current main, and rerun the focused np_cpp_web_api tests on the integrated head. The existing report is detailed, but it describes a branch based on main 74acfad65b, so it does not validate the current implementation and fixtures. I found no separate iterator defect in the submitted diff; current-tree integration is the remaining blocker.
MarcZX10 commented 2026-10-27 15:26:08 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-27T15:26:08Z.

Review: APPROVED


Reviewed exact head 3c357912c32bd22c7b17e320513d3c9565d9abb2. The empty-vector end path now returns the element pointer unchanged without adding to a null pointer, resolving the earlier correctness issue. The implementation limits iteration to host-created String vectors and rejects unsupported body layouts as documented.

Independent local check: applied the #10925/#11221 changes to the clean #11213-based Release checkout, built guest_np_cpp_web_api_string_tests, and ran it three times under qemu-x86_64 -cpu max; all passed. The tests cover empty and populated iteration, element order, iterator layout/guards, and rejection of another element type. I did not rerun the full four-test WebApi suite.

The current-main merge preview is clean, and the files changed by this stack have not changed since the 1089f2b base. I approve the reviewed code and focused test evidence. #11221 depends on open #10925, which explicitly depends on #11631; preserve that landing order before merging.

<!-- greyfinch-sync:boykopovar/AnyPS5:review:5669736970 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/11221#pullrequestreview-5669736970). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-10-27T15:26:08Z. **Review:** APPROVED --- Reviewed exact head 3c357912c32bd22c7b17e320513d3c9565d9abb2. The empty-vector end path now returns the element pointer unchanged without adding to a null pointer, resolving the earlier correctness issue. The implementation limits iteration to host-created String vectors and rejects unsupported body layouts as documented. Independent local check: applied the #10925/#11221 changes to the clean #11213-based Release checkout, built guest_np_cpp_web_api_string_tests, and ran it three times under qemu-x86_64 -cpu max; all passed. The tests cover empty and populated iteration, element order, iterator layout/guards, and rejection of another element type. I did not rerun the full four-test WebApi suite. The current-main merge preview is clean, and the files changed by this stack have not changed since the 1089f2b base. I approve the reviewed code and focused test evidence. #11221 depends on open #10925, which explicitly depends on #11631; preserve that landing order before merging.
MarcZX10 commented 2026-10-29 11:07:48 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-29T11:07:48Z.

Review: CHANGES_REQUESTED


Re-checked — changes requested

The new report covers the exact ad47eb210d head and all seven WebApi tests, including the three alias tests, three times each. It also confirms the dependency on #10925. This branch still contains main only through 1db077e876, while current main is ba5b5330b3. Although current main has not changed this PR's source/test paths, the repository requires an up-to-date main base. Please merge current main and rerun the seven focused tests on the resulting head, preserving the #10925-before-#11221 order.

<!-- greyfinch-sync:boykopovar/AnyPS5:review:5696705626 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/11221#pullrequestreview-5696705626). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-10-29T11:07:48Z. **Review:** CHANGES_REQUESTED --- ## Re-checked — changes requested The new report covers the exact `ad47eb210d` head and all seven WebApi tests, including the three alias tests, three times each. It also confirms the dependency on #10925. This branch still contains `main` only through `1db077e876`, while current `main` is `ba5b5330b3`. Although current main has not changed this PR's source/test paths, the repository requires an up-to-date main base. Please merge current main and rerun the seven focused tests on the resulting head, preserving the #10925-before-#11221 order.
MarcZX10 commented 2026-10-30 11:41:45 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-30T11:41:45Z.

Review: CHANGES_REQUESTED


Re-checked — new head, changes requested

The reviewed iterator implementation and its author-reported seven-test run are unchanged, but this stack is behind current main and does not include the current head of declared dependency #11631.

What I ran

Reviewed head ded2bb61145ca7fb91d57d7afae92590b674a65b against PR base 98ddd9c1792bbab016ceed5db267a93d1d61f00a on Debian 12 x86_64, Python 3.11.2, GCC 12.2.0. The stack checker previewed #11221 cleanly against current main 1c6b316cf762c7a8d34623907d62bc1cba2217b6; I did not build locally.

python3 tools/pr_precheck.py --repo boykopovar/AnyPS5 --pr 11221
python3 tools/pr_stack_check.py 11221 --repo boykopovar/AnyPS5 --output-dir /tmp/anyps5-pr-precheck/boykopovar-AnyPS5-pr-11221-ded2bb61145c/stack
git diff --name-only 98ddd9c1792bbab016ceed5db267a93d1d61f00a..1c6b316cf762c7a8d34623907d62bc1cba2217b6 -- core/libs/prx/libSceNpCppWebApi/Export.cpp core/libs/prx/libSceNpCppWebApi/include/Api.hpp core/libs/tests/GuestNpCppWebApiIntrusivePtr.cpp core/libs/tests/GuestNpCppWebApiString.cpp docs/dev/debt/libSceNpCppWebApi.md
gh pr checks 11221 --repo boykopovar/AnyPS5 --watch=false

Results

Check Result
Diff and conventions Passed
Current-main merge preview Clean; current main is not an ancestor of this head
Dependency chain #11631 → #10925 → #11221; #10925 is included, but its current head does not include the current #11631 head, and #11631 conflicts with current main
Focused np_cpp_web_api tests Author reports all seven passed three runs each on this head; not run locally
Hosted CI Windows, conventions, eligibility, labels and report passed; Linux and specialized jobs skipped
Observed stack and CI output
Target branch tip: `1c6b316cf762c7a8d34623907d62bc1cba2217b6`
Dependency order: #11631 → #10925 → #11221
PR #11631: conflict against current base; head `04b3dd67f8ea9a03ca205dff4ebc4f088e154f7b`
PR #10925: clean against current base; head `5c847d9387cb636e36a2edafe6059f1d782122e3`
PR #11221: clean against current base; head `ded2bb61145ca7fb91d57d7afae92590b674a65b`
#11631 → #10925: current_dependency_head_not_included
#10925 → #11221: head_included
conventions pass
labels pass
report pass
windows pass
linux skipping
register-context skipping
relinker skipping
relinker-asan skipping
write-watch skipping

Negative control

Not applicable to this recheck: no new behavior assertion was added since the last focused test report.

Findings

Blocking

The current head contains main only through 98ddd9c1792bbab016ceed5db267a93d1d61f00a, while current main is 1c6b316cf762c7a8d34623907d62bc1cba2217b6. CONTRIBUTING.md requires keeping branches up to date. Also, #11221 depends on #10925, which depends on #11631, but #10925 does not contain #11631's current head and #11631 currently conflicts with main. The minimal next step is to resolve/update #11631, refresh #10925 on its current dependency and main, then re-stack #11221 and rerun the seven focused tests on the resulting head.

Non-blocking

The intervening main commits do not change the files touched by #11221, and the current-main merge preview is clean. The existing author-reported tests remain useful evidence for the unchanged iterator code, but they do not verify the refreshed dependency stack.

Sources

Not verified

No local build or CTest run; the seven tests are author-reported. No PS5 console behavior. The current #11631 dependency branch's conflict resolution and the resulting refreshed stack have not been tested.

To get this to a good state

After the dependency and base are current, rerun ctest --test-dir build -R np_cpp_web_api three times on the final head and post the new SHA and output. I will re-run the no-build checks and review that exact head.

<!-- greyfinch-sync:boykopovar/AnyPS5:review:5711704460 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/11221#pullrequestreview-5711704460). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-10-30T11:41:45Z. **Review:** CHANGES_REQUESTED --- # Re-checked — new head, changes requested The reviewed iterator implementation and its author-reported seven-test run are unchanged, but this stack is behind current `main` and does not include the current head of declared dependency #11631. ## What I ran Reviewed head `ded2bb61145ca7fb91d57d7afae92590b674a65b` against PR base `98ddd9c1792bbab016ceed5db267a93d1d61f00a` on Debian 12 x86_64, Python 3.11.2, GCC 12.2.0. The stack checker previewed #11221 cleanly against current `main` `1c6b316cf762c7a8d34623907d62bc1cba2217b6`; I did not build locally. ```sh python3 tools/pr_precheck.py --repo boykopovar/AnyPS5 --pr 11221 python3 tools/pr_stack_check.py 11221 --repo boykopovar/AnyPS5 --output-dir /tmp/anyps5-pr-precheck/boykopovar-AnyPS5-pr-11221-ded2bb61145c/stack git diff --name-only 98ddd9c1792bbab016ceed5db267a93d1d61f00a..1c6b316cf762c7a8d34623907d62bc1cba2217b6 -- core/libs/prx/libSceNpCppWebApi/Export.cpp core/libs/prx/libSceNpCppWebApi/include/Api.hpp core/libs/tests/GuestNpCppWebApiIntrusivePtr.cpp core/libs/tests/GuestNpCppWebApiString.cpp docs/dev/debt/libSceNpCppWebApi.md gh pr checks 11221 --repo boykopovar/AnyPS5 --watch=false ``` ## Results | Check | Result | |---|---| | Diff and conventions | Passed | | Current-main merge preview | Clean; current main is not an ancestor of this head | | Dependency chain | #11631 → #10925 → #11221; #10925 is included, but its current head does not include the current #11631 head, and #11631 conflicts with current main | | Focused `np_cpp_web_api` tests | Author reports all seven passed three runs each on this head; not run locally | | Hosted CI | Windows, conventions, eligibility, labels and report passed; Linux and specialized jobs skipped | <details><summary>Observed stack and CI output</summary> ```text Target branch tip: `1c6b316cf762c7a8d34623907d62bc1cba2217b6` Dependency order: #11631 → #10925 → #11221 PR #11631: conflict against current base; head `04b3dd67f8ea9a03ca205dff4ebc4f088e154f7b` PR #10925: clean against current base; head `5c847d9387cb636e36a2edafe6059f1d782122e3` PR #11221: clean against current base; head `ded2bb61145ca7fb91d57d7afae92590b674a65b` #11631 → #10925: current_dependency_head_not_included #10925 → #11221: head_included conventions pass labels pass report pass windows pass linux skipping register-context skipping relinker skipping relinker-asan skipping write-watch skipping ``` </details> ## Negative control Not applicable to this recheck: no new behavior assertion was added since the last focused test report. ## Findings ### Blocking The current head contains `main` only through `98ddd9c1792bbab016ceed5db267a93d1d61f00a`, while current `main` is `1c6b316cf762c7a8d34623907d62bc1cba2217b6`. `CONTRIBUTING.md` requires keeping branches up to date. Also, #11221 depends on #10925, which depends on #11631, but #10925 does not contain #11631's current head and #11631 currently conflicts with `main`. The minimal next step is to resolve/update #11631, refresh #10925 on its current dependency and `main`, then re-stack #11221 and rerun the seven focused tests on the resulting head. ### Non-blocking The intervening `main` commits do not change the files touched by #11221, and the current-main merge preview is clean. The existing author-reported tests remain useful evidence for the unchanged iterator code, but they do not verify the refreshed dependency stack. ## Sources - [Branch synchronization rule in CONTRIBUTING.md](https://github.com/boykopovar/AnyPS5/blob/1c6b316cf762c7a8d34623907d62bc1cba2217b6/CONTRIBUTING.md#L60) - [Iterator implementation and tests at the reviewed head](https://github.com/boykopovar/AnyPS5/tree/ded2bb61145ca7fb91d57d7afae92590b674a65b/core/libs/prx/libSceNpCppWebApi) - [Dependency #11631](https://github.com/boykopovar/AnyPS5/pull/11631), [#10925](https://github.com/boykopovar/AnyPS5/pull/10925) ## Not verified No local build or CTest run; the seven tests are author-reported. No PS5 console behavior. The current #11631 dependency branch's conflict resolution and the resulting refreshed stack have not been tested. ## To get this to a good state After the dependency and base are current, rerun `ctest --test-dir build -R np_cpp_web_api` three times on the final head and post the new SHA and output. I will re-run the no-build checks and review that exact head.
MarcZX10 commented 2026-10-30 14:56:52 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-30T14:56:52Z.

Review: CHANGES_REQUESTED


Re-checked — new head, changes requested

The updated head resolves the dependency on #11631 and includes #10925's current head, but it still does not include current main as required by the repository's branch-up-to-date rule.

What I ran

Reviewed head 211414f23538c201f70849a3f2ae91792710cad5 against PR base da026c70655a132031d45e2008c24f993870d801 on Debian 12 x86_64, Python 3.11.2, GCC 12.2.0. Current main is ed1e0ed08fc2452192df91793a33dd0cc7ad5212; the merge preview is clean.

python3 tools/pr_precheck.py --repo boykopovar/AnyPS5 --pr 11221
git diff --check da026c70655a132031d45e2008c24f993870d801...211414f23538c201f70849a3f2ae91792710cad5
git merge-tree --write-tree refs/remotes/upstream/main 211414f23538c201f70849a3f2ae91792710cad5
gh pr checks 11221 --repo boykopovar/AnyPS5

Results

Check Result
Diff check Passed.
Conventions and PR template Passed.
Current-main merge preview Clean; preview tree 36b9cde63c55a652dce40e964510e917577154aa.
Dependency head #10925's head 3fdaafe5c346ba6640cb2afd0045e8139ac50c9e is included; stack order is #10925 → #11221.
ABI audit and test-quality heuristic Not executable in the isolated checkout: the helper scripts are local-only and absent from this PR's tree.
Stack checker It confirms the dependency head is included and previews both PRs cleanly, but emits a false-positive self-cycle for #10925.
Hosted CI Windows, conventions, labels, eligibility, library portability and report passed. Linux and specialized build jobs were skipped by workflow filters.
Focused C++ tests The author reports all seven np_cpp_web_api tests passed three runs on this head and with #12801 merged; I did not run them locally.
Selected unedited output
All conventions checks passed.
/usr/bin/python3: can't open file '/tmp/anyps5-pr-precheck/boykopovar-AnyPS5-pr-11221-211414f23538/head-211414f23538-12b20d2f/tools/pr_abi_audit.py': [Errno 2] No such file or directory
- PR #11221: Declared dependency cycle involving PRs [10925]
Target branch tip: `ed1e0ed08fc2452192df91793a33dd0cc7ad5212`
Dependency order: #10925 → #11221
PR #10925: clean against current base; head `3fdaafe5c346ba6640cb2afd0045e8139ac50c9e`
PR #11221: clean against current base; head `211414f23538c201f70849a3f2ae91792710cad5`
#10925 → #11221: head_included
36b9cde63c55a652dce40e964510e917577154aa

Negative control

Not exercised: this recheck adds no new behavior assertion, and I did not build an exact-head binary for a base-source control.

Findings

Blocking

The PR head contains main only through da026c70655a132031d45e2008c24f993870d801, while current main is ed1e0ed08fc2452192df91793a33dd0cc7ad5212. CONTRIBUTING.md requires keeping the branch up to date with main. Although the merge preview is clean and intervening changes do not touch this PR's paths, the branch is still behind current main. Please merge current main into this stacked branch and rerun the seven focused tests on the resulting head.

Non-blocking

The stack checker reports a self-cycle for #10925 even though its own report confirms the intended #10925 → #11221 order and that #10925's head is included. The missing local-only precheck helpers also make those two automated checks unavailable in the isolated checkout.

Sources

Not verified

No local build or CTest run; the seven focused-test runs are author-reported. No PS5 console behavior or negative-control run was performed.

To get this to a good state

Merge current main into the branch while preserving the #10925 → #11221 stack, then rerun ctest --test-dir build -R np_cpp_web_api on the resulting exact head. I will repeat the no-build checks and inspect that head before reviewing again.

<!-- greyfinch-sync:boykopovar/AnyPS5:review:5714142593 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/11221#pullrequestreview-5714142593). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-10-30T14:56:52Z. **Review:** CHANGES_REQUESTED --- # Re-checked — new head, changes requested The updated head resolves the dependency on #11631 and includes #10925's current head, but it still does not include current `main` as required by the repository's branch-up-to-date rule. ## What I ran Reviewed head `211414f23538c201f70849a3f2ae91792710cad5` against PR base `da026c70655a132031d45e2008c24f993870d801` on Debian 12 x86_64, Python 3.11.2, GCC 12.2.0. Current `main` is `ed1e0ed08fc2452192df91793a33dd0cc7ad5212`; the merge preview is clean. ```sh python3 tools/pr_precheck.py --repo boykopovar/AnyPS5 --pr 11221 git diff --check da026c70655a132031d45e2008c24f993870d801...211414f23538c201f70849a3f2ae91792710cad5 git merge-tree --write-tree refs/remotes/upstream/main 211414f23538c201f70849a3f2ae91792710cad5 gh pr checks 11221 --repo boykopovar/AnyPS5 ``` ## Results | Check | Result | |---|---| | Diff check | Passed. | | Conventions and PR template | Passed. | | Current-main merge preview | Clean; preview tree `36b9cde63c55a652dce40e964510e917577154aa`. | | Dependency head | #10925's head `3fdaafe5c346ba6640cb2afd0045e8139ac50c9e` is included; stack order is #10925 → #11221. | | ABI audit and test-quality heuristic | Not executable in the isolated checkout: the helper scripts are local-only and absent from this PR's tree. | | Stack checker | It confirms the dependency head is included and previews both PRs cleanly, but emits a false-positive self-cycle for #10925. | | Hosted CI | Windows, conventions, labels, eligibility, library portability and report passed. Linux and specialized build jobs were skipped by workflow filters. | | Focused C++ tests | The author reports all seven `np_cpp_web_api` tests passed three runs on this head and with #12801 merged; I did not run them locally. | <details><summary>Selected unedited output</summary> ```text All conventions checks passed. ``` ```text /usr/bin/python3: can't open file '/tmp/anyps5-pr-precheck/boykopovar-AnyPS5-pr-11221-211414f23538/head-211414f23538-12b20d2f/tools/pr_abi_audit.py': [Errno 2] No such file or directory ``` ```text - PR #11221: Declared dependency cycle involving PRs [10925] ``` ```text Target branch tip: `ed1e0ed08fc2452192df91793a33dd0cc7ad5212` Dependency order: #10925 → #11221 PR #10925: clean against current base; head `3fdaafe5c346ba6640cb2afd0045e8139ac50c9e` PR #11221: clean against current base; head `211414f23538c201f70849a3f2ae91792710cad5` #10925 → #11221: head_included ``` ```text 36b9cde63c55a652dce40e964510e917577154aa ``` </details> ## Negative control Not exercised: this recheck adds no new behavior assertion, and I did not build an exact-head binary for a base-source control. ## Findings ### Blocking The PR head contains `main` only through `da026c70655a132031d45e2008c24f993870d801`, while current `main` is `ed1e0ed08fc2452192df91793a33dd0cc7ad5212`. `CONTRIBUTING.md` requires keeping the branch up to date with `main`. Although the merge preview is clean and intervening changes do not touch this PR's paths, the branch is still behind current `main`. Please merge current `main` into this stacked branch and rerun the seven focused tests on the resulting head. ### Non-blocking The stack checker reports a self-cycle for #10925 even though its own report confirms the intended #10925 → #11221 order and that #10925's head is included. The missing local-only precheck helpers also make those two automated checks unavailable in the isolated checkout. ## Sources - [Branch synchronization rule at current main](https://github.com/boykopovar/AnyPS5/blob/ed1e0ed08fc2452192df91793a33dd0cc7ad5212/CONTRIBUTING.md#L60) - [Reviewed PR head](https://github.com/boykopovar/AnyPS5/tree/211414f23538c201f70849a3f2ae91792710cad5) ## Not verified No local build or CTest run; the seven focused-test runs are author-reported. No PS5 console behavior or negative-control run was performed. ## To get this to a good state Merge current `main` into the branch while preserving the #10925 → #11221 stack, then rerun `ctest --test-dir build -R np_cpp_web_api` on the resulting exact head. I will repeat the no-build checks and inspect that head before reviewing again.
MarcZX10 commented 2026-11-01 01:11:35 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-11-01T01:11:35Z.

Review: CHANGES_REQUESTED


Reviewed — changes requested

The iterator changes and reported focused tests look consistent, but this stacked head also conflicts with #14122 and #14136 and their landing order is not agreed or declared.

What I ran

Reviewed head 1c163f759c3854e6c8b5c433d8bbbfcc566efd1b against base cc26ab44380db3cd7b53715b84f13945227ce28b on Debian 12 x86_64, Python 3.11.2 and GCC 12.2.0. Its preview onto current main (7c4dcf0ad84de7a473ce97bb21644c614f1c3bd3) is clean and it contains #10925 at b7ec1d9006b704cc84f98391ea566ee92844f68f.

python3 tools/pr_precheck.py --repo boykopovar/AnyPS5 --pr 11221
git diff --check cc26ab44380db3cd7b53715b84f13945227ce28b...1c163f759c3854e6c8b5c433d8bbbfcc566efd1b
git merge-tree --write-tree upstream/main refs/anyps5/review/11221
git merge-base --is-ancestor refs/anyps5/review/10925 refs/anyps5/review/11221
git merge-tree --write-tree --name-only refs/anyps5/review/11221 refs/anyps5/review/14122
git merge-tree --write-tree --name-only refs/anyps5/review/11221 refs/anyps5/review/14136
gh pr checks 11221 --repo boykopovar/AnyPS5

Results

Check Result
Diff and current-main preview Passed; preview tree 6e040bd764964d69813e0519c61f7ee3bd8eaec8.
Stack Passed; #10925 is included. The local stack helper reports a false-positive cycle.
Conventions Hosted check passed.
Pairwise overlap previews Failed with content conflicts against #14122 in Export.cpp, GuestNpCppWebApiIntrusivePtr.cpp, and the debt file; against #14136 the same paths plus GuestNpCppWebApiString.cpp conflict.
Hosted CI Windows and labels are pending; conventions, eligibility, library-portability, and report passed. Linux and specialized jobs were skipped.
Focused tests The author reports all 9 np_cpp_web_api tests pass three runs on this head and with #12801 merged; I did not run them locally.
Selected unedited merge-preview output
CONFLICT (content): Merge conflict in core/libs/prx/libSceNpCppWebApi/Export.cpp
CONFLICT (content): Merge conflict in core/libs/tests/GuestNpCppWebApiIntrusivePtr.cpp
CONFLICT (content): Merge conflict in docs/dev/debt/libSceNpCppWebApi.md
CONFLICT (content): Merge conflict in core/libs/prx/libSceNpCppWebApi/Export.cpp
CONFLICT (content): Merge conflict in core/libs/tests/GuestNpCppWebApiIntrusivePtr.cpp
CONFLICT (content): Merge conflict in core/libs/tests/GuestNpCppWebApiString.cpp
CONFLICT (content): Merge conflict in docs/dev/debt/libSceNpCppWebApi.md

Findings

Blocking

The live pairwise previews conflict with #14122 and #14136 in files changed by this PR and its #10925 dependency. The PR discussion leaves their landing order for the authors to agree, while the repository requires the order to be agreed and declared in Depends on. See the current contribution rule. Please coordinate the order with the owners of #14122 and #14136 and update the affected checklists before this stack is ready.

Non-blocking

The head is behind current main, but its current-main preview is clean and main has not changed these PR paths since the base; I am not requesting a rebase for age alone. Windows CI was still pending at this snapshot.

Sources

Not verified

No local build or CTest run. Windows checks are pending; no Linux product run or console run. The reported tests are author-provided.

To get this to a good state

Agree with the owners of #14122 and #14136 which branches land first, record the order in the affected Depends on lines, then rerun the pairwise previews and current main preview. I will repeat the same checks on the updated heads.

<!-- greyfinch-sync:boykopovar/AnyPS5:review:5725836878 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/11221#pullrequestreview-5725836878). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-11-01T01:11:35Z. **Review:** CHANGES_REQUESTED --- # Reviewed — changes requested The iterator changes and reported focused tests look consistent, but this stacked head also conflicts with #14122 and #14136 and their landing order is not agreed or declared. ## What I ran Reviewed head `1c163f759c3854e6c8b5c433d8bbbfcc566efd1b` against base `cc26ab44380db3cd7b53715b84f13945227ce28b` on Debian 12 x86_64, Python 3.11.2 and GCC 12.2.0. Its preview onto current `main` (`7c4dcf0ad84de7a473ce97bb21644c614f1c3bd3`) is clean and it contains #10925 at `b7ec1d9006b704cc84f98391ea566ee92844f68f`. ```sh python3 tools/pr_precheck.py --repo boykopovar/AnyPS5 --pr 11221 git diff --check cc26ab44380db3cd7b53715b84f13945227ce28b...1c163f759c3854e6c8b5c433d8bbbfcc566efd1b git merge-tree --write-tree upstream/main refs/anyps5/review/11221 git merge-base --is-ancestor refs/anyps5/review/10925 refs/anyps5/review/11221 git merge-tree --write-tree --name-only refs/anyps5/review/11221 refs/anyps5/review/14122 git merge-tree --write-tree --name-only refs/anyps5/review/11221 refs/anyps5/review/14136 gh pr checks 11221 --repo boykopovar/AnyPS5 ``` ## Results | Check | Result | |---|---| | Diff and current-main preview | Passed; preview tree `6e040bd764964d69813e0519c61f7ee3bd8eaec8`. | | Stack | Passed; #10925 is included. The local stack helper reports a false-positive cycle. | | Conventions | Hosted check passed. | | Pairwise overlap previews | Failed with content conflicts against #14122 in `Export.cpp`, `GuestNpCppWebApiIntrusivePtr.cpp`, and the debt file; against #14136 the same paths plus `GuestNpCppWebApiString.cpp` conflict. | | Hosted CI | Windows and labels are pending; conventions, eligibility, library-portability, and report passed. Linux and specialized jobs were skipped. | | Focused tests | The author reports all 9 `np_cpp_web_api` tests pass three runs on this head and with #12801 merged; I did not run them locally. | <details><summary>Selected unedited merge-preview output</summary> ```text CONFLICT (content): Merge conflict in core/libs/prx/libSceNpCppWebApi/Export.cpp CONFLICT (content): Merge conflict in core/libs/tests/GuestNpCppWebApiIntrusivePtr.cpp CONFLICT (content): Merge conflict in docs/dev/debt/libSceNpCppWebApi.md ``` ```text CONFLICT (content): Merge conflict in core/libs/prx/libSceNpCppWebApi/Export.cpp CONFLICT (content): Merge conflict in core/libs/tests/GuestNpCppWebApiIntrusivePtr.cpp CONFLICT (content): Merge conflict in core/libs/tests/GuestNpCppWebApiString.cpp CONFLICT (content): Merge conflict in docs/dev/debt/libSceNpCppWebApi.md ``` </details> ## Findings ### Blocking The live pairwise previews conflict with #14122 and #14136 in files changed by this PR and its #10925 dependency. The PR discussion leaves their landing order for the authors to agree, while the repository requires the order to be agreed and declared in `Depends on`. [See the current contribution rule](https://github.com/boykopovar/AnyPS5/blob/7c4dcf0ad84de7a473ce97bb21644c614f1c3bd3/CONTRIBUTING.md#L70). Please coordinate the order with the owners of #14122 and #14136 and update the affected checklists before this stack is ready. ### Non-blocking The head is behind current `main`, but its current-main preview is clean and `main` has not changed these PR paths since the base; I am not requesting a rebase for age alone. Windows CI was still pending at this snapshot. ## Sources - [Reviewed #11221 files](https://github.com/boykopovar/AnyPS5/tree/1c163f759c3854e6c8b5c433d8bbbfcc566efd1b/core/libs) - [Dependency #10925 files](https://github.com/boykopovar/AnyPS5/tree/b7ec1d9006b704cc84f98391ea566ee92844f68f/core/libs) - [Overlapping #14122 files](https://github.com/boykopovar/AnyPS5/tree/bf838c7ba71798e45defdaef4a8663112ae0150a/core/libs) - [Overlapping #14136 files](https://github.com/boykopovar/AnyPS5/tree/0d4888bb7684075667dfbfdfad3f1acf33667b4f/core/libs) ## Not verified No local build or CTest run. Windows checks are pending; no Linux product run or console run. The reported tests are author-provided. ## To get this to a good state Agree with the owners of #14122 and #14136 which branches land first, record the order in the affected `Depends on` lines, then rerun the pairwise previews and current `main` preview. I will repeat the same checks on the updated heads.
MarcZX10 commented 2026-11-02 10:58:14 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-11-02T10:58:14Z.

Review: APPROVED


Re-checked — new head, looks good

At head 3760ab79c2972a53deab18e994644fe5488c3d7a, the String iterator and vector reference-count changes match the recorded layout, and the current Windows test job passed.

What I ran

Reviewed all five changed files against base cc26ab44380db3cd7b53715b84f13945227ce28b. The no-build precheck reports a clean diff, passed conventions and a clean merge preview. Environment: Debian Linux 6.1, Python 3.11.2, GCC 12.2.0; I did not build or run CTest locally. Hosted Windows CI passed on this head; Linux and specialized jobs were skipped. The author also reports the nine relevant CTests passed three times on this head.

python3 tools/pr_precheck.py --repo boykopovar/AnyPS5 --pr 11221 --output-dir /tmp/review-11221
git diff --check cc26ab44380db3cd7b53715b84f13945227ce28b...3760ab79c2972a53deab18e994644fe5488c3d7a
python3 tools/pr_abi_audit.py --base cc26ab44380db3cd7b53715b84f13945227ce28b --head 3760ab79c2972a53deab18e994644fe5488c3d7a --json
gh pr checks 11221 --repo boykopovar/AnyPS5

Results

Check Result Note
Diff and conventions passed No whitespace or convention errors
Export audit passed One expected private-helper warning
Dependency and merge preview passed Clean against current base
Windows build and tests passed Current-head hosted job succeeded
Linux and specialized checks not run Skipped by workflow
Local build and CTest not run No local build
Precheck summary and audit output
PR precheck: checks failed
Head unchanged at completion: True
Base unchanged at completion: True

The precheck's changed_export_abi_audit and test_quality_heuristics helper launches fail because those workspace-only scripts are absent from the isolated PR snapshot. I ran the ABI audit from the workspace; its JSON status is passed_with_warnings, with one lexical warning for private helper DestroyVectorBody. This is not an exported function. The precheck stack report says the merge preview is clean.

Negative control

Not run locally. The change's C++ tests require the built target; no negative-control result is claimed.

Findings

Blocking

None found in the reviewed diff.

Non-blocking

  • I did not independently run the C++ tests. Hosted Windows CI and the author's reported repeated runs cover the current head; Linux and specialized hosted jobs were skipped.

Sources

Not verified

Linux, specialized CI jobs, console behavior, and a local build/CTest run were not verified. The author states console behavior is not independently measured.

To get this to a good state

No code changes are needed from this review. Keep the declared dependency on #10925 and coordinate the stated landing order with the overlapping PRs.

<!-- greyfinch-sync:boykopovar/AnyPS5:review:5735513008 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/11221#pullrequestreview-5735513008). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-11-02T10:58:14Z. **Review:** APPROVED --- # Re-checked — new head, looks good At head `3760ab79c2972a53deab18e994644fe5488c3d7a`, the String iterator and vector reference-count changes match the recorded layout, and the current Windows test job passed. ## What I ran Reviewed all five changed files against base `cc26ab44380db3cd7b53715b84f13945227ce28b`. The no-build precheck reports a clean diff, passed conventions and a clean merge preview. Environment: Debian Linux 6.1, Python 3.11.2, GCC 12.2.0; I did not build or run CTest locally. Hosted Windows CI passed on this head; Linux and specialized jobs were skipped. The author also reports the nine relevant CTests passed three times on this head. ```sh python3 tools/pr_precheck.py --repo boykopovar/AnyPS5 --pr 11221 --output-dir /tmp/review-11221 git diff --check cc26ab44380db3cd7b53715b84f13945227ce28b...3760ab79c2972a53deab18e994644fe5488c3d7a python3 tools/pr_abi_audit.py --base cc26ab44380db3cd7b53715b84f13945227ce28b --head 3760ab79c2972a53deab18e994644fe5488c3d7a --json gh pr checks 11221 --repo boykopovar/AnyPS5 ``` ## Results | Check | Result | Note | |---|---|---| | Diff and conventions | passed | No whitespace or convention errors | | Export audit | passed | One expected private-helper warning | | Dependency and merge preview | passed | Clean against current base | | Windows build and tests | passed | Current-head hosted job succeeded | | Linux and specialized checks | not run | Skipped by workflow | | Local build and CTest | not run | No local build | <details><summary>Precheck summary and audit output</summary> ```text PR precheck: checks failed Head unchanged at completion: True Base unchanged at completion: True ``` The precheck's `changed_export_abi_audit` and `test_quality_heuristics` helper launches fail because those workspace-only scripts are absent from the isolated PR snapshot. I ran the ABI audit from the workspace; its JSON status is `passed_with_warnings`, with one lexical warning for private helper `DestroyVectorBody`. This is not an exported function. The precheck stack report says the merge preview is clean. </details> ## Negative control Not run locally. The change's C++ tests require the built target; no negative-control result is claimed. ## Findings **Blocking** None found in the reviewed diff. **Non-blocking** - I did not independently run the C++ tests. Hosted Windows CI and the author's reported repeated runs cover the current head; Linux and specialized hosted jobs were skipped. ## Sources - String vector body layout and iterator implementation: [Export.cpp at the reviewed head](https://github.com/boykopovar/AnyPS5/blob/3760ab79c2972a53deab18e994644fe5488c3d7a/core/libs/prx/libSceNpCppWebApi/Export.cpp#L1015-L1044), [iterator helpers](https://github.com/boykopovar/AnyPS5/blob/3760ab79c2972a53deab18e994644fe5488c3d7a/core/libs/prx/libSceNpCppWebApi/Export.cpp#L1635-L1643), [String vector entry points](https://github.com/boykopovar/AnyPS5/blob/3760ab79c2972a53deab18e994644fe5488c3d7a/core/libs/prx/libSceNpCppWebApi/Export.cpp#L5940-L5948). - Guarded vector and iterator tests: [GuestNpCppWebApiString.cpp](https://github.com/boykopovar/AnyPS5/blob/3760ab79c2972a53deab18e994644fe5488c3d7a/core/libs/tests/GuestNpCppWebApiString.cpp#L166-L205), [iteration tests](https://github.com/boykopovar/AnyPS5/blob/3760ab79c2972a53deab18e994644fe5488c3d7a/core/libs/tests/GuestNpCppWebApiString.cpp#L207-L270). - Recorded measured offsets: [debt entry at the reviewed head](https://github.com/boykopovar/AnyPS5/blob/3760ab79c2972a53deab18e994644fe5488c3d7a/docs/dev/debt/libSceNpCppWebApi.md#L14-L18). - Current-head CI and author test report: [PR checks](https://github.com/boykopovar/AnyPS5/pull/11221/checks), [author discussion](https://github.com/boykopovar/AnyPS5/pull/11221#issuecomment-6563226523). ## Not verified Linux, specialized CI jobs, console behavior, and a local build/CTest run were not verified. The author states console behavior is not independently measured. ## To get this to a good state No code changes are needed from this review. Keep the declared dependency on #10925 and coordinate the stated landing order with the overlapping PRs.
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!11221
No description provided.