Skip to content

Conversation

@mafredri
Copy link
Member

There are many cases where the code being called would return io.EOF, so
skipping it seems like a reasonable easy-fix to this flake.

Fixes coder/internal#119

There are many cases where the code being called would return io.EOF, so
skipping it seems like a reasonable easy-fix to this flake.

Fixes coder/internal#119
@mafredri mafredri force-pushed the mafredri/test-fix-workspacetraffic-flake branch from 53f106c to dca88ad Compare December 11, 2025 18:27
Copy link
Contributor

@DanielleMaywood DanielleMaywood left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Approving although curious as to why we're receiving EOF

@mafredri
Copy link
Member Author

@DanielleMaywood Typically EOF is not an error we care about at the end of the test, it just tells us that the connection is already closed. It could be that one side went away earlier, or that our connection teardown has a slight raciness to it.

That said, we could make this fix more extensive as there's an actual bug in connectSSH where closers are run in the wrong order. That may be the cause, but there are some other branches as well that could potentially return io.EOF.

Without a solid repro, though, this is speculative.

@mafredri mafredri enabled auto-merge (squash) December 12, 2025 11:32
@mafredri mafredri merged commit 498c565 into main Dec 12, 2025
49 of 51 checks passed
@mafredri mafredri deleted the mafredri/test-fix-workspacetraffic-flake branch December 12, 2025 11:36
@github-actions github-actions bot locked and limited conversation to collaborators Dec 12, 2025
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.

flake: TestRun/SSH

3 participants