Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

feat(cli): support bundle: dump healthcheck summary#12963

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

Merged
johnstcn merged 11 commits intomainfromcj/healthreport-summarize
Apr 16, 2024

Conversation

johnstcn
Copy link
Member

@johnstcnjohnstcn commentedApr 15, 2024
edited
Loading

(From comment in#12951 (comment))
This PR modifies thesupport bundle command to dump a summary of deployment health and the CLI netcheck to stdout, when run:

$ go run ./cmd/coder rsupport bundle nonix --yes --output-file ~/tmp/coder-support.zipRunning inside Coder workspace; this can affect results!WARN: Deployment health issues detected:  | Workspace Proxies: Warn: EWP04: unhealthy: request to proxy failed: Get "http://127.0.0.1:3001/healthz-report": dial tcp 127.0.0.1:3001: connect: connection refusedWrote support bundle to /home/coder/tmp/coder-support.zip

Note: I introduced theBaseReport as a way to avoid writing five or six differentSummarize() methods.

Copy link
Contributor

@dannykoppingdannykopping left a comment

Choose a reason for hiding this comment

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

LGTM!

type WebsocketReport struct {
// Healthy is deprecated and left for backward compatibility purposes, use `Severity` instead.
Healthy bool `json:"healthy"`
Severity health.Severity `json:"severity" enums:"ok,warning,error"`
Warnings []string `json:"warnings"`
Copy link
MemberAuthor

Choose a reason for hiding this comment

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

review: this is technically a breaking change... but it should have been this way from the beginning

Copy link
Member

@mtojekmtojek left a comment

Choose a reason for hiding this comment

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

Nice 👍 👍

@johnstcnjohnstcn merged commit407e61e intomainApr 16, 2024
@johnstcnjohnstcn deleted the cj/healthreport-summarize branchApril 16, 2024 12:31
@github-actionsgithub-actionsbot locked and limited conversation to collaboratorsApr 16, 2024
Sign up for freeto subscribe to this conversation on GitHub. Already have an account?Sign in.
Reviewers

@dannykoppingdannykoppingdannykopping approved these changes

@mtojekmtojekmtojek approved these changes

Assignees

@johnstcnjohnstcn

Labels
None yet
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

3 participants
@johnstcn@dannykopping@mtojek

[8]ページ先頭

©2009-2025 Movatter.jp