Repository navigation
Fixes 33053: burn the Playwright quarantine down from 8 to 4 - #33054
ShaileshParmar11 wants to merge 16 commits into
Conversation
✅ PR checks passedThe linked issue has a description and all required Shipping project fields set. Thanks! |
🔄 Playwright impact map auto-refreshedThis PR touched specs or UI source that changed the source→spec routing map. I regenerated What is this file? It is the auto-generated half of Playwright's PR planner. It routes "if source X changes, run specs Y" by walking spec imports and cross-referencing What if I want to regenerate locally instead? Run this before pushing your next change to skip the bot commit: python3 .github/scripts/generate_playwright_impact_map.py
git add .github/playwright/impact-map.generated.json
git commit --amend --no-edit # or a separate commit |
🔄 Playwright impact map auto-refreshedThis PR touched specs or UI source that changed the source→spec routing map. I regenerated What is this file? It is the auto-generated half of Playwright's PR planner. It routes "if source X changes, run specs Y" by walking spec imports and cross-referencing What if I want to regenerate locally instead? Run this before pushing your next change to skip the bot commit: python3 .github/scripts/generate_playwright_impact_map.py
git add .github/playwright/impact-map.generated.json
git commit --amend --no-edit # or a separate commit |
|
Addressed the review in
The ActivityStream comments compound into something worse. Taken together they meant the test could not fail: On On using a testid in Two I did not change:
Verification (local stack, current UI):
One thing outside this PR: three other specs still reach for |
|
| Count | Rule |
|---|---|
| 1 | react-hooks/exhaustive-deps |
All findings
| Location | Rule | Message | |
|---|---|---|---|
| 🟡 | src/components/common/OwnersSection/OwnersSection.tsx:150:5 |
react-hooks/exhaustive-deps |
React Hook useMemo has missing dependencies: 'cancelEditing', 'entityRules.canAddMultipleTeamOwner', 'entityRules.canAddMultipleUserOwners', and 't'. Either inc |
Fix locally (fast - only checks files changed in this branch):
make ui-checkstyle-changedTwo causes, and QUARANTINE.md recorded only the second. 1. `fitToScreen` returned as soon as it clicked its menu item, so the menu popover was still animating out and lingered in the DOM as a second [role="dialog"]. The test asserted on an unscoped [role="dialog"], which then matched both it and the entity panel, tripping strict mode. 2. `Verify edge delete button in drawer` deletes the shared table1 -> topic edge and never restores it. Every later test in the file therefore saw a graph with no topic -- the "node is not in the graph" symptom recorded in QUARANTINE.md, and the reason it failed 11/11 rather than intermittently. Have fitToScreen wait for the menu to detach, scope the assertion to lineage-entity-panel, and restore the edge in a finally. Verified red -> green locally: the test failed on the strict violation before, and the whole spec now passes serially. Two tests in `node selection edge behavior` still fail on minimap click interception. A control run against origin/main confirms that is pre-existing and unrelated -- that describe builds its own fixtures. Co-Authored-By: Claude Opus 5 <[email protected]>
Both are green 3/3 locally, so they are costing coverage for nothing. Neither gets a code change, and I could not identify what fixed them -- nothing since the 2026-09-04 sampling touches their recorded symptoms. That is weaker evidence than a root cause, so it is recorded in QUARANTINE.md alongside each entry. Table.spec's symptom (timeout after waitForAllLoadersToDisappear) is load-dependent, so an idle local server is the wrong instrument for it; re-tag it if it ejects a PR. Not released: TestSuiteDetailsPage passed the single triage run but fails 3/3 on repeat -- its waitForResponse on the test-case search still never resolves. Co-Authored-By: Claude Opus 5 <[email protected]>
…g blind createTestCase did `.then((res) => res.json())` with no status check, so a failed POST was pushed onto testCasesResponseData as an error body. Callers then read `undefined` for the name and failed far away from the cause -- a search that waits for `q === undefined` never resolves at all, which is the shape of the TestSuiteDetailsPage quarantine entry. Not a fix for that entry: I could not show the create actually failing, and the test still flakes at roughly 1 in 3 locally. This removes a way for a real failure to disguise itself, nothing more. The untyped read was also hiding a genuine type hole: testCase.testSuite is optional and was being assigned to a non-optional field. Two sibling calls in this file parse blind the same way; left alone for now. Co-Authored-By: Claude Opus 5 <[email protected]>
The poll asked for 90s inside a 60s test, so it could never finish its own budget: the test died on its own timeout and reported nothing about what the poll was waiting for. Sized to 45s so the poll's message actually surfaces -- the KnowledgeCenter quarantine entry now says "Timeout 45000ms exceeded while waiting on the predicate" instead of a bare test timeout. Also assert the search query reaches the URL before looking for an entity-type tab: ExploreV1 only renders the tab Menu when searchQueryParam is set, and falls back to <ExploreTree>, whose items carry no menuitem role. This does not fix the entry -- the card still never appears and the panel is still a tree at failure despite the URL carrying a search, which I could not explain from logs alone. It stops the failure hiding its own cause. Co-Authored-By: Claude Opus 5 <[email protected]>
Traced by instrumenting the poll rather than reading logs. The callback never
reached its first diagnostic; a step trace showed why:
STEP B searchBox={"count":0, "url":"http://localhost:8585/explore"}
The global search box lives in the NavBar, which is not mounted the instant
/explore resolves. fill() auto-waits with no timeout of its own, so the
callback did not fail -- it hung. expect.poll cannot interrupt a pending
callback, so the reload-and-retry this helper is built around never ran, and
the test died on its own timeout reporting only that the poll gave up.
That is why the reported symptom kept leading elsewhere: the error said the
poll timed out, so the question looked like "what is the poll waiting for?",
when the poll was blocked on iteration one.
Bound the wait so a not-yet-mounted NavBar returns false, the poll reloads,
and the search proceeds. Poll sized to 45s so it stays under the 60s test
budget and its own message can surface.
Fixes the hang; whether the card then appears is a separate question. Not
verified end to end locally -- auth.setup started taking 10+ minutes and
failing after this session's fixture volume, so the local server is no longer
a reliable verifier.
Co-Authored-By: Claude Opus 5 <[email protected]>
Two mistakes from the de-quarantine commits on this branch: The three "Not quarantined — fixed instead" rows were inserted between that table's header and its `|---|---|` separator, so the separator was stranded below them and the rows rendered as part of the header block. The entry count was updated in the section intro but not in the `PLAYWRIGHT_RUN_QUARANTINED` paragraph below it, which still said 9. Co-Authored-By: Claude Opus 5 <[email protected]>
openEntitySummaryPanel always waited for `searchBox`, the NavBar GlobalSearchBar. /explore renders its own ExploreSearchInput and does not mount the NavBar one, so on that page the wait could only ever time out: runSearch returned false on every attempt and the retry poll span until its budget expired. The helper had never worked for callers landing on /explore, which is why ExplorePageRightPanel_KnowledgeCenter failed 11/11 rather than flaking. `explore-search-input` marks the field wrapper rather than the field, so the textbox inside it is the fill target. Chosen over a locator union or `.first()`: a union risks a strict-mode violation if a page ever renders both, and `.first()` would add a no-positional-locator violation and move the pinned corpus total. Verified against the local stack: 3/3 red before, 3/3 green after (~8.5s per run), cause confirmed at each layer. Co-Authored-By: Claude Opus 5 <[email protected]>
808891c fixed the cause — openEntitySummaryPanel waited for the NavBar searchBox on a page that renders ExploreSearchInput instead — but left the tag on. Verified against the local stack: 3/3 green (~5.5s per run). Default lane is now 4566 of 4571; the quarantined lane lists 12, which is the remaining 5 entries plus the 7 fixture projects, matching what the doc claims. Co-Authored-By: Claude Opus 5 <[email protected]>
The evidence was stale before it was written down. Every test in the file
reached its subject through navigateToAIContextTab, which called
navigateToPersonaWithPagination — a walk of up to 15 pages, each costing a
waitForAllLoadersToDisappear, a `next` click and a /api/v1/personas* round trip,
before the test touched anything it asserted on. That is the recorded timeout,
and it is why the rate tracked shard load (7/11) instead of being deterministic:
the walk grows with the personas the shard has accumulated.
after the sample — replacing the walk with goto('/context-center/ai-context')
plus one card click, and making the list page follow its cursor to exhaustion
server-side. The path that timed out no longer exists.
Green 9/9 locally at ~5s against a 60s budget. Default lane is now 4567 of 4571.
Co-Authored-By: Claude Opus 5 <[email protected]>
All three were run locally at --repeat-each=3 and passed 3/3, comfortably inside their budgets. Their recorded rates are 3/11 and 2/11, so that is the expected result and not evidence they are fixed — they are load-dependent and an idle machine does not reproduce them. Write that down so the next person does not spend the afternoon re-running them locally as I did; the next step is a trace from a failing merge_group run. Also records one unverified lead on the test suite entry. Its symptom is a waitForResponse that never resolves, and every listener in addTestCaseList.ts is correctly hoisted, so a late-registered listener is not the cause. addTestCaseListFilterByFirstColumn is the one that can genuinely never see its request: it picks the Column dropdown's first menuitem, then waits for a list call carrying columnName, which a not-yet-populated dropdown will not produce. Co-Authored-By: Claude Opus 5 <[email protected]>
…st()
ActivityStream: the test could not fail. waitForResponse required status 200
inside the predicate, so any other status left it waiting; .catch(() => null)
then swallowed the timeout and `if (response)` skipped every assertion, so a
missing or failing activity call passed silently. It now uses the existing
visitTableActivityFeed helper, which waits on the specific entity-activity
endpoint, asserts the status, and returns the parsed body.
PersonaAIContextRules: getByText(/knowledge/i) matches all three knowledge
types — Glossary Term, Article and Metric all render "Knowledge" as supporting
text — so .first() left DOM order to decide which type the test exercised.
Select by the option's data-key instead. The fully-rendered switch resolves to
exactly one element, so its .first() went too.
Table: dropped scrollIntoViewIfNeeded (hover/click auto-scroll) and replaced
the getByRole('menu').filter({hasText: '/ Page'}) scope with the specific
menuitem.
Domains: the page.reload() was doing nothing — selectDomain reloads between
its own poll attempts. Verified 3/3 green without it.
selectDomain now activates the row through its own onAction with Enter rather
than clicking the row's centre, so it needs no text match and no chip-geometry
comment.
Lineage: the close button has a data-testid; use it, scoped to the panel,
instead of getByLabel('Close').first().
OwnersSection had no testid, only a class — added one and used it.
eslint-suppressions.json shrinks by the three removed positional locators.
Co-Authored-By: Claude Opus 5 <[email protected]>
✅ Playwright Results — workflow succeededValidated commit ✅ 4492 passed · ❌ 0 failed · 🟡 6 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) 1h 1m 24s ⏱️ Max setup 4m 32s · max shard execution 21m 18s · max shard-job elapsed before upload 25m 3s · reporting 19s 🌐 217.98 requests/attempt · 2.31 app boots/UI scenario · 28.79% common-shard skew Optimization targets still in progress:
🟡 6 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 |
…click Both released tests flaked in this PR's own Playwright run — first attempt failed, retry passed. That is the masked failure this whole effort exists to remove, so neither was fixed. Table "should persist page size" is mine and is now fixed. The review pass left the option click outside the retry that opens the menu, and CI caught exactly that: the menu opened, `<html>` intercepted the press, and the option then went hidden — 324 polls of "element is not visible" until the 180s timeout. Opening and picking now happen inside one retry, and asserting the trigger's new label makes the loop redo the whole thing when the pick did not take. 3/3 green locally, 5.6-21.2s. The KC owner test goes back into quarantine on this new evidence. The 11/11 failure it was tagged for was real and is fixed — openEntitySummaryPanel waited for the NavBar searchBox on a page that renders ExploreSearchInput — but that was hiding a second cause. expectOwnerInPanel polled the owner chip for a full 60s, re-navigating between attempts, and never saw it, even though addOwnerInKCPanel had already awaited the PATCH. So the write landed and the panel's read path lagged it. That is the original recorded symptom, so the fix was incomplete rather than wrong. A longer poll is not the answer; whoever picks this up should find what the panel reads and wait on that. Quarantine goes 3 -> 4; default lane is 4576 of 4580. Co-Authored-By: Claude Opus 5 <[email protected]>
Code Review ✅ ApprovedReduces Playwright quarantine from 9 to 3 entries by fixing three flaky tests with identified root causes. 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 |
|
🚦 Removed from the merge queue —
|
|
Closing in favour of #33122, which now carries every commit from this branch — Combining them was not just tidiness. Both branches lower the pinned
|



Describe your changes:
Fixes #33053
Quarantine is a holding pen, not a resting place. This takes it from 8 entries to 4, and each release names a cause rather than resting on a green local run.
Released with a root cause
LineageInteraction— Verify node panel opens on click (11/11)fitToScreenreturned before its menu popover finished its exit animation, leaving a second[role="dialog"]in the DOM, so an unscoped assertion tripped strict mode. Separately,Verify edge delete button in drawerdeletes the sharedtable1 → topicedge and never restores it, so every later test in the file saw a graph without the topic — that is the "node is not in the graph" symptom.PersonaAIContextRules— knowledge entity type (7/11)navigateToAIContextTab→navigateToPersonaWithPagination, a walk of up to 15 pages, each costing a loader wait, anextclick and a/api/v1/personas*round trip. That is the timeout, and it is why the rate tracked shard load rather than being deterministic. #32458 replaced the whole walk with a direct route on 2026-09-07 — three days after the sample.Table— should persist page size (6/11)ActivityStream— activity stream API is called (2/11)waitForResponserequiredstatus() === 200inside the predicate, so any other status left it waiting;.catch(() => null)swallowed the timeout andif (response)skipped every assertion. It now uses the existingvisitTableActivityFeedhelper, which waits on the specific entity-activity endpoint and asserts the status.The
Tableone is the interesting case, and the reason this PR is worth readingIt was released in an earlier pass "without a code change, 3/3 green locally". This PR's own Playwright run then reported it flaky — first attempt failed, retry passed. That is exactly the masked failure this work exists to remove, so a green workflow was not proof.
The trace named the mechanism: the option click sat outside the retry that opens the menu. The menu opened,
<html>intercepted the press, the option went hidden, and Playwright then logged 324 polls of "element is not visible" until the 180s timeout. Opening and picking now happen inside one retry, and asserting the trigger's new label makes the loop redo the whole thing when the pick did not take.ExplorePageRightPanel_KnowledgeCenterwas released and is now re-quarantinedThe 11/11 failure it was tagged for was real and is fixed:
openEntitySummaryPanelalways waited forsearchBox, the NavBarGlobalSearchBar, but/explorerenders its ownExploreSearchInputand never mounts the NavBar one, so on that page the wait could only time out. The helper had never worked for callers landing on/explore, which is why it failed 11/11 rather than flaking.Releasing it surfaced a second cause underneath. In this PR's run it failed its first attempt and passed on retry:
expectOwnerInPanelpolled for the owner chip for a full 60s, re-navigating between attempts, and never saw it — even thoughaddOwnerInKCPanelhad already awaited the PATCH, so the owner was persisted. The write landed and the panel's read path lagged it. That is the original recorded symptom, so the fix was incomplete rather than wrong. It goes back in with that evidence, noting a longer poll is not the answer.Not in this PR any more:
Domains— Verify domain tags and glossary terms. I had diagnosed the same root cause independently (the row-centre click landing on a tag link) butmainfixed it first, withdomainRow.getByTestId('entity-name').click()— better, because it uses a testid. My commit was dropped as redundant during the rebase;Domains.spec.tsandutils/domain.tsare byte-identical tomain.Left quarantined, deliberately: the remaining 4 each pass locally, comfortably inside budget, which is the expected result for load-dependent flakes on an idle machine rather than evidence they are fixed.
QUARANTINE.mdrecords that, plus a correction: nothing under.github/setsPLAYWRIGHT_RUN_QUARANTINED, so a quarantined test runs in no lane at all and has produced no evidence since being tagged. The soak lane the doc described does not exist, so "wait for a failing merge_group trace" was never going to work.Review follow-ups (thanks @ShaileshParmar11): removed three
.first()calls in favour of stable selectors — the Persona one mattered, becausegetByText(/knowledge/i)matched all three knowledge types and left DOM order to decide which entity type the test exercised, so it now selects ondata-key. Also dropped a redundantscrollIntoViewIfNeeded, replaced a vaguegetByRole('menu').filter()scope with the specific menuitem, switched a lineage close button to its existingdrawer-close-icontestid, and added adata-testidtoOwnersSection(it only had a class).Type of change:
High-level design:
N/A — test-harness fixes. The only product change is one added
data-testid.Tests:
Use cases covered
ActivityStreamgenuinely asserts now, so a missing or failing activity call fails the test instead of passing silently.Unit tests
yarn test:eslint-rules— 114 pass, 0 fail. Includes lowering the pinnedno-positional-locatortotal from 1304 to 1301 for the three removed positional locators.Backend integration tests
Not applicable — no backend changes.
Ingestion integration tests
Not applicable — no ingestion changes.
Playwright (UI) tests
This PR is Playwright changes.
QUARANTINE.mdcarries the causes and the refreshed counts (4576 of 4580; quarantined lane lists 11 = 4 entries + 7 fixture projects).Manual testing performed
Local stack (server + MySQL + Elasticsearch in Docker, current UI), each changed test run 2-4×: red before / green after where a fix was involved.
Then verified against CI rather than trusting local runs. On
ff2a4f0b21— 4492 passed, 0 failed, 6 flaky — every test this PR touches passed on a single attempt, checked against the per-shardresults.jsonrather than inferred from the flaky list:ActivityStream › activity stream API is called…Table › should persist page sizePersonaAIContextRules › knowledge entity type forces…LineageInteraction › Verify node panel opens on clickDomains › Verify domain tags and glossary termsExplorePageRightPanel_KnowledgeCenter › Should remove user ownerThe 6 flaky tests in that run are all unrelated to this PR, and none of them overlap with the 8 from the previous run — a churning population of ambient load-dependent flakes, which is the hole a per-test flake ledger would close.
UI screen recording / screenshots:
Not applicable — no user-visible UI change.
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 UI changes: not applicable beyond one added
data-testid.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 — each released test is itself that test, verified red-before / green-after.
🤖 Generated with Claude Code