Skip to content

test: skip agent tool call tests until the netstack TIME_WAIT fix - #30465

Merged
mafredri merged 1 commit into
mainfrom
mafredri/skip-agent-timewait-flakes
Oct 8, 2026
Merged

mafredri merged 1 commit into
mainfrom
mafredri/skip-agent-timewait-flakes

Conversation

@mafredri

@mafredri mafredri commented Oct 7, 2026 •

Copy link
Copy Markdown
Member

Skip TestAgent_ToolCall and TestEditMessageCancelsToolCallsOnAgent until #30471 lands.

The agent's gVisor netstack accepts connections through tcp.Forwarder and has no listening endpoint, so it drops a SYN that reuses a source port it still holds in TIME_WAIT (gvisor/gvisor#15013). Agent API requests open a new connection each and the agent closes first, so a client that reuses a port within 60s hangs for about 63s. Both tests make enough requests to one agent to hit it (CODAGT-1336, CODAGT-1331). The same stall was reproduced against a production agent on dogfood, so this is a product bug, tracked in PLAT-717.

#30471 removes these skips. It pins coder/gvisor to a cherry-pick of gvisor/gvisor#15019, an open PR from an outside contributor that no gVisor maintainer has reviewed, and adds a deterministic regression test.

🤖 This PR was created with the help of Coder Agents, and will be reviewed by a human. 🏂🏻

The agent netstack drops a SYN that reuses a source port it still
holds in TIME_WAIT, so a later agent API request can hang for about
63s. TestAgent_ToolCall and TestEditMessageCancelsToolCallsOnAgent
make enough requests to one agent to hit it (CODAGT-1336,
CODAGT-1331). Skip them until the netstack fix lands.
@mafredri
mafredri force-pushed the mafredri/skip-agent-timewait-flakes branch from 13a1a71 to 4e827d7 Compare October 7, 2026 14:01
@mafredri
mafredri marked this pull request as ready for review October 7, 2026 14:05
@mafredri
mafredri added this pull request to stack #30474 October 7, 2026 14:19
@mafredri
mafredri merged commit 788a8bc into main Oct 8, 2026
35 checks passed
@mafredri
mafredri deleted the mafredri/skip-agent-timewait-flakes branch October 8, 2026 07:42
@github-actions github-actions Bot locked and limited conversation to collaborators Oct 8, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants