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: remove completed taskset status before update workflow. Fixes: #12832 #12835

Merged
merged 3 commits into from Apr 2, 2024

Conversation

shuangkun
Copy link
Member

@shuangkun shuangkun commented Mar 22, 2024

remove completed taskset status before update worklfow.

Fixes #12832

Motivation

We should mark all tasksets complete before mark workflow completed.

Modifications

Verification

@shuangkun shuangkun changed the title fix(test): TestTemplateExecutor fails sometimes. Fixes: #12832 fix: remove completed taskset status before mark worklfow completed. Fixes: #12832 Mar 22, 2024
@shuangkun shuangkun marked this pull request as draft March 22, 2024 10:06
@shuangkun shuangkun changed the title fix: remove completed taskset status before mark worklfow completed. Fixes: #12832 fix: remove completed taskset status before update workflow. Fixes: #12832 Mar 22, 2024
@shuangkun shuangkun marked this pull request as ready for review March 22, 2024 10:14
@shuangkun shuangkun added area/controller Controller issues, panics area/plugins labels Mar 22, 2024
@shuangkun shuangkun force-pushed the fix/test branch 4 times, most recently from a1778a2 to 2d61748 Compare March 31, 2024 02:08
@shuangkun
Copy link
Member Author

shuangkun commented Mar 31, 2024

Can reproduce add

	if woc.wf.Status.Fulfilled() && strings.HasPrefix(woc.wf.Name, "template-executor") {
		time.Sleep(10 * time.Second)
	}

After workflow update and before removeCompletedTaskSetStatus.

But if move removeCompletedTaskSetStatus before workflow update. It won't occur.

Signed-off-by: shuangkun <tsk2013uestc@163.com>
Signed-off-by: shuangkun <tsk2013uestc@163.com>
@shuangkun shuangkun closed this Mar 31, 2024
@shuangkun shuangkun reopened this Mar 31, 2024
@shuangkun shuangkun added the prioritized-review For members of the Sustainability Effort label Apr 1, 2024
Copy link
Member

@isubasinghe isubasinghe left a comment

Choose a reason for hiding this comment

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

LGTM

@isubasinghe isubasinghe merged commit cd0c58e into argoproj:main Apr 2, 2024
49 of 51 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
…12832 (#12835)

Signed-off-by: shuangkun <tsk2013uestc@163.com>
(cherry picked from commit cd0c58e)
@agilgur5
Copy link
Member

Backported cleanly into release-3.5 as 8c9a857

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/controller Controller issues, panics area/plugins prioritized-review For members of the Sustainability Effort
Projects
None yet
Development

Successfully merging this pull request may close these issues.

TestTemplateExecutor fails sometimes (flakey test)
4 participants