-
Notifications
You must be signed in to change notification settings - Fork 700
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
add unit tests for tensorflow controller #1511
Conversation
Pull Request Test Coverage Report for Build 1658954206
💛 - Coveralls |
FYI you can start the PR as draft pull request so others won't get notifications every time you push a new commit. See https://github.blog/2019-02-14-introducing-draft-pull-requests/. |
f50d1a0
to
f749e74
Compare
add amend function add test exit code add scale up and down cases add norm test fix test exit code case fix import order fix exit code issue
This is amazing! Thanks for driving the efforts! |
|
||
v1 "k8s.io/api/core/v1" | ||
commonv1 "github.com/kubeflow/common/pkg/apis/common/v1" | ||
. "github.com/onsi/gomega" |
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.
any reason to import gomega this way?
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.
to be consistent with the tutorial of kubebuilder: https://book.kubebuilder.io/cronjob-tutorial/writing-tests.html
fix test exit code issue fix pod spec
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.
This is great to have! Thanks!
@Jeffwan Please take a look at the updated commit. |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: Jeffwan, terrytangyuan, zw0610 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 |
/lgtm |
What this PR does / why we need it:
This pr convert the unit test for previous tf-operator (tag: v1.1.0) to tf-controller in training-operator.
Which issue(s) this PR fixes (optional, in
Fixes #<issue number>, #<issue number>, ...
format, will close the issue(s) when PR gets merged):Fixes #1497
Checklist:
- [ ] TestCleanupTFJob(removed in v1.1.0)- [ ] TestConvertTFJobToUnstructured(no longer appliable)