Repository navigation
Log what holds TCP connections when a Windows e2e attempt fails - #610
Merged
Merged
Conversation
Chromium's ERR_NO_BUFFER_SPACE (WSAENOBUFS) on a loopback connect to a test's hided left nothing saying who held the sockets. On a Windows CI run the web suite now adds a reporter that, for each failed attempt, logs the TCP connection count by state and by owning process name at that moment; a passing attempt runs nothing.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Refs #582
Summary
Chromium's
net::ERR_NO_BUFFER_SPACE(WSAENOBUFS) on a loopback connect to a test's hided hit 3 of 469 Windows e2e jobs since 2026-10-04, once in the PR@platformlane as the 7th test of the job; no run recorded what held the sockets.On a Windows CI run the web suite now adds a reporter that, for each failed test attempt and at that moment, logs three
[windows sockets]lines: the TCP connection count, the count by state, and the ten owning process names holding the most.A passing attempt runs nothing, other systems and local runs do not load the reporter, and nothing waits, retries or changes a timeout.
Review
web/playwright.config.ts- the reporter is added only whenCIis set and the platform is Windows;onTestEndruns one PowerShellGet-NetTCPConnectionper failed attempt, catches any error into asummary unavailable:line, and never throws into the run.Evidence
summary unavailable: Error: spawnSync powershell.exe ENOENTand the run went on.web/e2e/windows-sockets.unit.tsrunswindowsTcpSummaryon the real runner in the Windows check lane (web test) and checks the three lines; skipped elsewhere.pnpm --dir web lint,pnpm --dir desktop typecheck, and a typecheck of the reporter, the unit test andweb/playwright.config.tsunder the desktop e2e settings pass.