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: patch report outputs completed if task result not exists. #12748

Merged
merged 2 commits into from
Mar 6, 2024

Conversation

shuangkun
Copy link
Member

@shuangkun shuangkun commented Mar 6, 2024

Make sure FinalizeOutput executes, let taskresult Completed if taskresult not exists.

Motivation

When executor didn't have create workflowtaskresult permission.
The workflow won't completed even if all pods completed. Bucause the FinalizeOutput did patch taskresults and annotations.

Modifications

patch report outputs completed if task result not exists.

Verification

Signed-off-by: shuangkun <tsk2013uestc@163.com>
@shuangkun shuangkun changed the title fix: patch report outputs if task result not exist. fix: patch report outputs if task result not exists. Mar 6, 2024
@shuangkun shuangkun changed the title fix: patch report outputs if task result not exists. fix: patch report outputs completed if task result not exists. Mar 6, 2024
Copy link
Member

@Joibel Joibel left a comment

Choose a reason for hiding this comment

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

Ah, this looks like a good catch. LGTM

@shuangkun
Copy link
Member Author

Thanks!

Signed-off-by: Anton Gilgur <4970083+agilgur5@users.noreply.github.com>
@agilgur5
Copy link
Member

agilgur5 commented Mar 6, 2024

Fixed merge conflict.

Copy link
Member

@agilgur5 agilgur5 left a comment

Choose a reason for hiding this comment

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

This is an edge case of partial permissions, but makes sense to me

@agilgur5 agilgur5 enabled auto-merge (squash) March 6, 2024 21:51
@agilgur5 agilgur5 merged commit 0a75598 into argoproj:main Mar 6, 2024
27 checks passed
@agilgur5 agilgur5 added this to the v3.5.x patches milestone Apr 19, 2024
agilgur5 pushed a commit that referenced this pull request Apr 19, 2024
Co-authored-by: Anton Gilgur <agilgur5@gmail.com>
Signed-off-by: shuangkun <tsk2013uestc@163.com>
(cherry picked from commit 0a75598)
@agilgur5
Copy link
Member

Backported to release-3.5 as b189afa

  • Fixed a merge conflict due to the log line below having a versioned docs link

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.

None yet

3 participants