-
Notifications
You must be signed in to change notification settings - Fork 840
Adding parser for Xfunctions in Rule validation #7111
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
base: master
Are you sure you want to change the base?
Adding parser for Xfunctions in Rule validation #7111
Conversation
23387d9 to
ea89998
Compare
Signed-off-by: Paurush Garg <[email protected]>
ea89998 to
23d5cf9
Compare
Signed-off-by: Paurush Garg <[email protected]>
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.
We should try to reuse the same manager_test.go file instead of creating a new file for this
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.
thanks. updated.
| } | ||
| } | ||
|
|
||
| func TestValidateRuleGroup_AcceptsStandardFunctions(t *testing.T) { |
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.
Can we add a test case that this validation function successfully failed an invalid rule group for some other issues? I want to make sure that the error is propagated correctly
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.
thanks. added.
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.
Thanks. I have updated to bugfix.
Signed-off-by: Paurush Garg <[email protected]>
CHANGELOG.md
Outdated
| * [ENHANCEMENT] Distributor: Add a label references validation for remote write v2 request. #7074 | ||
| * [ENHANCEMENT] Distributor: Add count, spans, and buckets validations for native histogram. #7072 | ||
| * [BUGFIX] Ring: Change DynamoDB KV to retry indefinitely for WatchKey. #7088 | ||
| * [FEATURE] Ruler: Add XFunctions validation support. #7111 |
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.
Could you move change log?
The changelog order is:
* `[CHANGE]`
* `[FEATURE]`
* `[ENHANCEMENT]`
* `[BUGFIX]`
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 would call it a bugfix instead of a feature. Ruler xfunction support was added in last release but it doesn't work because of this failure
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.
Yeah, it seems a bug rather than feature.
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.
Thanks. I have updated to bugfix.
Signed-off-by: Paurush Garg <[email protected]>
What this PR does:
Xfunction parsing support in rules validation.
Which issue(s) this PR fixes:
Fixes #
Checklist
CHANGELOG.mdupdated - the order of entries should be[CHANGE],[FEATURE],[ENHANCEMENT],[BUGFIX]