-
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
fix(sdk): fixes the specified 'mlpipeline-ui-metadata','mlpipeline-metrics' path is overrided by default value #6796
fix(sdk): fixes the specified 'mlpipeline-ui-metadata','mlpipeline-metrics' path is overrided by default value #6796
Conversation
the 'mlpipeline-ui-metadata','mlpipeline-metrics' path is replaced by the default path as '_components._generate_output_file_name(output.name)'
Thanks for your pull request. It looks like this may be your first contribution to a Google open source project (if not, look below for help). Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA). 📝 Please visit https://cla.developers.google.com/ to sign. Once you've signed (or fixed any issues), please reply here with What to do if you already signed the CLAIndividual signers
Corporate signers
ℹ️ Googlers: Go here for more info. |
Hi @dinimicky. 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 Once the patch is verified, the new status will be reflected by the 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. |
Thanks for your pull request. It looks like this may be your first contribution to a Google open source project (if not, look below for help). Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA). 📝 Please visit https://cla.developers.google.com/ to sign. Once you've signed (or fixed any issues), please reply here with What to do if you already signed the CLAIndividual signers
Corporate signers
ℹ️ Googlers: Go here for more info. |
@googlebot I signed it! |
We found a Contributor License Agreement for you (the sender of this pull request), but were unable to find agreements for all the commit author(s) or Co-authors. If you authored these, maybe you used a different email address in the git commits than was used to sign the CLA (login here to double check)? If these were authored by someone else, then they will need to sign a CLA as well, and confirm that they're okay with these being contributed to Google. ℹ️ Googlers: Go here for more info. |
@googlebot I fix it. |
/ok-to-test |
@dinimicky Thank you for the fix. Can you please add a release note for this following this format: Line 18 in 4360652
/lgtm |
/retest |
/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 |
I checked the sample tests log: https://oss-prow.knative.dev/view/gs/oss-prow/pr-logs/pull/kubeflow_pipelines/6796/kubeflow-pipelines-samples-v2/1453537694247292928 Three sample tests reported failure state, but actually all three pipeline succeeded. Going to ignore the test and merge as-is. Adding a data point for #6815 |
/retest since head has changed. |
@chensun: The
Use
In response to this:
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. |
/retest |
@dinimicky: 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. |
Sample test failures are irrelevant In the last run, two random tests failed with
Data point for #6815 |
Description of your changes:
the 'mlpipeline-ui-metadata','mlpipeline-metrics' path is replaced by the default path as '_components._generate_output_file_name(output.name)'
When the user set the path of 'mlpipeline-ui-metadata','mlpipeline-metrics' in fileOutputs,
pipelines/sdk/python/kfp/dsl/_container_op.py
Lines 1312 to 1322 in 98677b2
the
ContainerOp.__init__
will move the path of 'mlpipeline-ui-metadata','mlpipeline-metrics' to output_artifact_paths and is deleted in file_outputs.but in the 'set_metadata' function, as the 'mlpipeline-ui-metadata','mlpipeline-metrics' still exist in the _metadata.outputs but not in self.file_outputs as it has been deleted in
ContainerOp.__init__
, the path will be rewritten into the file_outputs by the function_components._generate_output_file_name(output.name)
pipelines/sdk/python/kfp/dsl/_container_op.py
Lines 1442 to 1455 in 98677b2
And then the new path will be written into the output_artifact_paths in the next step.
Finally the user specified path of 'mlpipeline-ui-metadata','mlpipeline-metrics' is overrided.
So in the first step, it should check if the output name has the path definition in both the file_outputs and the output_artifact_paths.