Repository navigation
Playwright burn-down 2: eliminate blanket test.slow() - #32360
Conversation
… 1380
Removes all 83 file/describe/beforeEach-scope test.slow() calls. A blanket
slow triples the timeout for every test in scope, so a regression that takes a
test from 20s to 170s still passes silently.
Replacement is data-driven, not mechanical. Per-test max durations were taken
across seven CI artifacts (both AUT lanes, both databases, three nightly runs)
and joined by test title:
- 26 tests measured over 40s of the 60s budget keep test.slow(), now inside
the individual test.
- Tests measured under 40s get nothing; the 22 blankets in DomainAdvanced and
DomainUIInteractions covered no test over 40s at all.
- The Auth suites run only in the SSO nightly, which has no per-test
artifacts; their renewal tests deliberately wait out a 30s token TTL, so
those 14 keep a conservative per-test slow.
om-playwright/no-blanket-test-slow drops out of the suppressions baseline
entirely and out of EXPECTED, so any new blanket call is a hard CI error.
Co-Authored-By: Claude Opus 5 <[email protected]>
…tion The at-most-once check polled until the FIRST refresh landed and asserted immediately, so a duplicate renewal arriving milliseconds later escaped the assertion -- the fixed 10s wait this replaced had (accidentally) covered that. Poll to the first refresh as before, then hold until the counter is stable across two consecutive reads before judging it, bounded at five rounds. Review finding from the PR bot. Co-Authored-By: Claude Opus 5 <[email protected]> (cherry picked from commit d2953f4)
There was a problem hiding this comment.
Pull request overview
This PR advances the Playwright guardrails burn-down by eliminating all blanket test.slow() usages (file/describe/beforeEach scope) across the Playwright suite, converting slow markings to per-test declarations, and updating the suppressions corpus so any reintroduction becomes a hard CI error.
Changes:
- Remove
om-playwright/no-blanket-test-slowfrom the suppressions baseline and from the corpus test’sEXPECTEDtotals. - Replace blanket
test.slow(true)/base.slow(true)at suite scope with per-testtest.slow()where warranted. - Adjust an SSO token-renewal de-dupe assertion to wait for refresh-attempt metrics to settle before asserting.
Reviewed changes
Copilot reviewed 46 out of 46 changed files in this pull request and generated 4 comments.
Show a summary per file
| File | Description |
|---|---|
| openmetadata-ui/src/main/resources/ui/playwright/eslint-rules/tests/corpus.test.mjs | Drops no-blanket-test-slow from expected baseline totals so new violations fail CI. |
| openmetadata-ui/src/main/resources/ui/eslint-suppressions.json | Removes all recorded suppressions for om-playwright/no-blanket-test-slow. |
| openmetadata-ui/src/main/resources/ui/playwright/e2e/Pages/Users.spec.ts | Removes suite-level slow; adds per-test slow for the identified long-running test. |
| openmetadata-ui/src/main/resources/ui/playwright/e2e/Pages/Teams.spec.ts | Removes describe-level slow; adds per-test slow for the slower tests only. |
| openmetadata-ui/src/main/resources/ui/playwright/e2e/Pages/Tag.spec.ts | Removes describe-level slow markers across role-scoped suites. |
| openmetadata-ui/src/main/resources/ui/playwright/e2e/Pages/SubDomainPagination.spec.ts | Removes describe-level slow, leaving setup-level timing management in hooks. |
| openmetadata-ui/src/main/resources/ui/playwright/e2e/Pages/Policies.spec.ts | Removes beforeEach-scope slow to avoid inflating all test timeouts. |
| openmetadata-ui/src/main/resources/ui/playwright/e2e/Pages/ODCSImportExport.spec.ts | Removes describe-level slow from import/export suite. |
| openmetadata-ui/src/main/resources/ui/playwright/e2e/Pages/GlossaryImportExport.spec.ts | Moves slow marking to specific long-running tests and retains explicit timeouts where needed. |
| openmetadata-ui/src/main/resources/ui/playwright/e2e/Pages/EntityHeaderBreadcrumb.spec.ts | Removes blanket slow from per-entity breadcrumb coverage. |
| openmetadata-ui/src/main/resources/ui/playwright/e2e/Pages/DomainUIInteractions.spec.ts | Removes multiple describe-level slow calls from domain UI flows. |
| openmetadata-ui/src/main/resources/ui/playwright/e2e/Pages/Domains.spec.ts | Removes suite-level slow calls and adds per-test slow where measured slow. |
| openmetadata-ui/src/main/resources/ui/playwright/e2e/Pages/DomainAdvanced.spec.ts | Removes describe-level slow across advanced domain scenarios. |
| openmetadata-ui/src/main/resources/ui/playwright/e2e/Pages/DescriptionVisibility.spec.ts | Removes blanket slow from long-description visibility suite. |
| openmetadata-ui/src/main/resources/ui/playwright/e2e/Pages/DataProducts.spec.ts | Removes describe-level slow from serial data-products suite. |
| openmetadata-ui/src/main/resources/ui/playwright/e2e/Pages/DataProductAndSubdomains.spec.ts | Removes blanket slow across suites and adds per-test slow for the slower cases. |
| openmetadata-ui/src/main/resources/ui/playwright/e2e/Pages/DataContracts.spec.ts | Moves slow marking down to specific tests while keeping explicit long timeouts where required. |
| openmetadata-ui/src/main/resources/ui/playwright/e2e/Pages/Bots.spec.ts | Removes blanket slow from bots page flow. |
| openmetadata-ui/src/main/resources/ui/playwright/e2e/Flow/ServiceCreationPermissions.spec.ts | Removes blanket slow from permissions flow suite. |
| openmetadata-ui/src/main/resources/ui/playwright/e2e/Flow/Metric.spec.ts | Removes describe-level slow from metric flow suite. |
| openmetadata-ui/src/main/resources/ui/playwright/e2e/Flow/IngestionBot.spec.ts | Moves slow to the single slow test instead of suite-wide marking. |
| openmetadata-ui/src/main/resources/ui/playwright/e2e/Features/Topic.spec.ts | Removes top-level slow from topic feature specs. |
| openmetadata-ui/src/main/resources/ui/playwright/e2e/Features/TestSuitePipelineRedeploy.spec.ts | Removes describe-level slow from redeploy tests. |
| openmetadata-ui/src/main/resources/ui/playwright/e2e/Features/TeamsHierarchy.spec.ts | Removes blanket slow from nested teams test suite. |
| openmetadata-ui/src/main/resources/ui/playwright/e2e/Features/TagsSuggestion.spec.ts | Removes suite-wide slow from tag task workflow tests. |
| openmetadata-ui/src/main/resources/ui/playwright/e2e/Features/LandingPageWidgets/DomainDataProductsWidgets.spec.ts | Moves slow to individual widget tests, avoiding suite-wide inflation. |
| openmetadata-ui/src/main/resources/ui/playwright/e2e/Features/IncidentManager.spec.ts | Removes blanket slow and applies per-test slow to the long-running test. |
| openmetadata-ui/src/main/resources/ui/playwright/e2e/Features/DomainIsolation/DomainTaskIsolation.spec.ts | Removes describe-level slow in domain task isolation suite. |
| openmetadata-ui/src/main/resources/ui/playwright/e2e/Features/DomainIsolation/DomainSearchIsolation.spec.ts | Removes describe-level slow in domain search isolation suite. |
| openmetadata-ui/src/main/resources/ui/playwright/e2e/Features/DomainIsolation/DomainListingIsolation.spec.ts | Removes describe-level slow in domain listing isolation suite. |
| openmetadata-ui/src/main/resources/ui/playwright/e2e/Features/DomainIsolation/DomainLineageIsolation.spec.ts | Removes describe-level slow in domain lineage isolation suite. |
| openmetadata-ui/src/main/resources/ui/playwright/e2e/Features/DomainFilterQueryFilter.spec.ts | Removes blanket slow and adds per-test slow for slower filter scenarios. |
| openmetadata-ui/src/main/resources/ui/playwright/e2e/Features/DescriptionSuggestion.spec.ts | Removes suite-level slow and applies per-test slow where needed. |
| openmetadata-ui/src/main/resources/ui/playwright/e2e/Features/DataQuality/Dimensionality.spec.ts | Removes blanket slow from dimensionality suite. |
| openmetadata-ui/src/main/resources/ui/playwright/e2e/Features/Dashboards.spec.ts | Removes suite-level slow from dashboards tests. |
| openmetadata-ui/src/main/resources/ui/playwright/e2e/Features/CuratedAssets.spec.ts | Removes suite-level slow markers and applies per-test slow where needed. |
| openmetadata-ui/src/main/resources/ui/playwright/e2e/Features/ContextCenterPermission.spec.ts | Removes blanket slow from context center permissions suite. |
| openmetadata-ui/src/main/resources/ui/playwright/e2e/Features/ContextCenterDocument.spec.ts | Removes blanket slow from context center documents suite. |
| openmetadata-ui/src/main/resources/ui/playwright/e2e/Features/Container.spec.ts | Removes multiple blanket slow markers from container specs. |
| openmetadata-ui/src/main/resources/ui/playwright/e2e/Auth/SSOSessionLimit.spec.ts | Removes suite-level slow and marks the long-running test as slow. |
| openmetadata-ui/src/main/resources/ui/playwright/e2e/Auth/SSOSelfSignup.spec.ts | Removes suite-level slow and marks the long-running test as slow. |
| openmetadata-ui/src/main/resources/ui/playwright/e2e/Auth/SSORenewal.spec.ts | Removes suite-level slow and marks the renewal tests as slow individually. |
| openmetadata-ui/src/main/resources/ui/playwright/e2e/Auth/SSOLogin.spec.ts | Removes suite-level slow and marks each SSO login test as slow. |
| openmetadata-ui/src/main/resources/ui/playwright/e2e/Auth/SSOAuthentication.spec.ts | Replaces a timing-dependent dedupe assertion with “metrics settle” logic before asserting. |
| openmetadata-ui/src/main/resources/ui/playwright/e2e/Auth/OktaSessionRenewalPublic.spec.ts | Removes suite-level slow and marks the slow Okta tests individually. |
| openmetadata-ui/src/main/resources/ui/playwright/e2e/Auth/OktaSelfSignupClaims.spec.ts | Removes suite-level slow and marks the slow Okta self-signup test individually. |
Suppressed comments (3)
openmetadata-ui/src/main/resources/ui/playwright/e2e/Features/CuratedAssets.spec.ts:303
- Duplicate slow marking (
test.slow()thentest.slow(true)) on the same test. Drop the second call to avoid confusion.
test.slow();
test.slow(true);
openmetadata-ui/src/main/resources/ui/playwright/e2e/Features/CuratedAssets.spec.ts:401
- This test is marked slow twice. Prefer a single
test.slow()call to keep the timeout behavior obvious.
test.slow();
test.slow(true);
openmetadata-ui/src/main/resources/ui/playwright/e2e/Features/CuratedAssets.spec.ts:516
- Duplicate slow calls for the same test (
test.slow()andtest.slow(true)). Remove one to keep the test metadata consistent.
test.slow();
test.slow(true);
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
SearchSettings.spec.ts gained a third .first() via #31839, which merged concurrently with #32283's baseline; the queue race left main with 3 violations against 2 suppressions, so main's own ratchet is red for any Playwright PR. The panel lists server-defined fields with no per-field test id and the test only needs some expandable row, so this is the designed escape hatch: a justified disable, which adds nothing to any baseline count. Co-Authored-By: Claude Opus 5 <[email protected]>
There was a problem hiding this comment.
🔵 Needs a closer look
Several tests now call test.slow() twice in a row, which can compound Playwright’s timeout multiplier (reintroducing hidden timeout inflation) and should be reduced to a single call per test.
Review details
Suppressed comments (7)
openmetadata-ui/src/main/resources/ui/playwright/e2e/Pages/Domains.spec.ts:321
test.slow()is called twice for the same test (test.slow();thentest.slow(true);). In Playwright, eachslow()call triples the timeout, so this can unintentionally inflate the budget (e.g., 9×) and defeats the purpose of removing blanket slow timeouts.
openmetadata-ui/src/main/resources/ui/playwright/e2e/Pages/DataContracts.spec.ts:1174- This test calls
test.slow()and then immediatelytest.slow(true). Multipleslow()calls can compound the timeout multiplier, reintroducing hidden timeout inflation.
openmetadata-ui/src/main/resources/ui/playwright/e2e/Features/LandingPageWidgets/DomainDataProductsWidgets.spec.ts:119 test.slow()is invoked twice (test.slow();thentest.slow(true);) which can compound the timeout multiplier. Keep only one call to avoid accidental 9× timeouts.
test.slow();
test.slow(true);
openmetadata-ui/src/main/resources/ui/playwright/e2e/Features/CuratedAssets.spec.ts:109
- This test calls
test.slow()twice (test.slow();andtest.slow(true);). Repeatedslow()calls can unintentionally multiply the timeout more than intended.
test.slow();
test.slow(true);
openmetadata-ui/src/main/resources/ui/playwright/e2e/Features/CuratedAssets.spec.ts:303
test.slow()is called twice for the same test. Sinceslow()triples the timeout, calling it repeatedly can compound the timeout and reintroduce silent timeout inflation.
test.slow();
test.slow(true);
openmetadata-ui/src/main/resources/ui/playwright/e2e/Features/CuratedAssets.spec.ts:401
- This test has consecutive
test.slow();andtest.slow(true);. Multipleslow()calls can compound the timeout multiplier and should be reduced to a single call.
test.slow();
test.slow(true);
openmetadata-ui/src/main/resources/ui/playwright/e2e/Features/CuratedAssets.spec.ts:516
- Consecutive
test.slow();andtest.slow(true);can compound timeouts. Keep only onetest.slow()call per test to avoid hidden timeout inflation.
test.slow();
test.slow(true);
- Files reviewed: 47/47 changed files
- Comments generated: 0 new
- Review effort level: Lite
🚦 Removed from the merge queue —
|
# Conflicts: # openmetadata-ui/src/main/resources/ui/playwright/eslint-rules/tests/corpus.test.mjs
|
Re-requesting review — the previous approval was dismissed by a required branch update, not by a code change.
- 'om-playwright/no-positional-locator': 1324,
+ 'om-playwright/no-positional-locator': 1323,The merge commit's own conflict resolution ( Verified on the merged tree: |
There was a problem hiding this comment.
🟡 Changes recommended
There are a couple of correctness/maintainability nits in the updated tests (a fixed sleep loop added in SSOAuthentication and a mismatched timeout comment) that should be cleaned up before merge.
Once you've addressed the issues Copilot identified, you can request another Copilot review.
Review details
- Files reviewed: 46/46 changed files
- Comments generated: 2
- Review effort level: Lite
…r settle Review round 2. test.slow() multiplies the current timeout by 3; test.setTimeout() assigns it outright (timeoutManager.js:99-110). A slow() followed by setTimeout() is therefore dead code, and the insertion pass had added exactly that to three tests that already declared an explicit budget -- SSOSessionLimit, DataContracts, GlossaryImportExport. Removed; the explicit budget stands. While there: the DataContracts comment claimed a 12-min timeout against test.setTimeout(900_000), which is 15. Corrected to match. The dedup settle window no longer hand-rolls sleeps. expect.poll now owns the sampling and the bound, with a consecutive-identical-reads counter expressing "the renewal count has stopped changing" -- a plain poll would return on the first refresh and miss the duplicate the test is looking for. Co-Authored-By: Claude Opus 5 <[email protected]>
There was a problem hiding this comment.
🟢 Approval recommended
The diff consistently eliminates blanket slow() scope, keeps enforcement intact (rule stays error with zero suppressions), and the updated polling-based auth assertion avoids timing sleeps while preserving the intended regression coverage.
Review details
- Files reviewed: 46/46 changed files
- Comments generated: 0 new
- Review effort level: Lite
🚦 Removed from the merge queue —
|
|
This branch's CI run (9896287573) is hitting two pre-existing Data Quality Playwright failures that are unrelated to this PR's changes:
Both are already root-caused and fixed in #32506, which was cut from |
🚦 Removed from the merge queue —
|
# Conflicts: # openmetadata-ui/src/main/resources/ui/playwright/eslint-rules/tests/corpus.test.mjs
Code Review ✅ Approved 1 resolved / 1 findingsEliminates all 83 blanket ✅ 1 resolved✅ Quality: Redundant test.slow() added on top of existing test.slow(true)
OptionsDisplay: compact → Showing less information. Comment with these commands to change the behavior for this request:
Was this helpful? React with 👍 / 👎 | Powered by Gitar — free for open source |
|
Validated with a full-suite Playwright run on this branch — all green. Run: https://github.com/open-metadata/OpenMetadata/actions/runs/33856779514 Full mode matters here: a Guardrail state on this head:
The recent merge from |
Describe your changes:
Fixes #32359. Part of #30987 (
[ESLint 8/10] playwright/*), under epic #30977. Also advances epic #31035. Follows #32283.Second burn-down PR on the guardrails from #31994. Eliminates
om-playwright/no-blanket-test-slowfrom the suppressions baseline entirely:om-playwright/no-blanket-test-slowBaseline 1459 → 1376 (−83). The rule is dropped from
EXPECTEDincorpus.test.mjsrather than lowered, so any new blanket call is a hard CI error.A blanket
test.slow()at file/describe/beforeEach scope triples the timeout for every test in scope — a test regressing from 20s to 170s still passes silently. All 83 such calls are removed. Replacement is data-driven, not mechanical: per-test max durations were taken across seven CI artifacts (both AUT lanes, both databases, three nightly runs) and joined by test title:test.slow(), now inside the individual test.DomainAdvancedandDomainUIInteractionscovered no test over 40s at all — pure timeout inflation, deleted with zero compensation.slow().Net effect: ~200 tests lose their silent 180s budget and must now finish inside 60s, so real performance regressions in them fail loudly.
Also carries a review-bot fix from #32283: the token-refresh "at most once" dedup test now lets duplicate in-flight renewals settle (counter stable across two consecutive reads, bounded at five rounds) before asserting, restoring the semantics the removed 10s sleep had provided accidentally.
Type of change:
High-level design:
No production code changes — Playwright test code only. Where a suite is genuinely slow, the cost is now declared per test at the test itself, visible in review; where it wasn't, the inflated budget is simply gone.
Tests:
Use cases covered
Domains, Data Products, Teams, Tags, Containers, Curated Assets, Glossary import/export, ODCS import/export, SSO/Auth suites — the 43 files that carried blanket slow calls.
Unit tests
yarn test:eslint-rules→ 107 passed / 0 failed.Backend integration tests
Ingestion integration tests
Playwright (UI) tests
AUT run: https://github.com/open-metadata/openmetadata-nightly/actions/runs/33392634304 (kind / postgresql, built from this branch)
LiveIndexingTab×3,SearchIndexApplication,AppModeLiveRefresh×2,AskCollateProfile×2); main fails a superset this branch does not.slow()(or an explicittest.setTimeout), verified individually.Manual test steps
eslint-suppressions.jsoncontains nono-blanket-test-slowentry, so reintroducing a blanket call fails CI immediately.UI screen recording / screenshots
Checklist: