Skip to content

fix: remove redundant WaitForWorkflow in TestInputOnMount#15982

Open
Joibel wants to merge 1 commit intoargoproj:mainfrom
Joibel:fix/remove-redundant-wait-TestInputOnMount
Open

fix: remove redundant WaitForWorkflow in TestInputOnMount#15982
Joibel wants to merge 1 commit intoargoproj:mainfrom
Joibel:fix/remove-redundant-wait-TestInputOnMount

Conversation

@Joibel
Copy link
Copy Markdown
Member

@Joibel Joibel commented Apr 17, 2026

Remove redundant WaitForWorkflow() (ToBeDone) call before WaitForWorkflow(fixtures.ToBeSucceeded) in TestInputOnMount

This test is timing out regularly in CI

TestInputOnMount called WaitForWorkflow() (ToBeDone) followed by
WaitForWorkflow(ToBeSucceeded). The first call is redundant because
ToBeSucceeded already implies the workflow reached a terminal phase,
and the framework internally detects when a workflow is done but
doesn't match the requested condition.

The redundant call wastes a full timeout cycle (90s in CI) on slow
runs. When the pod is slow to schedule — e.g. due to resource pressure
from a preceding test — the first wait burns the entire timeout before
the second wait even begins, doubling the time to failure and causing
flakiness.

Every other test in the suite (TestOutputOnMount, etc.) uses a single
WaitForWorkflow call. This aligns TestInputOnMount with that pattern.

Fixes flaky TestArtifactsSuite/TestInputOnMount.

Signed-off-by: Alan Clucas <alan@clucas.org>
@Joibel Joibel enabled auto-merge (squash) April 21, 2026 07:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant