Skip to content

Conversation

@DanielleMaywood
Copy link
Contributor

Closes coder/internal#1112

We introduced to provisionerdserver the ability to delete a workspace's associated task for the scenario where a user decided to delete a task workspace directly, instead of the task. This introduced a race between coderd and provisionerdserver. We accounted for this in provisionerdserver with an explicit !errors.Is(err, sql.ErrNoRows) but forgot to apply the same logic to coderd.

In the real world this will almost never happen but it does sometimes happen during our tests.

Closes coder/internal#1112

We introduced to provisionerdserver the ability to delete a workspace's
associated task for the scenario where a user decided to delete a task
workspace directly, instead of the task. This introduced a race between
coderd and provisionerdserver. We accounted for this in
provisionerdserver with an explicit `!errors.Is(err, sql.ErrNoRows)` but
forgot to apply the same logic to coderd.

In the real world this will almost never happen but it does sometimes
happen during our tests.
@DanielleMaywood DanielleMaywood marked this pull request as ready for review December 11, 2025 11:35
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.

Great commentary, thanks!

@DanielleMaywood DanielleMaywood merged commit c3224b7 into main Dec 11, 2025
29 checks passed
@DanielleMaywood DanielleMaywood deleted the danielle/fix/1112 branch December 11, 2025 13:04
@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: cli Test_Tasks/delete_task

2 participants