Skip to content

fix(playwright): route vice-versa test through openGlossaryPicker helper - #33634

Merged
chirag-madlani merged 1 commit into
mainfrom
investigate-playwright-ci-failure
Sep 19, 2026
Merged

chirag-madlani merged 1 commit into
mainfrom
investigate-playwright-ci-failure

Conversation

@chirag-madlani

@chirag-madlani chirag-madlani commented Sep 19, 2026 •

Copy link
Copy Markdown
Collaborator

Describe your changes:

The glossary trigger click in `Entity.spec.ts` › Tag and Glossary Selector should close vice versa used a raw `.click()`, while every other glossary flow migrated in the picker refactor (#33565) goes through `openGlossaryPicker`, which retries the click with `force: true` when the react-aria trigger isn't ready on slow CI. That gap made the test flaky on six entity variants in the PR run (passed on retry) and failed both attempts on merge-queue run 35447520393 for PR #33501. This routes the last remaining call site through the helper.

Type of change:

  • Bug fix

High-level design:

N/A — small change.

Tests:

Use cases covered

  • `Tag and Glossary Selector should close vice versa` on every entity variant (Table, Dashboard, DashboardDataModel, MlModel, Topic, Pipeline, ApiEndpoint, SearchIndex, Container, Worksheet).

Playwright (UI) tests

  • Updated: `openmetadata-ui/src/main/resources/ui/playwright/e2e/Pages/Entity.spec.ts`

Manual testing performed

  1. `cd openmetadata-ui/src/main/resources/ui && yarn lint:playwright` — 0 errors (219 pre-existing warnings, none in the changed file).

UI screen recording / screenshots:

Not applicable.

Checklist:

  • I have read the CONTRIBUTING document.
  • I have commented on my code, particularly in hard-to-understand areas.

RetriggerConfidence Score: 5/5

The PR appears safe to merge; it makes the Playwright interaction more resilient without weakening the test’s observable assertions.

Summary

This PR stabilizes the entity selector mutual-exclusivity test by routing its glossary trigger through the existing picker helper.

  • Replaces the raw trigger click with a bounded retry that falls back to a forced click.
  • Preserves the glossary treegrid visibility check through the helper.
  • Retains the assertion that opening the glossary picker closes the tag selector.

Reviews (1) · Last reviewed commit: "fix(playwright): route vice-versa test t..."

The glossary trigger in "Tag and Glossary Selector should close vice
versa" used a raw .click(), while every other glossary flow migrated in
the picker refactor (#33565) went through openGlossaryPicker, which
retries the click on slow CI when the react-aria trigger is not ready
yet. That gap made the test flaky on six shards in the PR run
(passed on retry) and failed both attempts on the merge-queue rerun
for #33501 (run 35447520393). Routing this last call site through the
helper closes the gap.

Co-Authored-By: Claude Opus 4.7 (1M context) <[email protected]>
@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 safe to test Add this label to run secure Github workflows on PRs UI UI specific issues labels Sep 19, 2026
@gitar-bot

gitar-bot Bot commented Sep 19, 2026

Copy link
Copy Markdown
Code Review ✅ Approved

🟢 Low risk

Routes the glossary trigger click in the "Tag and Glossary Selector should close vice versa" test through openGlossaryPicker helper, which retries with force: true when the react-aria trigger isn't ready on slow CI. This eliminates the flakiness that caused the test to fail on merge-queue runs. No issues found.

Review coverage

Rules No rules evaluated

Functional validation Not enabled · Set up

Auto-approval Not enabled · Set up

Options

Display: compact → Counting what did not apply, without listing it.

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

@chirag-madlani
chirag-madlani added this pull request to the merge queue Sep 19, 2026
@github-actions

Copy link
Copy Markdown
Contributor

✅ Playwright Results — workflow succeeded

Validated commit 3649c30747920eae490101240c1bb697691294b3 in Playwright run 35453864221, attempt 1.

✅ 398 passed · ❌ 0 failed · 🟡 1 flaky · ⏭️ 0 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) 34m 55s

⏱️ Max setup 3m 12s · max shard execution 16m 48s · max shard-job elapsed before upload 20m 14s · reporting 5s

🌐 250.31 requests/attempt · 2.46 app boots/UI scenario · 8.83% common-shard skew

Optimization targets still in progress:

  • Browser traffic was 250.31 requests per attempt (convergence target: fewer than 200).
  • Application boot ratio was 2.46 per UI scenario (1035 boots / 420 scenarios; convergence target: at most 1).
Shard Passed Failed Flaky Skipped Lifecycle failed Lifecycle flaky
✅ Shard chromium-01 123 0 0 0 0 0
✅ Shard chromium-02 141 0 0 0 0 0
🟡 Shard chromium-03 134 0 1 0 0 0
🟡 1 flaky test(s) (passed on retry)
  • Pages/Entity.spec.ts › Tag and Glossary Term preservation in column detail panel (shard chromium-03, 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

Merged via the queue into main with commit ec7483d Sep 19, 2026
99 of 101 checks passed
@chirag-madlani
chirag-madlani deleted the investigate-playwright-ci-failure branch September 19, 2026 17:34
harshach added a commit that referenced this pull request Sep 19, 2026
Picks up #33634, which routes the 'Tag and Glossary Selector should close vice
versa' Playwright test through openGlossaryPicker. That test fails deterministically
against this branch's previous merge base: the picker refactor (#33565) left the
glossary trigger on a raw click that does not retry when the react-aria trigger is
not ready, and the assertion on the popover treegrid went with it.

Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>

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 UI UI specific issues

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants