Skip to content

Root-cause the Playwright flakes ejecting PRs from the merge queue - #32631

Merged
ShaileshParmar11 merged 17 commits into
mainfrom
claude/playwright-flake-root-cause-dup
Sep 6, 2026
Merged

ShaileshParmar11 merged 17 commits into
mainfrom
claude/playwright-flake-root-cause-dup

Conversation

@anuj-kumary

Copy link
Copy Markdown
Member

Duplicate of #32629 — same branch head (c55fa65), opened as a separate PR.

Describe your changes:

I triaged every merge-queue dequeue reported in #ci-cleanup over a 20-hour window — 22 events, 15 of which produced a real CI result — and found that 14 of the 15 ejected a PR that could not have caused its failure. Four ingestion-only PRs (two-file Python diffs) were ejected by UI specs; one PR that changes a single .yml file was ejected by a browser test.

The failures are not 112 independent flaky tests. They cluster into a small number of mechanisms, and this PR fixes each at its root rather than adding waits or quarantining.

1 · Locator ambiguity silenced with .first()

descriptionBox is page-global, so it matches every editable block editor mounted. After clicking edit-description the page can hold two — the inline one and the modal's — and .first() picks the one behind the overlay. It is visible, so the assertion passes; the click then fails on ant-modal-wrap ... intercepts pointer events and retries until the test times out. The BlockEditorEmbedLink trace shows a 45-second click on an editor nothing could reach.

Adds getDescriptionBox / fillDescriptionBox / resolveDescriptionBox to utils/common.ts — matching the API #32599 introduces, so the two resolve as duplicates rather than semantically — and routes 97 call sites across 40 files through them. utils/{domain,tag,team}.ts are left to #32599.

2 · Fixture identity fixed at construction, reused across retries

Entity names are generated in the constructor, and specs that build fixtures in the describe body do not re-evaluate it on a retry — so beforeAll runs again with the same names and every create answers 409. Eight entity classes move to the existing createOrFetch helper; three take a fields argument because the by-name lookup omits what they read back, checked against each resource's FIELDS rather than assumed.

3 · Interacting before the page settles

  • Lazy right-panel widgets render EntityDetailWidgetSkeleton, which is not data-testid="loader", so waitForAllLoadersToDisappear returned straight past it. request-entity-tags is simply absent until the chunk mounts. New waitForWidgetsToRender, called from both readiness helpers.
  • The glossary drag pressed at coordinates computed before the page finished hydrating; force: true skipped the stability check that would have waited.
  • deleteEdge dispatches a synthetic click on a react-flow edge label; dispatchEvent takes no actionability wait, so a re-layout mid-dispatch makes it silently no-op.
  • Three /metrics navigations used page.goto without waitUntil, defaulting to load and waiting on every subresource.

4 · A component remounting under its own re-render

TestDefinitionFormBody rebuilt options: toOptions(Object.values(...)) every render. Focusing a field re-renders it via onActiveFieldChange, and the new items identity made react-aria rebuild the listbox collection, detaching the option mid-click. Enum-derived, so now built once at module scope.

5 · A regression, not a flake

Domains.spec.ts "Rename domain with assets preserves associations" lost its describe-scope test.slow(true) in #32360 and has timed out at exactly 60000ms in every run since, ejecting four unrelated PRs across six runs. #32360's per-test measurements came from DomainAdvanced and DomainUIInteractions; this describe was not among them. Restored per-test, so the blanket ban #32360 established still holds.

Type of change:

  • Bug fix

High-level design:

Every fix targets a mechanism, not a symptom, and each is backed by a Playwright trace rather than inference from a failure message. Where a helper already existed (createOrFetch, and the scoping primitive #32599 designed) this adopts it instead of adding a parallel one.

The one deliberate behaviour change is the count assertion. .first() silences ambiguity by typing into an arbitrary editor, so the test fails somewhere unrelated to the real problem; asserting a single match fails where the ambiguity is and names the scope that needs narrowing.

Quarantine drops 13 → 9. Four tests are released because their root cause is fixed here, each recorded in QUARANTINE.md with its diagnosis. GlossaryHierarchy "move term to root" stays — it is parked on a product issue, not a flake.

om-playwright/no-positional-locator drops 95 from the suppressions baseline (1457 → 1362).

Tests:

No new tests — this repairs existing ones. Verified locally:

yarn lint:playwright   0 errors, suppressions pruned and clean
tsc --noEmit           633 errors, identical to the pre-change baseline; zero anywhere in playwright/
prettier --check       clean
yarn test TestDefinitionFormBody   12/12 passed

Expect the count assertions to surface new failures: anywhere a page genuinely mounts two editors and .first() happened to pick correctly, the test now fails loudly. Those are latent ambiguities that each need a scope, not regressions from this change.

UI screen recording / screenshots:

N/A — the only src/ change hoists two constants out of a render body. No visual or behavioural change to the rendered form.

Checklist:

  • I have read the CONTRIBUTING document.
  • My PR title is Fixes <issue-number>: <short explanation> — N/A, linked-issue requirement waived via skip-pr-checks.
  • I have commented on my code, particularly in hard-to-understand areas.
  • For JSON changes, I updated the schema — N/A.
  • I ran the linter and formatter.

🤖 Generated with Claude Code

ShaileshParmar11 and others added 8 commits September 5, 2026 14:32
…eue ejections

Triage of 22 merge-queue dequeues over 20 hours found 14 of 15 runs ejected a PR
that could not have caused its failure. The failures cluster into four
mechanisms, not 112 independent flaky tests.

1. Locator ambiguity, silenced with .first()

   `descriptionBox` is page-global, so it matches every editable block editor
   mounted. `updateDescription` resolved it with `.first()`, which on a page with
   the edit modal open selects the inline editor *behind* the overlay: visible,
   so the assertion passed, then the click failed on "ant-modal-wrap ...
   intercepts pointer events" and retried until the 60s timeout. Entity.spec
   "Update description" flaked in 9 of 23 sampled PRs, EntityDataSteward in 6.

   Adds getDescriptionBox/fillDescriptionBox to utils/common.ts, matching the API
   #32599 introduces so the two resolve as duplicates rather than semantically.
   97 call sites across 40 files now route through them, scoped to the real
   container where the code already named one, and asserting a single match
   everywhere else so an ambiguous page fails where the ambiguity is.

   utils/{domain,tag,team}.ts are left to #32599, which already fixes them.

2. Fixture identity fixed at construction, reused across retries

   Entity names are generated in the constructor, and specs that build fixtures
   in the describe body do not re-evaluate it on a retry — so beforeAll runs
   again with the same names and every create answers 409. LineageFilters failed
   this way in 17 of 23 PRs.

   Eight entity classes move to the existing createOrFetch helper. Three take a
   `fields` argument because the by-name lookup omits what they read back
   (columns for File and Worksheet, dataModel for Container), checked against
   each resource's FIELDS rather than assumed. TaskClass is excluded (tasks are
   auto-numbered, nothing to conflict on), as are DashboardDataModelClass (its
   own 409 and 5xx handling would regress) and KnowledgeCenterClass (the /name
   lookup convention is unconfirmed for contextCenter pages).

   Two bugs surfaced on the way: DashboardClass POSTed a dashboard referencing a
   chart before awaiting the chart's creation, and two classes returned
   `response.body` — an uncalled method reference, never the entity.

3. Interacting before the page settles

   The glossary page keeps rendering after its loaders clear: the description
   block hydrates last and pushes every row down about a row height. dragTo
   computed both boxes, then pressed at coordinates that had moved, so no
   dragstart fired and the confirmation modal never opened. force: true is what
   let it get that far — it skips the stability check. Holds both rows still
   before pressing; the force option stays, the hover overlays still need it.

4. A component remounting under its own re-render

   TestDefinitionFormBody rebuilt `options: toOptions(Object.values(...))` on
   every render. Focusing a field re-renders it via onActiveFieldChange, and the
   new items identity made react-aria rebuild the listbox collection, detaching
   the option mid-click — the trace shows "element was detached from the DOM,
   retrying" and then nothing for the remaining 44s. The lists are enum-derived
   and are now built once at module scope. This one test ejected four separate
   PRs in 36 hours.

Quarantine drops from 13 entries to 9. Four tests are released because their root
cause is fixed here, each recorded in QUARANTINE.md with the diagnosis;
GlossaryHierarchy "move term to root" stays, parked on a product issue rather
than a flake.

The count assertion changes behaviour by design: where a page really does mount
two editors and .first() happened to pick the right one, the test now fails
loudly instead of passing by luck. Those are latent ambiguities that each need a
scope, not regressions.

Co-Authored-By: Claude Opus 5 <[email protected]>
`Domain Rename Comprehensive Tests` lost its describe-scope `test.slow(true)` in
#32360, which removed all 83 blanket calls and reinstated the 26 that per-test
measurements showed running over 40s of the 60s budget. Those measurements were
taken from DomainAdvanced and DomainUIInteractions; this describe was not among
them.

`Rename domain with assets (tables, topics, dashboards) preserves associations`
seeds three assets, renames the domain twice and re-verifies the associations
after each rename. It has timed out at exactly 60000ms in every merge_group run
since #32360 landed, ejecting four unrelated PRs — #32566, #31392, #32530 and
#32518 — across six runs. The retry gets as far as asserting the renamed header,
so it is short of time, not broken.

Restores the budget per-test rather than at describe scope, so the blanket ban
#32360 established still holds and the other tests in the describe keep the
default.

Co-Authored-By: Claude Opus 5 <[email protected]>
…oad` waits

Three more mechanisms behind current merge-queue ejections.

Lazy right-panel widgets are not covered by the loader wait

  The tags, glossary, owner and domain widgets are behind React.lazy, and while
  their chunk loads the boundary renders EntityDetailWidgetSkeleton. That is not
  `data-testid="loader"`, so waitForAllLoadersToDisappear returns straight past
  it and a test can reach for something the widgets own before they mount.
  `request-entity-tags` is simply absent until then, so the click waits out the
  whole test timeout instead of racing by a few frames — TasksUIFlow "Create and
  reject tag task for Dashboard" failed this way in 18 of 23 sampled PRs, the
  highest rate in the suite.

  Adds waitForWidgetsToRender and calls it from the two readiness helpers that
  claim the page is ready: visitEntityPageByFqn and waitForPageLoaded.

Edge clicks in lineage silently no-op

  deleteEdge dispatches a synthetic click on a react-flow edge label, then waits
  for the toolbar it opens. dispatchEvent takes no actionability wait, so when the
  graph re-lays out between resolving the label and firing the event the click
  lands on a node that is no longer wired up: the toolbar never opens and the
  wait for `add-pipeline` burns the 300s budget on an action that did nothing.
  Retries the click/assert pair until the toolbar is actually there.

`page.goto` defaulting to `load` on /metrics

  Three call sites navigated to /metrics without a waitUntil, so Playwright waited
  for every subresource. Under merge-queue load that exceeded the 60s navigation
  timeout and ejected #32465. Each site already awaits its own readiness signal
  immediately afterwards — a search response, a visible table, a URL match — so
  they move to domcontentloaded, matching the convention used elsewhere in utils.

Co-Authored-By: Claude Opus 5 <[email protected]>
…e last .first() hangs

The editor-behind-the-modal bug was not confined to `updateDescription`. Six more
call sites reached for `.first()` after clicking `edit-description`, and the
BlockEditorEmbedLink trace shows what that costs: a 45s click on an editor
nothing could reach, twice, before the 60s timeout.

Extracts the resolution that `updateDescription` was carrying inline into
`resolveDescriptionBox` in utils/common.ts — prefer the editor inside the dialog
when the edit opened one, assert a single match either way, retry through the
modal's enter animation — and points all seven call sites at it:

  utils/entity.ts                  updateDescription (was inline)
  BlockEditorEmbedLink.spec.ts     invalid URL validation
  EntityRenameConsolidation.spec.ts
  DataProductRenameConsolidation.spec.ts
  ContextCenterArticles.spec.ts    text formatting / hash mention
  Pages/Entity.spec.ts             column detail panel

Two `.first()` calls stay: the deliberate fallback chain in importUtils, which
tries a scoped editor before a page-wide one, and ColumnBulkOperations, which is
already scoped to its drawer.

om-playwright/no-positional-locator drops 11 more from the suppressions baseline
(1373 -> 1362).

Co-Authored-By: Claude Opus 5 <[email protected]>
… create

The createOrFetch sweep replaced the local serviceResponse/entityResponse
consts with this.serviceResponseData/this.entityResponseData but left the
return blocks of ContainerClass.create and WorksheetClass.create referencing
the deleted locals. Every create() call threw
"ReferenceError: serviceResponse is not defined" at runtime (babel transpile,
no type-check), failing setup for every spec that builds a Container or
Worksheet — all 27 red shards in the merge-queue run trace to this.

Co-Authored-By: Claude Fable 5 <[email protected]>
'Add and Remove Assets for Data Consumer' runs three full navigation
cycles (add assets, verify filter, remove assets) and overruns the 60s
default on slow shards — the two failed attempts died at different
points (checkAssetsCount vs visitPage), the signature of a budget
problem rather than a deterministic bug. test.slow() triples the budget
for this test only, and checkAssetsCount gets the same 30s allowance
the domain util already uses for the post-reload count badge.

Co-Authored-By: Claude Fable 5 <[email protected]>
The sweep fixed 12 suppressed no-positional-locator violations and pruned
eslint-suppressions.json, but the exact-count assertion in corpus.test.mjs
still recorded 1322 — failing ui-checkstyle's guardrail step.

Co-Authored-By: Claude Fable 5 <[email protected]>
ui-checkstyle's fixer gate (organize-imports → eslint --fix → prettier)
still modified ten PR-touched files: the sweep's edits left unused
imports (getDescriptionBox, descriptionBox) and unordered import blocks
behind. This commit is the fixers' own output — verified a stable
fixpoint locally, zero ESLint errors.

Co-Authored-By: Claude Fable 5 <[email protected]>
@github-actions

github-actions Bot commented Sep 5, 2026

Copy link
Copy Markdown
Contributor

❌ PR checklist incomplete

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

  • No GitHub issue is linked. Link an issue in the Development section of the PR (or add Fixes #12345 to the description). For a same-org cross-repo issue, add Fixes open-metadata/<repo>#123 to the description.

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.

@anuj-kumary anuj-kumary self-assigned this Sep 5, 2026
@github-actions github-actions Bot added the UI UI specific issues label Sep 5, 2026
@github-actions

github-actions Bot commented Sep 5, 2026

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!

@anuj-kumary anuj-kumary added the safe to test Add this label to run secure Github workflows on PRs label Sep 5, 2026
@anuj-kumary anuj-kumary added the skip-pr-checks Bypass PR metadata validation check label Sep 5, 2026
@ShaileshParmar11
ShaileshParmar11 added this pull request to the merge queue Sep 5, 2026
@github-merge-queue
github-merge-queue Bot removed this pull request from the merge queue due to failed status checks Sep 5, 2026
@github-actions

github-actions Bot commented Sep 5, 2026

Copy link
Copy Markdown
Contributor

🚦 Removed from the merge queue — failed_checks (2026-09-05T19:21:45Z)

Blocked the queue: playwright-summary

ShaileshParmar11 and others added 2 commits September 6, 2026 01:06
`Create domains and add assets` timed out in the merge queue on a click that
never landed: the Aggregate option went "not stable", then "detached from the DOM,
retrying", for 169s on the first attempt and 42s on the retry.

Same defect as TestDefinitionFormBody. `domainTypeOptions` was rebuilt on every
render, so `Select` received a new `items` array each time and react-aria tore
down and remounted the open listbox underneath the click. DomainType is an enum,
so the list can never change — it moves to module scope. `dataProductTypeOptions`
immediately below it was already memoized; this one was not.

Swept the rest of the `options:` field bindings for the same shape.
AddMetricPage and MetricExpression both build theirs inside `useMemo(..., [])`,
so they were already stable and are left alone.

Co-Authored-By: Claude Opus 5 <[email protected]>
…solidation

Routing EntityRenameConsolidation and DataProductRenameConsolidation through
`resolveDescriptionBox` left each file's own `const descriptionBox = ...` unused.
`tsc --project playwright/tsconfig.json` flags them as TS6133; the root
`tsc --noEmit` does not, because its tsconfig only includes `src`.

Co-Authored-By: Claude Opus 5 <[email protected]>
@github-actions

github-actions Bot commented Sep 5, 2026

Copy link
Copy Markdown
Contributor

⚠️ UI Checkstyle passed — lint findings in changed files

🔍 ESLint findings in this PR's files — 0 error(s), 3 warning(s)

Errors block the build. Warnings do not yet — they are rules whose backlog is still
being worked down, listed so this PR does not add to it. See docs/ui-code-quality-gate.md.

0 error(s), 3 warning(s) across 1 changed file(s).

Count Rule
1 openmetadata-imports/no-internal-barrel-imports
1 sonarjs/cyclomatic-complexity
1 sonarjs/no-nested-conditional
All findings
Location Rule Message
🟡 src/components/Domain/AddDomainForm/AddDomainForm.component.tsx:89:1 openmetadata-imports/no-internal-barrel-imports Import the internal module directly instead of its index barrel so unrelated siblings do not enter the bundle graph.
🟡 src/components/Domain/AddDomainForm/AddDomainForm.component.tsx:322:24 sonarjs/cyclomatic-complexity {"message":"Function has a complexity of 11 which is greater than 10 authorized.","cost":1,"secondaryLocations":[{"line":322,"column":23,"endLine":322,"endColum
🟡 src/components/Domain/AddDomainForm/AddDomainForm.component.tsx:394:11 sonarjs/no-nested-conditional Extract this nested ternary operation into an independent statement.

Fix locally (fast - only checks files changed in this branch):

make ui-checkstyle-changed

ShaileshParmar11 and others added 2 commits September 6, 2026 01:17
…asserting

Review catch. The sweep left 57 call sites on `fillDescriptionBox(page, ...)`,
which asserted a single match against the whole page — so an entity page with its
description modal open, two editors mounted, became a hard failure. That is the
exact situation the helper exists to handle, and a test that was green because
`.first()` happened to pick the right editor would have gone red. New red ejects
PRs from the merge queue just as effectively as a flake does; "it was already
ambiguous" explains the cause and does nothing about the effect.

A `Page` scope now resolves the way a person would — the editor inside the dialog
the edit just opened, falling back to the page's own — which is what
`resolveDescriptionBox` already did for the six sites that used it. Only 6 of 63
sites had that behaviour; now all 63 do.

An explicit `Locator` scope keeps the strict assertion: the author narrowed to
that container deliberately, so two editors inside it is a real authoring bug
worth surfacing rather than silently typing into one of them.

Co-Authored-By: Claude Opus 5 <[email protected]>
A page legitimately hosts several description editors at once — an entity
description alongside per-column ones. ColumnBulkOperations is the standing
proof: it narrows to its drawer and *still* needs a first-match, so multiplicity
is normal even inside a chosen container, not an anomaly.

So asserting a single match against a page was wrong on its own terms, and
removing the assertion alone would not have helped: `locator.fill()` is strict,
so a two-match locator throws either way. The fix is to stop producing one.

The bug was never "several editors on a page". It was taking the first match
*while a modal was open*, which picked the inline editor behind the overlay —
visible, so the assertion passed, then the click died on "ant-modal-wrap
intercepts pointer events". Scoping to the dialog is the whole fix.

  dialog open  -> the dialog's editor, and assert exactly one. This is the one
                  place the invariant really holds; two here means the dialog
                  selector matched something it should not have.
  no dialog    -> first match, as it has always been. Justified disable rather
                  than a suppression, so the baseline still only shrinks.

An explicit Locator scope no longer asserts a count either; if such a container
ever holds two, Playwright's own strict-mode error names the file and line.

Co-Authored-By: Claude Opus 5 <[email protected]>
@github-actions

github-actions Bot commented Sep 5, 2026 •

Copy link
Copy Markdown
Contributor

✅ Playwright Results — workflow succeeded

Validated commit 847f00b4f99adf67b111358e8e57c1a60b244626 in Playwright run 34015944754, attempt 1.

✅ 4460 passed · ❌ 0 failed · 🟡 10 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) 49m 18s

⏱️ Max setup 4m 21s · max shard execution 19m 5s · max shard-job elapsed before upload 22m 14s · reporting 25s

🌐 216.34 requests/attempt · 2.29 app boots/UI scenario · 41.48% common-shard skew

Optimization targets still in progress:

  • Common shard skew was 41.48% (convergence target: at most 15%).
  • Browser traffic was 216.34 requests per attempt (convergence target: fewer than 200).
  • Application boot ratio was 2.29 per UI scenario (10880 boots / 4752 scenarios; convergence target: at most 1).
Shard Passed Failed Flaky Skipped Lifecycle failed Lifecycle flaky
✅ Shard advanced-search-01 130 0 0 0 0 0
✅ Shard chromium-01 155 0 0 0 0 0
✅ Shard chromium-02 156 0 0 0 0 0
✅ Shard chromium-03 151 0 0 0 0 0
✅ Shard chromium-04 134 0 0 0 0 0
🟡 Shard chromium-05 163 0 1 0 0 0
🟡 Shard chromium-06 183 0 2 0 0 0
✅ Shard chromium-07 157 0 0 0 0 0
🟡 Shard chromium-08 186 0 1 0 0 0
✅ Shard chromium-09 162 0 0 0 0 0
🟡 Shard chromium-10 118 0 1 0 0 0
✅ Shard chromium-11 138 0 0 0 0 0
🟡 Shard chromium-12 148 0 1 0 0 0
✅ Shard chromium-13 175 0 0 0 0 0
✅ Shard chromium-14 160 0 0 0 0 0
✅ Shard chromium-15 157 0 0 0 0 0
✅ Shard chromium-16 163 0 0 0 0 0
✅ Shard chromium-17 170 0 0 0 0 0
🟡 Shard chromium-18 158 0 1 0 0 0
✅ Shard chromium-19 140 0 0 0 0 0
✅ Shard chromium-20 167 0 0 0 0 0
✅ Shard chromium-21 158 0 0 0 0 0
🟡 Shard chromium-22 129 0 1 0 0 0
🟡 Shard chromium-23 167 0 1 0 0 0
✅ Shard chromium-24 164 0 0 1 0 0
🟡 Shard chromium-25 151 0 1 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 56 0 0 0 0 0
✅ Shard import-export-02 61 0 0 0 0 0
✅ Shard import-export-03 33 0 0 0 0 0
✅ Shard ingestion-01 41 0 0 0 0 0
✅ Shard ingestion-02 45 0 0 0 0 0
✅ Shard reindex-01 28 0 0 0 0 0
✅ Shard search-01 12 0 0 0 0 0
✅ Shard search-rbac-01 29 0 0 0 0 0
🟡 10 flaky test(s) (passed on retry)
  • Features/ContextCenterDashboard.spec.ts › Create > Quick Link creates a quick link that appears in the Articles pillar card recent list (shard chromium-05, 1 retry)
  • Pages/DataProductAndSubdomains.spec.ts › Add assets to data product and verify count (shard chromium-06, 1 retry)
  • Pages/TasksUIFlow.spec.ts › Create and resolve description task for Pipeline via UI (shard chromium-06, 1 retry)
  • Pages/CustomProperties.spec.ts › Date Time (shard chromium-08, 1 retry)
  • Features/OntologyStudioCardinality.spec.ts › edges for cardinality-typed relations appear in the graph edge data (shard chromium-10, 1 retry)
  • VersionPages/ServiceEntityVersionPage.spec.ts › Storage Service (shard chromium-12, 1 retry)
  • Pages/InputOutputPorts.spec.ts › Output ports section collapse/expand (shard chromium-18, 1 retry)
  • Flow/PersonaDeletionUserProfile.spec.ts › User profile loads correctly before and after persona deletion (shard chromium-22, 1 retry)
  • Features/RestoreEntityInheritedFields.spec.ts › Validate restore with Inherited domain and data products assigned (shard chromium-23, 1 retry)
  • Features/PersonaAIContext.spec.ts › View in Explore link href reflects the selected entity type (shard chromium-25, 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-merge-queue
github-merge-queue Bot removed this pull request from the merge queue due to a conflict with the base branch Sep 5, 2026
@github-actions

github-actions Bot commented Sep 5, 2026

Copy link
Copy Markdown
Contributor

🚦 Removed from the merge queue — merge_conflict (2026-09-05T22:57:33Z)

The entry left the queue before it was built, so no checks ran against it.

#32599 landed the description-editor scoping helpers on main, colliding with the
copies this branch carried. Resolved in favour of this branch's versions, which
are a strict superset:

  getDescriptionBox   main takes `Locator`; here `Page | Locator`. Wider, so
                      main's three call sites (domain, tag, team) are unchanged.
  fillDescriptionBox  a `Locator` scope keeps main's count assertion verbatim —
                      a form or modal the author picked really does host one
                      editor. A `Page` scope resolves instead, because a page
                      may legitimately hold several and asserting there would
                      fail on ordinary pages.
  resolveDescriptionBox  new here; no counterpart on main.

Both sides were fixing #32598 from opposite ends: main narrowed the three call
sites it owned, this branch swept the remaining ~90 and added the dialog-aware
resolution. Keeping main's assertion for chosen containers means its call sites
behave exactly as they do on main today.

Co-Authored-By: Claude Opus 5 <[email protected]>
Domains "Verify domain data products count includes subdomain data products"

  Four sequential verification steps, each with its own reload — the domain's
  data-product tab, the subdomain's, the tab after deleting the subdomain, and a
  deeply nested subdomain. The trace for run 33955229584 shows them summing to
  ~65s against the 60s default, cut off mid-way through the last one. Same shape
  as the rename test already fixed here: a genuinely slow test left without a
  budget when #32360 removed the blanket ones. Per-test, not describe-scope.

IngestionLogStreamLive scheduler wait

  The wait for a freshly triggered run to report `running` gave up at 60s while
  the pipeline was still `queued` — accepted by the system, just slow to start
  under merge-queue load (run 33970886957). That ceiling was tighter than the
  budget it sits inside: the `beforeAll` declares setTimeout(180_000) and spends
  about 6s reaching the wait, so 60s left ~114s unused. Raised to 120s, which
  keeps a real ceiling, still lands ~54s inside the hook's budget, and only
  spends headroom that already existed. A terminal state still fails fast.

Co-Authored-By: Claude Opus 5 <[email protected]>
ShaileshParmar11 and others added 2 commits September 6, 2026 11:15
…rid re-sweep

ExploreDiscovery "Should not display soft deleted assets in search suggestions"

  The test clicked Confirm on the delete modal and reloaded immediately, without
  waiting for the DELETE. If the server has not applied the soft delete by the
  time the page reloads, the table renders as live, no deleted-badge is ever
  mounted, and the assertion burns its full timeout. It passes locally, where the
  delete returns in milliseconds, and loses the race under merge-queue load.
  Verified: reproduced the shape locally and the fixed test passes.

MetricBulkImportExportEdit "renders complex fields from listing hydration"

  Two things move underneath a sweep of that grid. React Data Grid virtualises
  columns, so a cell is only in the DOM while its column overlaps the viewport;
  and the complex fields — glossary terms, tags, tier — hydrate from the listing
  after the first paint, which is exactly what waitForMetricBulkEditGrid does not
  wait for: it returns once the header row and the *name* cell are up.

  expectVisibleAfterHorizontalScroll swept once and swallowed every miss with
  `.catch(() => false)`, so a cell could be missed twice over — its column not
  mounted when the sweep passed it, or its value not yet arrived — and the pass
  ended with a bare "element not found" on a cell that was merely late. It now
  re-sweeps until the cell appears, recomputing the scroll range each attempt
  because scrollWidth itself grows as more columns mount.

Tag.spec "Add and Remove Assets for Data Consumer" needed nothing: it already
carries a test.slow() here. The run that failed it was a merge-queue build of
another PR, against main, which does not have that fix yet.

Co-Authored-By: Claude Opus 5 <[email protected]>
…rong FQNs

Verified against a running server this time, by calling create() twice — the
shape a retried beforeAll actually produces. That caught two bugs the earlier
conversions had shipped blind.

DashboardClass / DashboardDataModelClass: wrong FQN in the 409 recovery

  DashboardDataModelRepository builds `<serviceFqn>.model.<name>` — a literal
  `model` segment no other entity type has. Both classes looked the conflicting
  entity up as `<service>.<name>`, so on a retry the 409 fallback answered 404
  and the create failed anyway, with a more confusing error than the plain 409
  it replaced. Strictly worse than not converting them.

ContainerClass: the child container was still a raw POST

  Only the service and the parent container went through createOrFetch; the
  child kept its bare post, so a retry still 409'd. Its FQN hangs off the parent
  container, not the service.

createOrFetch now also retries 5xx

  It already re-sent on 404 — the server rejected the request outright, so
  nothing was partially applied. A transient 5xx on create is the same case, and
  DashboardDataModelClass carried its own copy of that loop for exactly this
  reason. Folding it in lets that class drop both of its hand-rolled blocks and
  gives every other caller the same protection; a genuine failure still surfaces
  after the bounded retries.

KnowledgeCenterClass needs no change: it generates page names inside create()
with cryptoRandomString, so a second call cannot collide. It was on the deferred
list for the wrong reason.

Validated: all eight converted classes now create twice in a row cleanly.

Co-Authored-By: Claude Opus 5 <[email protected]>
@gitar-bot

gitar-bot Bot commented Sep 6, 2026

Copy link
Copy Markdown
Code Review ✅ Approved

Roots out five mechanisms causing Playwright merge-queue ejections across 22 triaged events. Fixes locator ambiguity in description editors by introducing scoped helpers, stabilizes fixture identity across retries with createOrFetch, waits for widgets to render before interaction, eliminates mid-dispatch re-layouts, fixes three /metrics navigations to wait properly, hoists enum options out of render loops, and restores per-test test.slow(true) to a regressed describe block. Reduces quarantined tests from 13 to 9 and lint suppressions from 1457 to 1362. 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 👍 / 👎 | Powered by Gitar — free for open source

@sonarqubecloud

sonarqubecloud Bot commented Sep 6, 2026

Copy link
Copy Markdown

@ShaileshParmar11

ShaileshParmar11 commented Sep 6, 2026 •

Copy link
Copy Markdown
Contributor

Full Playwright run: green

Triggered the complete duration-balanced suite (workflow_dispatch, full_suite=true) against this branch at 847f00b4f9, rather than relying on the impact-map subset the PR checks run.

Run 34015944754 — 4471 tests, 0 failed, 10 passed on retry, 1 skipped.

Every test this PR targets passed on the first attempt

Area Tests
TestLibrary supported services · external test definitions · create/edit/delete · maintain page on edit
Domains create + assets · data products count · TagSuggestion · duplicate creation · rename with assets
Glossary Drag and Drop ×2 · GlossaryHierarchy cancel drag
Other LineageFilters · TasksUIFlow reject tag task · ExploreDiscovery · IngestionLogStreamLive · MetricBulkImportExport hydration · Tag.spec assets

All expected — no retries. That includes TestLibrary:845, which had ejected four separate PRs, and Domains:194, which ejected this PR's own predecessor.

This run also gives the first execution-based evidence for the two product fixes (TestDefinitionFormBody, AddDomainForm). They cover six of the sixteen ejection causes and could not be verified locally, since there is no dev server and the built UI does not carry source changes.

Not proven by this run

A single green run shows the flakes did not fire once; it does not show they are gone. The argument is the mechanisms and their traces — this run is consistent with them.

Ten unrelated tests still flaked (passed on retry): PersonaAIContext, PersonaDeletionUserProfile, ServiceEntityVersionPage, TasksUIFlow resolve description, RestoreEntityInheritedFields, ContextCenterDashboard, CustomProperties, DataProductAndSubdomains, OntologyStudioCardinality, InputOutputPorts. None is touched by this PR. If one loses its retry in the merge queue it will eject this PR for a reason unrelated to its contents — that is the misattribution pattern this PR documents, and the right response is a re-queue rather than a re-investigation.

Nine tests remain quarantined, three of which fail in essentially every run. Those are untouched here and stay a known blind spot.

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 skip-pr-checks Bypass PR metadata validation check UI UI specific issues

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants