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

refactor(coderd): move healthcheck report structs to codersdk#12279

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 3 commits intomainfromcj/healthcheck-codersdk-refactor
Feb 23, 2024

Conversation

johnstcn
Copy link
Member

@johnstcnjohnstcn commentedFeb 23, 2024
edited
Loading

Needed by#12161 to avoid an import cycle when adding acodersdk.Client method to hit/api/v2/debug/health.

Moves healthcheck report-related structs fromcoderd/healthcheck tocodersdk

@johnstcnjohnstcnforce-pushed thecj/healthcheck-codersdk-refactor branch 2 times, most recently from2e7faa6 toe6b7428CompareFebruary 23, 2024 11:13
@johnstcnjohnstcnforce-pushed thecj/healthcheck-codersdk-refactor branch frome6b7428 to621fa13CompareFebruary 23, 2024 11:24
@johnstcnjohnstcn marked this pull request as ready for reviewFebruary 23, 2024 11:46
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.

+5,560 −5,548

Is it only because of the generator?

@johnstcn
Copy link
MemberAuthor

+5,560 −5,548

Is it only because of the generator?

Unfortunately, yes. Most of the changes are in generated files.

mtojek reacted with thumbs up emoji

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.

As long as linter does not complain about violating enterprise rules, it is 👍 from me.

@johnstcn
Copy link
MemberAuthor

Also smoke-tested that:

  • Workspace builds OK
  • Health page loads and renders OK in the UI

Copy link
Member

@mafredrimafredri left a comment

Choose a reason for hiding this comment

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

Except for the removal of recover I flagged, LGTM!

"tailscale.com/net/netcheck"
"tailscale.com/tailcfg"

"github.com/coder/coder/v2/coderd/healthcheck/health"
Copy link
Member

Choose a reason for hiding this comment

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

I wonder if this also should be a part of codersdk. 🤔

Copy link
MemberAuthor

Choose a reason for hiding this comment

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

Yeah, I started doing that but then started to realize how big this PR would be 😅
I can open a new PR for this, but it's not a real blocker for now.

mafredri reacted with thumbs up emoji
Comment on lines +31 to +37
baseDirs = [...]string{"./codersdk"}
// externalTypes are types that are not in the baseDirs, but we want to
// support. These are usually types that are used in the baseDirs.
// Do not include things like "Database", as that would break the idea
// of splitting db and api types.
// Only include dirs that are client facing packages.
externalTypeDirs = [...]string{"./cli/clibase", "./coderd/healthcheck/health", "./coderd/healthcheck/derphealth"}
externalTypeDirs = [...]string{"./cli/clibase", "./coderd/healthcheck/health"}
Copy link
MemberAuthor

Choose a reason for hiding this comment

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

review: no longer need to generatecoderd/healthcheck andcoderd/healthcheck/derphealth.

@johnstcnjohnstcn merged commit2cb9bfd intomainFeb 23, 2024
@johnstcnjohnstcn deleted the cj/healthcheck-codersdk-refactor branchFebruary 23, 2024 13:13
@github-actionsgithub-actionsbot locked and limited conversation to collaboratorsFeb 23, 2024
Sign up for freeto subscribe to this conversation on GitHub. Already have an account?Sign in.
Reviewers

@mafredrimafredrimafredri approved these changes

@BrunoQuaresmaBrunoQuaresmaBrunoQuaresma 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.

4 participants
@johnstcn@mafredri@BrunoQuaresma@mtojek

[8]ページ先頭

©2009-2025 Movatter.jp