-
Notifications
You must be signed in to change notification settings - Fork 362
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
fix: Revert to get_checkpoints.sql call to enable NaN & Infinity values in searcher metric #9440
Conversation
✅ Deploy Preview for determined-ui ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #9440 +/- ##
=======================================
Coverage 49.00% 49.00%
=======================================
Files 1234 1234
Lines 159669 159671 +2
Branches 2779 2779
=======================================
+ Hits 78240 78246 +6
+ Misses 81254 81250 -4
Partials 175 175
Flags with carried forward coverage won't be shown. Click here to find out more.
|
}) | ||
require.NoError(t, err) | ||
|
||
_, err = api.GetCheckpoint(ctx, &apiv1.GetCheckpointRequest{ |
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.
small nit: would be good to verify the checkpoint too
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.
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.
LGTM!
ckpt, err := internaldb.GetCheckpoint(ctx, req.CheckpointUuid) | ||
if err != nil { | ||
return resp, errors.Wrapf(err, "error fetching checkpoint %s from database", req.CheckpointUuid) | ||
if err := a.m.db.QueryProto( |
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 comment here saying not to use Bun?
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.
Added. Thanks!
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.
🎉
Ticket
ET-156
Description
Bun unmarshalling of JSON does not support
NaN
,Infinity
&-Infinity
valuesTest Plan
Unit tests should pass.
Create checkpoints with a
NaN
,Infinity
&-Infinity
values, similar to the ones in the added test and callGetCheckpoint
. It should return with the correct values in bothsearcher_metric
&validation_metrics
.Checklist
docs/release-notes/
.See Release Note for details.