-
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(backend): fixes upload pipeline version function. Fixes #10825 #10826
base: master
Are you sure you want to change the base?
Conversation
…line_name Signed-off-by: rchojn <rafalchojnacki0502@gmail.com>
Hi @rchojn. 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-sigs/prow repository. |
/ok-to-test |
/retest |
@hbelmiro is there a way to see a detailed log of this error? |
Signed-off-by: rchojn <rafalchojnacki0502@gmail.com>
Signed-off-by: rchojn <rafalchojnacki0502@gmail.com>
Signed-off-by: rchojn <rafalchojnacki0502@gmail.com>
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: The full list of commands accepted by this bot can be found here.
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
sdk/python/kfp/client/client.py
Outdated
@@ -1444,8 +1444,7 @@ def upload_pipeline_version( | |||
``V2beta1PipelineVersion`` object. | |||
""" | |||
|
|||
if all([pipeline_id, pipeline_name |
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.
The all checks ensures that pipeline_id
and pipeline_name
aren't provided at the same time--either you upload a brand new pipeline so you need to provide a name or you upload to an existing pipeline as a new version so you need to specify the id.
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.
@chensun, thanks for the clarification. Here's how the pipeline lifecycle works from my perspective:
-
I upload the pipeline with a specific name using the command:
kfp pipeline create -p pipeline123 package.yaml
-
After releasing new code, I want to upload a new version of the pipeline. To do this, I follow these steps:
a) I attempt to create a new version using:
kfp pipeline create-version -n pipeline123 -v 2024-05-23 package.yaml
However, this shows the error:
Either pipeline_id or pipeline_name is required.
This is misleading because thepipeline_name
was provided. Why is thepipeline_name
option not available here? Isn't this a potential issue or at least something that needs clarification?b) I then use the command:
kfp pipeline create-version -p 20540d8f-03f0-4ec2-97d1-3b79d341d713 -v 2024-05-23 package.yaml
This works as expected. So, it appears I need to store the
pipeline_id
or obtain it dynamically before deploying the new pipeline version. It seems I can't rely solely on thepipeline_name
.
Could you please provide some clarification on why the pipeline_name
option isn't supported for creating a new version and if there's a recommended way to handle this?
Thank you.
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.
@chensun so I believe, there is no need to fetch additionally pipeline_id
in create_version
command. Because of this mechanism, we get both pipeline_id
and pipeline_name
which then are passed to upload_pipeline_version
and it ended up with mentioned error
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.
@connor-mccarthy could you please have a look?
Signed-off-by: rchojn <rafalchojnacki0502@gmail.com>
/retest-required |
@rchojn: The following tests 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-sigs/prow repository. I understand the commands that are listed here. |
Introduce fix to
upload_pipeline_version
function - removed unnecessaryall
condition.Checklist: