Skip to content

Fixes #30626: stabilize flaky Playwright specs - #30627

Closed
harsh-vador wants to merge 5 commits into
mainfrom
fix-flaky-playwright-specs
Closed

harsh-vador wants to merge 5 commits into
mainfrom
fix-flaky-playwright-specs

Conversation

@harsh-vador

@harsh-vador harsh-vador commented Jul 29, 2026 •

Copy link
Copy Markdown
Contributor

Describe your changes:

Fixes #30626

I stabilized two flaky Playwright specs from the nightly run by tightening search-response matching in the Explore aggregation test and by navigating Online Users tests directly to the page under test with explicit API/status waits.

Type of change:

  • Bug fix

High-level design:

N/A - small change.

Tests:

Use cases covered

  • Explore aggregation counts are validated against the matching customers search responses instead of stale generic search responses.
  • Admin Online Users page assertions wait for the page route, /api/v1/users/online, loader completion, and rendered table state.

Unit tests

  • Not applicable - Playwright-only test stabilization.

Backend integration tests

  • Not applicable (no backend API changes).

Ingestion integration tests

  • Not applicable (no ingestion changes).

Playwright (UI) tests

  • Updated existing Playwright E2E tests.
  • Files updated:
    • openmetadata-ui/src/main/resources/ui/playwright/e2e/Flow/ExploreAggregationCountsMatching.spec.ts
    • openmetadata-ui/src/main/resources/ui/playwright/e2e/Features/OnlineUsers.spec.ts

Manual testing performed

  • Ran organize-imports-cli and Prettier on both changed specs.
  • Ran git diff --check.
  • Could not run yarn lint:playwright because the local Yarn setup reports this workspace package is not present in the lockfile and yarn install --immutable would modify the lockfile.

UI screen recording / screenshots:

Not applicable - no UI changes.

Checklist:

  • I have read the CONTRIBUTING document.
  • My PR title is Fixes <issue-number>: <short explanation>
  • My PR is linked to a GitHub issue via Fixes #<issue-number> above.
  • I have commented on my code, particularly in hard-to-understand areas.
  • For JSON Schema changes: I updated the migration scripts or explained why it is not needed.
  • For UI changes: I attached a screen recording and/or screenshots above.
  • I have added tests (unit / integration / Playwright as applicable) and listed them above.
  • I have added a test that covers the exact scenario we are fixing. For complex issues, comment the issue number in the test for future reference.

Greptile Summary

Stabilizes Playwright coverage by:

  • Matching Explore search responses to the customers query and expected pagination parameters.
  • Navigating Online Users tests directly to the target route with explicit API, loader, and table waits.
  • Reusing a synchronized owner-selector helper in the Explore overview page object.

Confidence Score: 5/5

The PR appears safe to merge.

No blocking failure remains, and the previously reported initial-response timeout is fixed by accepting the single results response regardless of its auto-selected index.

Important Files Changed

Filename Overview
openmetadata-ui/src/main/resources/ui/playwright/e2e/Features/OnlineUsers.spec.ts Adds deterministic direct navigation and explicit response and rendered-state checks for Online Users tests.
openmetadata-ui/src/main/resources/ui/playwright/e2e/Flow/ExploreAggregationCountsMatching.spec.ts Tightens search-response matching while correctly accepting the single results request for any auto-selected Explore index.
openmetadata-ui/src/main/resources/ui/playwright/e2e/PageObject/Explore/OverviewPageObject.ts Centralizes owner-selector synchronization and removes forced clicks in favor of visibility and enabled-state checks.

Reviews (4): Last reviewed commit: "fix(playwright): remove owner selector r..." | Re-trigger Greptile

@harsh-vador
harsh-vador requested a review from a team as a code owner July 29, 2026 08:14
@github-actions

Copy link
Copy Markdown
Contributor

❌ PR checklist incomplete

This PR cannot be merged until the following are addressed on its linked issue:

The fields live on the linked issue in the Shipping project (open the issue → right sidebar → Projects). After you set them, re-run this check (or push a commit) — issue/project changes do not re-trigger it automatically.

Maintainers can bypass this check by adding the skip-pr-checks label.

@github-actions github-actions Bot added the UI UI specific issues label Jul 29, 2026
@github-actions

Copy link
Copy Markdown
Contributor

Hi there 👋 Thanks for your contribution!

The OpenMetadata team will review the PR shortly! Once it has been labeled as safe to test, the CI workflows
will start executing and we'll be able to make sure everything is working as expected.

Let us know if you need any help!

@github-actions

github-actions Bot commented Jul 29, 2026 •

Copy link
Copy Markdown
Contributor

✅ Playwright Results — workflow succeeded

Validated commit abf0dfa4a625be11c0a29db80d39427110c0bac6 in Playwright run 30441301641, attempt 1.

✅ 544 passed · ❌ 0 failed · 🟡 1 flaky · ⏭️ 5 skipped · 🧰 0 lifecycle flaky

Performance

Blocking targets: ✅ met · Optimization targets: 🟡 in progress

Shard-job maxima below are not the full workflow wall time; the linked run includes build, fixture, planning, and reporting.

🕒 Full workflow signal wall (to summary) 50m 31s

⏱️ Max setup 2m 49s · max shard execution 14m 27s · max shard-job elapsed before upload 17m 52s · reporting 5s

🌐 202.06 requests/attempt · 2.83 app boots/UI scenario · 9.92% common-shard skew

Optimization targets still in progress:

  • Browser traffic was 202.06 requests per attempt (convergence target: fewer than 200).
  • Application boot ratio was 2.83 per UI scenario (1612 boots / 569 scenarios; convergence target: at most 1).
Shard Passed Failed Flaky Skipped Lifecycle failed Lifecycle flaky
✅ Shard chromium-01 86 0 0 0 0 0
✅ Shard chromium-02 115 0 0 0 0 0
🟡 Shard chromium-03 102 0 1 0 0 0
✅ Shard chromium-04 103 0 0 3 0 0
✅ Shard data-asset-rules-01 61 0 0 0 0 0
✅ Shard domain-isolation-01 14 0 0 0 0 0
✅ Shard global-state-01 23 0 0 0 0 0
✅ Shard ingestion-01 1 0 0 0 0 0
✅ Shard reindex-01 2 0 0 0 0 0
✅ Shard search-01 10 0 0 0 0 0
✅ Shard search-rbac-01 27 0 0 2 0 0
🟡 1 flaky test(s) (passed on retry)
  • Pages/Entity.spec.ts › Domain Propagation (shard chromium-03, 1 retry)

📦 Download artifacts

How to debug locally
# Download playwright-test-results-<shard> artifact and unzip
npx playwright show-trace path/to/trace.zip    # view trace

@github-actions

Copy link
Copy Markdown
Contributor

Hi there 👋 Thanks for your contribution!

The OpenMetadata team will review the PR shortly! Once it has been labeled as safe to test, the CI workflows
will start executing and we'll be able to make sure everything is working as expected.

Let us know if you need any help!

@github-actions

Copy link
Copy Markdown
Contributor

Hi there 👋 Thanks for your contribution!

The OpenMetadata team will review the PR shortly! Once it has been labeled as safe to test, the CI workflows
will start executing and we'll be able to make sure everything is working as expected.

Let us know if you need any help!

@harsh-vador harsh-vador self-assigned this Jul 29, 2026
@github-actions

Copy link
Copy Markdown
Contributor

Hi there 👋 Thanks for your contribution!

The OpenMetadata team will review the PR shortly! Once it has been labeled as safe to test, the CI workflows
will start executing and we'll be able to make sure everything is working as expected.

Let us know if you need any help!

@harsh-vador
harsh-vador added this pull request to the merge queue Jul 29, 2026
@github-merge-queue
github-merge-queue Bot removed this pull request from the merge queue due to failed status checks Jul 30, 2026
@harsh-vador
harsh-vador added this pull request to the merge queue Jul 30, 2026
@siddhant1 siddhant1 closed this Jul 30, 2026
@github-merge-queue
github-merge-queue Bot removed this pull request from the merge queue due to a manual request Jul 30, 2026
@gitar-bot

gitar-bot Bot commented Jul 30, 2026

Copy link
Copy Markdown
Code Review ✅ Approved

Stabilizes flaky Playwright tests by tightening Explore aggregation search response matching, adding explicit waits to Online Users tests, and refining the owner-selector retry logic. No issues found.

Options

Display: compact → Showing less information.

Comment with these commands to change the behavior for this request:

Compact
gitar display:verbose         

Was this helpful? React with 👍 / 👎 | Gitar | Powered by Gitar — free for open source

This branch was previously deployed

1 inactive deployment
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

safe to test Add this label to run secure Github workflows on PRs UI UI specific issues

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Flaky Playwright specs for explore aggregation and online users

3 participants