Skip to content

test(playwright): bulk-refresh 88 utils + support helpers (batch 2) - #33932

Merged
chirag-madlani merged 13 commits into
mainfrom
chirag-madlani/playwright-utils-support-batch2
Sep 27, 2026
Merged

chirag-madlani merged 13 commits into
mainfrom
chirag-madlani/playwright-utils-support-batch2

Conversation

@chirag-madlani

@chirag-madlani chirag-madlani commented Sep 24, 2026 •

Copy link
Copy Markdown
Collaborator

Fixes #33087

Describe your changes:

DRAFT — continues #33881's utils/support refresh. Refreshes 88 more safe-modified helper files where main hasn't touched them since our merge-base — wholesale copies from harshach's branch.

Complements the specs bulk (#33930) by refreshing many of the utility files those specs import (common.ts, glossary.ts, entity.ts, importUtils.ts, tag.ts, user.ts, and dozens more).

Type of change:

  • Test infrastructure refresh (no product code change)

Notes

Marked draft — merges into the review budget only when earlier waves land. Files where both main and harshach diverged from merge-base are deliberately excluded.

Cherry-picked from #33088. All original content authored by @harshach.

🤖 Generated with Claude Code

Continues the utils/support refresh started in #33881. Refreshes 88 more
safe-modified helper files where main hasn't touched them since our
merge-base — wholesale copies from harshach's branch.

Includes utils frequently referenced by the specs bulk (#33930):
common.ts, glossary.ts, entity.ts, importUtils.ts, tag.ts, and many others.

Files where both main and harshach diverged from merge-base are
deliberately excluded (need per-file conflict resolution).

Cherry-picked from #33088. All original content authored by @harshach.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@github-actions

github-actions Bot commented Sep 24, 2026 •

Copy link
Copy Markdown
Contributor

✅ SSO Login Nightly — PASSED

View workflow run · Commit 44d78ba

Provider Status Pass Fail Flaky Skip Duration
basic ✅ pass 6 0 0 0 0m 40s
ldap ✅ pass 6 0 0 0 0m 33s
keycloak-oidc-confidential ✅ pass 9 0 0 0 1m 04s
keycloak-oidc-public ✅ pass 8 0 0 0 0m 39s
msal-mock ✅ pass 5 0 0 0 0m 24s
auth0-mock ✅ pass 5 0 0 0 0m 31s
okta ✅ pass 2 0 0 0 0m 23s
keycloak-azure-saml ✅ pass 1 0 0 0 0m 19s
keycloak-azure-saml-crosssite ⏩ skipped - - - - -

Totals: 42 passed · 0 failed · 0 flaky · 0 skipped · duration 4m 37s

…ight-utils-support-batch2

# Conflicts:
#	openmetadata-ui/src/main/resources/ui/playwright/utils/entity.ts
…ight-utils-support-batch2

# Conflicts:
#	openmetadata-ui/src/main/resources/ui/playwright/utils/notificationAlert.ts
…tus to waitHelpers

utils/inputOutputPorts.ts and utils/sidebar.ts (both in this PR) import
`waitForAntOverlayToOpen` from ./waitHelpers, but only `clickAndWaitFor`
was exported. Runtime TypeError on every spec that reaches those helpers.

Take harshach's version wholesale — 3 exports (waitForAntOverlayToOpen,
waitForResponseWithStatus, clickAndWaitFor). The two extra helpers cover
the consumers in this PR without adding new dependencies.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@github-actions

github-actions Bot commented Sep 25, 2026 •

Copy link
Copy Markdown
Contributor

✅ Playwright Results — workflow succeeded

Validated commit c377e3370a2d21fa88d63940d730e9fc66628584 in Playwright run 36333774289, attempt 1.

✅ 4619 passed · ❌ 0 failed · 🟡 2 flaky · ⏭️ 1 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) 59m 20s

⏱️ Max setup 4m 16s · max shard execution 20m 8s · max shard-job elapsed before upload 23m 32s · reporting 21s

🌐 121.18 requests/attempt · 2.20 app boots/UI scenario · 35.84% common-shard skew

Optimization targets still in progress:

  • Common shard skew was 35.84% (convergence target: at most 15%).
  • Application boot ratio was 2.2 per UI scenario (10773 boots / 4905 scenarios; convergence target: at most 1).
Shard Passed Failed Flaky Skipped Lifecycle failed Lifecycle flaky
✅ Shard advanced-search-01 66 0 0 0 0 0
✅ Shard advanced-search-02 64 0 0 0 0 0
✅ Shard chromium-01 155 0 0 0 0 0
✅ Shard chromium-02 142 0 0 0 0 0
✅ Shard chromium-03 145 0 0 0 0 0
✅ Shard chromium-04 141 0 0 0 0 0
✅ Shard chromium-05 130 0 0 0 0 0
✅ Shard chromium-06 176 0 0 0 0 0
✅ Shard chromium-07 148 0 0 0 0 0
✅ Shard chromium-08 138 0 0 0 0 0
✅ Shard chromium-09 180 0 0 0 0 0
✅ Shard chromium-10 154 0 0 1 0 0
✅ Shard chromium-11 188 0 0 0 0 0
✅ Shard chromium-12 159 0 0 0 0 0
✅ Shard chromium-13 159 0 0 0 0 0
✅ Shard chromium-14 154 0 0 0 0 0
✅ Shard chromium-15 164 0 0 0 0 0
🟡 Shard chromium-16 143 0 2 0 0 0
✅ Shard chromium-17 142 0 0 0 0 0
✅ Shard chromium-18 167 0 0 0 0 0
✅ Shard chromium-19 176 0 0 0 0 0
✅ Shard chromium-20 171 0 0 0 0 0
✅ Shard chromium-21 140 0 0 0 0 0
✅ Shard chromium-22 126 0 0 0 0 0
✅ Shard chromium-23 165 0 0 0 0 0
✅ Shard chromium-24 165 0 0 0 0 0
✅ Shard chromium-25 145 0 0 0 0 0
✅ Shard chromium-26 176 0 0 0 0 0
✅ Shard data-asset-rules-01 65 0 0 0 0 0
✅ Shard domain-isolation-01 16 0 0 0 0 0
✅ Shard global-state-01 34 0 0 0 0 0
✅ Shard import-export-01 68 0 0 0 0 0
✅ Shard import-export-02 27 0 0 0 0 0
✅ Shard import-export-03 55 0 0 0 0 0
✅ Shard ingestion-01 30 0 0 0 0 0
✅ Shard ingestion-02 35 0 0 0 0 0
✅ Shard ingestion-03 28 0 0 0 0 0
✅ Shard reindex-01 41 0 0 0 0 0
✅ Shard search-01 12 0 0 0 0 0
✅ Shard search-rbac-01 29 0 0 0 0 0
🟡 2 flaky test(s) (passed on retry)
  • Pages/Lineage/DataAssetLineage.spec.ts › Verify opening config modal (shard chromium-16, 1 retry)
  • Pages/Lineage/LineageInteraction.spec.ts › Verify function data in edge drawer (shard chromium-16, 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

- deleteFixtureEntity now tolerates HTTP 400 too (matches 401 pattern).
  32 chromium shards were failing because the server marks some
  playwright-generated classifications as "system entities" and refuses
  hard-delete with 400. Same shape as JWT-expiry 401 — cleanup issue,
  not a test-correctness issue. Warns on both 400 and 401 so leaks
  don't hide.

- Reset 5 entangled files to main (ServiceBaseClass, AutoPilot,
  dataContracts, incidentManager, serviceIngestion). Bot #1 flagged
  they imported helpers not in this PR; bot #2 flagged they removed
  APIs still used by external callers (RedshiftWithDBTIngestionClass,
  IncidentManager.spec, DataContracts.spec, AutoPilot.spec). Refresh
  scope on these files is out of the utils/support batch2 split — take
  main's version, land the refresh with #33930's specs later.

- keycloak-oidc-public signup waiter: match POST specifically. The bare
  `/api/v1/users` include-check was resolving on the 404 from
  GET /api/v1/users/loggedInUser (which routes to /signup) instead of
  the signup POST that follows.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@github-actions

github-actions Bot commented Sep 26, 2026 •

Copy link
Copy Markdown
Contributor

✅ PR checks passed

The linked issue has a description and all required Shipping project fields set. Thanks!

chirag-madlani and others added 5 commits September 26, 2026 10:26
Bot warned "Stale suppression entries -- main fixed violations under
this branch". After resetting ServiceBaseClass/AutoPilot/dataContracts/
incidentManager/serviceIngestion to main, several old suppressions in
this branch's baseline no longer match. Ran yarn lint:playwright:suppressions
to prune them.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
…seline lint

CI was failing on runtime TypeErrors from files in this PR that are
out of sync with main:
- deleteKpiRequest now required a kpiIds arg; CustomizeWidgets.spec and
  DataInsight.spec (not in PR) call it with one → undefined.map.
- BigQuery/MySql/Postgres ingestion classes, profilerForm, scheduleInterval
  imported chooseSelectOption / waitForIngestion that main doesn't export.
- activityFeed, task, observabilityAlert, conditionalPermissions,
  autoClassification, TopicClass changed exports/shapes used elsewhere.

Found by diffing `tsc -p playwright/tsconfig.json` against main: reset the
offending files (plus their cascade: activityAPI, taskWorkflow) to main and
removed taskPermissions.ts (no consumer left). PR-introduced type errors: 0.

Restored main's eslint-suppressions.json and re-pruned, and lowered the
recorded no-positional-locator count 1155 → 1149 in corpus.test.mjs (6
violations fixed by this PR). Lint, eslint-rules tests and rule table all
pass locally; CI-order OI → eslint → prettier pass is idempotent.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
The wholesale copy left `import { deleteFixtureEntity } ...` (and a few
others) after the class/function bodies in 22 files. Moved each into the
file's import block, let organize-imports merge them with the existing
import from the same module, then ran CI's organize-imports → eslint
--fix → prettier sequence (second pass: no diff).

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
pressSequentially fires an aggregate search per keystroke, which pushed the
AdvancedSearch Group tests past their 540s budget (all failures timed out at
fillRule's trailing click). main's fill + poll-and-refill loop is faster and
already retries an empty list.

Fixes #33087

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Keep the create-then-patch 404 retry: the root-level retry from #33830 only
covers transport errors on GET/HEAD/PUT, not a PATCH that 404s while the
just-created row is still becoming visible.

Fixes #33087

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
chirag-madlani and others added 2 commits September 27, 2026 14:10
…ight-utils-support-batch2

# Conflicts:
#	openmetadata-ui/src/main/resources/ui/playwright/eslint-rules/tests/corpus.test.mjs
…fixture

Waiting for in-flight route handlers at teardown blocks on the asset cache's
route.fetch(), so ExploreBrowse's breadcrumb test hit "Tearing down context
exceeded the test timeout" (and earlier "Route is already handled"). Back to
main's fixture.

Fixes #33087

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
@gitar-bot

gitar-bot Bot commented Sep 27, 2026

Copy link
Copy Markdown
Code Review ✅ Approved 4 closed / 4 findings

🟡 Medium risk · Many Playwright helpers change navigation, indexing polls, and fixture cleanup behavior.

Bulk refresh of 88 Playwright utility and support helper files, addressing import/export mismatches, API changes, and fixture tolerance issues. Refreshed helpers now align with unrefreshed specs and classes, and deleteServiceByAPI and signup submission waiter issues have been resolved.

✅ 4 closed
✅ Bug: Refreshed helpers import modules/exports that don't exist on this branch

📄 openmetadata-ui/src/main/resources/ui/playwright/utils/dataContracts.ts:23 📄 openmetadata-ui/src/main/resources/ui/playwright/utils/dataContracts.ts:26 📄 openmetadata-ui/src/main/resources/ui/playwright/utils/incidentManager.ts:19-22 📄 openmetadata-ui/src/main/resources/ui/playwright/utils/AutoPilot.ts:15 📄 openmetadata-ui/src/main/resources/ui/playwright/support/entity/ingestion/ServiceBaseClass.ts:28 📄 openmetadata-ui/src/main/resources/ui/playwright/utils/entity.ts:42 📄 openmetadata-ui/src/main/resources/ui/playwright/utils/entity.ts:58-61 📄 openmetadata-ui/src/main/resources/ui/playwright/utils/alert.ts:1267-1268 📄 openmetadata-ui/src/main/resources/ui/playwright/support/tag/TagClass.ts:17 📄 openmetadata-ui/src/main/resources/ui/playwright/support/tag/TagClass.ts:128 📄 openmetadata-ui/src/main/resources/ui/playwright/support/entity/TaskClass.ts:14 📄 openmetadata-ui/src/main/resources/ui/playwright/support/entity/ingestion/MySqlIngestionClass.ts:23 📄 openmetadata-ui/src/main/resources/ui/playwright/support/fixtures/taskActivity.ts:16-20 📄 openmetadata-ui/src/main/resources/ui/playwright/support/fixtures/taskPermissions.ts:17
The copied files import helpers that were added elsewhere on harshach's branch and were never brought over. Missing modules: utils/contractExecution.ts (waitForContractResult, imported by dataContracts.ts), utils/ingestionExecution.ts (waitForIngestionResult, triggerIngestionPipeline, imported by ServiceBaseClass.ts and incidentManager.ts) and utils/autopilotExecution.ts (imported by AutoPilot.ts). Missing exports: waitHelpers.ts exports only clickAndWaitFor, so there is no waitForResponseWithStatus or waitForAntOverlayToOpen. apiResponse.ts has no deleteFixtureEntity or assertFulfilled. common.ts has no waitForAntdModalToSettle or chooseSelectOption. About 40 files use these symbols (entity.ts, alert.ts, TagClass.ts, TaskClass.ts, every service class, MySqlIngestionClass.ts, taskActivity.ts, taskPermissions.ts and others). Because shared modules like entity.ts and common-dependent classes can't resolve their imports, the Playwright suite won't type-check or load. Fix: include the missing helper files and exports in this PR, or land the PR that adds them first.

✅ Bug: Removed/changed helper APIs still used by unrefreshed specs and classes

📄 openmetadata-ui/src/main/resources/ui/playwright/support/entity/ingestion/ServiceBaseClass.ts:334-348 📄 openmetadata-ui/src/main/resources/ui/playwright/utils/serviceIngestion.ts:14 📄 openmetadata-ui/src/main/resources/ui/playwright/utils/dataContracts.ts:112-126 📄 openmetadata-ui/src/main/resources/ui/playwright/utils/AutoPilot.ts:19-24
This PR removes or changes APIs that files outside the PR still call. ServiceBaseClass.handleIngestionRetry is gone, but RedshiftWithDBTIngestionClass.ts:216 still calls it. serviceIngestion.makeRetryRequest is gone, but IncidentManager.spec.ts:37/472 still imports it. waitForContractExecutionWithFallback is gone, but DataContracts.spec.ts:78/511 still imports it. checkAutoPilotStatus now requires startedAfter and timeoutMs, but AutoPilot.spec.ts:144 still calls it with two arguments. These call sites will fail to compile or throw at runtime. Fix: refresh these consumers in the same PR, or keep the old APIs as compatibility shims until the specs PR (#33930) lands.

✅ Bug: deleteServiceByAPI fails on the 401 that deleteFixtureEntity tolerates

📄 openmetadata-ui/src/main/resources/ui/playwright/support/entity/ingestion/ServiceBaseClass.ts:604-616
deleteFixtureEntity deliberately tolerates HTTP 401 during cleanup (JWT expired mid-test) and only logs a warning. deleteServiceByAPI then asserts that response.status() is in [200, 404], so a 401 the helper let through still fails teardown. That brings back the failure mode the helper exists to avoid. Either drop the extra assertion, since the helper already throws on real errors, or add 401 to the allowed list.

✅ Bug: Signup submission waiter now resolves on the loggedInUser 404

📄 openmetadata-ui/src/main/resources/ui/playwright/utils/sso-providers/keycloak-oidc-public.ts:170-172 📄 openmetadata-ui/src/main/resources/ui/playwright/utils/sso-providers/keycloak-oidc-public.ts:198
The submissionPending waiter is registered before the SPA finishes processing /callback. The flow described in the comment above it means the next matching response is the 404 from GET /api/v1/users/loggedInUser, which is the response that sends the app to /signup. Removing the status() < 400 filter lets the waiter resolve on that 404 first, so await submissionPending after createButton.click() returns right away and no longer waits for the signup POST. Only the 60s sidebar assertion that follows still covers the submission. To fix this, bring back the success-status filter, or match the signup request specifically, e.g. by method.

Review coverage

📋 Rules No rules evaluated

🧪 Functional validation Not enabled · Set up

🤖 Auto-approval Not enabled · Set up

Options

Display: compact → Counting what did not apply, without listing it.

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

Compact
gitar display:verbose         

Was this helpful? React with 👍 / 👎 | 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.

Merge queue: recover transient artifacts and stabilize recurring E2E failures

2 participants