Skip to content

fix(ui): unblock the merge queue — product tour fixtures and ontology Studio Playwright failures - #36645

Merged
anuj-kumary merged 6 commits into
mainfrom
fix-product-tour-ontology-reviews-fixtures
Oct 30, 2026
Merged

anuj-kumary merged 6 commits into
mainfrom
fix-product-tour-ontology-reviews-fixtures

Conversation

@anuj-kumary

@anuj-kumary anuj-kumary commented Oct 30, 2026 •

Copy link
Copy Markdown
Member

Describe your changes:

Every merge-queue run fails Playwright on four specs. All four came in with #36187, #36188 and #36190, which merged with Playwright skipped; the nightly at 1df8e45e86d (#35989) was green. Example run.

The Collate build failure (UNRESOLVED_IMPORT of sparqlQuerySettings.json) is fixed separately by #36642 and is not part of this PR.

Spec Cause Kind Fix
Flow/ProductTour.spec.ts:199 #36188 mounts OntologyTasksDrawer, whose pending/created count queries run on page load. The Classic tour has no recorded response for them, so they reach the server. Test data Record both /ontologies/reviews responses in classicTour.fixtures.json
Features/OntologyReview.spec.ts:348 Reviewer search starts on focus, and React Aria opens the list only on a text change while options are already loaded. Filling the whole name at once leaves the list closed. A user who pastes a name before the list loads hits the same (product follow-up for the owner). Test Click the picker and wait for its first user search before typing, in both places the spec types into a fresh picker
Features/OntologyNativeTreeShell.spec.ts:161 In AI mode the scope menu and actions sit in PageHeader's actions slot, which never shrinks. At 924px beside the Governance panel the Tasks button ends ~95px past the viewport and the subtitle collapses to one word per line. Product bug + stale assertion Move the scope menu and actions onto the wrapping tab row; drop the spec's one-row check, since the AI header puts tabs on their own row. Later in the same test, expect the sentence-case Ontology library title (#35989); that step never ran before
Features/OntologyNativeOperations.spec.ts:429 Since #36187 "Retry review" lives on ontology-recovery-action and only for a definitive rejection (4xx); a 5xx offers "Check status", deliberately, to avoid duplicate tasks. Stale test Mock a 422 and use the recovery button

Tests

🤖 Generated with Claude Code

#36188 mounted OntologyTasksDrawer on the Ontology Explorer page; its
pending/created count queries run on mount, so the Classic product tour
sent them to the server and ProductTour.spec.ts failed on every
merge-queue run.
@anuj-kumary
anuj-kumary requested a review from a team as a code owner October 30, 2026 06:02
@anuj-kumary
anuj-kumary requested a review from sweta1308 October 30, 2026 06:02
@github-actions

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.

@github-actions github-actions Bot added the UI UI specific issues label Oct 30, 2026
@github-actions

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 self-assigned this Oct 30, 2026
@anuj-kumary anuj-kumary added safe to test Add this label to run secure Github workflows on PRs skip-pr-checks Bypass PR metadata validation check labels Oct 30, 2026
…36190

- OntologyReleaseReviewers: allow an empty collection once text is typed.
  The search starts on focus, so its results land after a fast fill;
  React Aria only opens the list on a text change with options present,
  so the reviewer options never appeared (OntologyReview.spec.ts:348).
- OntologyStudioHeader (AI mode): move the scope menu and actions onto
  the wrapping tab row. PageHeader's actions slot never shrinks, so at
  924px beside the Governance panel the Tasks button ran ~95px past the
  viewport and the subtitle collapsed to one word per line.
- OntologyNativeTreeShell.spec.ts: drop the one-row assertion; the AI
  header puts the mode tabs on their own row by design.
- OntologyNativeOperations.spec.ts: since #36187 only a definitive
  rejection offers Retry review, on ontology-recovery-action; a 5xx only
  offers Check status. Mock a 422 and use that button.
@anuj-kumary anuj-kumary changed the title fix(ui): record Studio Tasks drawer counts in the Classic tour fixtures fix(ui): unblock the merge queue — product tour fixtures and ontology Studio Playwright failures Oct 30, 2026
@anuj-kumary
anuj-kumary enabled auto-merge October 30, 2026 06:25
@github-actions

github-actions Bot commented Oct 30, 2026 •

Copy link
Copy Markdown
Contributor

Jest test Coverage

UI tests summary

Lines Statements Branches Functions
Coverage: 80%
80.5% (134795/167433) 67.35% (48206/71569) 70.39% (27145/38562)

@github-actions

github-actions Bot commented Oct 30, 2026 •

Copy link
Copy Markdown
Contributor

⚪ Playwright Results — workflow was cancelled

Validated commit 745cc8dbc11cc391e3064d123d926a6523572712 in Playwright run 41020953854, attempt 1.

✅ 0 passed · ❌ 0 failed · 🟡 0 flaky · ⏭️ 0 skipped · 🧰 0 lifecycle flaky

⚙️ No test failures. This run failed in CI infrastructure or reporting (see Pipeline and setup failures), not because of your changes — no test action needed from you.

Pipeline and setup failures (10)

  • The Playwright shard matrix was cancelled.
  • HTML report merge finished with status failure.
  • Playwright coverage validation found 117 missing, 0 unexpected, 0 duplicate-plan, and 0 duplicate-execution test ID(s).
  • Shard chromium-01 did not upload a usable Playwright results artifact.
  • Shard rdf-01 did not upload a usable Playwright results artifact.
  • Shard visual-01 did not upload a usable Playwright results artifact.
  • Shard chromium-01 failed during setupEnvironment setup.
  • Shard chromium-01 test execution finished with status skipped without a reported test failure.
  • Shard rdf-01 test execution finished with status skipped without a reported test failure.
  • Shard visual-01 test execution finished with status skipped without a reported test failure.

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) 22m 16s

⏱️ Max setup 0s · max shard execution 0s · max shard-job elapsed before upload 1m 25s · reporting 0s

🌐 0.00 requests/attempt · 0.00 app boots/UI scenario · 0.00% common-shard skew

Optimization targets still in progress:

  • Application boot ratio was 0 per UI scenario (0 boots / 0 scenarios; convergence target: at most 1).
Shard Passed Failed Flaky Skipped Lifecycle failed Lifecycle flaky
⛔ Shard chromium-01 — — — — — —
⛔ Shard rdf-01 — — — — — —
⛔ Shard visual-01 — — — — — —

📦 Download artifacts

How to debug locally
# Download playwright-test-results-<shard> artifact and unzip
npx playwright show-trace path/to/trace.zip    # view trace

#35989 renders the library drawer title sentence-case; #36190's spec
still expected title case. It never ran that far before, because it
failed earlier at the 924px header check.
The reviewer picker searches only once focused, and React Aria opens
its list only on a text change while options are already loaded, so
filling the whole name at once left the list closed. Click the picker
and wait for its first user search before typing.

Reverts the allowsEmptyCollection change: it read the previous render's
search text, so it never opened the list for a single fill.
@github-merge-queue
github-merge-queue Bot removed this pull request from the merge queue due to failed status checks Oct 30, 2026
@github-actions

Copy link
Copy Markdown
Contributor

🚦 Removed from the merge queue — failed_checks (2026-10-30T07:20:57Z)

Blocked the queue: playwright-summary

Failed Playwright tests:

  • Features/OntologyNativeTreeShell.spec.ts › keeps both parent placements, one selection and all header controls at 924 pixels
  • Features/OntologyReview.spec.ts › manages reviewers with reload persistence and locks settings during an open review

…Review

In a locked review the rule control also renders a focusable tooltip
trigger with the same name, so getByRole('button', { name: 'All' })
hit a strict-mode violation. The step never ran before the reviewer
picker step was fixed.
@sonarqubecloud

Copy link
Copy Markdown

@anuj-kumary
anuj-kumary added this pull request to the merge queue Oct 30, 2026
Merged via the queue into main with commit 6dd7b27 Oct 30, 2026
119 of 120 checks passed
@anuj-kumary
anuj-kumary deleted the fix-product-tour-ontology-reviews-fixtures branch October 30, 2026 09:13
manerow pushed a commit that referenced this pull request Oct 30, 2026
… Studio Playwright failures (#36645)

* fix(ui): record Studio Tasks drawer counts in the Classic tour fixtures

#36188 mounted OntologyTasksDrawer on the Ontology Explorer page; its
pending/created count queries run on mount, so the Classic product tour
sent them to the server and ProductTour.spec.ts failed on every
merge-queue run.

* fix(ui): repair the ontology Studio Playwright failures from #36187-#36190

- OntologyReleaseReviewers: allow an empty collection once text is typed.
  The search starts on focus, so its results land after a fast fill;
  React Aria only opens the list on a text change with options present,
  so the reviewer options never appeared (OntologyReview.spec.ts:348).
- OntologyStudioHeader (AI mode): move the scope menu and actions onto
  the wrapping tab row. PageHeader's actions slot never shrinks, so at
  924px beside the Governance panel the Tasks button ran ~95px past the
  viewport and the subtitle collapsed to one word per line.
- OntologyNativeTreeShell.spec.ts: drop the one-row assertion; the AI
  header puts the mode tabs on their own row by design.
- OntologyNativeOperations.spec.ts: since #36187 only a definitive
  rejection offers Retry review, on ontology-recovery-action; a 5xx only
  offers Check status. Mock a 422 and use that button.

* test(playwright): expect the sentence-case Ontology library title

#35989 renders the library drawer title sentence-case; #36190's spec
still expected title case. It never ran that far before, because it
failed earlier at the 924px header check.

* test(playwright): load reviewer options before typing in OntologyReview

The reviewer picker searches only once focused, and React Aria opens
its list only on a text change while options are already loaded, so
filling the whole name at once left the list closed. Click the picker
and wait for its first user search before typing.

Reverts the allowsEmptyCollection change: it read the previous render's
search text, so it never opened the list for a single fill.

* test(playwright): note why OntologyReview loads reviewer options first

* test(playwright): match the disabled approval-rule select in OntologyReview

In a locked review the rule control also renders a focusable tooltip
trigger with the same name, so getByRole('button', { name: 'All' })
hit a strict-mode violation. The step never ran before the reviewer
picker step was fixed.

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.

2 participants