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

chore(dogfood): add validation on OOM OOD parameters#16636

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
stirby merged 1 commit intomainfromdogfood-notification-tweak
Feb 24, 2025

Conversation

stirby
Copy link
Collaborator

You can break the build by settingN < 0 orN > 100.

Copy link
Member

@matifalimatifali left a comment

Choose a reason for hiding this comment

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

This is a quick fix but shouldn't we handle this as part of the resource_monitoring?
Or by broken build you meant that it is correctly handled already we just need to make sure someone doesn't enter those out of bound values.

@dannykopping
Copy link
Contributor

This is a quick fix but shouldn't we handle this as part of the resource_monitoring? Or by broken build you meant that it is correctly handled already we just need to make sure someone doesn't enter those out of bound values.

It's handled by the provider; breaking the build in this case means hitting validation errors I would assume.

https://github.com/coder/terraform-provider-coder/blob/main/provider/agent.go#L291
https://github.com/coder/terraform-provider-coder/blob/main/provider/agent.go#L335

Side-note: it would be good to surface these validations in the FE so we don't allow form submissions with invalid data. It's quite a lift, though.

matifali and stirby reacted with thumbs up emoji

@defelmnq
Copy link
Contributor

Screenshot 2025-02-23 at 14 10 09

Yep@dannykopping - to confirm this is breaking during the build which is what I would expect. ✅

Copy link
Contributor

@defelmnqdefelmnq left a comment

Choose a reason for hiding this comment

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

LGTM

@matifali
Copy link
Member

Thanks for the explanation,@dannykopping and@defelmnq.

@stirbystirby merged commit10326b4 intomainFeb 24, 2025
30 checks passed
@stirbystirby deleted the dogfood-notification-tweak branchFebruary 24, 2025 17:03
@github-actionsgithub-actionsbot locked and limited conversation to collaboratorsFeb 24, 2025
Sign up for freeto subscribe to this conversation on GitHub. Already have an account?Sign in.
Reviewers

@matifalimatifalimatifali left review comments

@dannykoppingdannykoppingdannykopping approved these changes

@defelmnqdefelmnqdefelmnq approved these changes

Assignees

@stirbystirby

Labels
None yet
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

4 participants
@stirby@dannykopping@defelmnq@matifali

[8]ページ先頭

©2009-2025 Movatter.jp