Skip to content

🐛 [BUG] - flaky catalog E2E test #1689

@mikolajkucinski

Description

@mikolajkucinski

Priority

(Low) Something is a little off

Description

Description

The Catalog E2E tests are flaky.

Root cause:

The catalog controller returns lifecycle.Success before flux resources (ExternalArtifact, Kustomization) are fully ready. The setStatus() conditioner runs afterward and correctly sets Ready=False, but it cannot trigger a requeue since EnsureCreated() already returned. The controller then waits for the next scheduled reconcile instead of retrying promptly. Additionally, redundant status updates in setStatus() trigger watch events that can interfere with the reconciliation timing.

Reproduction steps

for i in {1..20}; do
  echo "=== Run $i/20 ==="
  SCENARIO=catalog make e2e-local 2>&1 | tail -5
done

Manifests

Screenshots

Metadata

Metadata

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions