- Notifications
You must be signed in to change notification settings - Fork928
feat: do not fail DERP healthcheck if WebSocket is used#10714
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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
Uh oh!
There was an error while loading.Please reload this page.
Conversation
// @typescript-generate Report | ||
type Report struct { | ||
Healthy bool `json:"healthy"` | ||
Healthy bool `json:"healthy"` | ||
Warnings []string `json:"warnings"` |
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.
Should this be amap[string][]string
so that it's easier to identify the source of the warnings?
That way we don't need to worry about doingfmt.Sprintf("[%s] %s", prefix, warning")
all the time.
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.
It might also make easier for the UI to display them separately.
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.
I don't have a strong preference here, but[]string
is convenient as it is defined the same way for every section. Frontend can just render all warnings as is. If you find it useful, I can just adjust the implementation though.
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.
It might also make easier for the UI to display them separately.
My main concern is consistency with otherwarnings []string
fields, but I don't mind changing it.
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.
I'm not sure what would be easier for the UI, to be honest. Maybe we just ship and iterate?
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.
Agree 👍
Uh oh!
There was an error while loading.Please reload this page.
Fixes:#9470
Replaces:#10620
This PR extends the
/api/v2/debug/health
API response to includewarning []string
field. Also, Coder will not report "unhealthy" status if there are troubles with Websockets.