Repository navigation
test(playwright): bulk-refresh 88 utils + support helpers (batch 2) - #33932
Conversation
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>
|
✅ SSO Login Nightly — PASSED View workflow run · Commit
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>
✅ Playwright Results — workflow succeededValidated commit ✅ 4619 passed · ❌ 0 failed · 🟡 2 flaky · ⏭️ 1 skipped · 🧰 0 lifecycle flaky PerformanceBlocking 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:
🟡 2 flaky test(s) (passed on retry)
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>
✅ PR checks passedThe linked issue has a description and all required Shipping project fields set. Thanks! |
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>
…ight-utils-support-batch2
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>
…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>
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 ✅ 4 closed✅ Bug: Refreshed helpers import modules/exports that don't exist on this branch
✅ Bug: Removed/changed helper APIs still used by unrefreshed specs and classes
✅ Bug: deleteServiceByAPI fails on the 401 that deleteFixtureEntity tolerates
✅ Bug: Signup submission waiter now resolves on the loggedInUser 404
OptionsDisplay: compact → Counting what did not apply, without listing it. Comment with these commands to change the behavior for this request:
Was this helpful? React with 👍 / 👎 | Powered by Gitar — free for open source |
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:
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