test(libSceHttp2): cover the network error a request's status code and content length report #11518
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/11518"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Imported from boykopovar/AnyPS5. Originally posted by milescoviello on 2026-10-26T17:51:41Z.
What
GuestHttp2.cppnow asks the request thatsceHttp2SendRequestjust failed for its status code and content length:sceHttp2GetStatusCodeandsceHttp2GetResponseContentLengthboth return the same network error (0x80436063) and leave their outputs untouched.The function is called by PPSA01494, PPSA18194, PPSA21564, PPSA30839 and PPSA31162 (both functions) (call sites found through the import's PLT stub in each title's relinked
eboot.bin), and until now no test called it.Changed:
core/libs/tests/GuestHttp2.cpp. Test only, no change to the library.Tested
Linux (Ubuntu 26.04, GCC 15.2), Release:
cmake --build build --target guest_http2_testsandctest -R '^guest_http2$' --repeat until-fail:3pass on this branch, which is currentmainplus the test.tools/check_conventions.py --base upstream/mainpasses.Checklist
main; no other open PR implements the same functionsNotImplemented_nid_no_patch); silent stubs are listed under Silent stubs in their library's technical debt file.mdfiles or images added to the repository (attach them to this PR)🤖 Generated with Claude Code
Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-26T18:01:38Z.
Review: APPROVED
The new assertions exercise both response accessors after
sceHttp2SendRequestreturns the network error and verify each return code plus unchanged output sentinels. That matches the current implementation, which returnsERROR_NETWORKwithout writing either output. The request is valid and was created through the normal template path, so the test covers the intended failed-network state.I built
guest_http2_testswith the exact PR test source in a current-main scratch checkout (4 build steps); the focused executable passed under QEMU user-mode emulation. The native runner lacks required CPU extensions.tools/check_conventions.pyandgit show --checkpass. Hosted product jobs are skipped for this test-only change.Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-26T19:10:19Z.
Review: CHANGES_REQUESTED
I manually reviewed the overlap bot's uncomparable
GuestHttp2.cppentries. #11470 adds a separateTestWebSocketsfunction and changes the ping-interval assertion to use a valid HTTP request; I do not see a conflicting edit to the two output-preservation assertions added here.#11145 is different: its current patch rewrites most of
main()inGuestHttp2.cpp, including the existingsceHttp2SendRequest(request, nullptr, 0)setup immediately before these new assertions. It also introduces the HTTP/2 transport, stacked on #10167. The current test expects0x80436063for an HTTPS request tolocalhostwith no server, so the transport branch may change the exercised path or exact result. Please coordinate with #11145's author on merge order, declare it inDepends on, and ensure these assertions are preserved and pass against the agreed resulting base. I am changing my prior approval to changes requested for this merge-order/test-integration requirement; the focused assertions themselves have no identified defect on currentmain.Pull request closed