-
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
chore(sdk): use click for kfp components commands #7559
chore(sdk): use click for kfp components commands #7559
Conversation
Skipping CI for Draft Pull Request. |
/test all |
/hold - Merge after #7558. |
/hold -- Merge after #7558. |
/retest |
/test all |
/retest |
sdk/python/kfp/cli/__main__.py
Outdated
|
||
import click | ||
from kfp.cli import (cli, components, diagnose_me_cli, experiment, pipeline, | ||
recurring_run, run) |
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.
nit: break this up into multi-lines?
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, done in #7558.
sdk/python/kfp/cli/cli.py
Outdated
@@ -58,25 +46,11 @@ def cli(ctx: click.Context, endpoint: str, iap_client_id: str, namespace: str, | |||
Feature stage: | |||
[Alpha](https://github.com/kubeflow/pipelines/blob/07328e5094ac2981d3059314cc848fbb71437a76/docs/release/feature-stages.md#alpha) | |||
""" | |||
if ctx.invoked_subcommand in _NO_CLIENT_COMMANDS: | |||
NO_CLIENT_COMMANDS = ['diagnose_me', 'components'] |
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.
nit: (optional) missing components
from this list was causing a bug in the past, we may consider adding a UT to ensure we don't miss updating this list when applicable--like a new command being added which should be in this list.
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.
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.
sdk/python/kfp/cli/recurring_run.py
Outdated
@@ -89,7 +89,6 @@ def create(ctx: click.Context, | |||
end_time: Optional[str] = None, | |||
interval_second: Optional[int] = None, | |||
max_concurrency: Optional[int] = None, | |||
params: Optional[dict] = None, |
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.
Looks like this was never used, but args
is? I wonder if we're consistent on using params
vs. args
.
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 think that's right.
Are you referring to consistency between the CLI argument names and the Client parameter names? If so, we definitely aren't consistent everywhere. As a final step in the V2 CLI migration, I'm going to see what can be done to remedy this in a backward compatible way.
2b193aa
to
093d3d6
Compare
/retest |
1 similar comment
/retest |
25d1f60
to
286cb1d
Compare
5edca7b
to
a9ba136
Compare
a9ba136
to
48a2aad
Compare
@connor-mccarthy: The following test failed, say
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. I understand the commands that are listed here. |
/lgtm Thanks! |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: chensun 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 |
Description of your changes:
Uses
click
instead oftyper
for thekfp components
commands.Checklist:
repository.