-
Notifications
You must be signed in to change notification settings - Fork 453
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
[GSOC] added Unknown distribution and convertDistribution in suggestion client #2403
[GSOC] added Unknown distribution and convertDistribution in suggestion client #2403
Conversation
added unit tests Signed-off-by: Shashank Mittal <[email protected]>
a3e6c72
to
3a3540e
Compare
|
||
for _, tc := range tcs { | ||
actualFeasibleSpace := convertFeasibleSpace(tc.inFeasibleSpace) | ||
if !compareFeasibleSpaces(actualFeasibleSpace, tc.expectedFeasibleSpace) { |
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.
Instead of this custom function, could you use the https://github.com/google/go-cmp
?
You can find some guidance for developing here: https://github.com/kubeflow/katib/blob/master/docs/developer-guide.md#go-development
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, removed the helper function and used cmp.Diff
instead.
expectedFeasibleSpace *suggestionapi.FeasibleSpace | ||
testDescription string | ||
}{ | ||
{ |
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 don't think that all 3 cases should be useful.
So, could you add only 2 cases, "distribution is Distribution_DISTRIBUTION_UNKNOWN", "distribution is not Distribution_DISTRIBUTION_UNKNOWN"?
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.
Yes, removed the extra test cases.
Signed-off-by: Shashank Mittal <[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.
Thank you!
/lgtm
/approve
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: tenzen-y The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
What this PR does / why we need it:
Which issue(s) this PR fixes (optional, in
fixes #<issue number>(, fixes #<issue_number>, ...)
format, will close the issue(s) when PR gets merged):Fixes #2374
Checklist: