Skip to content
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

Merged

Conversation

connor-mccarthy
Copy link
Member

@connor-mccarthy connor-mccarthy commented Apr 15, 2022

Description of your changes:
Aliases all commands to their plurals also. E.g., kfp run and kfp runs both work.

Checklist:

@google-oss-prow
Copy link

Skipping CI for Draft Pull Request.
If you want CI signal for your change, please convert it to an actual PR.
You can still manually trigger a test run with /test all

@connor-mccarthy
Copy link
Member Author

/test all

@connor-mccarthy connor-mccarthy force-pushed the alias-command-plurality branch from cb34421 to 6ab2469 Compare April 18, 2022 17:17
@connor-mccarthy
Copy link
Member Author

/test all

@connor-mccarthy connor-mccarthy force-pushed the alias-command-plurality branch from 6ab2469 to 5ddb6b5 Compare April 18, 2022 22:50
@connor-mccarthy
Copy link
Member Author

/test all

@connor-mccarthy connor-mccarthy force-pushed the alias-command-plurality branch from 5ddb6b5 to 1a06bf6 Compare April 18, 2022 23:21
@google-oss-prow google-oss-prow bot added size/XL and removed size/L labels Apr 18, 2022
@connor-mccarthy connor-mccarthy force-pushed the alias-command-plurality branch 2 times, most recently from efc4c8e to 082d15f Compare April 18, 2022 23:28
@connor-mccarthy
Copy link
Member Author

/test all

@connor-mccarthy connor-mccarthy force-pushed the alias-command-plurality branch 2 times, most recently from 3e51034 to 4842b3d Compare April 19, 2022 21:55
@connor-mccarthy
Copy link
Member Author

/test all

@connor-mccarthy connor-mccarthy force-pushed the alias-command-plurality branch from 4842b3d to 18d41c0 Compare April 19, 2022 22:16
@connor-mccarthy
Copy link
Member Author

/test all

@connor-mccarthy connor-mccarthy marked this pull request as ready for review April 19, 2022 23:01
@connor-mccarthy
Copy link
Member Author

/retest

1 similar comment
@connor-mccarthy
Copy link
Member Author

/retest

@connor-mccarthy connor-mccarthy force-pushed the alias-command-plurality branch from 18d41c0 to 0e1abcf Compare April 21, 2022 02:31
@connor-mccarthy connor-mccarthy force-pushed the alias-command-plurality branch from 231294c to b76ceec Compare April 21, 2022 18:46
Copy link
Member

@chensun chensun left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

/lgtm

Thanks!


from click import testing

# Docker is an optional install, but we need the import to succeed for tests,
Copy link
Member

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?

Copy link
Member Author

@connor-mccarthy connor-mccarthy Apr 22, 2022

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:

  1. I made the intent of the mock more clear with b5cee1c.
  2. I added docker (and mock, which had a TODO note) to the requirements-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 for mock and setup.py for docker.)

@ji-yaqi
Copy link
Contributor

ji-yaqi commented Apr 25, 2022

/lgtm
/approve

Great work!

@google-oss-prow
Copy link

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by: ji-yaqi
To complete the pull request process, please ask for approval from chensun after the PR has been reviewed.

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 /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@connor-mccarthy connor-mccarthy merged commit e077d01 into kubeflow:master Apr 25, 2022
jagadeeshi2i pushed a commit to jagadeeshi2i/pipelines that referenced this pull request May 11, 2022
* 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
abaland pushed a commit to abaland/pipelines that referenced this pull request May 29, 2022
* 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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants