-
Notifications
You must be signed in to change notification settings - Fork 886
fix(coderd): prevent lost messages in watchWorkspaceAgentMetadata
#7934
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
@@ -1461,7 +1461,6 @@ func (api *API) watchWorkspaceAgentMetadata(rw http.ResponseWriter, r *http.Requ | |||
case <-senderClosed: | |||
return | |||
case <-refreshTicker.C: | |||
break |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Review: Ineffective break => confusing.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Might make sense to move this into the nightly-gauntlet test
@ammario hopefully that's not necessary. I believe I've now identified the main culprits for the test failures and fixed them in There were two issues of missing messages in between subscriptions:
|
b6d4d88
to
2a53d6a
Compare
watchWorkspaceAgentMetadata
watchWorkspaceAgentMetadata
watchWorkspaceAgentMetadata
https://github.com/coder/coder/actions/runs/5221946415/jobs/9426841335