Skip to content

Conversation

DanielleMaywood
Copy link
Contributor

@DanielleMaywood DanielleMaywood commented Aug 27, 2025

Fix coder/internal#826

I wasn't able to recreate the flake, but my underlying assumption from reading the logs we have is that there is a race condition where the test will begin cleanup before the dev container recreation goroutine has a chance to call devcontainer up.

I've refactored the test slightly and made it so that the test will not finish until either the context has timed out, or Up has been called.

@DanielleMaywood DanielleMaywood marked this pull request as ready for review August 27, 2025 10:51
@DanielleMaywood DanielleMaywood requested review from mafredri and johnstcn and removed request for mafredri August 27, 2025 10:51
@DanielleMaywood DanielleMaywood merged commit 5c2022e into main Aug 27, 2025
39 checks passed
@DanielleMaywood DanielleMaywood deleted the danielle/flakes/devcontainer-mock-recreate branch August 27, 2025 11:07
@github-actions github-actions bot locked and limited conversation to collaborators Aug 27, 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: TestWorkspaceAgentRecreateDevcontainer/Mock/Recreate
3 participants