Skip to content

Flaky Playwright spec: Incident Manager "Resolving incident & re-run pipeline" #30654

Closed

Description

@ShaileshParmar11

Description

triggerTestSuitePipelineAndWaitForSuccess (openmetadata-ui/src/main/resources/ui/playwright/utils/incidentManager.ts) polls /pipelineStatus?limit=1 and accepts whatever the latest status record is. It has no notion of which run it triggered.

Airflow queues a DAG asynchronously, so shortly after the trigger the previous run's success record is still the latest one. The helper returns immediately and the caller goes on to assert against stale results.

The first call in beforeAll is safe (no prior status record exists, so the poll actually waits). Every re-run call site is exposed.

Evidence

From the trace of build https://github.com/open-metadata/OpenMetadata/actions/runs/30439518657:

wall clock event
10:14:43 → 10:14:45 previous DAG run 178b5ca8… → success; test-case result written 10:14:45.056 (Failed) → incident New
10:16:42 incident → Ack
10:16:49 incident → Resolved, incidentId becomes null
10:17:00 POST /ingestionPipelines/trigger/… → response body state: queued, queued_at 10:17:00.04
10:17:02 one GET /pipelineStatus?limit=1 returns runId 178b5ca8…, success, timestamp 10:14:43 — the old run. Poll exits.
~10:17:08 assertion runs; API still reports testCaseResult.timestamp = 10:14:45.056 and incidentStatus = Resolved

The whole "re-run" step took ~8s — no DAG run completes that fast.

Failure

expect(locator('[data-testid="pw_test_case_…-status"]')).toContainText('New')
Received string: "Resolved"
  at utils/incidentManager.ts:47 (acknowledgeTask)
  via e2e/Features/IncidentManager.spec.ts:881

Because the describe is mode: 'serial', the failure also skipped the 5 following tests in the file.

Expected

The helper should wait for the run it triggered — capture the run recorded before triggering and poll until a record with a different runId (or a later timestamp) reaches success.

Notes

  • Reproduces on Airflow-backed CI; an Argo-backed local stack does not hit the window.
  • The same helper carries two fixed 5s "deployment settling time" sleeps that can be folded into a bounded retry of the trigger request.

Activity

  1. moved this to In Progress 🏗️ in Shippingon Jul 30, 2026
  2. ShaileshParmar11 commented on Aug 18, 2026

    @ShaileshParmar11
    ContributorAuthor

    Its already done

  3. moved this from In Progress 🏗️ to Done ✅ in Shippingon Aug 18, 2026
  4. ShaileshParmar11 commented on Aug 18, 2026

    @ShaileshParmar11
    ContributorAuthor
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

No labels
No labels

Type

No type

Projects

  • Status
    Done ✅
  • Status
    Done ✅

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions