-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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(sdk): add noun aliasing to cli #7569
feat(sdk): add noun aliasing to cli #7569
Conversation
Skipping CI for Draft Pull Request. |
/test all |
cb34421
to
6ab2469
Compare
/test all |
6ab2469
to
5ddb6b5
Compare
/test all |
5ddb6b5
to
1a06bf6
Compare
efc4c8e
to
082d15f
Compare
/test all |
3e51034
to
4842b3d
Compare
/test all |
4842b3d
to
18d41c0
Compare
/test all |
/retest |
1 similar comment
/retest |
18d41c0
to
0e1abcf
Compare
231294c
to
b76ceec
Compare
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
Thanks!
sdk/python/kfp/cli/cli_test.py
Outdated
|
||
from click import testing | ||
|
||
# Docker is an optional install, but we need the import to succeed for tests, |
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.
In that case, docker
should be test dependency, maybe add it to requirements-test.txt? WDYT?
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.
Good idea. I did two things:
- I made the intent of the mock more clear with b5cee1c.
- I added
docker
(andmock
, which had a TODO note) to therequirements-test.txt
file with
c1700b4. I chose not to pin the versions because we don't pin the versions in the other places these packages are/were listed (presubmit-tests-sdk.sh
formock
andsetup.py
fordocker
.)
63726ef
to
c1700b4
Compare
/lgtm Great work! |
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: ji-yaqi The full list of commands accepted by this bot can be found here.
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
* allow both singular and plural versions of nouns * use command table for client creation * cleanup * simplify docker mock * add docker to test requirements; clean up existing requirements
* allow both singular and plural versions of nouns * use command table for client creation * cleanup * simplify docker mock * add docker to test requirements; clean up existing requirements
Description of your changes:
Aliases all commands to their plurals also. E.g.,
kfp run
andkfp runs
both work.Checklist:
repository.