Skip to content

Conversation

mafredri
Copy link
Member

@mafredri mafredri commented Dec 2, 2022

Agent close is hanging in tests waiting on the connection waitgroup. This happens because we're pre-emptively adding counts to the waitgroup without verifying that the agent is still alive.

This small refactor guards against this scenario.

https://github.com/coder/coder/actions/runs/3601341028/jobs/6067023763

@mafredri mafredri self-assigned this Dec 2, 2022
@mafredri mafredri marked this pull request as ready for review December 2, 2022 13:20
@mafredri mafredri requested a review from a team December 2, 2022 13:20
@mafredri mafredri force-pushed the mafredri/fix-agent-connection-tracking branch from 8f5e34e to 6f9b319 Compare December 2, 2022 13:28
@mafredri mafredri merged commit fa64155 into main Dec 2, 2022
@mafredri mafredri deleted the mafredri/fix-agent-connection-tracking branch December 2, 2022 14:24
@github-actions github-actions bot locked and limited conversation to collaborators Dec 2, 2022
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.

2 participants