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

Adding multiple outputs into sdk with sample #1667

Merged
merged 6 commits into from
Aug 1, 2019

Conversation

zanedurante
Copy link
Contributor

@zanedurante zanedurante commented Jul 25, 2019

Allows for build_python_component to use NamedTuples, fixing #1580.
Adds sample specifically for #1517, and for overall sample efforts #1034.


This change is Reviewable

@k8s-ci-robot
Copy link
Contributor

Hi @zanedurante. Thanks for your PR.

I'm waiting for a kubeflow member to verify that this patch is reasonable to test. If it is, they should reply with /ok-to-test on its own line. Until that is done, I will not automatically test new commits in this PR, but the usual testing commands by org members will still work. Regular contributors should join the org to skip this step.

Once the patch is verified, the new status will be reflected by the ok-to-test label.

I understand the commands that are listed here.

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.

@@ -328,11 +340,15 @@ def _generate_entrypoint(self, component_func, python_version='python3'):
for input_arg in input_args:
func_signature += input_arg + ','
func_signature += '_output_file):'
if output_is_named_tuple:
func_signature = func_signature.replace('file', 'files')
Copy link
Contributor

Choose a reason for hiding this comment

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

This might be fragile.
Let's do this:

if output_is_named_tuple:
  func_signature += '_output_files'
else:
  func_signature += '_output_file'
func_signature += '):'

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Sounds good--updated!

@Ark-kun
Copy link
Contributor

Ark-kun commented Jul 25, 2019

Thank you for your contribution. It looks really good.
We also recognize the need to merge the two ways of building python components and will be merging them soon.
Please address the comment and we'll merge it.
/lgtm

@zanedurante
Copy link
Contributor Author

zanedurante commented Jul 26, 2019

Should be ready for testing @Ark-kun.

@Ark-kun
Copy link
Contributor

Ark-kun commented Jul 26, 2019

/lgtm

@Ark-kun
Copy link
Contributor

Ark-kun commented Jul 26, 2019

/cc @gaoning777

@Ark-kun
Copy link
Contributor

Ark-kun commented Jul 26, 2019

/ok-to-test

@zanedurante
Copy link
Contributor Author

I need to update this PR with the new test and component builder commits -- marking as WIP.

@zanedurante
Copy link
Contributor Author

Should now be up to date with the changes from the previous merge

@zanedurante
Copy link
Contributor Author

@gaoning777 PR should be ready to merge.

@Ark-kun
Copy link
Contributor

Ark-kun commented Jul 30, 2019

/lgtm

@Ark-kun
Copy link
Contributor

Ark-kun commented Jul 30, 2019

Should now be up to date with the changes from the previous merge

Sorry for the merge conflict.

@zanedurante
Copy link
Contributor Author

Should now be up to date with the changes from the previous merge

Sorry for the merge conflict.

All good!

@gaoning777
Copy link
Contributor

Hi, Zane, thanks for all the efforts to resolve the merge conflicts.
I'll review it now and let's merge it today.

@k8s-ci-robot k8s-ci-robot removed the lgtm label Jul 31, 2019
@gaoning777
Copy link
Contributor

/lgtm

@k8s-ci-robot k8s-ci-robot removed the lgtm label Jul 31, 2019
@gaoning777
Copy link
Contributor

/lgtm

@gaoning777
Copy link
Contributor

/approve

@k8s-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: gaoning777

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

@zanedurante
Copy link
Contributor Author

/retest

@k8s-ci-robot k8s-ci-robot removed the lgtm label Jul 31, 2019
@zanedurante
Copy link
Contributor Author

@gaoning777 do you know what this Travis CI error means?

@Ark-kun
Copy link
Contributor

Ark-kun commented Jul 31, 2019

/lgtm

@zanedurante
Copy link
Contributor Author

/retest

@zanedurante
Copy link
Contributor Author

@gaoning777 looks ready to merge!

@k8s-ci-robot k8s-ci-robot merged commit f18b7fd into kubeflow:master Aug 1, 2019
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.

4 participants