fix(libSceNet): accept SO_CONNECTTIMEO and bound blocking connects by it #11571

Merged
NevesHenry merged 7 commits from upstream-pr/11571 into main 2026-11-08 05:56:19 +00:00
NevesHenry commented 2026-10-26 20:47:15 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by NevesHenry on 2026-10-26T20:47:15Z.


What

sceNetSetsockopt failed SOL_SOCKET option 0x1109 with EOPNOTSUPP. shadPS4 names it ORBIS_NET_SO_CONNECTTIMEO, next to 0x1105 and 0x1106, the send and receive timeouts in microseconds that AnyPS5 already takes.

Codex PS5 (PPSA99105) creates a stream socket, sets 0x1105 to 1,500,000, 0x1106 to 100,000 and 0x1109 to 1,500,000, then connects to its service on 127.0.0.1:49322. The third set fails, so the title writes this to its /download0/codex-ps5-network.log, closes the socket and tries again every 500 ms:

connect timeout 8041012d 0000002d

(0x8041012d is SCE_NET_ERROR_EOPNOTSUPP, errno 45.) It never calls sceNetConnect, so it can't reach its service even when the service is running. Retail titles use the option too: Metal Gear Solid 4 (PPSA18194 01.004.003) passes 0x1109 to sceNetSetsockopt at four call sites (found by @milescoviello, see the comments).

Change (core/libs/prx/libSceNet/Export.cpp):

  • sceNetSetsockopt keeps the 0x1109 value per socket, and sceNetGetsockopt reads it back. A negative value fails with EINVAL, as it does for 0x1105 and 0x1106.
  • A blocking stream sceNetConnect with a timeout set waits at most that long. On Linux and macOS it connects with the host socket made non-blocking, polls for writability for the remaining time, reads SO_ERROR and then makes the socket blocking again. Windows sockets are already non-blocking here, so the existing select gets the same limit.
  • Nobody knows what the console returns when the time runs out, so that case throws (std::runtime_error, as the other unsupported cases in this file) and has a libSceNet technical debt entry. shadPS4 returns EWOULDBLOCK and leaves the attempt running. A timeout of 0, a non-blocking socket and a datagram socket still take the old path.

Tested

Linux: Ubuntu 22.04 on WSL2, Ryzen 9 7900, lavapipe, GCC 13, Release.

Title: Codex PS5 - Prototype (PPSA99105) 00.000.004, the codex-ps5-0.0.4-Folder.zip release of Portablelle/Codex-PS5. Its SHA-256 is b6f8952b72eaa4806baab21634aae950f69a365bee4215a373d750e8f652364b, the same as in the darkxex homebrew catalog. I unwrapped eboot.bin and sce_module/libc.prx, relinked with --registry and ran it for 30 s per run under Xvfb in a container with no network except loopback. The real service is a separate payload (assistant-service.elf) that needs a jailbroken console, so I didn't run it. Instead, a small TCP listener on 127.0.0.1:49322 logged whatever it received.

Run main e61a7c7e24 This PR
Listener on 49322 60 × connect timeout 8041012d 0000002d, and the listener gets no connection One connection. The title sends {"id":1,"method":"initialize","params":{"capabilities":{"experimentalApi":true},"clientInfo":{"name":"codex_ps5","title":"Codex PS5","version":"0.0.4"}}}
Nothing on 49322 60 × connect timeout 8041012d 0000002d 60 × connect 8041013d 0000003d (ECONNREFUSED)
  • guest_sce_net has a new CheckConnectTimeout. It checks that:

    • 0x1109 reads 0 on a new socket, a negative value fails with EINVAL, and 1,500,000 reads back.
    • A connect to a loopback listener succeeds.
    • Afterwards the socket is blocking again: a 50 ms receive timeout waits at least 40 ms.
    • A connect to a loopback port that is bound but never listens fails with ECONNREFUSED. The bound socket stays open until the end, so no other process can take the port.

    It aborts on main and passes with this change.

  • CheckConnectTimeoutExpiry (b57df488a, from review) makes a connect run into its timeout.

    • A loopback listener with backlog 0 takes connects, each with 0x1109 at 100 ms, until one stays pending because the listener's queue is full.
    • Hosts differ in how many connects such a listener completes first. Linux without 3479c7549fb1 and with syncookies off completes none. So since 056b076ffd, any number is accepted, including none, up to a cap of 64.
    • Each connect runs in std::async, and the test aborts if a connect hasn't returned after 5 s. An ignored timeout therefore fails instead of hanging.
    • The pending connect must leave through the std::runtime_error or a nonzero error result (869ec68d9f, from review), and only after at least 80 ms. A later evidence-based error code therefore keeps the test passing.
    • The socket then reads SO_NBIO 0 and SO_ERROR 0, and closes.
    • On Linux and macOS, a 50 ms receive timeout on it waits at least 40 ms, so the host socket is blocking again. Windows sockets stay non-blocking at the host here, and recv on a socket that isn't connected yet fails at once with ENOTCONN there. So that last part doesn't run on Windows.
    • When a check fails, Require prints its line and the sceNet errno. The expiry loop also prints the completed connects, the last result and the elapsed time.
    • Linux: passes 10/10, with one queued connection and the expiry after 100.2 ms. Three negative controls abort within 2.5 s: poll without the deadline, the old blocking connect for this case, and connect_within not restoring the flags after the expiry.
    • Self-hosted Linux runners (full build): guest_sce_net aborted on 869ec68d9f with no message, 3 times. With the SYNs to the expiry listener dropped by iptables in a private network namespace, I got the same abort locally, at the !queued.empty() check. 056b076ffd passes that case 3/3. Its controls: Export.cpp from before this PR aborts, at the first 0x1109 check. poll(..., -1) aborts through the 5 s guard, with the message. Returning ETIMEDOUT in place of the throw passes 3/3. A SYN answered with a reset aborts, with the pending connect returned before its timeout after 0 completed connects (last result 0x8041013d ...).
    • Windows: GitHub windows-latest (Windows Server 2025), WinLibs GCC 15.2.0, Release, guest_sce_net_tests built from b57df488a by a throwaway workflow in my fork: guest_sce_net passes 10/10, with one queued connection and the expiry after 101.1 ms.
  • Merged with main 5cb015caaa (95ff923f89, no conflicts). Linux, Ryzen 9 7900:

    • guest_sce_net passes 10/10.
    • ctest -R '(net|socket|ssl|http|rudp|epoll|resolver)' passes 142/142 at -j8, and again with -j16 --repeat until-fail:3.
    • 48 copies of guest_sce_net_tests pass 48/48. They ran 16 at a time, each in its own directory, with 24 busy loops on the 24 threads.
  • Earlier, merged onto main 737f17291a (clean): ctest -R '(net|socket|ssl|http|rudp|epoll|resolver)' 100/100 pass. Full ctest without the AGC tests: 1486/1491; the other five are pr_overlap_tools and check_main_sync (git 2.34), guest_runtime_lifecycle (fails on this machine, with main too in earlier runs), and select_tests and vulkan_validation_gate_attribution, which pass when run again on their own.

  • Full ctest -j16 on the earlier base 263eee0a7: 2344/2386 pass. The other 42 are AGC tests that fail on this WSL lavapipe, plus pr_overlap_tools and check_main_sync, which need git 2.38 while this host has 2.34. All 42 fail the same way on a main build of the same base.

  • Windows: only guest_sce_net_tests was built, as above. macOS: not built.

  • tools/check_conventions.py --base origin/main passes.

  • Overlap: tools/pr_overlap.py needs git merge-tree --write-tree, so I checked by hand. I ran git merge-tree against the 23 open PRs that change libSceNet/Export.cpp, GuestSceNet.cpp or debt/libSceNet.md. None of them handles 0x1109. #11559 and #7490 change other lines of sceNetConnect, and each merges cleanly with this.

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: PPSA99105 #11570
  • GPUs tested: n/a
  • AI-assisted: yes (Claude Code)

🤖 Generated with Claude Code

<!-- greyfinch-sync:boykopovar/AnyPS5:issue:5024401124 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/11571). Originally posted by [NevesHenry](https://github.com/NevesHenry) on 2026-10-26T20:47:15Z. --- ### What `sceNetSetsockopt` failed `SOL_SOCKET` option `0x1109` with `EOPNOTSUPP`. shadPS4 names it [`ORBIS_NET_SO_CONNECTTIMEO`](https://github.com/shadps4-emu/shadPS4/blob/main/src/core/libraries/net/net_types.h), next to `0x1105` and `0x1106`, the send and receive timeouts in microseconds that AnyPS5 already takes. Codex PS5 (PPSA99105) creates a stream socket, sets `0x1105` to 1,500,000, `0x1106` to 100,000 and `0x1109` to 1,500,000, then connects to its service on `127.0.0.1:49322`. The third set fails, so the title writes this to its `/download0/codex-ps5-network.log`, closes the socket and tries again every 500 ms: ``` connect timeout 8041012d 0000002d ``` (`0x8041012d` is `SCE_NET_ERROR_EOPNOTSUPP`, errno 45.) It never calls `sceNetConnect`, so it can't reach its service even when the service is running. Retail titles use the option too: Metal Gear Solid 4 (PPSA18194 01.004.003) passes `0x1109` to `sceNetSetsockopt` at four call sites (found by @milescoviello, see the comments). Change (`core/libs/prx/libSceNet/Export.cpp`): - `sceNetSetsockopt` keeps the `0x1109` value per socket, and `sceNetGetsockopt` reads it back. A negative value fails with `EINVAL`, as it does for `0x1105` and `0x1106`. - A blocking stream `sceNetConnect` with a timeout set waits at most that long. On Linux and macOS it connects with the host socket made non-blocking, polls for writability for the remaining time, reads `SO_ERROR` and then makes the socket blocking again. Windows sockets are already non-blocking here, so the existing `select` gets the same limit. - Nobody knows what the console returns when the time runs out, so that case throws (`std::runtime_error`, as the other unsupported cases in this file) and has a `libSceNet` technical debt entry. shadPS4 returns `EWOULDBLOCK` and leaves the attempt running. A timeout of 0, a non-blocking socket and a datagram socket still take the old path. ### Tested Linux: Ubuntu 22.04 on WSL2, Ryzen 9 7900, lavapipe, GCC 13, Release. Title: Codex PS5 - Prototype (PPSA99105) 00.000.004, the `codex-ps5-0.0.4-Folder.zip` release of [Portablelle/Codex-PS5](https://github.com/Portablelle/Codex-PS5). Its SHA-256 is `b6f8952b72eaa4806baab21634aae950f69a365bee4215a373d750e8f652364b`, the same as in the darkxex homebrew catalog. I unwrapped `eboot.bin` and `sce_module/libc.prx`, relinked with `--registry` and ran it for 30 s per run under Xvfb in a container with no network except loopback. The real service is a separate payload (`assistant-service.elf`) that needs a jailbroken console, so I didn't run it. Instead, a small TCP listener on `127.0.0.1:49322` logged whatever it received. | Run | `main` e61a7c7e24 | This PR | |---|---|---| | Listener on 49322 | 60 × `connect timeout 8041012d 0000002d`, and the listener gets no connection | One connection. The title sends `{"id":1,"method":"initialize","params":{"capabilities":{"experimentalApi":true},"clientInfo":{"name":"codex_ps5","title":"Codex PS5","version":"0.0.4"}}}` | | Nothing on 49322 | 60 × `connect timeout 8041012d 0000002d` | 60 × `connect 8041013d 0000003d` (`ECONNREFUSED`) | - `guest_sce_net` has a new `CheckConnectTimeout`. It checks that: - `0x1109` reads 0 on a new socket, a negative value fails with `EINVAL`, and 1,500,000 reads back. - A connect to a loopback listener succeeds. - Afterwards the socket is blocking again: a 50 ms receive timeout waits at least 40 ms. - A connect to a loopback port that is bound but never listens fails with `ECONNREFUSED`. The bound socket stays open until the end, so no other process can take the port. It aborts on `main` and passes with this change. - `CheckConnectTimeoutExpiry` (b57df488a, from review) makes a connect run into its timeout. - A loopback listener with backlog 0 takes connects, each with `0x1109` at 100 ms, until one stays pending because the listener's queue is full. - Hosts differ in how many connects such a listener completes first. Linux without [3479c7549fb1](https://lists.openwall.net/netdev/2025/01/04/80) and with syncookies off completes none. So since 056b076ffd, any number is accepted, including none, up to a cap of 64. - Each connect runs in `std::async`, and the test aborts if a connect hasn't returned after 5 s. An ignored timeout therefore fails instead of hanging. - The pending connect must leave through the `std::runtime_error` or a nonzero error result (869ec68d9f, from review), and only after at least 80 ms. A later evidence-based error code therefore keeps the test passing. - The socket then reads `SO_NBIO` 0 and `SO_ERROR` 0, and closes. - On Linux and macOS, a 50 ms receive timeout on it waits at least 40 ms, so the host socket is blocking again. Windows sockets stay non-blocking at the host here, and `recv` on a socket that isn't connected yet fails at once with `ENOTCONN` there. So that last part doesn't run on Windows. - When a check fails, `Require` prints its line and the sceNet errno. The expiry loop also prints the completed connects, the last result and the elapsed time. - Linux: passes 10/10, with one queued connection and the expiry after 100.2 ms. Three negative controls abort within 2.5 s: `poll` without the deadline, the old blocking connect for this case, and `connect_within` not restoring the flags after the expiry. - Self-hosted Linux runners (full build): `guest_sce_net` aborted on 869ec68d9f with no message, 3 times. With the SYNs to the expiry listener dropped by iptables in a private network namespace, I got the same abort locally, at the `!queued.empty()` check. 056b076ffd passes that case 3/3. Its controls: `Export.cpp` from before this PR aborts, at the first `0x1109` check. `poll(..., -1)` aborts through the 5 s guard, with the message. Returning `ETIMEDOUT` in place of the throw passes 3/3. A SYN answered with a reset aborts, with `the pending connect returned before its timeout after 0 completed connects (last result 0x8041013d ...)`. - Windows: GitHub `windows-latest` (Windows Server 2025), WinLibs GCC 15.2.0, Release, `guest_sce_net_tests` built from b57df488a by a throwaway workflow in my fork: `guest_sce_net` passes 10/10, with one queued connection and the expiry after 101.1 ms. - Merged with `main` 5cb015caaa (95ff923f89, no conflicts). Linux, Ryzen 9 7900: - `guest_sce_net` passes 10/10. - `ctest -R '(net|socket|ssl|http|rudp|epoll|resolver)'` passes 142/142 at `-j8`, and again with `-j16 --repeat until-fail:3`. - 48 copies of `guest_sce_net_tests` pass 48/48. They ran 16 at a time, each in its own directory, with 24 busy loops on the 24 threads. - Earlier, merged onto `main` 737f17291a (clean): `ctest -R '(net|socket|ssl|http|rudp|epoll|resolver)'` 100/100 pass. Full `ctest` without the AGC tests: 1486/1491; the other five are `pr_overlap_tools` and `check_main_sync` (git 2.34), `guest_runtime_lifecycle` (fails on this machine, with `main` too in earlier runs), and `select_tests` and `vulkan_validation_gate_attribution`, which pass when run again on their own. - Full `ctest -j16` on the earlier base 263eee0a7: 2344/2386 pass. The other 42 are AGC tests that fail on this WSL lavapipe, plus `pr_overlap_tools` and `check_main_sync`, which need git 2.38 while this host has 2.34. All 42 fail the same way on a `main` build of the same base. - Windows: only `guest_sce_net_tests` was built, as above. macOS: not built. - `tools/check_conventions.py --base origin/main` passes. - Overlap: `tools/pr_overlap.py` needs `git merge-tree --write-tree`, so I checked by hand. I ran `git merge-tree` against the 23 open PRs that change `libSceNet/Export.cpp`, `GuestSceNet.cpp` or `debt/libSceNet.md`. None of them handles `0x1109`. #11559 and #7490 change other lines of `sceNetConnect`, and each merges cleanly with this. ### 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: PPSA99105 #11570 - [x] GPUs tested: n/a - [x] AI-assisted: yes (Claude Code) 🤖 Generated with [Claude Code](https://claude.com/claude-code)
MarcZX10 commented 2026-10-27 00:17:49 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-27T00:17:49Z.

Review: DISMISSED


Reviewed exact head f77ba0525e7a92079f99e3afd506772efb1c5fc7. Changes requested for missing coverage of the primary behavior this PR adds.

[P2] Exercise a connect that actually reaches the configured timeout. CheckConnectTimeout verifies option readback, a successful loopback connect, receive timeout afterward, and an immediately refused connection. Neither path enters the expiry branch in connect_within/the Windows select, so the test would still pass if the configured deadline were ignored and a stalled connect blocked indefinitely. The reported title run also exercises only an accepting listener and an immediately refused port. Please add a deterministic test for an in-progress connection that remains pending past a short configured timeout, and assert it exits within a bounded interval through the documented unsupported-timeout exception path; then verify the socket's native blocking mode is restored and the still-pending attempt is handled consistently. If a portable deterministic fixture is difficult, inject the connect/poll boundary so the timeout result and elapsed-budget logic can be controlled without relying on external network routing.

The test gap is in the core contract (blocking stream sceNetConnect waits at most the configured time), not in the console's unknown timeout errno: the PR correctly avoids inventing that errno and records it as technical debt. Hosted eligibility, conventions, labels and report pass; product builds are skipped by path policy. The author reports 88 focused Linux CTests and the title listener repro, but I did not rerun them locally.

<!-- greyfinch-sync:boykopovar/AnyPS5:review:5660792269 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/11571#pullrequestreview-5660792269). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-10-27T00:17:49Z. **Review:** DISMISSED --- Reviewed exact head `f77ba0525e7a92079f99e3afd506772efb1c5fc7`. Changes requested for missing coverage of the primary behavior this PR adds. **[P2] Exercise a connect that actually reaches the configured timeout.** `CheckConnectTimeout` verifies option readback, a successful loopback connect, receive timeout afterward, and an immediately refused connection. Neither path enters the expiry branch in `connect_within`/the Windows `select`, so the test would still pass if the configured deadline were ignored and a stalled connect blocked indefinitely. The reported title run also exercises only an accepting listener and an immediately refused port. Please add a deterministic test for an in-progress connection that remains pending past a short configured timeout, and assert it exits within a bounded interval through the documented unsupported-timeout exception path; then verify the socket's native blocking mode is restored and the still-pending attempt is handled consistently. If a portable deterministic fixture is difficult, inject the connect/poll boundary so the timeout result and elapsed-budget logic can be controlled without relying on external network routing. The test gap is in the core contract (blocking stream `sceNetConnect` waits at most the configured time), not in the console's unknown timeout errno: the PR correctly avoids inventing that errno and records it as technical debt. Hosted eligibility, conventions, labels and report pass; product builds are skipped by path policy. The author reports 88 focused Linux CTests and the title listener repro, but I did not rerun them locally.
adriadam10 commented 2026-10-27 10:48:03 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by adriadam10 on 2026-10-27T10:48:03Z.

Review: CHANGES_REQUESTED


Thanks, the option handling and the connect_within/select bounds look right. One thing blocks this:

  • core/libs/tests/GuestSceNet.cpp:733-764 CheckConnectTimeout never reaches the expiry branch (connect_within returning CONNECT_EXPIRED, core/libs/prx/libSceNet/Export.cpp:1196, and the Windows select returning 0 at :1222). It covers readback, a successful connect and an immediate ECONNREFUSED, so it would still pass if the timeout were ignored and a stalled connect blocked forever. This is the main behaviour of the PR, so it needs a test that fails without it (tests must pin values, not just the happy path).
    Suggested direction: make a connect stay pending deterministically (for example a loopback listener with a tiny backlog already filled, so the SYN is dropped), set 0x1109 to a short value such as 100 ms, and assert the call leaves through the documented exception within a bounded time, then that the socket is blocking again. If that is not portable on Windows, put the connect/poll boundary behind a small seam so the timeout logic can be driven without the network.

Same request as @MarcZX10's review on this head.

<!-- greyfinch-sync:boykopovar/AnyPS5:review:5665812471 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/11571#pullrequestreview-5665812471). Originally posted by [adriadam10](https://github.com/adriadam10) on 2026-10-27T10:48:03Z. **Review:** CHANGES_REQUESTED --- Thanks, the option handling and the `connect_within`/`select` bounds look right. One thing blocks this: - `core/libs/tests/GuestSceNet.cpp:733-764` `CheckConnectTimeout` never reaches the expiry branch (`connect_within` returning `CONNECT_EXPIRED`, `core/libs/prx/libSceNet/Export.cpp:1196`, and the Windows `select` returning 0 at `:1222`). It covers readback, a successful connect and an immediate `ECONNREFUSED`, so it would still pass if the timeout were ignored and a stalled connect blocked forever. This is the main behaviour of the PR, so it needs a test that fails without it (tests must pin values, not just the happy path). Suggested direction: make a connect stay pending deterministically (for example a loopback listener with a tiny backlog already filled, so the SYN is dropped), set `0x1109` to a short value such as 100 ms, and assert the call leaves through the documented exception within a bounded time, then that the socket is blocking again. If that is not portable on Windows, put the connect/poll boundary behind a small seam so the timeout logic can be driven without the network. Same request as @MarcZX10's review on this head.
MarcZX10 commented 2026-10-29 05:59:59 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-29T05:59:59Z.

Review: DISMISSED


Re-checked — changes requested

What I checked

  • Reviewed exact head 869ec68d9f against fetched main 2960e9a6e7; the merge preview is clean and git diff --check passes.
  • The new full-backlog fixture does reach an in-progress connect and bounds the wait. The earlier coverage gap is resolved.
  • Hosted Windows, conventions, eligibility, labels, and report checks pass; Linux and specialized jobs were skipped.

Remaining blockers

  • CheckConnectTimeoutExpiry only accepts std::runtime_error as the timeout outcome. The PR records the console timeout error as unknown, so this test should allow either the current unsupported-path exception or a nonzero guest error result; otherwise a later evidence-based error implementation will break a test that assumes the unknown result.
  • This branch is 300 commits behind current main. The reported Linux/Windows repetitions and broader integration run used earlier bases. Please refresh onto current main and rerun the focused expiry and socket tests there.

The author reports 10/10 Linux and Windows focused runs on the earlier tested head; I did not run network tests locally. I am requesting changes for the unsupported timeout-result assertion and stale integration evidence, not for the expiry fixture's coverage.

<!-- greyfinch-sync:boykopovar/AnyPS5:review:5693491902 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/11571#pullrequestreview-5693491902). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-10-29T05:59:59Z. **Review:** DISMISSED --- # Re-checked — changes requested ## What I checked - Reviewed exact head `869ec68d9f` against fetched `main` `2960e9a6e7`; the merge preview is clean and `git diff --check` passes. - The new full-backlog fixture does reach an in-progress connect and bounds the wait. The earlier coverage gap is resolved. - Hosted Windows, conventions, eligibility, labels, and report checks pass; Linux and specialized jobs were skipped. ## Remaining blockers - `CheckConnectTimeoutExpiry` only accepts `std::runtime_error` as the timeout outcome. The PR records the console timeout error as unknown, so this test should allow either the current unsupported-path exception or a nonzero guest error result; otherwise a later evidence-based error implementation will break a test that assumes the unknown result. - This branch is 300 commits behind current `main`. The reported Linux/Windows repetitions and broader integration run used earlier bases. Please refresh onto current `main` and rerun the focused expiry and socket tests there. The author reports 10/10 Linux and Windows focused runs on the earlier tested head; I did not run network tests locally. I am requesting changes for the unsupported timeout-result assertion and stale integration evidence, not for the expiry fixture's coverage.
XairRrR commented 2026-10-29 06:09:12 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by XairRrR on 2026-10-29T06:09:12Z.

Review: APPROVED


Reviewed — approved

The head merges cleanly onto current main and builds. guest_sce_net passes 10 of 10 runs, and it aborts when the connect deadline is removed. The expiry test already accepts an error code as well as the throw. I found nothing blocking.

What I ran

  • Head: 869ec68d9f74285fe3113657c971022bc9e3ff12
  • main: 2960e9a6e7e1fc99c4ed180c71495b5eb83464c7, which is 300 commits past the branch's merge base
  • Linux, in a clean worktree: Arch Linux 7.2.11-zen, GCC 16.2.1, Release, Ninja, Intel Core i9-14900KF. The sandbox has no network, only lo (127.0.0.1, ::1).
git fetch origin main pull/11571/head:refs/review/11571
git checkout --detach origin/main
git merge --no-ff --no-edit refs/review/11571
git diff --check origin/main...refs/review/11571
python3 tools/check_conventions.py --base origin/main
cmake --build build -j10
for i in $(seq 10); do ctest --test-dir build -R '^guest_sce_net$' --output-on-failure; done
ctest --test-dir build -j4 -R '(net|socket|ssl|http|rudp|epoll|resolver)' --output-on-failure

# negative controls and an experiment, each followed by
#   cmake --build build -j10 --target guest_sce_net_tests
#   ctest --test-dir build -R '^guest_sce_net$' --output-on-failure
git checkout origin/main -- core/libs/prx/libSceNet/Export.cpp
# poll(..., -1) in connect_within
# 'return fail(60);' in place of the CONNECT_EXPIRED throw on Linux

Results

Check Result
Merge onto main 2960e9a6e7 Clean
git diff --check Clean
tools/check_conventions.py --base origin/main All conventions checks passed.
Full build (cmake --build build -j10, includes libs) OK
guest_sce_net, 10 runs 10/10 pass, 1.66–1.68 s each (the CMake timeout is 20 s)
ctest -R '(net|socket|ssl|http|rudp|epoll|resolver)' 112 of 113 run, 111 pass. guest_net_ctl is skipped. guest_socket_options_multicast fails, but that comes from the environment (see below)
guest_socket_options_multicast on main's Export.cpp Fails the same way: joining 224.0.0.251 through INADDR_ANY failed (errno 5). It is a libkernel test (guest_socket_options_tests) that does not link the libSceNet export, and the sandbox has no multicast-capable interface
Network test summary (merged tree)
99% tests passed, 1 tests failed out of 113
The following tests did not run:
	2129 - guest_net_ctl (Skipped)
The following tests FAILED:
	2545 - guest_socket_options_multicast (Subprocess aborted)
2545: joining 224.0.0.251 through INADDR_ANY failed (errno 5)

Negative control

  • I restored only core/libs/prx/libSceNet/Export.cpp from origin/main. guest_sce_net then aborts after 1.44 s.
  • On the merged file, I changed only the poll timeout in connect_within to -1, so the deadline is ignored. guest_sce_net then aborts after 2.49 s, through the 1 s std::async guard, so it does not hang.
  • I then restored the merged file and rebuilt.

Experiment on the open request. @MarcZX10's review of this head says CheckConnectTimeoutExpiry only accepts std::runtime_error. That no longer holds at this head. 869ec68d9f stores the result and treats any nonzero return as the pending connect (GuestSceNet.cpp:821-831). To check, I replaced the Linux throw with return fail(60) (ETIMEDOUT). guest_sce_net passed 3 of 3 runs. So a later evidence-based error code will not break the test, which also answers @oneandonlydean's request.

The same review asks for a refresh onto current main. The merge onto 2960e9a6e7 is clean, and the focused tests above pass on it, so I don't consider the branch age blocking.

Findings

Blocking

None.

Non-blocking

  • connect_within restores the host flags it read before the wait, which can undo a concurrent SO_NBIO. See Export.cpp:502-514 at the head.
    • Line 513 writes back flags, and ignores the result. sceNetSetsockopt(SO_NBIO) changes the same host flags without a lock (Export.cpp:1546-1550).
    • Suppose another thread sets SO_NBIO to 1 while a thread waits in connect_within. When the wait ends, the host socket is blocking again, but native->nonblock reads 1. The host mode and the guest's SO_NBIO then disagree for every later call on that socket.
    • The same thing happens if the final F_SETFL fails.
    • This is unlikely in practice. A fix: after the wait, set O_NONBLOCK from the current socket.native->nonblock instead of from the saved flags, and report a failed restore with native_error().
  • The PR description is stale on one point. It still says the pending connect "must leave through the std::runtime_error". Since 869ec68d9f the test accepts any nonzero result as well. Updating that sentence would stop the request from being raised again.

Not verified

  • Windows and macOS: I built and ran on Linux only. The Windows select limit relies on the author's report and the windows-latest run described in the PR.
  • The title run with Codex PS5 (PPSA99105), and the MGS4 call sites.
  • Console behaviour when the timeout expires. The PR records this as unknown in docs/dev/debt/libSceNet.md and throws, as the rules require.
<!-- greyfinch-sync:boykopovar/AnyPS5:review:5693560740 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/11571#pullrequestreview-5693560740). Originally posted by [XairRrR](https://github.com/XairRrR) on 2026-10-29T06:09:12Z. **Review:** APPROVED --- # Reviewed — approved The head merges cleanly onto current `main` and builds. `guest_sce_net` passes 10 of 10 runs, and it aborts when the connect deadline is removed. The expiry test already accepts an error code as well as the throw. I found nothing blocking. ## What I ran - Head: `869ec68d9f74285fe3113657c971022bc9e3ff12` - `main`: `2960e9a6e7e1fc99c4ed180c71495b5eb83464c7`, which is 300 commits past the branch's merge base - Linux, in a clean worktree: Arch Linux 7.2.11-zen, GCC 16.2.1, Release, Ninja, Intel Core i9-14900KF. The sandbox has no network, only `lo` (127.0.0.1, ::1). ```sh git fetch origin main pull/11571/head:refs/review/11571 git checkout --detach origin/main git merge --no-ff --no-edit refs/review/11571 git diff --check origin/main...refs/review/11571 python3 tools/check_conventions.py --base origin/main cmake --build build -j10 for i in $(seq 10); do ctest --test-dir build -R '^guest_sce_net$' --output-on-failure; done ctest --test-dir build -j4 -R '(net|socket|ssl|http|rudp|epoll|resolver)' --output-on-failure # negative controls and an experiment, each followed by # cmake --build build -j10 --target guest_sce_net_tests # ctest --test-dir build -R '^guest_sce_net$' --output-on-failure git checkout origin/main -- core/libs/prx/libSceNet/Export.cpp # poll(..., -1) in connect_within # 'return fail(60);' in place of the CONNECT_EXPIRED throw on Linux ``` ## Results | Check | Result | |---|---| | Merge onto `main` `2960e9a6e7` | Clean | | `git diff --check` | Clean | | `tools/check_conventions.py --base origin/main` | `All conventions checks passed.` | | Full build (`cmake --build build -j10`, includes `libs`) | OK | | `guest_sce_net`, 10 runs | 10/10 pass, 1.66–1.68 s each (the CMake timeout is 20 s) | | `ctest -R '(net\|socket\|ssl\|http\|rudp\|epoll\|resolver)'` | 112 of 113 run, 111 pass. `guest_net_ctl` is skipped. `guest_socket_options_multicast` fails, but that comes from the environment (see below) | | `guest_socket_options_multicast` on `main`'s `Export.cpp` | Fails the same way: `joining 224.0.0.251 through INADDR_ANY failed (errno 5)`. It is a libkernel test (`guest_socket_options_tests`) that does not link the libSceNet export, and the sandbox has no multicast-capable interface | <details><summary>Network test summary (merged tree)</summary> ``` 99% tests passed, 1 tests failed out of 113 The following tests did not run: 2129 - guest_net_ctl (Skipped) The following tests FAILED: 2545 - guest_socket_options_multicast (Subprocess aborted) ``` ``` 2545: joining 224.0.0.251 through INADDR_ANY failed (errno 5) ``` </details> ## Negative control - I restored only `core/libs/prx/libSceNet/Export.cpp` from `origin/main`. `guest_sce_net` then aborts after 1.44 s. - On the merged file, I changed only the `poll` timeout in `connect_within` to `-1`, so the deadline is ignored. `guest_sce_net` then aborts after 2.49 s, through the 1 s `std::async` guard, so it does not hang. - I then restored the merged file and rebuilt. **Experiment on the open request.** @MarcZX10's review of this head says `CheckConnectTimeoutExpiry` only accepts `std::runtime_error`. That no longer holds at this head. 869ec68d9f stores the result and treats any nonzero return as the pending connect ([GuestSceNet.cpp:821-831](https://github.com/boykopovar/AnyPS5/blob/869ec68d9f74285fe3113657c971022bc9e3ff12/core/libs/tests/GuestSceNet.cpp#L821-L831)). To check, I replaced the Linux throw with `return fail(60)` (`ETIMEDOUT`). `guest_sce_net` passed 3 of 3 runs. So a later evidence-based error code will not break the test, which also answers @oneandonlydean's request. The same review asks for a refresh onto current `main`. The merge onto `2960e9a6e7` is clean, and the focused tests above pass on it, so I don't consider the branch age blocking. ## Findings ### Blocking None. ### Non-blocking - **`connect_within` restores the host flags it read before the wait, which can undo a concurrent `SO_NBIO`.** See [Export.cpp:502-514](https://github.com/boykopovar/AnyPS5/blob/869ec68d9f74285fe3113657c971022bc9e3ff12/core/libs/prx/libSceNet/Export.cpp#L502-L514) at the head. - Line 513 writes back `flags`, and ignores the result. `sceNetSetsockopt(SO_NBIO)` changes the same host flags without a lock ([Export.cpp:1546-1550](https://github.com/boykopovar/AnyPS5/blob/869ec68d9f74285fe3113657c971022bc9e3ff12/core/libs/prx/libSceNet/Export.cpp#L1546-L1550)). - Suppose another thread sets `SO_NBIO` to 1 while a thread waits in `connect_within`. When the wait ends, the host socket is blocking again, but `native->nonblock` reads 1. The host mode and the guest's `SO_NBIO` then disagree for every later call on that socket. - The same thing happens if the final `F_SETFL` fails. - This is unlikely in practice. A fix: after the wait, set `O_NONBLOCK` from the current `socket.native->nonblock` instead of from the saved `flags`, and report a failed restore with `native_error()`. - **The PR description is stale on one point.** It still says the pending connect "must leave through the `std::runtime_error`". Since 869ec68d9f the test accepts any nonzero result as well. Updating that sentence would stop the request from being raised again. ## Not verified - Windows and macOS: I built and ran on Linux only. The Windows `select` limit relies on the author's report and the `windows-latest` run described in the PR. - The title run with Codex PS5 (PPSA99105), and the MGS4 call sites. - Console behaviour when the timeout expires. The PR records this as unknown in `docs/dev/debt/libSceNet.md` and throws, as the rules require.
adriadam10 commented 2026-10-30 11:15:41 +00:00 (Migrated from github.com)

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

Review: DISMISSED


The Linux job of the full Build aborts guest_sce_net on this head, in two separate runs (40983168286 and 41036646524). Both fail the same way: Subprocess aborted after ~1.9 s, same runner CPU, last log line the second /dev/urandom open. main does not fail this test, and the head only passed Linux earlier (run 40739052906) on an older base, so this is reproducible on the runner and not a flake.

  • core/libs/tests/GuestSceNet.cpp:820-889 (CheckConnectTimeout, CheckConnectTimeoutExpiry) are the only new test code that runs at that point, and the abort is a bare Require with no message, so the log doesn't say which check failed. Please make the failing check visible (print the line/expression in Require for this test, or log the connect results and elapsed times) and find out what differs on the runner from your WSL2 and the Arch runs.
  • Candidates to check: the backlog-0 listener may queue a different number of connects on the runner's kernel (the loop is capped at 64 and aborts), the 1 s wait_for around the std::async connect (the 1.9 s total fits one of them expiring), and the ECONNREFUSED check against the closed port while other tests run in parallel and may bind it.
  • Per @oneandonlydean's earlier request, the expiry check should accept the throw or a nonzero error; please keep that, and make the test independent of the host's accept-queue behaviour.

Push the fix and the queue will build the exact head again; the rest of the change looks fine.

<!-- greyfinch-sync:boykopovar/AnyPS5:review:5711453309 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/11571#pullrequestreview-5711453309). Originally posted by [adriadam10](https://github.com/adriadam10) on 2026-10-30T11:15:41Z. **Review:** DISMISSED --- The Linux job of the full Build aborts `guest_sce_net` on this head, in two separate runs (40983168286 and 41036646524). Both fail the same way: `Subprocess aborted` after ~1.9 s, same runner CPU, last log line the second `/dev/urandom` open. `main` does not fail this test, and the head only passed Linux earlier (run 40739052906) on an older base, so this is reproducible on the runner and not a flake. - `core/libs/tests/GuestSceNet.cpp:820-889` (`CheckConnectTimeout`, `CheckConnectTimeoutExpiry`) are the only new test code that runs at that point, and the abort is a bare `Require` with no message, so the log doesn't say which check failed. Please make the failing check visible (print the line/expression in `Require` for this test, or log the connect results and elapsed times) and find out what differs on the runner from your WSL2 and the Arch runs. - Candidates to check: the backlog-0 listener may queue a different number of connects on the runner's kernel (the loop is capped at 64 and aborts), the 1 s `wait_for` around the `std::async` connect (the 1.9 s total fits one of them expiring), and the `ECONNREFUSED` check against the closed port while other tests run in parallel and may bind it. - Per @oneandonlydean's earlier request, the expiry check should accept the throw or a nonzero error; please keep that, and make the test independent of the host's accept-queue behaviour. Push the fix and the queue will build the exact head again; the rest of the change looks fine.
XairRrR commented 2026-11-03 05:45:40 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by XairRrR on 2026-11-03T05:45:40Z.

Review: APPROVED


Re-checked — approved

What changed is commit 056b076ffd, a test-only change, plus a merge of current main. Require now prints the failing line. The expiry check accepts any number of completed connects before the pending one, and the connect guard is now 5 s. The refused-connect check now targets a port that stays bound. The merged tree builds, guest_sce_net passes, and both negative controls abort with a readable message.

What changed since my last review

  • 056b076ffd (core/libs/tests/GuestSceNet.cpp only):
    • Require is now a variadic macro over Check. On failure it prints the line and *sceNetErrnoLoc(), then aborts.
    • CheckConnectTimeoutExpiry drops the !queued.empty() requirement and keeps the cap of 64. The std::async guard is 5 s instead of 1 s. The loop reports the completed connects, the last result, whether it threw and the elapsed time when it gives up.
    • CheckConnectTimeout sends the refused connect to a socket that is bound, never listens and stays open until the end. Before, it used the port of the closed listener.
  • 95ff923f89: merges main 5cb015caaa. The production code (Export.cpp) and the debt entry are unchanged since my last review.
  • Description: it now says the expired connect may leave through the throw or a nonzero error, and it documents the backlog-0 host differences.
  • Author reply (2026-11-02): my connect_within flag-restore note is acknowledged and deliberately left unchanged in this push.

What I ran

Head 95ff923f894aac4c9fbc2c425835c8358a9539df, main 5cb015caaaaf83f8ee431414ee6a457b5b307d49, merged tree 083ea3504f9d3e015eef67e031594553a8ea8e16. Debian 13 VM, GCC 14.2.0, Release, Ninja, lavapipe.

git diff --check 5cb015caaaaf83f8ee431414ee6a457b5b307d49...95ff923f894aac4c9fbc2c425835c8358a9539df
python3 tools/check_conventions.py --base 5cb015caaaaf83f8ee431414ee6a457b5b307d49
ctest --test-dir build --repeat until-fail:10 -R '^guest_sce_net$' --output-on-failure
ctest --test-dir build -R '^agc_driver_image_sample_lod_clamp_shader_lane$' --output-on-failure
ctest --test-dir build -R '^unwrap_self' --output-on-failure

# negative control 1: production file from main
git show 5cb015caaa:core/libs/prx/libSceNet/Export.cpp > core/libs/prx/libSceNet/Export.cpp
ninja -C build guest_sce_net_tests agc_driver_image_sample_lod_clamp_tests
ctest --test-dir build -R '^(guest_sce_net|agc_driver_image_sample_lod_clamp_shader_lane)$' --output-on-failure

# negative control 2: merged file with poll(&descriptor, 1, -1) in connect_within
ninja -C build guest_sce_net_tests
ctest --test-dir build -R '^guest_sce_net$' --output-on-failure

# restore
git show 083ea3504f:core/libs/prx/libSceNet/Export.cpp > core/libs/prx/libSceNet/Export.cpp
ninja -C build guest_sce_net_tests agc_driver_image_sample_lod_clamp_tests
ctest --test-dir build -R '^guest_sce_net$'
git status --porcelain
Check Result
git diff --check Clean
check_conventions.py All conventions checks passed.
Build, libs (script) OK
Selected tests (script) 901 run, 898 pass, 1 skip that is expected
guest_sce_net Passes in the script run and 10/10 in my repeat run, 1.74 s each
agc_driver_image_sample_lod_clamp_shader_lane (reported as a new failure) Fails the same way with main's Export.cpp, so it comes from main, not from this PR. The PR changes no AGC or shader file
unwrap_self_..._destination_directory_group (reported as a new failure) os.chown gives EINVAL on a temp dir in the sandbox. This is a Python tool test that the PR does not touch, so it comes from the environment
Worktree after restore git status --porcelain is empty. guest_sce_net passes again
Negative-control output
# Export.cpp from main
2/2 Test #2837: guest_sce_net ....Subprocess aborted   1.45 sec
guest_sce_net check failed at line 966, sceNet errno 45
1/2 Test #1772: agc_driver_image_sample_lod_clamp_shader_lane ...Failed
  ... thread 0 component 1 is 0.000000, expected 0.062500

# poll(..., -1)
Test #2837: guest_sce_net ....Subprocess aborted   6.53 sec
connect timeout expiry: sceNetConnect did not return after 1 completed connects (last result 0x0, threw 0, 5000 ms)
guest_sce_net check failed at line 1023, sceNet errno 61

Negative control

  • Export.cpp from main: guest_sce_net aborts at the first 0x1109 check (line 966, errno 45 = EOPNOTSUPP).
  • Deadline ignored (poll(..., -1)): the test aborts through the 5 s guard and prints its diagnostic line, so it does not hang.
  • In both cases the new Require output names the check that failed, which is what the runner logs were missing.

Previous findings

  • connect_within restores the host flags it read before the wait (Export.cpp:562-575): Still open, non-blocking.
    • Line 573 still writes back the saved flags and ignores the result.
    • SO_NBIO still changes the same host flags without a lock (Export.cpp:1648-1652).
    • The author has acknowledged this and left it unchanged. It still doesn't block.
  • Stale description sentence about the pending connect leaving only through std::runtime_error: Resolved. The description now says it leaves through "the std::runtime_error or a nonzero error result".

On the others' open requests:

  • Failing check made visible: done. My controls above show the line and errno.
  • No dependence on the host accept-queue behaviour: done, as far as the PR claims. Zero completed connects are now accepted.
    • I could not reproduce the case where SYNs are dropped (there are no iptables in the sandbox), so that 3/3 result is author-reported.
    • A host that answers queue overflow with a reset (tcp_abort_on_overflow=1) would still abort at the 80 ms check. It now prints a diagnostic line there. That is a non-default sysctl, so I don't count it as a finding.

New findings

Blocking

None.

Non-blocking

None.

Not verified

  • Runners: the self-hosted Linux runner conditions behind the earlier aborts. Only the next full build there can confirm the fix. The PR's root-cause analysis (a backlog-0 listener without kernel 3479c7549fb1, with syncookies off) is plausible but not proven, as the author says.
  • Other platforms: Windows and macOS. For Windows, B-Howell's run of this head reports 10/10 passes and 181/181 socket tests.
  • Titles and console: the Codex PS5 run, and what the console returns when the connect timeout expires (recorded as debt, and that case throws).
  • Validation layers: this comparison was skipped because no AGC, shader or VideoOut file changed.
<!-- greyfinch-sync:boykopovar/AnyPS5:review:5747724486 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/11571#pullrequestreview-5747724486). Originally posted by [XairRrR](https://github.com/XairRrR) on 2026-11-03T05:45:40Z. **Review:** APPROVED --- # Re-checked — approved What changed is commit 056b076ffd, a test-only change, plus a merge of current `main`. `Require` now prints the failing line. The expiry check accepts any number of completed connects before the pending one, and the connect guard is now 5 s. The refused-connect check now targets a port that stays bound. The merged tree builds, `guest_sce_net` passes, and both negative controls abort with a readable message. ## What changed since my last review - **056b076ffd** (`core/libs/tests/GuestSceNet.cpp` only): - `Require` is now a variadic macro over `Check`. On failure it prints the line and `*sceNetErrnoLoc()`, then aborts. - `CheckConnectTimeoutExpiry` drops the `!queued.empty()` requirement and keeps the cap of 64. The `std::async` guard is 5 s instead of 1 s. The loop reports the completed connects, the last result, whether it threw and the elapsed time when it gives up. - `CheckConnectTimeout` sends the refused connect to a socket that is bound, never listens and stays open until the end. Before, it used the port of the closed listener. - **95ff923f89**: merges `main` `5cb015caaa`. The production code (`Export.cpp`) and the debt entry are unchanged since my last review. - **Description**: it now says the expired connect may leave through the throw or a nonzero error, and it documents the backlog-0 host differences. - **Author reply** (2026-11-02): my `connect_within` flag-restore note is acknowledged and deliberately left unchanged in this push. ## What I ran Head `95ff923f894aac4c9fbc2c425835c8358a9539df`, `main` `5cb015caaaaf83f8ee431414ee6a457b5b307d49`, merged tree `083ea3504f9d3e015eef67e031594553a8ea8e16`. Debian 13 VM, GCC 14.2.0, Release, Ninja, lavapipe. ```sh git diff --check 5cb015caaaaf83f8ee431414ee6a457b5b307d49...95ff923f894aac4c9fbc2c425835c8358a9539df python3 tools/check_conventions.py --base 5cb015caaaaf83f8ee431414ee6a457b5b307d49 ctest --test-dir build --repeat until-fail:10 -R '^guest_sce_net$' --output-on-failure ctest --test-dir build -R '^agc_driver_image_sample_lod_clamp_shader_lane$' --output-on-failure ctest --test-dir build -R '^unwrap_self' --output-on-failure # negative control 1: production file from main git show 5cb015caaa:core/libs/prx/libSceNet/Export.cpp > core/libs/prx/libSceNet/Export.cpp ninja -C build guest_sce_net_tests agc_driver_image_sample_lod_clamp_tests ctest --test-dir build -R '^(guest_sce_net|agc_driver_image_sample_lod_clamp_shader_lane)$' --output-on-failure # negative control 2: merged file with poll(&descriptor, 1, -1) in connect_within ninja -C build guest_sce_net_tests ctest --test-dir build -R '^guest_sce_net$' --output-on-failure # restore git show 083ea3504f:core/libs/prx/libSceNet/Export.cpp > core/libs/prx/libSceNet/Export.cpp ninja -C build guest_sce_net_tests agc_driver_image_sample_lod_clamp_tests ctest --test-dir build -R '^guest_sce_net$' git status --porcelain ``` | Check | Result | |---|---| | `git diff --check` | Clean | | `check_conventions.py` | `All conventions checks passed.` | | Build, `libs` (script) | OK | | Selected tests (script) | 901 run, 898 pass, 1 skip that is expected | | `guest_sce_net` | Passes in the script run and 10/10 in my repeat run, 1.74 s each | | `agc_driver_image_sample_lod_clamp_shader_lane` (reported as a new failure) | Fails the same way with `main`'s `Export.cpp`, so it comes from `main`, not from this PR. The PR changes no AGC or shader file | | `unwrap_self_..._destination_directory_group` (reported as a new failure) | `os.chown` gives `EINVAL` on a temp dir in the sandbox. This is a Python tool test that the PR does not touch, so it comes from the environment | | Worktree after restore | `git status --porcelain` is empty. `guest_sce_net` passes again | <details><summary>Negative-control output</summary> ``` # Export.cpp from main 2/2 Test #2837: guest_sce_net ....Subprocess aborted 1.45 sec guest_sce_net check failed at line 966, sceNet errno 45 1/2 Test #1772: agc_driver_image_sample_lod_clamp_shader_lane ...Failed ... thread 0 component 1 is 0.000000, expected 0.062500 # poll(..., -1) Test #2837: guest_sce_net ....Subprocess aborted 6.53 sec connect timeout expiry: sceNetConnect did not return after 1 completed connects (last result 0x0, threw 0, 5000 ms) guest_sce_net check failed at line 1023, sceNet errno 61 ``` </details> ### Negative control - **`Export.cpp` from `main`**: `guest_sce_net` aborts at the first `0x1109` check (line 966, errno 45 = `EOPNOTSUPP`). - **Deadline ignored** (`poll(..., -1)`): the test aborts through the 5 s guard and prints its diagnostic line, so it does not hang. - In both cases the new `Require` output names the check that failed, which is what the runner logs were missing. ## Previous findings - **`connect_within` restores the host flags it read before the wait** ([Export.cpp:562-575](https://github.com/boykopovar/AnyPS5/blob/95ff923f894aac4c9fbc2c425835c8358a9539df/core/libs/prx/libSceNet/Export.cpp#L562-L575)): **Still open**, non-blocking. - Line 573 still writes back the saved `flags` and ignores the result. - `SO_NBIO` still changes the same host flags without a lock ([Export.cpp:1648-1652](https://github.com/boykopovar/AnyPS5/blob/95ff923f894aac4c9fbc2c425835c8358a9539df/core/libs/prx/libSceNet/Export.cpp#L1648-L1652)). - The author has acknowledged this and left it unchanged. It still doesn't block. - **Stale description sentence about the pending connect leaving only through `std::runtime_error`**: **Resolved**. The description now says it leaves through "the `std::runtime_error` or a nonzero error result". On the others' open requests: - **Failing check made visible**: done. My controls above show the line and errno. - **No dependence on the host accept-queue behaviour**: done, as far as the PR claims. Zero completed connects are now accepted. - I could not reproduce the case where SYNs are dropped (there are no iptables in the sandbox), so that 3/3 result is author-reported. - A host that answers queue overflow with a reset (`tcp_abort_on_overflow=1`) would still abort at the 80 ms check. It now prints a diagnostic line there. That is a non-default sysctl, so I don't count it as a finding. ## New findings ### Blocking None. ### Non-blocking None. ## Not verified - **Runners**: the self-hosted Linux runner conditions behind the earlier aborts. Only the next full build there can confirm the fix. The PR's root-cause analysis (a backlog-0 listener without kernel 3479c7549fb1, with syncookies off) is plausible but not proven, as the author says. - **Other platforms**: Windows and macOS. For Windows, B-Howell's run of this head reports 10/10 passes and 181/181 socket tests. - **Titles and console**: the Codex PS5 run, and what the console returns when the connect timeout expires (recorded as debt, and that case throws). - **Validation layers**: this comparison was skipped because no AGC, shader or VideoOut file changed. <!-- anyps5-bots job=2884 head=95ff923f894aac4c9fbc2c425835c8358a9539df -->
mashingaan commented 2026-11-07 10:33:28 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by mashingaan on 2026-11-07T10:33:28Z.

Review: APPROVED


Reviewed the non-Windows and Windows connect paths. connect_within sets O_NONBLOCK, polls with the microsecond budget rounded up, reads SO_ERROR and restores the flags; the Windows select uses the same budget. The error mapping (net_error -> fail) matches the existing fail(native_error()) pattern, and the timeout expiry throws as the debt note documents. The tests cover the immediate, refused and expiry cases, including the pending socket's SO_ERROR/SO_TYPE readback. No findings.

<!-- greyfinch-sync:boykopovar/AnyPS5:review:5811590553 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/11571#pullrequestreview-5811590553). Originally posted by [mashingaan](https://github.com/mashingaan) on 2026-11-07T10:33:28Z. **Review:** APPROVED --- Reviewed the non-Windows and Windows connect paths. `connect_within` sets `O_NONBLOCK`, polls with the microsecond budget rounded up, reads `SO_ERROR` and restores the flags; the Windows `select` uses the same budget. The error mapping (`net_error` -> `fail`) matches the existing `fail(native_error())` pattern, and the timeout expiry throws as the debt note documents. The tests cover the immediate, refused and expiry cases, including the pending socket's `SO_ERROR`/`SO_TYPE` readback. No findings.
MarcZX10 commented 2026-11-08 04:32:47 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-11-08T04:32:47Z.

Review: COMMENTED


Tests run — checks failed, not approved

The build passed; 29 of 77 passed; 39 failed (tls_function_coverage_rejected, tls_function_coverage_displacement_r0, tls_function_coverage_displacement_r1, tls_function_coverage_displacement_r2…); 9 not run for an unknown reason. Not approved: Adaptive build and tests (merged preview): failed, and there is insufficient comparable base evidence to determine whether the PR caused it. Adaptive build

What I ran

Head af3215f812e1b1ac4baba444c4726af37cdf0f98; base 77d2cc9b3626da1844e84829d218723ad40a8300.

Recorded local processing time: 12m 25s across no-build checks 8s, build and tests 11m 56s, AI diff review 21s. This sums task runtimes (which may overlap); GitHub Actions time is excluded.

Environment: Linux-6.1.0-54-amd64-x86_64-with-glibc2.36; Python 3.11.2; compiler c++ (Debian 12.2.0-14+deb12u1) 12.2.0.

Saved local build and test runs are listed below; their source and results are in the Test logs section.

I ran the repository's no-build precheck on this exact head and base:

python3 tools/pr_precheck.py --repo boykopovar/AnyPS5 --pr 11571

Hosted CI results are read from GitHub; I did not run them.

I compared the full diff of 3 changed files (7,014 lines) with the pull request description. I ran nothing for this and looked at nothing outside the diff.

Results

Check Result Note
diff_check passed
conventions_and_pr_template passed
changed_export_abi_audit passed
live_dependency_and_mergeability_check passed
test_quality_heuristics passed
Adaptive build: fetch passed
Adaptive build: export passed 5 s
Adaptive build: submodules passed 37 s
Adaptive build: configure passed 34 s
Adaptive build: select passed 66 s
Adaptive build: build passed 526 s
Adaptive build: test failed
tests: guest (28) failed 13 ok, 8 fail, 7 not run
tests: tls (24) failed 0 ok, 24 fail
tests: public (14) passed 14 ok
tests: patch (2) failed 1 ok, 1 fail
tests: crash (1) not run 0 ok, 1 not run
tests: run (1) passed 1 ok
tests: application (1) not run 0 ok, 1 not run
tests: ignored (1) failed 0 ok, 1 fail
tests: call (1) failed 0 ok, 1 fail
tests: linux (1) failed 0 ok, 1 fail
tests: relinker (1) failed 0 ok, 1 fail
tests: game (1) failed 0 ok, 1 fail
tests: 1 other groups (1) failed 0 ok, 1 fail
test: tls_function_coverage_rejected failed 0.1 s
test: tls_function_coverage_displacement_r0 failed 0.1 s
test: tls_function_coverage_displacement_r1 failed 0.1 s
test: tls_function_coverage_displacement_r2 failed 0.1 s
test: tls_function_coverage_displacement_r3 failed 0.1 s
test: tls_function_coverage_displacement_r5 failed 0.1 s
test: tls_function_coverage_displacement_r7 failed 0.1 s
test: tls_function_coverage_displacement_r8 failed 0.1 s
test: tls_function_coverage_displacement_r9 failed 0.1 s
test: tls_function_coverage_displacement_r10 failed 0.1 s
test: tls_function_coverage_displacement_r11 failed 0.1 s
test: tls_function_coverage_displacement_r12 failed 0.1 s
27 more failing tests failed listed in the logs
diff against its description mostly confirmed 0 of 6 stated claims supported; 0 verified blocking code findings
hosted CI (read from GitHub) incomplete 6 not run, 6 passed

Findings

Blocking

None in the diff of 3 changed files.

Non-blocking

None recorded.

Not verified

  • Not visible in supplied context, so not checked: "Accept SO_CONNECTTIMEO (0x1109), store it per socket, read it back, and reject negative values with EINVAL".
  • Not visible in supplied context, so not checked: "Bound blocking stream connects by the configured timeout on Linux and macOS, restoring the host socket to blocking mode afterward".
  • Not visible in supplied context, so not checked: "Apply the same timeout limit to Windows' existing select-based blocking connect".
  • Not visible in supplied context, so not checked: "On timeout, throw std::runtime_error because the console result is unknown; document this technical debt".
  • Not visible in supplied context, so not checked: "A zero timeout, non-blocking socket, and datagram socket retain the old connect path".
  • Not visible in supplied context, so not checked: "Add tests for timeout option validation/readback, successful and refused connects, blocking-mode restoration, and timeout expiry".
  • Only the diff and the pull request text were compared; behaviour that depends on code outside the diff is not covered.
  • 9 tests were not run for a reason ctest did not give.
  • Test selection ran only the selected subset (220 of 4501 tests selected); other tests were not verified in this run.
  • No hardware or console run was done; none of those behaviors is verified. Local builds and tests ran on one Linux machine only.
  • The target branch advanced during processing. Local checks and the AI review use base 77d2cc9b3626da1844e84829d218723ad40a8300; the later observed base tip(s) 06114fe5ce50e0533f7f8614a804e4f730868b4a were not part of those results.

To get this to a good state

  1. Look at the failing tests of the adaptive build and tests and say whether they also fail on the base; there is no base run to compare with here.
  2. If a change is needed, push it and the checks can be rerun on the new head.
Test logs (13 entries; open to read)
build_and_compile: not run

Reason:

Builds are intentionally excluded from this fast, no-build check pass.

No output.

diff_check: passed (exit 0)

Command:

git diff --check 77d2cc9b3626da1844e84829d218723ad40a8300...af3215f812e1b1ac4baba444c4726af37cdf0f98

No output.

conventions_and_pr_template: passed (exit 0)

Command:

python3 tools/check_conventions.py --base 77d2cc9b3626da1844e84829d218723ad40a8300 --head af3215f812e1b1ac4baba444c4726af37cdf0f98 --title 'fix(libSceNet): accept SO_CONNECTTIMEO and bound blocking connects by it' --body pr-body.md

stdout:

All conventions checks passed.
changed_export_abi_audit: passed (exit 0)

Command:

python3 tools/pr_abi_audit.py --base 77d2cc9b3626da1844e84829d218723ad40a8300 --head af3215f812e1b1ac4baba444c4726af37cdf0f98 --json

stdout:

{
  "status": "passed_with_warnings",
  "symbols": [
    {
      "name": "GuestNetRecv_nid_no_patch",
      "computed_nid": null,
      "declarations": [
        "core/libs/prx/libSceSpSysCallWrapper/Export.cpp"
      ],
      "definitions": [
        "core/libs/prx/libSceNet/Export.cpp"
      ],
      "explicit_aliases": [],
      "version": "not encoded by these source declarations; not verified"
    },
    {
      "name": "GuestNetSend_nid_no_patch",
      "computed_nid": null,
      "declarations": [
        "core/libs/prx/libSceSpSysCallWrapper/Export.cpp"
      ],
      "definitions": [
        "core/libs/prx/libSceNet/Export.cpp"
      ],
      "explicit_aliases": [],
      "version": "not encoded by these source declarations; not verified"
    },
    {
      "name": "RunNetThread",
      "computed_nid": "47-m2ABUjZ0",
      "declarations": [],
      "definitions": [
        "core/libs/prx/libSceNet/Export.cpp"
      ],
      "explicit_aliases": [],
      "version": "not encoded by these source declarations; not verified"
    },
    {
      "name": "sceNetAccept",
      "computed_nid": "PIWqhn9oSxc",
      "declarations": [
        "core/libs/prx/libSceNet/include/Net.hpp"
      ],
      "definitions": [
        "core/libs/prx/libSceNet/Export.cpp"
      ],
      "explicit_aliases": [],
      "version": "not encoded by these source declarations; not verified"
    },
    {
      "name": "sceNetAddrConfig6GetInfo",
      "computed_nid": "BTUvkWzrP68",
      "declarations": [
        "core/libs/prx/libSceNet/include/Net.hpp"
      ],
      "definitions": [
        "core/libs/prx/libSceNet/Export.cpp"
      ],
      "explicit_aliases": [],
      "version": "not encoded by these source declarations; not verified"
    },
    {
      "name": "sceNetAddrConfig6Start",
      "computed_nid": "3qG7UJy2Fq8",
      "declarations": [
        "core/libs/prx/libSceNet/include/Net.hpp"
      ],
      "definitions": [
        "core/libs/prx/libSceNet/Export.cpp"
      ],
      "explicit_aliases": [],
      "version": "not encoded by these source declarations; not verified"
    },
    {
      "name": "sceNetAddrConfig6Stop",
      "computed_nid": "P+0ePpDfUAQ",
      "declarations": [
        "core/libs/prx/libSceNet/include/Net.hpp"
      ],
      "definitions": [
        "core/libs/prx/libSceNet/Export.cpp"
      ],
      "explicit_aliases": [],
      "version": "not encoded by these source declarations; not verified"
    },
    {
      "name": "sceNetAllocateAllRouteInfo",
      "computed_nid": "PcdLABhYga4",
      "de
… [76,329 characters omitted; the complete output stays in the local report] …
ot verified"
    },
    {
      "name": "sceNetThreadExit",
      "computed_nid": "KirVfZbqniw",
      "declarations": [
        "core/libs/prx/libSceNet/include/Net.hpp"
      ],
      "definitions": [
        "core/libs/prx/libSceNet/Export.cpp"
      ],
      "explicit_aliases": [],
      "version": "not encoded by these source declarations; not verified"
    },
    {
      "name": "sceNetThreadJoin",
      "computed_nid": "pRbEzaV30qI",
      "declarations": [
        "core/libs/prx/libSceNet/include/Net.hpp"
      ],
      "definitions": [
        "core/libs/prx/libSceNet/Export.cpp"
      ],
      "explicit_aliases": [],
      "version": "not encoded by these source declarations; not verified"
    },
    {
      "name": "sceNetUsleep",
      "computed_nid": "bjrzRLFali0",
      "declarations": [
        "core/libs/prx/libSceNet/include/Net.hpp"
      ],
      "definitions": [
        "core/libs/prx/libSceNet/Export.cpp"
      ],
      "explicit_aliases": [],
      "version": "not encoded by these source declarations; not verified"
    }
  ],
  "findings": [
    {
      "symbol": "RunNetThread",
      "kind": "public-declaration-not-found",
      "message": "No APS5_VABI declaration was found in a header; verify whether this is intentionally private or missing from the public interface."
    }
  ],
  "limitations": [
    "This lexical audit does not parse C++ fully, prove calling-convention or binary ABI correctness, verify runtime version tables, or replace compilation.",
    "An absent source declaration or explicit alias can be intentional for assembly exports, conditional platform code, or generated interfaces; inspect findings before treating them as defects."
  ]
}
python_syntax: not applicable

Reason:

No changed Python implementation files.

No output.

related_python_unit_tests: not applicable

Reason:

No changed Python tool module has a related tools/tests/test_<module>.py suite.

No output.

python_test_registration: not applicable

Reason:

No changed Python test files need registration.

No output.

live_dependency_and_mergeability_check: passed (exit 0)

Command:

python3 tools/pr_stack_check.py 11571 --repo boykopovar/AnyPS5 --output-dir stack

stdout:

stack-report.md
stack-report.json
build_dependent_cpp_tests: not run

Reason:

Changed C/C++ source or test files need exact-head binaries; this fast pass does not build.

No output.

test_quality_heuristics: passed (exit 0)

Command:

python3 tools/pr_test_quality.py --root head-af3215f812e1-f3927956 --json core/libs/prx/libSceNet/Export.cpp core/libs/tests/GuestSceNet.cpp docs/dev/debt/libSceNet.md

stdout:

{
  "findings": [
    {
      "path": "core/libs/tests/GuestSceNet.cpp",
      "line": 1,
      "kind": "possible-unregistered-cpp-test",
      "message": "Changed C++ test source path was not found literally in CMake files; inspect registration, generated source lists, and workflow coverage."
    }
  ],
  "negative_control_candidates": [],
  "limits": [
    "Heuristics can miss weak assertions and can flag valid tests; inspect every finding.",
    "A test that passes against base is not by itself proof that the PR test is inadequate.",
    "Negative controls are only candidates until the test actually runs against base and fails by assertion rather than import/setup error."
  ]
}
negative_controls: not applicable

Reason:

No changed tools/ Python test module is eligible for a base-source negative control.

No output.

Adaptive build and tests (merged preview): failed

Result:

The build passed; 29 of 77 passed; 39 failed (tls_function_coverage_rejected, tls_function_coverage_displacement_r0, tls_function_coverage_displacement_r1, tls_function_coverage_displacement_r2…); 9 not run for an unknown reason.

Base commit:

77d2cc9b3626da1844e84829d218723ad40a8300

Steps:

Fetch: done in 0 s
Export: done in 5 s
Submodules: done in 37 s
Configure: done in 34 s
Select: done in 66 s
Build: done in 526 s
Test: failed

Tests that failed:

tls_function_coverage_rejected
tls_function_coverage_displacement_r0
tls_function_coverage_displacement_r1
tls_function_coverage_displacement_r2
tls_function_coverage_displacement_r3
tls_function_coverage_displacement_r5
tls_function_coverage_displacement_r7
tls_function_coverage_displacement_r8
tls_function_coverage_displacement_r9
tls_function_coverage_displacement_r10
tls_function_coverage_displacement_r11
tls_function_coverage_displacement_r12
tls_function_coverage_displacement_r13
tls_function_coverage_displacement_r14
tls_function_coverage_displacement_r15
tls_function_coverage_alu_or
tls_function_coverage_alu_adc
tls_function_coverage_alu_sbb
tls_function_coverage_alu_and
tls_function_coverage_alu_sub
tls_function_coverage_alu_xor
tls_function_coverage_alu_cmp
tls_function_coverage_gs_traps
tls_function_coverage_gs_traps_implicit
ignored_string_segments
call_zero_padding
linux_desktop_entry_output
guest_intel_trampolines
guest_syscall_trap
guest_tls
guest_tls_export_references
guest_needed_modules
guest_module_dir
guest_module_directories
guest_trailing_note
relinker_executables
game_patches
annotate_guest_module
patch_advisor_integration

Output of tls_function_coverage_rejected:

Traceback (most recent call last):
  File "core/relinker/relinker/tests/test_tls_function_coverage.py", line 858, in <module>
    main()
  File "core/relinker/relinker/tests/test_tls_function_coverage.py", line 772, in main
    convert(name, make_image("register", "unwind", body=instruction),
  File "core/relinker/relinker/tests/test_tls_function_coverage.py", line 550, in convert
    result = subprocess.run([str(relinker), "--skip-sce-module", "--windows", str(source), str(output)],
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.11/subprocess.py", line 548, in run
    with Popen(*popenargs, **kwargs) as process:
         ^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.11/subprocess.py", line 1024, in __init__
    self._execute_child(args, executable, preexec_fn, close_fds,
  File "/usr/lib/python3.11/subprocess.py", line 1901, in _execute_child
    raise child_exception_type(errno_num, err_msg, err_filename)
FileNotFoundError: [Errno 2] No such file or directory: 'core/relinker/relinker'

Output of tls_function_coverage_displacement_r0:

Traceback (most recent call last):
  File "core/relinker/relinker/tests/test_tls_function_coverage.py", line 858, in <module>
    main()
  File "core/relinker/relinker/tests/test_tls_function_coverage.py", line 673, in main
    convert(name, image, tls_address=address, displacement=displacement)
  File "core/relinker/relinker/tests/test_tls_function_coverage.py", line 550, in convert
    result = subprocess.run([str(relinker), "--skip-sce-module", "--windows", str(source), str(output)],
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.11/subprocess.py", line 548, in run
    with Popen(*popenargs, **kwargs) as process:
         ^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.11/subprocess.py", line 1024, in __init__
    self._execute_child(args, executable, preexec_fn, close_fds,
  File "/usr/lib/python3.11/subprocess.py", line 1901, in _execute_child
    raise child_exception_type(errno_num, err_msg, err_filename)
FileNotFoundError: [Errno 2] No such file or directory: 'core/relinker/relinker'

Output of tls_function_coverage_displacement_r1:

Traceback (most recent call last):
  File "core/relinker/relinker/tests/test_tls_function_coverage.py", line 858, in <module>
    main()
  File "core/relinker/relinker/tests/test_tls_function_coverage.py", line 673, in main
    convert(name, image, tls_address=address, displacement=displacement)
  File "core/relinker/relinker/tests/test_tls_function_coverage.py", line 550, in convert
    result = subprocess.run([str(relinker), "--skip-sce-module", "--windows", str(source), str(output)],
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.11/subprocess.py", line 548, in run
    with Popen(*popenargs, **kwargs) as process:
         ^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.11/subprocess.py", line 1024, in __init__
    self._execute_child(args, executable, preexec_fn, close_fds,
  File "/usr/lib/python3.11/subprocess.py", line 1901, in _execute_child
    raise child_exception_type(errno_num, err_msg, err_filename)
FileNotFoundError: [Errno 2] No such file or directory: 'core/relinker/relinker'

Output of tls_function_coverage_displacement_r2:

Traceback (most recent call last):
  File "core/relinker/relinker/tests/test_tls_function_coverage.py", line 858, in <module>
    main()
  File "core/relinker/relinker/tests/test_tls_function_coverage.py", line 673, in main
    convert(name, image, tls_address=address, displacement=displacement)
  File "core/relinker/relinker/tests/test_tls_function_coverage.py", line 550, in convert
    result = subprocess.run([str(relinker), "--skip-sce-module", "--windows", str(source), str(output)],
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.11/subprocess.py", line 548, in run
    with Popen(*popenargs, **kwargs) as process:
         ^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.11/subprocess.py", line 1024, in __init__
    self._execute_child(args, executable, preexec_fn, close_fds,
  File "/usr/lib/python3.11/subprocess.py", line 1901, in _execute_child
    raise child_exception_type(errno_num, err_msg, err_filename)
FileNotFoundError: [Errno 2] No such file or directory: 'core/relinker/relinker'

Output of tls_function_coverage_displacement_r3:

Traceback (most recent call last):
  File "core/relinker/relinker/tests/test_tls_function_coverage.py", line 858, in <module>
    main()
  File "core/relinker/relinker/tests/test_tls_function_coverage.py", line 673, in main
    convert(name, image, tls_address=address, displacement=displacement)
  File "core/relinker/relinker/tests/test_tls_function_coverage.py", line 550, in convert
    result = subprocess.run([str(relinker), "--skip-sce-module", "--windows", str(source), str(output)],
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.11/subprocess.py", line 548, in run
    with Popen(*popenargs, **kwargs) as process:
         ^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.11/subprocess.py", line 1024, in __init__
    self._execute_child(args, executable, preexec_fn, close_fds,
  File "/usr/lib/python3.11/subprocess.py", line 1901, in _execute_child
    raise child_exception_type(errno_num, err_msg, err_filename)
FileNotFoundError: [Errno 2] No such file or directory: 'core/relinker/relinker'

Output of tls_function_coverage_displacement_r5:

Traceback (most recent call last):
  File "core/relinker/relinker/tests/test_tls_function_coverage.py", line 858, in <module>
    main()
  File "core/relinker/relinker/tests/test_tls_function_coverage.py", line 673, in main
    convert(name, image, tls_address=address, displacement=displacement)
  File "core/relinker/relinker/tests/test_tls_function_coverage.py", line 550, in convert
    result = subprocess.run([str(relinker), "--skip-sce-module", "--windows", str(source), str(output)],
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.11/subprocess.py", line 548, in run
    with Popen(*popenargs, **kwargs) as process:
         ^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.11/subprocess.py", line 1024, in __init__
    self._execute_child(args, executable, preexec_fn, close_fds,
  File "/usr/lib/python3.11/subprocess.py", line 1901, in _execute_child
    raise child_exception_type(errno_num, err_msg, err_filename)
FileNotFoundError: [Errno 2] No such file or directory: 'core/relinker/relinker'

Output of tls_function_coverage_displacement_r7:

Traceback (most recent call last):
  File "core/relinker/relinker/tests/test_tls_function_coverage.py", line 858, in <module>
    main()
  File "core/relinker/relinker/tests/test_tls_function_coverage.py", line 673, in main
    convert(name, image, tls_address=address, displacement=displacement)
  File "core/relinker/relinker/tests/test_tls_function_coverage.py", line 550, in convert
    result = subprocess.run([str(relinker), "--skip-sce-module", "--windows", str(source), str(output)],
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.11/subprocess.py", line 548, in run
    with Popen(*popenargs, **kwargs) as process:
         ^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.11/subprocess.py", line 1024, in __init__
    self._execute_child(args, executable, preexec_fn, close_fds,
  File "/usr/lib/python3.11/subprocess.py", line 1901, in _execute_child
    raise child_exception_type(errno_num, err_msg, err_filename)
FileNotFoundError: [Errno 2] No such file or directory: 'core/relinker/relinker'

Output of tls_function_coverage_displacement_r8:

Traceback (most recent call last):
  File "core/relinker/relinker/tests/test_tls_function_coverage.py", line 858, in <module>
    main()
  File "core/relinker/relinker/tests/test_tls_function_coverage.py", line 673, in main
    convert(name, image, tls_address=address, displacement=displacement)
  File "core/relinker/relinker/tests/test_tls_function_coverage.py", line 550, in convert
    result = subprocess.run([str(relinker), "--skip-sce-module", "--windows", str(source), str(output)],
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.11/subprocess.py", line 548, in run
    with Popen(*popenargs, **kwargs) as process:
         ^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.11/subprocess.py", line 1024, in __init__
    self._execute_child(args, executable, preexec_fn, close_fds,
  File "/usr/lib/python3.11/subprocess.py", line 1901, in _execute_child
    raise child_exception_type(errno_num, err_msg, err_filename)
FileNotFoundError: [Errno 2] No such file or directory: 'core/relinker/relinker'

Output of tls_function_coverage_displacement_r9:

Traceback (most recent call last):
  File "core/relinker/relinker/tests/test_tls_function_coverage.py", line 858, in <module>
    main()
  File "core/relinker/relinker/tests/test_tls_function_coverage.py", line 673, in main
    convert(name, image, tls_address=address, displacement=displacement)
  File "core/relinker/relinker/tests/test_tls_function_coverage.py", line 550, in convert
    result = subprocess.run([str(relinker), "--skip-sce-module", "--windows", str(source), str(output)],
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.11/subprocess.py", line 548, in run
    with Popen(*popenargs, **kwargs) as process:
         ^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.11/subprocess.py", line 1024, in __init__
    self._execute_child(args, executable, preexec_fn, close_fds,
  File "/usr/lib/python3.11/subprocess.py", line 1901, in _execute_child
    raise child_exception_type(errno_num, err_msg, err_filename)
FileNotFoundError: [Errno 2] No such file or directory: 'core/relinker/relinker'

Output of tls_function_coverage_displacement_r10:

Traceback (most recent call last):
  File "core/relinker/relinker/tests/test_tls_function_coverage.py", line 858, in <module>
    main()
  File "core/relinker/relinker/tests/test_tls_function_coverage.py", line 673, in main
    convert(name, image, tls_address=address, displacement=displacement)
  File "core/relinker/relinker/tests/test_tls_function_coverage.py", line 550, in convert
    result = subprocess.run([str(relinker), "--skip-sce-module", "--windows", str(source), str(output)],
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.11/subprocess.py", line 548, in run
    with Popen(*popenargs, **kwargs) as process:
         ^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.11/subprocess.py", line 1024, in __init__
    self._execute_child(args, executable, preexec_fn, close_fds,
  File "/usr/lib/python3.11/subprocess.py", line 1901, in _execute_child
    raise child_exception_type(errno_num, err_msg, err_filename)
FileNotFoundError: [Errno 2] No such file or directory: 'core/relinker/relinker'

Output of tls_function_coverage_displacement_r11:

Traceback (most recent call last):
  File "core/relinker/relinker/tests/test_tls_function_coverage.py", line 858, in <module>
    main()
  File "core/relinker/relinker/tests/test_tls_function_coverage.py", line 673, in main
    convert(name, image, tls_address=address, displacement=displacement)
  File "core/relinker/relinker/tests/test_tls_function_coverage.py", line 550, in convert
    result = subprocess.run([str(relinker), "--skip-sce-module", "--windows", str(source), str(output)],
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.11/subprocess.py", line 548, in run
    with Popen(*popenargs, **kwargs) as process:
         ^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.11/subprocess.py", line 1024, in __init__
    self._execute_child(args, executable, preexec_fn, close_fds,
  File "/usr/lib/python3.11/subprocess.py", line 1901, in _execute_child
    raise child_exception_type(errno_num, err_msg, err_filename)
FileNotFoundError: [Errno 2] No such file or directory: 'core/relinker/relinker'

Output of tls_function_coverage_displacement_r12:

Traceback (most recent call last):
  File "core/relinker/relinker/tests/test_tls_function_coverage.py", line 858, in <module>
    main()
  File "core/relinker/relinker/tests/test_tls_function_coverage.py", line 673, in main
    convert(name, image, tls_address=address, displacement=displacement)
  File "core/relinker/relinker/tests/test_tls_function_coverage.py", line 550, in convert
    result = subprocess.run([str(relinker), "--skip-sce-module", "--windows", str(source), str(output)],
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.11/subprocess.py", line 548, in run
    with Popen(*popenargs, **kwargs) as process:
         ^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.11/subprocess.py", line 1024, in __init__
    self._execute_child(args, executable, preexec_fn, close_fds,
  File "/usr/lib/python3.11/subprocess.py", line 1901, in _execute_child
    raise child_exception_type(errno_num, err_msg, err_filename)
FileNotFoundError: [Errno 2] No such file or directory: 'core/relinker/relinker'

Output of tls_function_coverage_displacement_r13:

Traceback (most recent call last):
  File "core/relinker/relinker/tests/test_tls_function_coverage.py", line 858, in <module>
    main()
  File "core/relinker/relinker/tests/test_tls_function_coverage.py", line 673, in main
    convert(name, image, tls_address=address, displacement=displacement)
  File "core/relinker/relinker/tests/test_tls_function_coverage.py", line 550, in convert
    result = subprocess.run([str(relinker), "--skip-sce-module", "--windows", str(source), str(output)],
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.11/subprocess.py", line 548, in run
    with Popen(*popenargs, **kwargs) as process:
         ^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.11/subprocess.py", line 1024, in __init__
    self._execute_child(args, executable, preexec_fn, close_fds,
  File "/usr/lib/python3.11/subprocess.py", line 1901, in _execute_child
    raise child_exception_type(errno_num, err_msg, err_filename)
FileNotFoundError: [Errno 2] No such file or directory: 'core/relinker/relinker'

Output of tls_function_coverage_displacement_r14:

Traceback (most recent call last):
  File "core/relinker/relinker/tests/test_tls_function_coverage.py", line 858, in <module>
    main()
  File "core/relinker/relinker/tests/test_tls_function_coverage.py", line 673, in main
    convert(name, image, tls_address=address, displacement=displacement)
  File "core/relinker/relinker/tests/test_tls_function_coverage.py", line 550, in convert
    result = subprocess.run([str(relinker), "--skip-sce-module", "--windows", str(source), str(output)],
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.11/subprocess.py", line 548, in run
    with Popen(*popenargs, **kwargs) as process:
         ^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.11/subprocess.py", line 1024, in __init__
    self._execute_child(args, executable, preexec_fn, close_fds,
  File "/usr/lib/python3.11/subprocess.py", line 1901, in _execute_child
    raise child_exception_type(errno_num, err_msg, err_filename)
FileNotFoundError: [Errno 2] No such file or directory: 'core/relinker/relinker'

Output of tls_function_coverage_displacement_r15:

Traceback (most recent call last):
  File "core/relinker/relinker/tests/test_tls_function_coverage.py", line 858, in <module>
    main()
  File "core/relinker/relinker/tests/test_tls_function_coverage.py", line 673, in main
    convert(name, image, tls_address=address, displacement=displacement)
  File "core/relinker/relinker/tests/test_tls_function_coverage.py", line 550, in convert
    result = subprocess.run([str(relinker), "--skip-sce-module", "--windows", str(source), str(output)],
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.11/subprocess.py", line 548, in run
    with Popen(*popenargs, **kwargs) as process:
         ^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.11/subprocess.py", line 1024, in __init__
    self._execute_child(args, executable, preexec_fn, close_fds,
  File "/usr/lib/python3.11/subprocess.py", line 1901, in _execute_child
    raise child_exception_type(errno_num, err_msg, err_filename)
FileNotFoundError: [Errno 2] No such file or directory: 'core/relinker/relinker'

Output of tls_function_coverage_alu_or:

Traceback (most recent call last):
  File "core/relinker/relinker/tests/test_tls_function_coverage.py", line 858, in <module>
    main()
  File "core/relinker/relinker/tests/test_tls_function_coverage.py", line 689, in main
    result = subprocess.run([str(relinker), "--skip-sce-module", "--windows", str(source), str(output)],
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.11/subprocess.py", line 548, in run
    with Popen(*popenargs, **kwargs) as process:
         ^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.11/subprocess.py", line 1024, in __init__
    self._execute_child(args, executable, preexec_fn, close_fds,
  File "/usr/lib/python3.11/subprocess.py", line 1901, in _execute_child
    raise child_exception_type(errno_num, err_msg, err_filename)
FileNotFoundError: [Errno 2] No such file or directory: 'core/relinker/relinker'

Output of tls_function_coverage_alu_adc:

Traceback (most recent call last):
  File "core/relinker/relinker/tests/test_tls_function_coverage.py", line 858, in <module>
    main()
  File "core/relinker/relinker/tests/test_tls_function_coverage.py", line 689, in main
    result = subprocess.run([str(relinker), "--skip-sce-module", "--windows", str(source), str(output)],
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.11/subprocess.py", line 548, in run
    with Popen(*popenargs, **kwargs) as process:
         ^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.11/subprocess.py", line 1024, in __init__
    self._execute_child(args, executable, preexec_fn, close_fds,
  File "/usr/lib/python3.11/subprocess.py", line 1901, in _execute_child
    raise child_exception_type(errno_num, err_msg, err_filename)
FileNotFoundError: [Errno 2] No such file or directory: 'core/relinker/relinker'

Output of tls_function_coverage_alu_sbb:

Traceback (most recent call last):
  File "core/relinker/relinker/tests/test_tls_function_coverage.py", line 858, in <module>
    main()
  File "core/relinker/relinker/tests/test_tls_function_coverage.py", line 689, in main
    result = subprocess.run([str(relinker), "--skip-sce-module", "--windows", str(source), str(output)],
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.11/subprocess.py", line 548, in run
    with Popen(*popenargs, **kwargs) as process:
         ^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.11/subprocess.py", line 1024, in __init__
    self._execute_child(args, executable, preexec_fn, close_fds,
  File "/usr/lib/python3.11/subprocess.py", line 1901, in _execute_child
    raise child_exception_type(errno_num, err_msg, err_filename)
FileNotFoundError: [Errno 2] No such file or directory: 'core/relinker/relinker'

Output of tls_function_coverage_alu_and:

Traceback (most recent call last):
  File "core/relinker/relinker/tests/test_tls_function_coverage.py", line 858, in <module>
    main()
  File "core/relinker/relinker/tests/test_tls_function_coverage.py", line 689, in main
    result = subprocess.run([str(relinker), "--skip-sce-module", "--windows", str(source), str(output)],
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.11/subprocess.py", line 548, in run
    with Popen(*popenargs, **kwargs) as process:
         ^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.11/subprocess.py", line 1024, in __init__
    self._execute_child(args, executable, preexec_fn, close_fds,
  File "/usr/lib/python3.11/subprocess.py", line 1901, in _execute_child
    raise child_exception_type(errno_num, err_msg, err_filename)
FileNotFoundError: [Errno 2] No such file or directory: 'core/relinker/relinker'

Output of tls_function_coverage_alu_sub:

Traceback (most recent call last):
  File "core/relinker/relinker/tests/test_tls_function_coverage.py", line 858, in <module>
    main()
  File "core/relinker/relinker/tests/test_tls_function_coverage.py", line 689, in main
    result = subprocess.run([str(relinker), "--skip-sce-module", "--windows", str(source), str(output)],
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.11/subprocess.py", line 548, in run
    with Popen(*popenargs, **kwargs) as process:
         ^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.11/subprocess.py", line 1024, in __init__
    self._execute_child(args, executable, preexec_fn, close_fds,
  File "/usr/lib/python3.11/subprocess.py", line 1901, in _execute_child
    raise child_exception_type(errno_num, err_msg, err_filename)
FileNotFoundError: [Errno 2] No such file or directory: 'core/relinker/relinker'

What did not run, and why:

9 tests were not run for a reason ctest did not give.
The base tip has changed since it was last built here. Run this level with the source set to the base tip to learn which failures predate the change.

All tests:

Failed (39)
By group: tls 24, guest 8, ignored 1, call 1, linux 1, relinker 1, game 1, annotate 1, patch 1
tls_function_coverage_rejected, tls_function_coverage_displacement_r0, tls_function_coverage_displacement_r1, tls_function_coverage_displacement_r2, tls_function_coverage_displacement_r3, tls_function_coverage_displacement_r5, tls_function_coverage_displacement_r7, tls_function_coverage_displacement_r8, tls_function_coverage_displacement_r9, tls_function_coverage_displacement_r10, tls_function_coverage_displacement_r11, tls_function_coverage_displacement_r12, tls_function_coverage_displacement_r13, tls_function_coverage_displacement_r14, tls_function_coverage_displacement_r15, tls_function_coverage_alu_or, tls_function_coverage_alu_adc, tls_function_coverage_alu_sbb, tls_function_coverage_alu_and, tls_function_coverage_alu_sub, tls_function_coverage_alu_xor, tls_function_coverage_alu_cmp, tls_function_coverage_gs_traps, tls_function_coverage_gs_traps_implicit, ignored_string_segments, call_zero_padding, linux_desktop_entry_output, guest_intel_trampolines, guest_syscall_trap, guest_tls, guest_tls_export_references, guest_needed_modules, guest_module_dir, guest_module_directories, guest_trailing_note, relinker_executables, game_patches, annotate_guest_module, patch_advisor_integration

Not run (a test they need failed) (9)
By group: guest 7, crash 1, application 1
guest_kernel_sys_pthread_np_kind, guest_kernel_sys_pthread_np_attr, crash_text, guest_kernel_sys_pselect, guest_xml_value_types, guest_xml_initializer, guest_np_game_intent, guest_memcmp_protected, application_heap_lazy

Passed (29)
By group: public 14, guest 13, run 1, patch 1
public_headers, guest_dinkumware_fetch_and_2_patched, guest_dinkumware_fetch_and_4, guest_dinkumware_fetch_and_8_patched, guest_dinkumware_fetch_or_1, guest_dinkumware_fetch_or_2, guest_dinkumware_fetch_or_2_patched, guest_dinkumware_fetch_or_4, guest_dinkumware_fetch_or_4_patched, guest_dinkumware_fetch_or_8, guest_dinkumware_fetch_or_8_patched, guest_dinkumware_fetch_xor_1, guest_dinkumware_fetch_xor_1_patched, guest_dinkumware_fetch_xor_2, public_headers_compile_3, public_headers_compile_1, public_headers_compile_5, public_headers_compile_7, public_headers_compile_9, public_headers_compile_11, public_headers_compile_15, public_headers_compile_13, public_headers_compile_19, public_headers_compile_17, public_headers_compile_23, public_headers_compile_21, run_report_revision, public_headers_compile_25, patch_advisor_unit

Complete output: 6,994 lines, 0.6 MB: not attached (it stays in the local report)

Hosted CI as GitHub shows it: incomplete

Jobs, newest run of each:

register-context: skipped (Build)
relinker-asan: skipped (Build)
relinker: skipped (Build)
write-watch: skipped (Build)
linux: skipped (Build)
edge-watch: skipped (Build)
windows: success (Build)
eligibility: success (Build)
library-portability: success (Emscripten library portability)
report: success (Progress report)
labels: success (PR labels)
conventions: success (Conventions)

Overall:

6 of 12 jobs passed; 6 were skipped and provide no evidence.
<!-- greyfinch-sync:boykopovar/AnyPS5:review:5816615332 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/11571#pullrequestreview-5816615332). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-11-08T04:32:47Z. **Review:** COMMENTED --- # Tests run — checks failed, not approved The build passed; 29 of 77 passed; 39 failed (tls_function_coverage_rejected, tls_function_coverage_displacement_r0, tls_function_coverage_displacement_r1, tls_function_coverage_displacement_r2…); 9 not run for an unknown reason. Not approved: Adaptive build and tests (merged preview): failed, and there is insufficient comparable base evidence to determine whether the PR caused it. Adaptive build ## What I ran Head `af3215f812e1b1ac4baba444c4726af37cdf0f98`; base `77d2cc9b3626da1844e84829d218723ad40a8300`. Recorded local processing time: **12m 25s** across no-build checks 8s, build and tests 11m 56s, AI diff review 21s. This sums task runtimes (which may overlap); GitHub Actions time is excluded. Environment: Linux-6.1.0-54-amd64-x86_64-with-glibc2.36; Python 3.11.2; compiler c++ (Debian 12.2.0-14+deb12u1) 12.2.0. Saved local build and test runs are listed below; their source and results are in the Test logs section. I ran the repository's no-build precheck on this exact head and base: ```sh python3 tools/pr_precheck.py --repo boykopovar/AnyPS5 --pr 11571 ``` Hosted CI results are read from GitHub; I did not run them. I compared the full diff of 3 changed files (7,014 lines) with the pull request description. I ran nothing for this and looked at nothing outside the diff. ## Results | Check | Result | Note | |---|---|---| | diff_check | passed | | | conventions_and_pr_template | passed | | | changed_export_abi_audit | passed | | | live_dependency_and_mergeability_check | passed | | | test_quality_heuristics | passed | | | Adaptive build: fetch | passed | | | Adaptive build: export | passed | 5 s | | Adaptive build: submodules | passed | 37 s | | Adaptive build: configure | passed | 34 s | | Adaptive build: select | passed | 66 s | | Adaptive build: build | passed | 526 s | | Adaptive build: test | failed | | | tests: guest (28) | failed | 13 ok, 8 fail, 7 not run | | tests: tls (24) | failed | 0 ok, 24 fail | | tests: public (14) | passed | 14 ok | | tests: patch (2) | failed | 1 ok, 1 fail | | tests: crash (1) | not run | 0 ok, 1 not run | | tests: run (1) | passed | 1 ok | | tests: application (1) | not run | 0 ok, 1 not run | | tests: ignored (1) | failed | 0 ok, 1 fail | | tests: call (1) | failed | 0 ok, 1 fail | | tests: linux (1) | failed | 0 ok, 1 fail | | tests: relinker (1) | failed | 0 ok, 1 fail | | tests: game (1) | failed | 0 ok, 1 fail | | tests: 1 other groups (1) | failed | 0 ok, 1 fail | | test: tls_function_coverage_rejected | failed | 0.1 s | | test: tls_function_coverage_displacement_r0 | failed | 0.1 s | | test: tls_function_coverage_displacement_r1 | failed | 0.1 s | | test: tls_function_coverage_displacement_r2 | failed | 0.1 s | | test: tls_function_coverage_displacement_r3 | failed | 0.1 s | | test: tls_function_coverage_displacement_r5 | failed | 0.1 s | | test: tls_function_coverage_displacement_r7 | failed | 0.1 s | | test: tls_function_coverage_displacement_r8 | failed | 0.1 s | | test: tls_function_coverage_displacement_r9 | failed | 0.1 s | | test: tls_function_coverage_displacement_r10 | failed | 0.1 s | | test: tls_function_coverage_displacement_r11 | failed | 0.1 s | | test: tls_function_coverage_displacement_r12 | failed | 0.1 s | | 27 more failing tests | failed | listed in the logs | | diff against its description | mostly confirmed | 0 of 6 stated claims supported; 0 verified blocking code findings | | hosted CI (read from GitHub) | incomplete | 6 not run, 6 passed | ## Findings ### Blocking None in the diff of 3 changed files. ### Non-blocking None recorded. ## Not verified - Not visible in supplied context, so not checked: "Accept SO_CONNECTTIMEO (0x1109), store it per socket, read it back, and reject negative values with EINVAL". - Not visible in supplied context, so not checked: "Bound blocking stream connects by the configured timeout on Linux and macOS, restoring the host socket to blocking mode afterward". - Not visible in supplied context, so not checked: "Apply the same timeout limit to Windows' existing select-based blocking connect". - Not visible in supplied context, so not checked: "On timeout, throw std::runtime_error because the console result is unknown; document this technical debt". - Not visible in supplied context, so not checked: "A zero timeout, non-blocking socket, and datagram socket retain the old connect path". - Not visible in supplied context, so not checked: "Add tests for timeout option validation/readback, successful and refused connects, blocking-mode restoration, and timeout expiry". - Only the diff and the pull request text were compared; behaviour that depends on code outside the diff is not covered. - 9 tests were not run for a reason ctest did not give. - Test selection ran only the selected subset (220 of 4501 tests selected); other tests were not verified in this run. - No hardware or console run was done; none of those behaviors is verified. Local builds and tests ran on one Linux machine only. - The target branch advanced during processing. Local checks and the AI review use base `77d2cc9b3626da1844e84829d218723ad40a8300`; the later observed base tip(s) `06114fe5ce50e0533f7f8614a804e4f730868b4a` were not part of those results. ## To get this to a good state 1. Look at the failing tests of the adaptive build and tests and say whether they also fail on the base; there is no base run to compare with here. 2. If a change is needed, push it and the checks can be rerun on the new head. <details> <summary>Test logs (13 entries; open to read)</summary> <details> <summary>build_and_compile: not run</summary> Reason: ```text Builds are intentionally excluded from this fast, no-build check pass. ``` No output. </details> <details> <summary>diff_check: passed (exit 0)</summary> Command: ```sh git diff --check 77d2cc9b3626da1844e84829d218723ad40a8300...af3215f812e1b1ac4baba444c4726af37cdf0f98 ``` No output. </details> <details> <summary>conventions_and_pr_template: passed (exit 0)</summary> Command: ```sh python3 tools/check_conventions.py --base 77d2cc9b3626da1844e84829d218723ad40a8300 --head af3215f812e1b1ac4baba444c4726af37cdf0f98 --title 'fix(libSceNet): accept SO_CONNECTTIMEO and bound blocking connects by it' --body pr-body.md ``` stdout: ```text All conventions checks passed. ``` </details> <details> <summary>changed_export_abi_audit: passed (exit 0)</summary> Command: ```sh python3 tools/pr_abi_audit.py --base 77d2cc9b3626da1844e84829d218723ad40a8300 --head af3215f812e1b1ac4baba444c4726af37cdf0f98 --json ``` stdout: ```text { "status": "passed_with_warnings", "symbols": [ { "name": "GuestNetRecv_nid_no_patch", "computed_nid": null, "declarations": [ "core/libs/prx/libSceSpSysCallWrapper/Export.cpp" ], "definitions": [ "core/libs/prx/libSceNet/Export.cpp" ], "explicit_aliases": [], "version": "not encoded by these source declarations; not verified" }, { "name": "GuestNetSend_nid_no_patch", "computed_nid": null, "declarations": [ "core/libs/prx/libSceSpSysCallWrapper/Export.cpp" ], "definitions": [ "core/libs/prx/libSceNet/Export.cpp" ], "explicit_aliases": [], "version": "not encoded by these source declarations; not verified" }, { "name": "RunNetThread", "computed_nid": "47-m2ABUjZ0", "declarations": [], "definitions": [ "core/libs/prx/libSceNet/Export.cpp" ], "explicit_aliases": [], "version": "not encoded by these source declarations; not verified" }, { "name": "sceNetAccept", "computed_nid": "PIWqhn9oSxc", "declarations": [ "core/libs/prx/libSceNet/include/Net.hpp" ], "definitions": [ "core/libs/prx/libSceNet/Export.cpp" ], "explicit_aliases": [], "version": "not encoded by these source declarations; not verified" }, { "name": "sceNetAddrConfig6GetInfo", "computed_nid": "BTUvkWzrP68", "declarations": [ "core/libs/prx/libSceNet/include/Net.hpp" ], "definitions": [ "core/libs/prx/libSceNet/Export.cpp" ], "explicit_aliases": [], "version": "not encoded by these source declarations; not verified" }, { "name": "sceNetAddrConfig6Start", "computed_nid": "3qG7UJy2Fq8", "declarations": [ "core/libs/prx/libSceNet/include/Net.hpp" ], "definitions": [ "core/libs/prx/libSceNet/Export.cpp" ], "explicit_aliases": [], "version": "not encoded by these source declarations; not verified" }, { "name": "sceNetAddrConfig6Stop", "computed_nid": "P+0ePpDfUAQ", "declarations": [ "core/libs/prx/libSceNet/include/Net.hpp" ], "definitions": [ "core/libs/prx/libSceNet/Export.cpp" ], "explicit_aliases": [], "version": "not encoded by these source declarations; not verified" }, { "name": "sceNetAllocateAllRouteInfo", "computed_nid": "PcdLABhYga4", "de … [76,329 characters omitted; the complete output stays in the local report] … ot verified" }, { "name": "sceNetThreadExit", "computed_nid": "KirVfZbqniw", "declarations": [ "core/libs/prx/libSceNet/include/Net.hpp" ], "definitions": [ "core/libs/prx/libSceNet/Export.cpp" ], "explicit_aliases": [], "version": "not encoded by these source declarations; not verified" }, { "name": "sceNetThreadJoin", "computed_nid": "pRbEzaV30qI", "declarations": [ "core/libs/prx/libSceNet/include/Net.hpp" ], "definitions": [ "core/libs/prx/libSceNet/Export.cpp" ], "explicit_aliases": [], "version": "not encoded by these source declarations; not verified" }, { "name": "sceNetUsleep", "computed_nid": "bjrzRLFali0", "declarations": [ "core/libs/prx/libSceNet/include/Net.hpp" ], "definitions": [ "core/libs/prx/libSceNet/Export.cpp" ], "explicit_aliases": [], "version": "not encoded by these source declarations; not verified" } ], "findings": [ { "symbol": "RunNetThread", "kind": "public-declaration-not-found", "message": "No APS5_VABI declaration was found in a header; verify whether this is intentionally private or missing from the public interface." } ], "limitations": [ "This lexical audit does not parse C++ fully, prove calling-convention or binary ABI correctness, verify runtime version tables, or replace compilation.", "An absent source declaration or explicit alias can be intentional for assembly exports, conditional platform code, or generated interfaces; inspect findings before treating them as defects." ] } ``` </details> <details> <summary>python_syntax: not applicable</summary> Reason: ```text No changed Python implementation files. ``` No output. </details> <details> <summary>related_python_unit_tests: not applicable</summary> Reason: ```text No changed Python tool module has a related tools/tests/test_<module>.py suite. ``` No output. </details> <details> <summary>python_test_registration: not applicable</summary> Reason: ```text No changed Python test files need registration. ``` No output. </details> <details> <summary>live_dependency_and_mergeability_check: passed (exit 0)</summary> Command: ```sh python3 tools/pr_stack_check.py 11571 --repo boykopovar/AnyPS5 --output-dir stack ``` stdout: ```text stack-report.md stack-report.json ``` </details> <details> <summary>build_dependent_cpp_tests: not run</summary> Reason: ```text Changed C/C++ source or test files need exact-head binaries; this fast pass does not build. ``` No output. </details> <details> <summary>test_quality_heuristics: passed (exit 0)</summary> Command: ```sh python3 tools/pr_test_quality.py --root head-af3215f812e1-f3927956 --json core/libs/prx/libSceNet/Export.cpp core/libs/tests/GuestSceNet.cpp docs/dev/debt/libSceNet.md ``` stdout: ```text { "findings": [ { "path": "core/libs/tests/GuestSceNet.cpp", "line": 1, "kind": "possible-unregistered-cpp-test", "message": "Changed C++ test source path was not found literally in CMake files; inspect registration, generated source lists, and workflow coverage." } ], "negative_control_candidates": [], "limits": [ "Heuristics can miss weak assertions and can flag valid tests; inspect every finding.", "A test that passes against base is not by itself proof that the PR test is inadequate.", "Negative controls are only candidates until the test actually runs against base and fails by assertion rather than import/setup error." ] } ``` </details> <details> <summary>negative_controls: not applicable</summary> Reason: ```text No changed tools/ Python test module is eligible for a base-source negative control. ``` No output. </details> <details> <summary>Adaptive build and tests (merged preview): failed</summary> Result: ```text The build passed; 29 of 77 passed; 39 failed (tls_function_coverage_rejected, tls_function_coverage_displacement_r0, tls_function_coverage_displacement_r1, tls_function_coverage_displacement_r2…); 9 not run for an unknown reason. ``` Base commit: ```text 77d2cc9b3626da1844e84829d218723ad40a8300 ``` Steps: ```text Fetch: done in 0 s Export: done in 5 s Submodules: done in 37 s Configure: done in 34 s Select: done in 66 s Build: done in 526 s Test: failed ``` Tests that failed: ```text tls_function_coverage_rejected tls_function_coverage_displacement_r0 tls_function_coverage_displacement_r1 tls_function_coverage_displacement_r2 tls_function_coverage_displacement_r3 tls_function_coverage_displacement_r5 tls_function_coverage_displacement_r7 tls_function_coverage_displacement_r8 tls_function_coverage_displacement_r9 tls_function_coverage_displacement_r10 tls_function_coverage_displacement_r11 tls_function_coverage_displacement_r12 tls_function_coverage_displacement_r13 tls_function_coverage_displacement_r14 tls_function_coverage_displacement_r15 tls_function_coverage_alu_or tls_function_coverage_alu_adc tls_function_coverage_alu_sbb tls_function_coverage_alu_and tls_function_coverage_alu_sub tls_function_coverage_alu_xor tls_function_coverage_alu_cmp tls_function_coverage_gs_traps tls_function_coverage_gs_traps_implicit ignored_string_segments call_zero_padding linux_desktop_entry_output guest_intel_trampolines guest_syscall_trap guest_tls guest_tls_export_references guest_needed_modules guest_module_dir guest_module_directories guest_trailing_note relinker_executables game_patches annotate_guest_module patch_advisor_integration ``` Output of tls_function_coverage_rejected: ```text Traceback (most recent call last): File "core/relinker/relinker/tests/test_tls_function_coverage.py", line 858, in <module> main() File "core/relinker/relinker/tests/test_tls_function_coverage.py", line 772, in main convert(name, make_image("register", "unwind", body=instruction), File "core/relinker/relinker/tests/test_tls_function_coverage.py", line 550, in convert result = subprocess.run([str(relinker), "--skip-sce-module", "--windows", str(source), str(output)], ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.11/subprocess.py", line 548, in run with Popen(*popenargs, **kwargs) as process: ^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.11/subprocess.py", line 1024, in __init__ self._execute_child(args, executable, preexec_fn, close_fds, File "/usr/lib/python3.11/subprocess.py", line 1901, in _execute_child raise child_exception_type(errno_num, err_msg, err_filename) FileNotFoundError: [Errno 2] No such file or directory: 'core/relinker/relinker' ``` Output of tls_function_coverage_displacement_r0: ```text Traceback (most recent call last): File "core/relinker/relinker/tests/test_tls_function_coverage.py", line 858, in <module> main() File "core/relinker/relinker/tests/test_tls_function_coverage.py", line 673, in main convert(name, image, tls_address=address, displacement=displacement) File "core/relinker/relinker/tests/test_tls_function_coverage.py", line 550, in convert result = subprocess.run([str(relinker), "--skip-sce-module", "--windows", str(source), str(output)], ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.11/subprocess.py", line 548, in run with Popen(*popenargs, **kwargs) as process: ^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.11/subprocess.py", line 1024, in __init__ self._execute_child(args, executable, preexec_fn, close_fds, File "/usr/lib/python3.11/subprocess.py", line 1901, in _execute_child raise child_exception_type(errno_num, err_msg, err_filename) FileNotFoundError: [Errno 2] No such file or directory: 'core/relinker/relinker' ``` Output of tls_function_coverage_displacement_r1: ```text Traceback (most recent call last): File "core/relinker/relinker/tests/test_tls_function_coverage.py", line 858, in <module> main() File "core/relinker/relinker/tests/test_tls_function_coverage.py", line 673, in main convert(name, image, tls_address=address, displacement=displacement) File "core/relinker/relinker/tests/test_tls_function_coverage.py", line 550, in convert result = subprocess.run([str(relinker), "--skip-sce-module", "--windows", str(source), str(output)], ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.11/subprocess.py", line 548, in run with Popen(*popenargs, **kwargs) as process: ^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.11/subprocess.py", line 1024, in __init__ self._execute_child(args, executable, preexec_fn, close_fds, File "/usr/lib/python3.11/subprocess.py", line 1901, in _execute_child raise child_exception_type(errno_num, err_msg, err_filename) FileNotFoundError: [Errno 2] No such file or directory: 'core/relinker/relinker' ``` Output of tls_function_coverage_displacement_r2: ```text Traceback (most recent call last): File "core/relinker/relinker/tests/test_tls_function_coverage.py", line 858, in <module> main() File "core/relinker/relinker/tests/test_tls_function_coverage.py", line 673, in main convert(name, image, tls_address=address, displacement=displacement) File "core/relinker/relinker/tests/test_tls_function_coverage.py", line 550, in convert result = subprocess.run([str(relinker), "--skip-sce-module", "--windows", str(source), str(output)], ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.11/subprocess.py", line 548, in run with Popen(*popenargs, **kwargs) as process: ^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.11/subprocess.py", line 1024, in __init__ self._execute_child(args, executable, preexec_fn, close_fds, File "/usr/lib/python3.11/subprocess.py", line 1901, in _execute_child raise child_exception_type(errno_num, err_msg, err_filename) FileNotFoundError: [Errno 2] No such file or directory: 'core/relinker/relinker' ``` Output of tls_function_coverage_displacement_r3: ```text Traceback (most recent call last): File "core/relinker/relinker/tests/test_tls_function_coverage.py", line 858, in <module> main() File "core/relinker/relinker/tests/test_tls_function_coverage.py", line 673, in main convert(name, image, tls_address=address, displacement=displacement) File "core/relinker/relinker/tests/test_tls_function_coverage.py", line 550, in convert result = subprocess.run([str(relinker), "--skip-sce-module", "--windows", str(source), str(output)], ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.11/subprocess.py", line 548, in run with Popen(*popenargs, **kwargs) as process: ^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.11/subprocess.py", line 1024, in __init__ self._execute_child(args, executable, preexec_fn, close_fds, File "/usr/lib/python3.11/subprocess.py", line 1901, in _execute_child raise child_exception_type(errno_num, err_msg, err_filename) FileNotFoundError: [Errno 2] No such file or directory: 'core/relinker/relinker' ``` Output of tls_function_coverage_displacement_r5: ```text Traceback (most recent call last): File "core/relinker/relinker/tests/test_tls_function_coverage.py", line 858, in <module> main() File "core/relinker/relinker/tests/test_tls_function_coverage.py", line 673, in main convert(name, image, tls_address=address, displacement=displacement) File "core/relinker/relinker/tests/test_tls_function_coverage.py", line 550, in convert result = subprocess.run([str(relinker), "--skip-sce-module", "--windows", str(source), str(output)], ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.11/subprocess.py", line 548, in run with Popen(*popenargs, **kwargs) as process: ^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.11/subprocess.py", line 1024, in __init__ self._execute_child(args, executable, preexec_fn, close_fds, File "/usr/lib/python3.11/subprocess.py", line 1901, in _execute_child raise child_exception_type(errno_num, err_msg, err_filename) FileNotFoundError: [Errno 2] No such file or directory: 'core/relinker/relinker' ``` Output of tls_function_coverage_displacement_r7: ```text Traceback (most recent call last): File "core/relinker/relinker/tests/test_tls_function_coverage.py", line 858, in <module> main() File "core/relinker/relinker/tests/test_tls_function_coverage.py", line 673, in main convert(name, image, tls_address=address, displacement=displacement) File "core/relinker/relinker/tests/test_tls_function_coverage.py", line 550, in convert result = subprocess.run([str(relinker), "--skip-sce-module", "--windows", str(source), str(output)], ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.11/subprocess.py", line 548, in run with Popen(*popenargs, **kwargs) as process: ^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.11/subprocess.py", line 1024, in __init__ self._execute_child(args, executable, preexec_fn, close_fds, File "/usr/lib/python3.11/subprocess.py", line 1901, in _execute_child raise child_exception_type(errno_num, err_msg, err_filename) FileNotFoundError: [Errno 2] No such file or directory: 'core/relinker/relinker' ``` Output of tls_function_coverage_displacement_r8: ```text Traceback (most recent call last): File "core/relinker/relinker/tests/test_tls_function_coverage.py", line 858, in <module> main() File "core/relinker/relinker/tests/test_tls_function_coverage.py", line 673, in main convert(name, image, tls_address=address, displacement=displacement) File "core/relinker/relinker/tests/test_tls_function_coverage.py", line 550, in convert result = subprocess.run([str(relinker), "--skip-sce-module", "--windows", str(source), str(output)], ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.11/subprocess.py", line 548, in run with Popen(*popenargs, **kwargs) as process: ^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.11/subprocess.py", line 1024, in __init__ self._execute_child(args, executable, preexec_fn, close_fds, File "/usr/lib/python3.11/subprocess.py", line 1901, in _execute_child raise child_exception_type(errno_num, err_msg, err_filename) FileNotFoundError: [Errno 2] No such file or directory: 'core/relinker/relinker' ``` Output of tls_function_coverage_displacement_r9: ```text Traceback (most recent call last): File "core/relinker/relinker/tests/test_tls_function_coverage.py", line 858, in <module> main() File "core/relinker/relinker/tests/test_tls_function_coverage.py", line 673, in main convert(name, image, tls_address=address, displacement=displacement) File "core/relinker/relinker/tests/test_tls_function_coverage.py", line 550, in convert result = subprocess.run([str(relinker), "--skip-sce-module", "--windows", str(source), str(output)], ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.11/subprocess.py", line 548, in run with Popen(*popenargs, **kwargs) as process: ^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.11/subprocess.py", line 1024, in __init__ self._execute_child(args, executable, preexec_fn, close_fds, File "/usr/lib/python3.11/subprocess.py", line 1901, in _execute_child raise child_exception_type(errno_num, err_msg, err_filename) FileNotFoundError: [Errno 2] No such file or directory: 'core/relinker/relinker' ``` Output of tls_function_coverage_displacement_r10: ```text Traceback (most recent call last): File "core/relinker/relinker/tests/test_tls_function_coverage.py", line 858, in <module> main() File "core/relinker/relinker/tests/test_tls_function_coverage.py", line 673, in main convert(name, image, tls_address=address, displacement=displacement) File "core/relinker/relinker/tests/test_tls_function_coverage.py", line 550, in convert result = subprocess.run([str(relinker), "--skip-sce-module", "--windows", str(source), str(output)], ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.11/subprocess.py", line 548, in run with Popen(*popenargs, **kwargs) as process: ^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.11/subprocess.py", line 1024, in __init__ self._execute_child(args, executable, preexec_fn, close_fds, File "/usr/lib/python3.11/subprocess.py", line 1901, in _execute_child raise child_exception_type(errno_num, err_msg, err_filename) FileNotFoundError: [Errno 2] No such file or directory: 'core/relinker/relinker' ``` Output of tls_function_coverage_displacement_r11: ```text Traceback (most recent call last): File "core/relinker/relinker/tests/test_tls_function_coverage.py", line 858, in <module> main() File "core/relinker/relinker/tests/test_tls_function_coverage.py", line 673, in main convert(name, image, tls_address=address, displacement=displacement) File "core/relinker/relinker/tests/test_tls_function_coverage.py", line 550, in convert result = subprocess.run([str(relinker), "--skip-sce-module", "--windows", str(source), str(output)], ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.11/subprocess.py", line 548, in run with Popen(*popenargs, **kwargs) as process: ^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.11/subprocess.py", line 1024, in __init__ self._execute_child(args, executable, preexec_fn, close_fds, File "/usr/lib/python3.11/subprocess.py", line 1901, in _execute_child raise child_exception_type(errno_num, err_msg, err_filename) FileNotFoundError: [Errno 2] No such file or directory: 'core/relinker/relinker' ``` Output of tls_function_coverage_displacement_r12: ```text Traceback (most recent call last): File "core/relinker/relinker/tests/test_tls_function_coverage.py", line 858, in <module> main() File "core/relinker/relinker/tests/test_tls_function_coverage.py", line 673, in main convert(name, image, tls_address=address, displacement=displacement) File "core/relinker/relinker/tests/test_tls_function_coverage.py", line 550, in convert result = subprocess.run([str(relinker), "--skip-sce-module", "--windows", str(source), str(output)], ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.11/subprocess.py", line 548, in run with Popen(*popenargs, **kwargs) as process: ^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.11/subprocess.py", line 1024, in __init__ self._execute_child(args, executable, preexec_fn, close_fds, File "/usr/lib/python3.11/subprocess.py", line 1901, in _execute_child raise child_exception_type(errno_num, err_msg, err_filename) FileNotFoundError: [Errno 2] No such file or directory: 'core/relinker/relinker' ``` Output of tls_function_coverage_displacement_r13: ```text Traceback (most recent call last): File "core/relinker/relinker/tests/test_tls_function_coverage.py", line 858, in <module> main() File "core/relinker/relinker/tests/test_tls_function_coverage.py", line 673, in main convert(name, image, tls_address=address, displacement=displacement) File "core/relinker/relinker/tests/test_tls_function_coverage.py", line 550, in convert result = subprocess.run([str(relinker), "--skip-sce-module", "--windows", str(source), str(output)], ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.11/subprocess.py", line 548, in run with Popen(*popenargs, **kwargs) as process: ^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.11/subprocess.py", line 1024, in __init__ self._execute_child(args, executable, preexec_fn, close_fds, File "/usr/lib/python3.11/subprocess.py", line 1901, in _execute_child raise child_exception_type(errno_num, err_msg, err_filename) FileNotFoundError: [Errno 2] No such file or directory: 'core/relinker/relinker' ``` Output of tls_function_coverage_displacement_r14: ```text Traceback (most recent call last): File "core/relinker/relinker/tests/test_tls_function_coverage.py", line 858, in <module> main() File "core/relinker/relinker/tests/test_tls_function_coverage.py", line 673, in main convert(name, image, tls_address=address, displacement=displacement) File "core/relinker/relinker/tests/test_tls_function_coverage.py", line 550, in convert result = subprocess.run([str(relinker), "--skip-sce-module", "--windows", str(source), str(output)], ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.11/subprocess.py", line 548, in run with Popen(*popenargs, **kwargs) as process: ^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.11/subprocess.py", line 1024, in __init__ self._execute_child(args, executable, preexec_fn, close_fds, File "/usr/lib/python3.11/subprocess.py", line 1901, in _execute_child raise child_exception_type(errno_num, err_msg, err_filename) FileNotFoundError: [Errno 2] No such file or directory: 'core/relinker/relinker' ``` Output of tls_function_coverage_displacement_r15: ```text Traceback (most recent call last): File "core/relinker/relinker/tests/test_tls_function_coverage.py", line 858, in <module> main() File "core/relinker/relinker/tests/test_tls_function_coverage.py", line 673, in main convert(name, image, tls_address=address, displacement=displacement) File "core/relinker/relinker/tests/test_tls_function_coverage.py", line 550, in convert result = subprocess.run([str(relinker), "--skip-sce-module", "--windows", str(source), str(output)], ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.11/subprocess.py", line 548, in run with Popen(*popenargs, **kwargs) as process: ^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.11/subprocess.py", line 1024, in __init__ self._execute_child(args, executable, preexec_fn, close_fds, File "/usr/lib/python3.11/subprocess.py", line 1901, in _execute_child raise child_exception_type(errno_num, err_msg, err_filename) FileNotFoundError: [Errno 2] No such file or directory: 'core/relinker/relinker' ``` Output of tls_function_coverage_alu_or: ```text Traceback (most recent call last): File "core/relinker/relinker/tests/test_tls_function_coverage.py", line 858, in <module> main() File "core/relinker/relinker/tests/test_tls_function_coverage.py", line 689, in main result = subprocess.run([str(relinker), "--skip-sce-module", "--windows", str(source), str(output)], ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.11/subprocess.py", line 548, in run with Popen(*popenargs, **kwargs) as process: ^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.11/subprocess.py", line 1024, in __init__ self._execute_child(args, executable, preexec_fn, close_fds, File "/usr/lib/python3.11/subprocess.py", line 1901, in _execute_child raise child_exception_type(errno_num, err_msg, err_filename) FileNotFoundError: [Errno 2] No such file or directory: 'core/relinker/relinker' ``` Output of tls_function_coverage_alu_adc: ```text Traceback (most recent call last): File "core/relinker/relinker/tests/test_tls_function_coverage.py", line 858, in <module> main() File "core/relinker/relinker/tests/test_tls_function_coverage.py", line 689, in main result = subprocess.run([str(relinker), "--skip-sce-module", "--windows", str(source), str(output)], ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.11/subprocess.py", line 548, in run with Popen(*popenargs, **kwargs) as process: ^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.11/subprocess.py", line 1024, in __init__ self._execute_child(args, executable, preexec_fn, close_fds, File "/usr/lib/python3.11/subprocess.py", line 1901, in _execute_child raise child_exception_type(errno_num, err_msg, err_filename) FileNotFoundError: [Errno 2] No such file or directory: 'core/relinker/relinker' ``` Output of tls_function_coverage_alu_sbb: ```text Traceback (most recent call last): File "core/relinker/relinker/tests/test_tls_function_coverage.py", line 858, in <module> main() File "core/relinker/relinker/tests/test_tls_function_coverage.py", line 689, in main result = subprocess.run([str(relinker), "--skip-sce-module", "--windows", str(source), str(output)], ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.11/subprocess.py", line 548, in run with Popen(*popenargs, **kwargs) as process: ^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.11/subprocess.py", line 1024, in __init__ self._execute_child(args, executable, preexec_fn, close_fds, File "/usr/lib/python3.11/subprocess.py", line 1901, in _execute_child raise child_exception_type(errno_num, err_msg, err_filename) FileNotFoundError: [Errno 2] No such file or directory: 'core/relinker/relinker' ``` Output of tls_function_coverage_alu_and: ```text Traceback (most recent call last): File "core/relinker/relinker/tests/test_tls_function_coverage.py", line 858, in <module> main() File "core/relinker/relinker/tests/test_tls_function_coverage.py", line 689, in main result = subprocess.run([str(relinker), "--skip-sce-module", "--windows", str(source), str(output)], ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.11/subprocess.py", line 548, in run with Popen(*popenargs, **kwargs) as process: ^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.11/subprocess.py", line 1024, in __init__ self._execute_child(args, executable, preexec_fn, close_fds, File "/usr/lib/python3.11/subprocess.py", line 1901, in _execute_child raise child_exception_type(errno_num, err_msg, err_filename) FileNotFoundError: [Errno 2] No such file or directory: 'core/relinker/relinker' ``` Output of tls_function_coverage_alu_sub: ```text Traceback (most recent call last): File "core/relinker/relinker/tests/test_tls_function_coverage.py", line 858, in <module> main() File "core/relinker/relinker/tests/test_tls_function_coverage.py", line 689, in main result = subprocess.run([str(relinker), "--skip-sce-module", "--windows", str(source), str(output)], ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.11/subprocess.py", line 548, in run with Popen(*popenargs, **kwargs) as process: ^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.11/subprocess.py", line 1024, in __init__ self._execute_child(args, executable, preexec_fn, close_fds, File "/usr/lib/python3.11/subprocess.py", line 1901, in _execute_child raise child_exception_type(errno_num, err_msg, err_filename) FileNotFoundError: [Errno 2] No such file or directory: 'core/relinker/relinker' ``` What did not run, and why: ```text 9 tests were not run for a reason ctest did not give. The base tip has changed since it was last built here. Run this level with the source set to the base tip to learn which failures predate the change. ``` All tests: ```text Failed (39) By group: tls 24, guest 8, ignored 1, call 1, linux 1, relinker 1, game 1, annotate 1, patch 1 tls_function_coverage_rejected, tls_function_coverage_displacement_r0, tls_function_coverage_displacement_r1, tls_function_coverage_displacement_r2, tls_function_coverage_displacement_r3, tls_function_coverage_displacement_r5, tls_function_coverage_displacement_r7, tls_function_coverage_displacement_r8, tls_function_coverage_displacement_r9, tls_function_coverage_displacement_r10, tls_function_coverage_displacement_r11, tls_function_coverage_displacement_r12, tls_function_coverage_displacement_r13, tls_function_coverage_displacement_r14, tls_function_coverage_displacement_r15, tls_function_coverage_alu_or, tls_function_coverage_alu_adc, tls_function_coverage_alu_sbb, tls_function_coverage_alu_and, tls_function_coverage_alu_sub, tls_function_coverage_alu_xor, tls_function_coverage_alu_cmp, tls_function_coverage_gs_traps, tls_function_coverage_gs_traps_implicit, ignored_string_segments, call_zero_padding, linux_desktop_entry_output, guest_intel_trampolines, guest_syscall_trap, guest_tls, guest_tls_export_references, guest_needed_modules, guest_module_dir, guest_module_directories, guest_trailing_note, relinker_executables, game_patches, annotate_guest_module, patch_advisor_integration Not run (a test they need failed) (9) By group: guest 7, crash 1, application 1 guest_kernel_sys_pthread_np_kind, guest_kernel_sys_pthread_np_attr, crash_text, guest_kernel_sys_pselect, guest_xml_value_types, guest_xml_initializer, guest_np_game_intent, guest_memcmp_protected, application_heap_lazy Passed (29) By group: public 14, guest 13, run 1, patch 1 public_headers, guest_dinkumware_fetch_and_2_patched, guest_dinkumware_fetch_and_4, guest_dinkumware_fetch_and_8_patched, guest_dinkumware_fetch_or_1, guest_dinkumware_fetch_or_2, guest_dinkumware_fetch_or_2_patched, guest_dinkumware_fetch_or_4, guest_dinkumware_fetch_or_4_patched, guest_dinkumware_fetch_or_8, guest_dinkumware_fetch_or_8_patched, guest_dinkumware_fetch_xor_1, guest_dinkumware_fetch_xor_1_patched, guest_dinkumware_fetch_xor_2, public_headers_compile_3, public_headers_compile_1, public_headers_compile_5, public_headers_compile_7, public_headers_compile_9, public_headers_compile_11, public_headers_compile_15, public_headers_compile_13, public_headers_compile_19, public_headers_compile_17, public_headers_compile_23, public_headers_compile_21, run_report_revision, public_headers_compile_25, patch_advisor_unit ``` Complete output: 6,994 lines, 0.6 MB: not attached (it stays in the local report) </details> <details> <summary>Hosted CI as GitHub shows it: incomplete</summary> Jobs, newest run of each: ```text register-context: skipped (Build) relinker-asan: skipped (Build) relinker: skipped (Build) write-watch: skipped (Build) linux: skipped (Build) edge-watch: skipped (Build) windows: success (Build) eligibility: success (Build) library-portability: success (Emscripten library portability) report: success (Progress report) labels: success (PR labels) conventions: success (Conventions) ``` Overall: ```text 6 of 12 jobs passed; 6 were skipped and provide no evidence. ``` </details> </details>
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!11571
No description provided.