-
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): ImporterSpec v2 #6917
Conversation
Skipping CI for Draft Pull Request. |
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.
Thanks, Yaqi!
pipeline.yaml
Outdated
@@ -0,0 +1,124 @@ | |||
apiVersion: argoproj.io/v1alpha1 |
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.
revert this file?
@@ -1,164 +0,0 @@ | |||
# Copyright 2020 The Kubeflow Authors |
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: ideally we should still keep a unit test file for this. Maybe test calling dsl.importer() with some value and then assert we got the right pipeline task object?
Given that we have the some test coverage in the compiler cli test, we could delay this a bit in a later PR.
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.
Okay, will add some tests in following PRs.
deployment_config.executors[ | ||
executor_label].container.CopyFrom( | ||
subgroup_container_spec) | ||
if hasattr(subgroup, 'container_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.
Given that we document both container_spec
and importer_spec
as class attributes (in the docstring of PipelineTask), hasattr
seems to be a bit contradictory.
How about we initialize them to None. and check if subgroup.container_spec is not None
here?
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
/approve
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 |
* importer * compiler * check diff * fix format * remove v1 node test * remove importer v2 compat test * release note * address comments
Add Importer Spec for v2.
The generated IR has the following difference with v1:
pipelineparam--dataset2
topipelinechannel--dataset2
type
toparameterType
, addingdefaultValue
etc.system.Artifact
(will investigate further)