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(test): ensure workflow has completed before check its phase. Fixes #12906 #12927

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

Conversation

AlbeeSo
Copy link
Contributor

@AlbeeSo AlbeeSo commented Apr 11, 2024

Fixes #12906

Motivation

TestSignaled and TestSignaledContainerSet failed sometimes as check phase of a workflow before it is completed.

Modifications

Use fixtures.ToBeCompleted to ensure workflow has completed.

Verification

Signed-off-by: AlbeeSo <suyashi1321@163.com>
Copy link
Member

@shuangkun shuangkun left a comment

Choose a reason for hiding this comment

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

Thanks, LGTM

@shuangkun shuangkun self-assigned this Apr 11, 2024
@agilgur5 agilgur5 added the area/build Build or GithubAction/CI issues label Apr 18, 2024
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.

Verification

Are you sure this fixes the tests? Did you test the E2Es extensively with no failures?

In particular, this change is similar to the default, see in-line comment below

@@ -141,7 +141,7 @@ func (s *SignalsSuite) TestSignaled() {
Workflow("@testdata/signaled-workflow.yaml").
When().
SubmitWorkflow().
WaitForWorkflow().
WaitForWorkflow(fixtures.ToBeCompleted).
Copy link
Member

Choose a reason for hiding this comment

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

the default is ToBeDone, which is a subset of ToBeCompleted which should be equivalent in this case, so I wouldn't think this would change anything

@agilgur5 agilgur5 added type/tech-debt problem/more information needed Not enough information has been provide to diagnose this issue. labels Apr 18, 2024
Copy link
Contributor

github-actions bot commented May 7, 2024

This PR has been automatically marked as stale because it has not had recent activity and needs further changes. It will be closed if no further activity occurs.

@github-actions github-actions bot added the problem/stale This has not had a response in some time label May 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/build Build or GithubAction/CI issues problem/more information needed Not enough information has been provide to diagnose this issue. problem/stale This has not had a response in some time type/tech-debt
Projects
None yet
Development

Successfully merging this pull request may close these issues.

TestSignaledContainerSet fail sometimes (flakey test)
3 participants