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

fix(backend) fix run retry for argo #11585

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

ntny
Copy link
Contributor

@ntny ntny commented Feb 4, 2025

Fix Argo Workflow v3.4.16 Retry

Argo Workflow upgrade to v3.4.16 broke the Run Retry

Long story short: there is deviation between retry specs generated via Argo v3.4.16 and kfp generated retry spec.
Argo still use node id instead of node name here. As a result incompatibility of specs
I attached according files:

Details are below:
From upgrade descriotion: Argo 3.4.16 upgrade introduces a breaking change with inconsistent node.ID vs
node.Name

However as you can see by link v3.4.16 of Argo still operates nodes by ID during retry.

Also i added the missing logic(fix node.Children/node.OutboundNodes) from the Argo Workflow retry

Using the node name instead of the ID caused Argo to fail to identify the task that needed to be retried. As a result, it would restart the entire workflow from the beginning, attempt to recreate the pod for the -system-dag-driver-, fail at this step (since such a pod already existed), It makes the workflow stuck in 'Running'.

according logs from the argo workflow-controller
level=info msg="Failed pod debug-component-pipeline-d6wjn.root-driver (debug-component-pipeline-d6wjn-system-dag-driver-2907082658) creation: already exists" namespace=arpechenin workflow=debug-component-pipeline-d6wjn

This MR is based on the assumption that when using KFP 2.3.0 & Argo 3.4.16, retries do not work on any installation, not just for some users. It has fixed Run retry on my installation.

close #11329

@google-oss-prow google-oss-prow bot requested a review from hbelmiro February 4, 2025 21:01
Copy link

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by:
Once this PR has been reviewed and has the lgtm label, please assign chensun for approval. For more information see the Kubernetes Code Review Process.

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

Copy link

Hi @ntny. 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.

Copy link

@ntny: Cannot trigger testing until a trusted user reviews the PR and leaves an /ok-to-test message.

In response to this:

/retest

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.

@ntny ntny force-pushed the fix-argo-retry branch 2 times, most recently from fc5a33c to 07c24c2 Compare February 5, 2025 12:20
@ntny ntny changed the title fix(backend) fix run retry for argo workflow v3.4.16 fix(backend) fix run retry for argo Feb 6, 2025
@ntny
Copy link
Contributor Author

ntny commented Feb 6, 2025

/retest

Copy link

@ntny: Cannot trigger testing until a trusted user reviews the PR and leaves an /ok-to-test message.

In response to this:

/retest

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.

@juliusvonkohout
Copy link
Member

/ok-to-test

CC @rimolive @varodrig @HumairAK @hbelmiro @kubeflow/release-team

@juliusvonkohout
Copy link
Member

Related to kubeflow/manifests#2952

@juliusvonkohout
Copy link
Member

/retest

@juliusvonkohout
Copy link
Member

@kubeflow/release-team tracked as Kubeflow regression and for Kubeflow 1.10 in kubeflow/manifests#2952

@juliusvonkohout
Copy link
Member

@HumairAK @rimolive

Copy link
Contributor

@hbelmiro hbelmiro left a comment

Choose a reason for hiding this comment

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

/lgtm

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.

[backend] Retry not working in 2.3.0
3 participants