Skip to content

Conversation

spikecurtis
Copy link
Contributor

@spikecurtis spikecurtis commented Aug 5, 2025

fixes coder/internal#863

We read an output file in a loop, but this could lead to races where the other process has created the file but not written, or a partial write in progress. Fix is to retry if the content is shorter than we expect.

Copy link
Contributor Author

This stack of pull requests is managed by Graphite. Learn more about stacking.

@spikecurtis spikecurtis requested a review from mafredri August 5, 2025 06:42
@spikecurtis spikecurtis marked this pull request as ready for review August 5, 2025 06:42
@spikecurtis spikecurtis force-pushed the spike/internal-863-flake-TestSSHServer_ClosesStdin branch from 23ed6c4 to 755aa09 Compare August 5, 2025 06:43
@spikecurtis spikecurtis merged commit 7eb4119 into main Aug 5, 2025
32 checks passed
@spikecurtis spikecurtis deleted the spike/internal-863-flake-TestSSHServer_ClosesStdin branch August 5, 2025 07:36
@github-actions github-actions bot locked and limited conversation to collaborators Aug 5, 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] TestSSHServer_ClosesStdin on macos
2 participants