Skip to content

feat(http2): serialize HTTP/2 response and trailing headers - #12305

Merged
adriadam10 merged 5 commits into
boykopovar:mainfrom
edubox:feat/http2-response-headers
Nov 6, 2026
Merged

adriadam10 merged 5 commits into
boykopovar:mainfrom
edubox:feat/http2-response-headers

Conversation

@edubox

@edubox edubox commented Oct 28, 2026 •

Copy link
Copy Markdown
Contributor

What

sceHttp2GetAllResponseHeaders threw for every request. It now serializes the decoded HTTP/2 header block as HTTP/2.0 <code> HTTP2 NO PHRASE\r\n, then one <name>: <value>\r\n line per header with the lowercase name HTTP/2 reports, a consumed :status pseudo-header and a final \r\n. It also exports sceHttp2GetAllTrailingHeaders (CjxqMyx2-pU): the trailer HEADERS frame is collected separately and serialized as one <name>: <value> line per field plus a final , without a status line. Both buffers live until the request is deleted; a null out pointer, an unavailable response or a response without trailers still throws.

Evidence for the contract: the decrypted firmware 11.00 libSceHttp2.prx from a retail console. sceHttp2GetAllResponseHeaders (0x15e0) calls the helper at 0x5210, which returns the block built by the serializer; the status line is strlcpy("HTTP/2.0") + " " + status + " " + "HTTP2 NO PHRASE" + "\r\n", :status is consumed, each other header is appended as name: value\r\n with the name nghttp2 reports, and a final \r\n is added. sceHttp2GetAllTrailingHeaders (0x16b0) returns its cached block through the helper at 0x5340; the console's exact trailer serialization was not measured, so it follows the response serializer without the status line and the debt entry records that. This replaces the previous HTTP/1.1 status line and local reason table, which were guesses.

Tested

Linux x86-64 (CachyOS), GCC 16.2.1, Release: ctest --test-dir build -R '^guest_http2' passes 8/8 (guest_http2_transport 7.0 s, guest_http2_redirects 11.9 s). The transport fixture now asserts the HTTP/2.0 status line, the HTTP2 NO PHRASE reason, the lowercase header block, and a nghttp2_submit_trailer response's `x-trailer: yes
x-trailer-two: 2

block;check_conventions.py --base origin/mainandgit diff --checkare clean. Rebased ontomain a4eca2a; the focused tests pass 8/8 on the refreshed head bf96b8a`, and the response and trailer serialization entries are in the debt file.

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

@github-actions github-actions Bot added the unblocks title Names a title ID on the Unblocks line label Oct 28, 2026
@edubox edubox mentioned this pull request Oct 28, 2026
12 tasks done

@MarcZX10 MarcZX10 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The implementation is coherent with the local parse helpers, and the updated Windows job plus conventions, eligibility, intake, and report checks pass. The author reports the focused Linux tests; hosted Linux is skipped. One test improvement would strengthen the central claim: guest_http2_transport currently checks the status-line prefix, a representative header and the CRLF terminator, but does not pass the returned block through sceHttpParseStatusLine and sceHttpParseResponseHeader. I have not approved: the exact PS5 HTTP/2 serialization (including status-line version/reason phrase and pseudo-header handling) is still explicitly unverified, and the current tests establish only the chosen local format.

@github-actions

github-actions Bot commented Oct 28, 2026 •

Copy link
Copy Markdown

Other open pull requests touch the same code. Merging one will break the other, or both implement the same thing. If this one builds on them, list them in Depends on.

Pull request Conflicting files (lines on main) Same exports Same new files
PR 15996 docs/dev/debt/libSceHttp2.md L43-44
PR 16231 core/libs/prx/libSceHttp2/CMakeLists.txt L76-77
core/libs/tests/GuestHttp2Transport.cpp L57
docs/dev/debt/libSceHttp2.md L43-44
PR 16292 docs/dev/debt/libSceHttp2.md L43-44

Some comparisons could not be completed because a pull request conflicts with the base branch. Review these shared files manually before concluding that there is no overlap.

Pull request Shared files not compared
PR 11470 core/libs/prx/libSceHttp2/CMakeLists.txt
core/libs/prx/libSceHttp2/Export.cpp
docs/dev/debt/libSceHttp2.md
PR 13486 core/libs/prx/libSceHttp2/CMakeLists.txt
core/libs/prx/libSceHttp2/Export.cpp
core/libs/prx/libSceHttp2/Transport.cpp
core/libs/prx/libSceHttp2/Transport.hpp
core/libs/tests/GuestHttp2Transport.cpp
docs/dev/debt/libSceHttp2.md
PR 14212 docs/dev/debt/libSceHttp2.md

@edubox
edubox force-pushed the feat/http2-response-headers branch from f68a4ac to bec0116 Compare October 28, 2026 09:09
@edubox

edubox commented Oct 28, 2026

Copy link
Copy Markdown
Contributor Author

Rebased onto current main (871517aaee); head is now bec0116a19. Focused tests on bec0116a19 (Linux x86-64, GCC 16.2.1):

  • guest_http2, guest_http2_cookies, guest_http2_options, guest_http2_transport, guest_http2_early_response and guest_http2_teardown pass.
  • Added the requested round-trip: guest_http2_transport now passes the serialized block through sceHttpParseStatusLine and sceHttpParseResponseHeader and checks the status code and x-loopback. The test links libSceHttp and adds its DLL directory to the Windows test PATH.
  • check_conventions.py --base origin/main and git diff --check are clean.

The console's exact block, reason phrases and pseudo-header handling remain unverified, as the debt entry says.

@MarcZX10 MarcZX10 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The added round-trip through sceHttpParseStatusLine and sceHttpParseResponseHeader shows that the chosen local string format is self-consistent, but it does not establish that sceHttp2GetAllResponseHeaders returns this HTTP/1.1 status line, local reason phrase, lowercase field names, or excludes HTTP/2 pseudo-headers on the PS5. The PR and debt entry still state that the console format is unknown. Under AGENTS.md, keep unknown generic behavior throwing until the contract is supported by console observation, SDK documentation, or a reliable implementation that models this export; alternatively, provide that evidence and tests for the established format. The current checks are queued after the rebase. No approval.

@MarcZX10

Copy link
Copy Markdown
Contributor

One additional merge-rule item from the refreshed overlap report: open #11950 also changes the response-header handling in Transport.cpp (same base line 409). Its cookie storage and this PR’s response-header serialization are separate features, but the same hunk needs manual reconciliation. CONTRIBUTING.md asks the authors to agree on merge order and record it under Depends on; the current checklist says none. Please coordinate with #11950’s author and update that line before merge.

@github-actions github-actions Bot added needs rebase Conflicts with main, rebase needed build docs prx labels Oct 28, 2026
@MarcZX10

Copy link
Copy Markdown
Contributor

The latest Windows CI failure is caused by this PR’s CMake edit. set_tests_properties(... PROPERTIES ...) at core/libs/prx/libSceHttp2/CMakeLists.txt:60 has two ENVIRONMENT_MODIFICATION values but no property name before the second value, so CMake reports set_tests_properties called with incorrect number of arguments during configure. Combine the PATH modifications into one semicolon-separated property value (or use a second complete set_tests_properties call), then rerun the Windows configure/build. This is in addition to the still-open response-format evidence and #11950 merge-order points from my previous review.

@MarcZX10 MarcZX10 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The Windows workflow now fails during CMake configure on this PR’s change at core/libs/prx/libSceHttp2/CMakeLists.txt:60: set_tests_properties called with incorrect number of arguments. The ENVIRONMENT_MODIFICATION property has a second value without a property key; combine both PATH edits into one semicolon-separated value or make a second complete property call, then rerun Windows CI. Existing blockers also remain: the PR still lacks evidence for the PS5 response-header serialization contract (the local round-trip proves only self-consistency of the chosen format), and the overlap with #11950 still needs merge-order coordination in the checklist. I have not approved.

@edubox
edubox force-pushed the feat/http2-response-headers branch from bec0116 to f25726e Compare October 28, 2026 10:59
@github-actions github-actions Bot removed unblocks title Names a title ID on the Unblocks line needs rebase Conflicts with main, rebase needed labels Oct 28, 2026
@edubox

edubox commented Oct 28, 2026

Copy link
Copy Markdown
Contributor Author

Rebased onto main 3a40945e62 (head f25726ef8f). The ENVIRONMENT_MODIFICATION now passes both PATH edits as one semicolon-separated value, so the Windows configure failure is gone: Windows and conventions are green. guest_http2_transport (including the round-trip through sceHttpParseStatusLine and sceHttpParseResponseHeader) and guest_http2 pass on Linux.

The body now cites shadPS4's sceHttp2GetAllResponseHeaders delegating to its HTTP/1 GetAllResponseHeaders serializer as the reference for the format, and the checklist records the landing-order overlap. The debt entry still marks the exact PS5 block (reason phrases, pseudo-header handling and header case) as unverified.

@adriadam10 adriadam10 self-assigned this Oct 28, 2026

@adriadam10 adriadam10 left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the rebase and for fixing the Windows ENVIRONMENT_MODIFICATION configure error. The remaining blocker is the same one @MarcZX10 raised:

  • core/libs/prx/libSceHttp2/Transport.cpp:455-457: the status line (HTTP/1.1, the local Reason() table), the lowercase names and leaving out pseudo-headers are all guesses. docs/dev/debt/libSceHttp2.md:35 says so too. The round-trip through sceHttpParseStatusLine/sceHttpParseResponseHeader only shows the block agrees with our own parser.
  • The cited shadPS4 sceHttp2GetAllResponseHeaders is marked (STUBBED) and just calls its HTTP/1 function, so it is not evidence of the PS5 block. KytyPS5 returns a null block with size 0 and prosper reports the response as unavailable; neither shows a format.
  • The PPSA02195 run was "with other local changes", with no result for this change alone.

Generic behaviour whose format is unknown keeps throwing (AGENTS.md). To land this, please give evidence of the real block: a capture or log from a console or a PS5 title showing the bytes, SDK documentation, or a reference that measured it. Then the test should pin those bytes (reason phrase, header case, no :status). Also:

  • Depends on says none, but #11950 changes the same response-header hunk in Transport.cpp. Agree the merge order with its author and record it.

@edubox

edubox commented Oct 28, 2026

Copy link
Copy Markdown
Contributor Author

Rebased onto current main (f21ef7c99c, 281 commits); head is now aa7a68a030. No conflicts and no code changes.

On aa7a68a030 (Linux x86-64, CachyOS, GCC 16.2.1, Release): ctest -R '^guest_http2' passes 7/7, including the round-trip through sceHttpParseStatusLine/sceHttpParseResponseHeader; tools/check_conventions.py --base origin/main and git diff --check are clean.

Open review points unchanged, as I cannot close them from here: the console evidence for the exact sceHttp2GetAllResponseHeaders block (reason phrases, header case, no pseudo-headers) still needs a console capture, SDK documentation or a measured reference, and the merge order with #11950 still needs its author's agreement before the Depends on line can be filled. Per the current reviews this PR is not yet ready to merge.

@edubox

edubox commented Oct 28, 2026

Copy link
Copy Markdown
Contributor Author

Rebased onto current main (319621ba2e); head is now $(git rev-parse --short=11 HEAD). No conflicts and no code changes; the rebase only moved the two existing commits.

On the new head (Linux x86-64, CachyOS, GCC 16.2.1, Release): ctest -R '^guest_http2' passes 7/7, including the round-trip through sceHttpParseStatusLine/sceHttpParseResponseHeader; tools/check_conventions.py --base origin/main and git diff --check are clean.

The open review points stand unchanged, as previously reported: the console evidence for the exact sceHttp2GetAllResponseHeaders block still needs a capture, SDK documentation or a measured reference, and the merge order with #11950 still needs its author's agreement.

AI-assisted: yes (Claude Code)

@edubox
edubox force-pushed the feat/http2-response-headers branch from aa7a68a to f4e18e5 Compare October 28, 2026 19:24
@edubox

edubox commented Oct 28, 2026

Copy link
Copy Markdown
Contributor Author

Re-review request at 4336a3d14a. The status-line format is no longer a guess: I disassembled the decrypted firmware 11.00 libSceHttp2.prx from a retail console. sceHttp2GetAllResponseHeaders (0x15e0) calls the helper at 0x5210, which returns the block built by the serializer at ~0x19d00-0x1a160; the literals are HTTP/2.0 (0x27d3e), " " (0x27d47), HTTP2 NO PHRASE (0x27d49), "\r\n" (0x27d59) and ": " (0x27d5c), and the PLT calls resolve to strlcpy/strlcat/strncasecmp.

The block is HTTP/2.0 <code> HTTP2 NO PHRASE\r\n, then <name>: <value>\r\n for each header with the lowercase name nghttp2 reports, with :status consumed by the status line, then a final \r\n. The serializer uses the literal HTTP2 NO PHRASE as the reason, not a table, and it does not rewrite the header names.

Changes on this head: serializer, guest_http2_transport (asserts major/minor == 2/0, the literal reason and the lowercase header) and the debt entry. ctest --test-dir build -R '^guest_http2' passes 7/7; check_conventions.py --base origin/main and git diff --check are clean. Please re-check the block format and the merge-order item in the checklist.

@edubox

edubox commented Oct 28, 2026

Copy link
Copy Markdown
Contributor Author

Rebased onto main d3c60c50fc; head is now e98fae553c. No code changes.

Linux x86-64 (CachyOS), GCC 16.2.1, Release: guest_http2* 7/7 passes, including the block with HTTP/2.0, the HTTP2 NO PHRASE reason and the lowercase header. check_conventions.py --base origin/main and git diff --check are clean.

The firmware 11.00 evidence for the status line, reason phrase, lowercase names and consumed :status is in the description and the earlier disassembly comment. The only point I cannot close from here is the landing order with #11950: it changes the same response-header hunk, and I have no confirmation from its author. I left Depends on unchanged rather than invent an order; that line still needs the authors to agree. Re-review requested for the format point.

@github-actions github-actions Bot added the needs rebase Conflicts with main, rebase needed label Nov 5, 2026
@TechLevelZero

Copy link
Copy Markdown
Contributor

✅ AMD GPU test: passed

PR head 55475e6 merged onto main b611e63 · tested 2026-11-05 04:35 UTC · 16 min

GPU AMD Radeon RX 6300 (RADV NAVI24), driver Mesa 25.2.8-0ubuntu0.24.04.4, Vulkan 1.4.318
Host Ubuntu 26.04.1 LTS, kernel 7.0.0-42-generic, container ubuntu:24.04
Logs build and test logs for this run
Build ✅ passed (Release, -DANYPS5_ENABLE_SPIRV_TOOLS=ON)
Tests ✅ 1,167 passed · 6 failed (0 new, 5 also fail on main, 1 unstable on main) · 7 skipped (ANYPS5_REQUIRE_VULKAN=1)
Test setup CPU-only tests without a GPU; GPU tests (and any CPU-only test that failed or skipped without one) once on the GPU with VK_LAYER_KHRONOS_validation and ANYPS5_NO_SHADER_CACHE=1; main ran the same way
Test selection 1,180 of 3,946 tests run: the ones this change can reach, chosen by tools/select_tests.py from main's build graph
Vulkan validation ✅ no new validation IDs vs main (571 tests run on the GPU)
Slow tests (>30 s, GPU tests timed with validation layers) ⚠️ agc_driver_pipeline_journal 120.3 s, ⚠️ agc_driver_image_sample_unnormalized 67.1 s, ⚠️ public_headers 64.6 s, ⚠️ agc_driver_lazy_resolved_abi 46.2 s, ⚠️ agc_driver_many_direct_samplers 38.2 s
Unstable on main (1, these also failed in recent main runs on this machine; not counted against this PR)
agc_driver_pipeline_journal: failed in 9 of the last 10 main runs
Failing on main too (5, not counted against this PR)
agc_driver_image_gather_volume
agc_driver_image_table
agc_driver_native_depth_bda_clear
agc_driver_native_multisample_depth
agc_driver_submit_progress
Passed on retry (1, failed in the parallel run, passed when re-run with a 360 s timeout; not counted against this PR)
agc_driver_emulated_color_compare: Timeout in the parallel run; also passed only on retry in 46 other runs in the last 7 days
Validation IDs already present on main (4 IDs in 488 tests)
VUID-VkDeviceCreateInfo-pNext-pNext (488 tests): agc_driver_address_draw_space_reuse, agc_driver_address_passes, agc_driver_alias_copy_label, agc_driver_alpha_to_coverage, agc_driver_array_layer_target, agc_driver_bc_block_copy, agc_driver_bda_anchor_reads, agc_driver_bda_span_reads, and 480 more
VUID-vkCmdCopyImage-srcImage-01548 (4 tests): agc_driver_depth_clear_hle, agc_driver_depth_storage_dispatch, agc_driver_depth_surface_from_storage, agc_driver_dispatch_move_depth
VUID-vkCmdCopyImage-srcImage-01551 (4 tests): agc_driver_depth_clear_hle, agc_driver_depth_storage_dispatch, agc_driver_depth_surface_from_storage, agc_driver_dispatch_move_depth
VUID-VkPipelineColorBlendStateCreateInfo-pAttachments-00605 (2 tests): agc_driver_prepared_exports, agc_driver_srgb8_color_target
Skipped (7)
agc_driver_copied_writer_label_order: skipped, the device reports a minStorageBufferOffsetAlignment of 4, so the dispatch binds its record at +0x1004 in place and nothing is written back; the test needs an alignment above 4
agc_driver_float16_unused_nan_payloads: skipped, the device has no native f16 conversions with RTE rounding and kept f16 denormals
agc_driver_gcn_display_present: skipped, no display: Vulkan support is either not configured in SDL or not available in current SDL video driver (offscreen) or platform
agc_driver_linear_target_direct_write_completion: skipped, the device does not keep host imports write-watched, so no completion stamp over the target is tracked
agc_driver_ngg_vertex_wave_reduction: skipped, s3 describes a 32-lane wave only on 32-lane subgroups, and the device has 64 lanes
agc_driver_scattered_runs: skipped, host imports are unavailable: /dev/udmabuf is not accessible
agc_driver_sparse_dma_buf_import: skipped, host imports are unavailable: /dev/udmabuf is not accessible
Reproduce
git fetch origin 55475e6f477fd2623a259a9d4bf5323efa0d692d b611e634f7fc024f0c13e342d96de744448ef1d9
git checkout b611e634f7fc024f0c13e342d96de744448ef1d9 && git merge --no-ff 55475e6f477fd2623a259a9d4bf5323efa0d692d
git submodule update --init --recursive
cmake -S . -B build -G Ninja -DCMAKE_BUILD_TYPE=Release -DBUILD_TESTING=ON -DANYPS5_ENABLE_SPIRV_TOOLS=ON
cmake --build build && cmake --build build --target libs
VK_DRIVER_FILES=/nonexistent/icd.json ctest --test-dir build -E '^(agc|shader|recompiler|videoout|video_out|guest_video_out|vulkan)|gpu' --timeout 120 --parallel 12 --output-on-failure
ANYPS5_REQUIRE_VULKAN=1 ANYPS5_NO_SHADER_CACHE=1 VK_INSTANCE_LAYERS=VK_LAYER_KHRONOS_validation \
  ctest --test-dir build -R '^(agc|shader|recompiler|videoout|video_out|guest_video_out|vulkan)|gpu' --timeout 120 --parallel 16 --output-on-failure
# failures are then re-run alone: --timeout 360 --parallel 2; new validation IDs: the test alone, twice, --parallel 1

Automated build and test on a contributor's AMD machine; it does not replace upstream CI. A new comment is posted for each new push. Full logs.

@edubox
edubox force-pushed the feat/http2-response-headers branch from 55475e6 to 12bd5be Compare November 5, 2026 07:03
@edubox

edubox commented Nov 5, 2026

Copy link
Copy Markdown
Contributor Author

Rebased onto current origin/main (1e24993fa3a) and pushed 12bd5be151. The conflicts were textual:

  • docs/dev/debt/libSceHttp2.md: kept main's newer gzip entry and this PR's response-header and trailing-header entries.
  • core/libs/prx/libSceHttp2/CMakeLists.txt: kept both sides' test names (including main's gzip tests) and both PATH prepends for libSceHttp2 and libSceHttp.
  • core/libs/tests/GuestHttp2Transport.cpp: took the union of the Mode enumerators, with Trailers added.

Checks on 12bd5be151:

  • ctest --test-dir build -R '^guest_http2': 12/12 passed, including guest_http2_transport and the gzip cases.
  • python3 tools/check_conventions.py --base origin/main: all checks passed.
  • git diff --check origin/main...HEAD: clean.

The body still records Depends on: #11950; this head does not include that branch. AI-assisted: yes.

@github-actions github-actions Bot removed the needs rebase Conflicts with main, rebase needed label Nov 5, 2026
@TechLevelZero

Copy link
Copy Markdown
Contributor

✅ AMD GPU test: passed

PR head 12bd5be merged onto main e772fb2 · tested 2026-11-05 16:39 UTC · 13 min

GPU AMD Radeon RX 6300 (RADV NAVI24), driver Mesa 25.2.8-0ubuntu0.24.04.4, Vulkan 1.4.318
Host Ubuntu 26.04.1 LTS, kernel 7.0.0-42-generic, container ubuntu:24.04
Logs build and test logs for this run
Build ✅ passed (Release, -DANYPS5_ENABLE_SPIRV_TOOLS=ON)
Tests ✅ 1,322 passed · 5 failed (0 new, 4 also fail on main, 1 unstable on main) · 7 skipped (ANYPS5_REQUIRE_VULKAN=1)
Test setup CPU-only tests without a GPU; GPU tests (and any CPU-only test that failed or skipped without one) once on the GPU with VK_LAYER_KHRONOS_validation and ANYPS5_NO_SHADER_CACHE=1; main ran the same way
Test selection 1,334 of 4,074 tests run: the ones this change can reach, chosen by tools/select_tests.py from main's build graph
Vulkan validation ✅ no new validation IDs vs main (638 tests run on the GPU)
Slow tests (>30 s, GPU tests timed with validation layers) ⚠️ agc_driver_pipeline_journal 120.2 s, ⚠️ public_headers 56.4 s, ⚠️ agc_driver_lazy_resolved_abi 48.9 s, ⚠️ agc_driver_image_sample_unnormalized 48.3 s, ⚠️ agc_driver_many_direct_samplers 34.3 s
Unstable on main (1, these also failed in recent main runs on this machine; not counted against this PR)
agc_driver_pipeline_journal: failed in 9 of the last 10 main runs
Failing on main too (4, not counted against this PR)
agc_driver_image_table
agc_driver_native_depth_bda_clear
agc_driver_native_multisample_depth
agc_driver_submit_progress
Validation IDs already present on main (4 IDs in 550 tests)
VUID-VkDeviceCreateInfo-pNext-pNext (550 tests): agc_driver_address_draw_space_reuse, agc_driver_address_passes, agc_driver_address_passes_draw_transitions, agc_driver_alias_copy_label, agc_driver_alpha_to_coverage, agc_driver_array_layer_target, agc_driver_bc_block_copy, agc_driver_bda_anchor_reads, and 542 more
VUID-vkCmdCopyImage-srcImage-01548 (4 tests): agc_driver_depth_clear_hle, agc_driver_depth_storage_dispatch, agc_driver_depth_surface_from_storage, agc_driver_dispatch_move_depth
VUID-vkCmdCopyImage-srcImage-01551 (4 tests): agc_driver_depth_clear_hle, agc_driver_depth_storage_dispatch, agc_driver_depth_surface_from_storage, agc_driver_dispatch_move_depth
VUID-VkPipelineColorBlendStateCreateInfo-pAttachments-00605 (1 test): agc_driver_prepared_exports
Skipped (7)
agc_driver_copied_writer_label_order: skipped, the device reports a minStorageBufferOffsetAlignment of 4, so the dispatch binds its record at +0x1004 in place and nothing is written back; the test needs an alignment above 4
agc_driver_float16_unused_nan_payloads: skipped, the device has no native f16 conversions with RTE rounding and kept f16 denormals
agc_driver_gcn_display_present: skipped, no display: Vulkan support is either not configured in SDL or not available in current SDL video driver (offscreen) or platform
agc_driver_linear_target_direct_write_completion: skipped, the device does not keep host imports write-watched, so no completion stamp over the target is tracked
agc_driver_ngg_vertex_wave_reduction: skipped, s3 describes a 32-lane wave only on 32-lane subgroups, and the device has 64 lanes
agc_driver_recorded_draw_staging: skipped, the device does not keep host imports write-watched, so the target is never resident
agc_driver_vertex_elected_atomic_max: skipped, the device runs vertex programs in subgroups, so they keep their cross-lane reductions
Reproduce
git fetch origin 12bd5be151a2270958219db78a3a1712fc0393a1 e772fb25cc72ee5faf77847f06bbc69533016e82
git checkout e772fb25cc72ee5faf77847f06bbc69533016e82 && git merge --no-ff 12bd5be151a2270958219db78a3a1712fc0393a1
git submodule update --init --recursive
cmake -S . -B build -G Ninja -DCMAKE_BUILD_TYPE=Release -DBUILD_TESTING=ON -DANYPS5_ENABLE_SPIRV_TOOLS=ON
cmake --build build && cmake --build build --target libs
VK_DRIVER_FILES=/nonexistent/icd.json ctest --test-dir build -E '^(agc|shader|recompiler|videoout|video_out|guest_video_out|vulkan)|gpu' --timeout 120 --parallel 12 --output-on-failure
ANYPS5_REQUIRE_VULKAN=1 ANYPS5_NO_SHADER_CACHE=1 VK_INSTANCE_LAYERS=VK_LAYER_KHRONOS_validation \
  ctest --test-dir build -R '^(agc|shader|recompiler|videoout|video_out|guest_video_out|vulkan)|gpu' --timeout 120 --parallel 16 --output-on-failure
# failures are then re-run alone: --timeout 360 --parallel 2; new validation IDs: the test alone, twice, --parallel 1

Automated build and test on a contributor's AMD machine; it does not replace upstream CI. A new comment is posted for each new push. Full logs.

@github-actions github-actions Bot added the needs rebase Conflicts with main, rebase needed label Nov 5, 2026
@edubox
edubox force-pushed the feat/http2-response-headers branch from 12bd5be to 17a1225 Compare November 5, 2026 17:05
@edubox

edubox commented Nov 5, 2026

Copy link
Copy Markdown
Contributor Author

Rebased onto current main (6a337633c64, which includes #11950) and pushed 17a12251ab.

The only conflict was the Mode enum in core/libs/tests/GuestHttp2Transport.cpp; I kept main's Cookie/CookieFlood modes and this PR's Trailers mode. The Set-Cookie transport, cookie-box scenarios and the trailing-header test all remain.

Focused checks on the rebased head:

  • ctest -R '^guest_http2': 13/13 passed (including guest_http2_transport and guest_http2_http1_cookies).
  • python3 tools/check_conventions.py --base origin/main: all checks passed.
  • git diff --check origin/main...HEAD: clean.

No source change beyond the rebase conflict resolution.

@github-actions github-actions Bot removed the needs rebase Conflicts with main, rebase needed label Nov 5, 2026
@JJenkx

JJenkx commented Nov 5, 2026 •

Copy link
Copy Markdown
Contributor

Update: the auth fix is now #16240. I also refreshed my existing HTTP/1 gzip PR #15221 after its gzip-member prerequisite merged. Its production patch is unchanged, but its fixture Mode enum conflicts with your added Trailers case. #16240 and #15221 merge cleanly with each other.

I propose #12305 first, followed by those two PRs, and have declared that ordering in both descriptions; your agreement is still pending. I will preserve all header/trailer, cookie and gzip fixture cases on rebase after your branch lands. These implement distinct features. Would that order work for you?

edubox and others added 4 commits November 6, 2026 00:01
Firmware 11.00 libSceHttp2 serializes sceHttp2GetAllResponseHeaders as "HTTP/2.0 <code> HTTP2 NO PHRASE\r\n", keeps the received header names and consumes :status. Replace the local HTTP/1.1 reason table.
@edubox

edubox commented Nov 5, 2026

Copy link
Copy Markdown
Contributor Author

Rebased automatically onto current main (396ae3d0661); head is now d2e283bee6. Focused tests pass; check_conventions.py --base origin/main and git diff --check are clean.

@edubox
edubox force-pushed the feat/http2-response-headers branch from 17a1225 to d2e283b Compare November 5, 2026 23:02
@edubox

edubox commented Nov 5, 2026

Copy link
Copy Markdown
Contributor Author

That order works: #12305 first, then #16240 and #15221. This head d2e283bee6 is already rebased onto 396ae3d0661 and the body still declares Depends on: #11950. Verified on this head: ctest -R '^guest_http2' passes 13/13, python3 tools/check_conventions.py --base origin/main passes, and git diff --check origin/main...HEAD is clean. AI-assisted: yes.

…eaders

# Conflicts:
#	core/libs/prx/libSceHttp2/Transport.cpp
@edubox

edubox commented Nov 6, 2026

Copy link
Copy Markdown
Contributor Author

Resolved the merge conflict by merging current main (495b960d4bb) into the branch. This is a merge, not a rebase, so the reviewed commits are unchanged. The only conflict was core/libs/prx/libSceHttp2/Transport.cpp in BeginHeaders, where #11950's auth-challenge resets and this PR's trailer block collection are both kept.

Validated on head 104fc87a0b1:

  • ctest --test-dir build -R '^guest_http2' → 14/14 passed.
  • python3 tools/check_conventions.py --base origin/main → all checks passed.
  • Hosted checks: conventions, windows, library-portability, eligibility, labels and report passed; the product jobs are skipped by policy.

Depends on is now none: #11950 has merged. On the ordering, agreed: #12305 lands first.

@adriadam10
adriadam10 merged commit b96af01 into boykopovar:main Nov 6, 2026
13 of 14 checks passed
@adriadam10

Copy link
Copy Markdown
Collaborator

Checked the HTTP/2 response-header block (HTTP/2.0 <code> HTTP2 NO PHRASE, lowercase name: value lines, final blank line) and the trailing-header block against the diff and the tests: Mode::Trailers pins both trailer lines and the status-line/header parsing, the merge into BeginHeaders keeps #11950's auth resets, and the debt entries state what is unmeasured. Conventions and Windows are green; the Linux web_library_assets failure (missing 3rdparty/mimalloc/LICENSE) is unrelated to this diff; merged.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

7 participants