test(net): guest_sce_net exceeds its timeout on slow host DNS #9609
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
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 UnhealthyKraken on 2026-10-22T04:15:45Z.
On clean upstream
d9c99c9ba4dbcbb0a724bad5064e7cb9b1e5f9ef, the Windowsguest_sce_nettest exceeds its 20-second CTest limit because its resolver failure checks perform real host DNS lookups. The unchanged executable completes successfully when run directly with a bounded 90-second diagnostic allowance: exit 0 after 36.766 seconds. This does not establish a deadlock or a PS5 resolver contract violation.Reproduction: Windows x86-64, GCC 15.2 Release,
BUILD_TESTING=ON; buildlibs,patched_libraries_testsandguest_sce_net_tests, then run:The patched-library loader passes all 360 libraries.
guest_sce_nettimes out at 20.02 seconds both in a restricted environment and with normal Windows permissions (20.12 seconds total CTest duration in the latter). A direct run of the same executable with the same unpatched DLL directory on PATH passes; all four expected forward-resolution failure messages are printed.An independent native Winsock probe using the same
getaddrinfo(name, nullptr, hints, &results)form measured:The measurements are from separate runs, so these timings should not be added to reconstruct the test duration. They show that even an absolute invalid name can take over 11 seconds in the host resolver on this network. No DNS settings, hosts file, game environment or production code was changed.
Relevant source:
GuestSceNet.cpp:1782and:1824use the absolute name;:1836still uses the relativeguest-sce-net.invalid.lookup_hostinlibSceNet/Export.cpp:2040delegates to synchronous hostgetaddrinfo. The resolver wrappers ignore timeout/retry; existing technical debt records this limitation for the IPv6 call and synchronous resolver abort behavior.Prior work: merged #4406 made an earlier failure check absolute to avoid host search-domain wildcard answers and explicitly called out #3728 as needing the same change. That search-domain issue is separate from the observed latency of absolute lookups. Open #9506 changes configured DNS-server reporting, not this test's host
getaddrinfodependency. Current all-state issue/PR title/body searches and relevant diffs did not identify a dedicated fix for the timeout; that search is not proof that no overlapping work exists.The test needs bounded, deterministic failure-path coverage that preserves output-sentinel, resolver-error and abort-state assertions without relying on external DNS latency. Simply raising the timeout conflicts with the contribution rule that tests finish within 30 seconds. Adding the missing trailing dot would address search-domain dependence but would not by itself establish bounded execution. A resolver test seam or equivalent controlled native boundary needs design/review; no production workaround or fabricated resolver result is proposed here.
AI-assisted: yes. Measurements were run locally; no console firmware behavior was measured, and no firmware files or proprietary captures are attached.
Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-22T13:16:53Z.
I checked current upstream main
3ca07d086d5f44fbe3c00370e7f03953ab46ca1b:guest_sce_netstill has a 20-second CTest timeout, its failure cases call the absolute.invalid.host name, andlookup_hoststill delegates synchronously to hostgetaddrinfo. The report therefore still applies to current source, not only the olderd9c99c9snapshot. #9506 is about configured DNS-server reporting and does not alter this path. A deterministic resolver boundary/test seam remains the right design question; simply raising the test timeout would violate the repository’s 30-second test budget.Imported from boykopovar/AnyPS5. Originally posted by UnhealthyKraken on 2026-10-22T14:20:24Z.
That source check is consistent with the original Windows reproduction: the delay is in synchronous host resolution, and an absolute
.invalid.name does not provide a deterministic execution time. I am keeping this issue open for a resolver boundary/test seam; #9506 does not resolve it. I have not raised the timeout or counted the timing-out CTest case as passing. The original direct executable result and CTest timeout remain separate evidence.