test(net): skip IPv6 checks when host loopback is unavailable #2894
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/2894"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-10T17:50:44Z.
What
Handle the reported Linux test failure when IPv6 sockets can be created but the host has no usable
::1route. If the guest UDP send to::1fails withNET_ENETUNREACH, probe the host with a native UDP send to[::1]:9; skip the IPv6 socket checks only when that native probe also reports IPv6 unavailable. When the host probe succeeds, the guest send is still required to succeed.This is based on eliyarson's reproduction and initial skip proposal in issue #2820. The host probe addresses the false-skip case identified in the issue discussion. IPv6 text conversion and the IPv4 socket checks still run when the IPv6 socket checks are skipped.
Tested
Linux x86-64, GCC 12.2, Release, rebased onto current
main(961b25fe), head3d79d426: builtguest_sce_net_tests;guest_sce_netpassed 3/3 with--repeat until-fail:3. This host has IPv6 enabled and::1configured, so the normal IPv6 path ran. The unavailable-IPv6 host path was not available locally; eliyarson's report documents that failing setup and errno. Conventions andgit diff --checkpass.Windows 11 Pro 26220, WinLibs MinGW-w64 GCC 15.2.0 r7, Release: the prior head
c526393bcompiled with the IPv6 declarations andguest_sce_net,guest_tcp,guest_udp,guest_socket_pair, andguest_socket_read_writepassed 3/3. That host had IPv6 and::1available, so the normal IPv6 path ran. This independent Windows result predates the current-main rebase; the source change itself is unchanged.Checklist
main; no other open PR implements the same functionsNotImplemented_nid_no_patch); silent stubs are listed in TechnicalDebt.mdfiles or images added to the repository (attach them to this PR)Fixes #2820
Imported from boykopovar/AnyPS5. Originally posted by oneandonlydean on 2026-10-10T19:18:14Z.
The manual build fails to compile on Windows:
GuestSceNet.cpp:236: 'sockaddr_in6' was not declared in this scope(alsoin6addr_loopback), https://github.com/boykopovar/AnyPS5/actions/runs/38074518482. It probably needs<ws2tcpip.h>on Windows.Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-10T20:14:46Z.
Thanks for catching the missing Windows declarations. I added
<ws2tcpip.h>after<winsock2.h>sosockaddr_in6andin6addr_loopbackare declared on Windows.After rebasing onto current
main, I rebuiltguest_sce_net_testson Linux and ranguest_sce_netthree times; all three runs passed. Windows compilation is pending CI.Imported from boykopovar/AnyPS5. Originally posted by screamm on 2026-10-10T21:01:36Z.
Windows validation of the current head
c526393b(already onmain56fb1b3b).Windows 11 Pro 26220, WinLibs MinGW-w64 GCC 15.2.0 r7, Ninja, Release,
BUILD_TESTING=ON, full build including thelibstarget. This host has IPv6 and::1available, so the normal IPv6 path ran, not the skip path.guest_sce_net,guest_tcp,guest_udp,guest_socket_pairandguest_socket_read_writepass 3/3 (--repeat until-fail:3).ctest -j8 -E "^agc_|video_out"passes 388/388.Validation run with Claude Code assistance.
Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-11T03:50:42Z.
I rebased this PR onto current
main(961b25fe) after finding it had fallen behind by 265 commits. The rebase was clean. On the rebased head, the Releaseguest_sce_nettest passes 3/3 on Linux GCC 12.2; conventions and diff checks also pass. I updated the Tested section to separate this current-head run from the earlier independent Windows run.