-
Notifications
You must be signed in to change notification settings - Fork 797
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
feat: Allow user to handle NaN result in Analysis #977
Conversation
Codecov Report
@@ Coverage Diff @@
## master #977 +/- ##
==========================================
- Coverage 81.35% 81.26% -0.09%
==========================================
Files 100 100
Lines 8837 8859 +22
==========================================
+ Hits 7189 7199 +10
- Misses 1180 1186 +6
- Partials 468 474 +6
Continue to review full report at Codecov.
|
Signed-off-by: khhirani <kareena.hirani@gmail.com>
Signed-off-by: khhirani <kareena.hirani@gmail.com>
Signed-off-by: khhirani <kareena.hirani@gmail.com>
Signed-off-by: khhirani <kareena.hirani@gmail.com>
Signed-off-by: khhirani <kareena.hirani@gmail.com>
Kudos, SonarCloud Quality Gate passed! 0 Bugs No Coverage information |
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.
Conditional approval with improved docs
@@ -643,3 +643,112 @@ spec: | |||
value: "Bearer {{ args.api-token }}" | |||
``` | |||
|
|||
## Handling Metric Results - NaN and Infinity | |||
Metric providers can sometimes return values of NaN (not a number) and infinity. Users can edit the `successCondition` and `failureCondition` fields |
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 think we should mention the functions in the doc wording. Can you explain the fact that we provide two math functions isNaN
and isInf
as a convenience to allow users to customize the handling of it and what they return (it may not be obvious to everyone). Also note that if not handled, a NaN
result could result in Failed measurements.
Also, please add:
!!! important
available since v1.0
Closes #459