Repository navigation
test: skip agent tool call tests until the netstack TIME_WAIT fix - #30465
Merged
Merged
Conversation
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
force-pushed
the
mafredri/skip-agent-timewait-flakes
branch
from
October 7, 2026 14:01
13a1a71 to
4e827d7
Compare
mafredri
marked this pull request as ready for review
October 7, 2026 14:05
ibetitsmike
approved these changes
Oct 7, 2026
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 subscribe to this conversation on GitHub.
Already have an account?
Sign in.
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.
Skip
TestAgent_ToolCallandTestEditMessageCancelsToolCallsOnAgentuntil #30471 lands.The agent's gVisor netstack accepts connections through
tcp.Forwarderand 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.