revert: report the download data block size (#19934) #20058

Merged
oneandonlydean merged 1 commit from upstream-pr/20058 into main 2026-11-14 14:55:43 +00:00
oneandonlydean commented 2026-11-14 14:14:30 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by oneandonlydean on 2026-11-14T14:14:30Z.


What

Reverts #19934. Since it merged, guest_appcontent aborts on Windows on plain main (ae431f9624, two Windows machines; it was the only AppContent change after the last passing main 0f4538fa02):

Test #3151: guest_appcontent ....Exit code 0xc0000409***Exception
FATAL: abort() (SIGABRT)

The abort prints no message, so the cause is not clear from the log. This puts sceAppContentDownloadDataGetBlockSize back to NotImplemented_nid_no_patch so main is green while it is looked at. The change can come back as a new PR with a Windows run of guest_appcontent.

Tested

Windows run of this head is pending. The revert applies cleanly; no later commit touches these files.

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:5312152560 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/20058). Originally posted by [oneandonlydean](https://github.com/oneandonlydean) on 2026-11-14T14:14:30Z. --- ### What Reverts #19934. Since it merged, `guest_appcontent` aborts on Windows on plain main (ae431f9624, two Windows machines; it was the only AppContent change after the last passing main 0f4538fa02): ``` Test #3151: guest_appcontent ....Exit code 0xc0000409***Exception FATAL: abort() (SIGABRT) ``` The abort prints no message, so the cause is not clear from the log. This puts `sceAppContentDownloadDataGetBlockSize` back to `NotImplemented_nid_no_patch` so main is green while it is looked at. The change can come back as a new PR with a Windows run of `guest_appcontent`. ### Tested Windows run of this head is pending. The revert applies cleanly; no later commit touches these files. ### 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
PrivacyOnion commented 2026-11-14 14:19:20 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by PrivacyOnion on 2026-11-14T14:19:20Z.

Review: DISMISSED


Verified on Linux (Ubuntu 24.04, GCC 13.3, Ninja, Release) against a4c57b3f2e:

  • Conventions: tools/check_conventions.py passed; git diff --check clean.
  • Build: guest_appcontent_download_tests built cleanly.
  • CTest (guest_appcontent_download_0, guest_appcontent_download_1, guest_appcontent_download_18014398509481983, guest_appcontent_download_18014398509481984, guest_appcontent_download_18446744073709551615):
    1/5 Test #3059: guest_appcontent_download_0 ......................   Passed    0.01 sec
    2/5 Test #3060: guest_appcontent_download_1 ......................   Passed    0.01 sec
    3/5 Test #3061: guest_appcontent_download_18014398509481983 ......   Passed    0.01 sec
    4/5 Test #3062: guest_appcontent_download_18014398509481984 ......   Passed    0.01 sec
    5/5 Test #3063: guest_appcontent_download_18446744073709551615 ...   Passed    0.01 sec
    100% tests passed, 0 tests failed out of 5
    
  • Negative control: the tests still pass with the change reverted, so they do not cover it
  • Code reading:
    • Verified Export.cpp:157-161: sceAppContentDownloadDataGetBlockSize maintains correct parameter validation order, returning SCE_APP_CONTENT_ERROR_NOT_INITIALIZED (0x80D90001) if not initialized before returning SCE_APP_CONTENT_ERROR_PARAMETER (0x80D90002) for null mountPoint or blockSize pointers.
    • Verified Export.cpp:160: the unimplemented function body throws via NotImplemented_nid_no_patch(func) instead of returning a stubbed success code, strictly conforming to AGENTS.md.
    • Verified Export.cpp:18-26: platform-specific headers (<windows.h>, <sys/stat.h>) and WIN32_LEAN_AND_MEAN are cleanly removed without leaving unused headers or any comments in code.
    • Verified GuestAppContentDownload.cpp:46-56: block-size test assertions that would throw on NotImplemented_nid_no_patch are cleanly excised without affecting remaining tests for sceAppContentDownloadDataGetAvailableSpaceKb.
    • Verified docs/dev/debt/libSceAppContent.md:17-23: functional debt entry for sceAppContentDownloadDataGetBlockSize is removed while its entry under the list of functions throwing after argument checks is properly retained.
  • Note: the AI-assisted checkbox can stay.

Requesting changes for the points above.

<!-- greyfinch-sync:boykopovar/AnyPS5:review:5904856671 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/20058#pullrequestreview-5904856671). Originally posted by [PrivacyOnion](https://github.com/PrivacyOnion) on 2026-11-14T14:19:20Z. **Review:** DISMISSED --- Verified on Linux (Ubuntu 24.04, GCC 13.3, Ninja, Release) against `a4c57b3f2e`: - **Conventions**: `tools/check_conventions.py` passed; `git diff --check` clean. - **Build**: `guest_appcontent_download_tests` built cleanly. - **CTest** (`guest_appcontent_download_0`, `guest_appcontent_download_1`, `guest_appcontent_download_18014398509481983`, `guest_appcontent_download_18014398509481984`, `guest_appcontent_download_18446744073709551615`): ``` 1/5 Test #3059: guest_appcontent_download_0 ...................... Passed 0.01 sec 2/5 Test #3060: guest_appcontent_download_1 ...................... Passed 0.01 sec 3/5 Test #3061: guest_appcontent_download_18014398509481983 ...... Passed 0.01 sec 4/5 Test #3062: guest_appcontent_download_18014398509481984 ...... Passed 0.01 sec 5/5 Test #3063: guest_appcontent_download_18446744073709551615 ... Passed 0.01 sec 100% tests passed, 0 tests failed out of 5 ``` - **Negative control**: the tests still pass with the change reverted, so they do not cover it - **Code reading**: - Verified Export.cpp:157-161: sceAppContentDownloadDataGetBlockSize maintains correct parameter validation order, returning SCE_APP_CONTENT_ERROR_NOT_INITIALIZED (0x80D90001) if not initialized before returning SCE_APP_CONTENT_ERROR_PARAMETER (0x80D90002) for null mountPoint or blockSize pointers. - Verified Export.cpp:160: the unimplemented function body throws via NotImplemented_nid_no_patch(__func__) instead of returning a stubbed success code, strictly conforming to AGENTS.md. - Verified Export.cpp:18-26: platform-specific headers (<windows.h>, <sys/stat.h>) and WIN32_LEAN_AND_MEAN are cleanly removed without leaving unused headers or any comments in code. - Verified GuestAppContentDownload.cpp:46-56: block-size test assertions that would throw on NotImplemented_nid_no_patch are cleanly excised without affecting remaining tests for sceAppContentDownloadDataGetAvailableSpaceKb. - Verified docs/dev/debt/libSceAppContent.md:17-23: functional debt entry for sceAppContentDownloadDataGetBlockSize is removed while its entry under the list of functions throwing after argument checks is properly retained. - Note: the AI-assisted checkbox can stay. Requesting changes for the points above.
MarcZX10 commented 2026-11-14 14:48:20 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-11-14T14:48:20Z.

Review: APPROVED


Reviewed — looks good

The revert restores the documented unimplemented behavior for sceAppContentDownloadDataGetBlockSize while its Windows abort is investigated; I found no verified blocking defect in the reviewed change.

What I ran

Reviewed head a4c57b3f2ef60d8fa35404f8f334e7ef7bfd1303 using repo_read.py to inspect the prepared diff and changed files. No build or tests were run; the description says the Windows run is pending.

Results

Check Result Note
Diff and changed files passed All three changed files read
Build and tests not run Windows run pending per description
Revert behavior passed Export throws after its existing argument checks

Findings

Blocking

None.

Non-blocking

None.

Not verified

The reported Windows abort’s cause and whether this head resolves it were not verified. No tests or build were run. Read: core/libs/prx/libSceAppContent/Export.cpp, core/libs/tests/GuestAppContentDownload.cpp, and docs/dev/debt/libSceAppContent.md. Excluded: none listed in the available manifest; files.json was not available through the reader.

To get this to a good state

Nothing is required.

<!-- greyfinch-sync:boykopovar/AnyPS5:review:5905059844 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/20058#pullrequestreview-5905059844). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-11-14T14:48:20Z. **Review:** APPROVED --- # Reviewed — looks good The revert restores the documented unimplemented behavior for `sceAppContentDownloadDataGetBlockSize` while its Windows abort is investigated; I found no verified blocking defect in the reviewed change. ## What I ran Reviewed head `a4c57b3f2ef60d8fa35404f8f334e7ef7bfd1303` using `repo_read.py` to inspect the prepared diff and changed files. No build or tests were run; the description says the Windows run is pending. ## Results | Check | Result | Note | |---|---|---| | Diff and changed files | passed | All three changed files read | | Build and tests | not run | Windows run pending per description | | Revert behavior | passed | Export throws after its existing argument checks | ## Findings ### Blocking None. ### Non-blocking None. ## Not verified The reported Windows abort’s cause and whether this head resolves it were not verified. No tests or build were run. Read: `core/libs/prx/libSceAppContent/Export.cpp`, `core/libs/tests/GuestAppContentDownload.cpp`, and `docs/dev/debt/libSceAppContent.md`. Excluded: none listed in the available manifest; `files.json` was not available through the reader. ## To get this to a good state Nothing is required.
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!20058
No description provided.