Skip to content

Conversation

@DanielleMaywood
Copy link
Contributor

@DanielleMaywood DanielleMaywood commented Dec 11, 2025

Closes coder/internal#1178

I verified the fix works by adding a time.Sleep(100 * time.Millisecond) between the CreateWorkspaceBuild and CancelWorkspaceBuild calls. Adding this reliably triggered the flake, and when I added the fix the flake stopped happening.

Closes coder/internal#1178

I verified the fix works by adding a `time.Sleep(100
* time.Millisecond)` between the `CreateWorkspaceBuild` and
  `CancelWorkspaceBuild` calls. Adding this reliably triggered the
  flake, and when I added the fix the flake stopped happening.
@DanielleMaywood DanielleMaywood marked this pull request as ready for review December 11, 2025 10:22
Copy link
Member

@mafredri mafredri left a comment

Choose a reason for hiding this comment

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

Is this still needed? Seems fine but a bit confusing. Ideally if we're not disabling the provisioner we'd allow the transitions to be driven by provisioner as well.

@DanielleMaywood
Copy link
Contributor Author

@mafredri Yeah it is needed. This is unrelated to the previous PR I merged.

The initial transition we always want to succeed, and then the next transition we want to (maybe - depending on the test) cancel. I can't think of any other way of doing this other than stopping the provisioner.

If we allow the provisioner to run we run into a race where the provisioner job is finished before we can cancel it.

@DanielleMaywood DanielleMaywood merged commit 8ead6f7 into main Dec 11, 2025
32 checks passed
@DanielleMaywood DanielleMaywood deleted the danielle/fix/1178 branch December 11, 2025 13:36
@github-actions github-actions bot locked and limited conversation to collaborators Dec 11, 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: TestTasks/UpdateInput/TaskStatusError

3 participants