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

SDK - Refactoring - Reduced the usage of dsl.Pipeline context #2034

Conversation

Ark-kun
Copy link
Contributor

@Ark-kun Ark-kun commented Sep 4, 2019

This class is private and should only be used by the compiler.
Also reduced the unnecessary explicit usage of PipelineParam by the end users.
This PR is pure refactoring. Some changes are whitespace/indentation-only.


This change is Reviewable

Also reduced the unnecessary explicit usage of PipelineParam bu the end users
@@ -153,6 +154,7 @@ def _extract_component_metadata(func):
arg_type = None
arg_default = arg_defaults[arg] if arg in arg_defaults else None
if isinstance(arg_default, PipelineParam):
warnings.warn('Explicit creation of `kfp.dsl.PipelineParam`s by the users is deprecated. The users should define the parameter type and default values using standard pythonic constructs: def my_func(a: int = 1, b: str = "default"):')

Choose a reason for hiding this comment

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

Shall we provide a way to suppress this warning, like a flag --verbose, or it needs to go out anyway?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I'm not sure we need a way to disable it since the pipeline definitions did not need PipelineParams since the first public release and it's very easy to fix the issue (and make the pipeline function signature much smaller and nicer in the process).

Copy link
Member

@elikatsis elikatsis left a comment

Choose a reason for hiding this comment

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

/lgtm

@Ark-kun
Copy link
Contributor Author

Ark-kun commented Sep 5, 2019

@numerology Can you re-LGTM please? I had to fix merge conflict.

@numerology
Copy link

/lgtm

@Ark-kun
Copy link
Contributor Author

Ark-kun commented Sep 5, 2019

/approve

@k8s-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: Ark-kun

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

@k8s-ci-robot k8s-ci-robot merged commit 301186c into kubeflow:master Sep 5, 2019
@Ark-kun Ark-kun deleted the SDK---Refactoring---Reduced-the-usage-of-dsl.Pipeline-context branch September 5, 2019 21:25
magdalenakuhn17 pushed a commit to magdalenakuhn17/pipelines that referenced this pull request Oct 22, 2023
* add mlflow support

Signed-off-by: Suresh Nakkeran <suresh.n@ideas2it.com>

* added e2e test for lightgbm, mlflow models with mlserver

Signed-off-by: Suresh Nakkeran <suresh.n@ideas2it.com>
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.

5 participants