Skip to content

test(playwright): page to the Search Indexing card [2.0 backport of #32295] - #33194

Merged
sonika-shah merged 2 commits into
2.0from
backport/2.0/32295-page-to-app-card
Sep 11, 2026
Merged

sonika-shah merged 2 commits into
2.0from
backport/2.0/32295-page-to-app-card

Conversation

@ShaileshParmar11

@ShaileshParmar11 ShaileshParmar11 commented Sep 11, 2026 •

Copy link
Copy Markdown
Contributor

Describe your changes:

Minimal backport of #32295 to 2.0: only the paging fix. #32295 shipped without a linked issue, so this backport has none either.

Settings > Applications paginates at PAGE_SIZE_BASE (15). On 2.0 these specs click the Search Indexing card without paging, and they started failing as 60s click timeouts in the 11 Sep AUT nightly 1.11.13 ➡ 2.0 (runs 34563613272 mysql, 34563617983 postgres), identically on both databases:

  • LiveIndexingTab.spec.ts:89, :140, :180
  • SearchIndexApplication.spec.ts:258

The trigger is #33098 (single-writer RDF reindex backport). Its RdfIndexApp constructor now resolves the repository lazily (getInstanceOrNull() + rdf()), so with RDF disabled the default install in AppResource.loadDefaultApplications succeeds instead of throwing RdfRepository not initialized and being skipped. RdfIndexApp sorts before SearchIndexingApplication, takes slot 15, and pushes the card to page 2. In the failing trace, GET /api/v1/apps?limit=15 returns total: 18 with page 1 ending at RdfIndexApp; the last green run (10 Sep) had no RdfIndexApp installed. #33098 is correct; the specs' page-1 assumption is the bug.

Changes:

  • playwright/utils/applications.ts: expectApplicationInstalled and openApplicationDetails, which page the installed list until the card is on screen. Same names and call signatures as on main, so later backports that use them apply cleanly.
  • LiveIndexingTab.spec.ts: the three card clicks go through openApplicationDetails.
  • SearchIndexApplication.spec.ts: the two card clicks go through openApplicationDetails, and the post-reinstall toBeVisible() becomes expectApplicationInstalled — once the card is on page 2 that assertion would fail too.

Not backported from #32295, as this failure doesn't need them: the marketplace-loop refactor in installSearchIndexApplication, the TestDefinitionPermissions steward-switch fix, the Data Insights guard in LiveIndexingTab, expectApplicationNotInstalled, and the eslint-suppressions.json / corpus.test.mjs updates that went with them. The suppressed .first() calls in these specs are untouched, so the suppression baseline is unchanged.

Type of change:

  • Bug fix (test-only)

High-level design:

N/A — small test-only backport, no product code.

Tests:

Use cases covered

  • The Search Indexing app details open from Settings > Applications whichever page its card lands on.
  • After the uninstall/reinstall in SearchIndexApplication.spec.ts, the reinstalled app is found on any page of the installed list.

Unit tests

Not applicable — test-only change. yarn test:eslint-rules: 22/22 pass.

Backend integration tests

Not applicable — no backend changes.

Ingestion integration tests

Not applicable — no ingestion changes.

Playwright (UI) tests

Files updated:

  • playwright/utils/applications.ts
  • playwright/e2e/Pages/LiveIndexingTab.spec.ts
  • playwright/e2e/Pages/SearchIndexApplication.spec.ts

Verified on this branch with 2.0's own dependencies:

  • yarn lint:playwright: 0 errors (229 existing warnings); suppression baseline unchanged.
  • organize-imports → eslint --fix → prettier on the changed files: no diff.
  • yarn tsc:playwright: no errors on changed lines. The two TS2345 errors reported in SearchIndexApplication.spec.ts are on untouched getAppRunRecord(response) calls and exist independently of this change.

The four tests have not been run locally — no stack to run them against; CI and the next 2.0 AUT nightly will confirm.

Manual testing performed

Not applicable — see above.

UI screen recording / screenshots:

Not applicable — test-only change.

Checklist:

  • I have read the CONTRIBUTING document.
  • My PR title is Fixes <issue-number>: <short explanation> — N/A: backport of test(playwright): page to the app card; anchor the steward switch #32295, which has no linked issue.
  • My PR is linked to a GitHub issue via Fixes #<issue-number> above — N/A: same.
  • I have commented on my code, particularly in hard-to-understand areas — the new helpers carry doc comments on why they page.
  • For JSON Schema changes: I updated the migration scripts or explained why it is not needed — N/A.
  • For UI changes: I attached a screen recording and/or screenshots above — N/A: test-only.
  • I have added tests (unit / integration / Playwright as applicable) and listed them above — N/A: this PR only changes Playwright tests, listed above.

🤖 Generated with Claude Code

@ShaileshParmar11
ShaileshParmar11 requested a review from a team as a code owner September 11, 2026 08:38
@ShaileshParmar11 ShaileshParmar11 added UI UI specific issues safe to test Add this label to run secure Github workflows on PRs labels Sep 11, 2026
@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

Copy link
Copy Markdown
Contributor

🔄 Playwright impact map auto-refreshed

This PR touched specs or UI source that changed the source→spec routing map. I regenerated .github/playwright/impact-map.generated.json and pushed the diff to this branch.

- source entries: 559 → 559
- 0 added, 0 removed, 3 changed spec-list

Entries whose spec list changed:
  openmetadata-ui/src/main/resources/ui/src/components/PaginationComponent/PaginationComponent.tsx
  openmetadata-ui/src/main/resources/ui/src/components/common/NextPrevious/NextPrevious.tsx
  openmetadata-ui/src/main/resources/ui/src/components/common/NextPreviousWithOffset/NextPreviousWithOffset.tsx

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 getByTestId strings. Hand-authored routing in impact-map.json always wins on conflict.

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

…32295]

Settings > Applications paginates at PAGE_SIZE_BASE (15). Since #33098 made
RdfIndexApp installable with RDF disabled, the Search Indexing card sits on
page 2 in Collate 2.0, so the specs that clicked it on page 1 time out.

Backports only the paging part of #32295:
- playwright/utils/applications.ts: expectApplicationInstalled and
  openApplicationDetails, which page the installed list until the card shows
- LiveIndexingTab.spec.ts, SearchIndexApplication.spec.ts: open the card via
  openApplicationDetails and assert the reinstall with
  expectApplicationInstalled

Left out: the marketplace-loop refactor, the TestDefinitionPermissions fix and
the suppression-baseline updates that went with them.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
@ShaileshParmar11
ShaileshParmar11 force-pushed the backport/2.0/32295-page-to-app-card branch from a0c9e35 to 16d3457 Compare September 11, 2026 08:49
@ShaileshParmar11 ShaileshParmar11 changed the title test(playwright): page to the app card; anchor the steward switch [2.0 backport] test(playwright): page to the Search Indexing card [2.0 backport of #32295] Sep 11, 2026
@gitar-bot

gitar-bot Bot commented Sep 11, 2026 •

Copy link
Copy Markdown
Code Review 👍 Approved with suggestions 0 resolved / 1 findings

Adds paging helpers and applies them to Search Indexing app card clicks across multiple specs, fixing timeout failures when the card lands on page 2 of the installed applications list. The post-uninstall check in SearchIndexApplication.spec.ts only inspects page 1, so it would miss the card if the uninstall failed and the app remained on page 2—consider restoring a paging-aware absence check.

💡 Quality: Post-uninstall check only inspects page 1 of installed list

📄 openmetadata-ui/src/main/resources/ui/playwright/e2e/Pages/SearchIndexApplication.spec.ts:432-436

This PR exists precisely because the SearchIndexing card now lands on page 2 of the installed-apps list, yet the post-uninstall assertion was changed from the paging-aware expectApplicationNotInstalled to toBeHidden() on a page-1-scoped locator. If the app were still installed (uninstall failing) it would sit on page 2 and this locator would still be hidden, so the assertion passes regardless of whether the uninstall actually worked — it no longer verifies removal. Consider restoring a paging-aware absence check so the assertion inspects every page rather than only page 1.

🤖 Prompt for agents
Code Review: Adds paging helpers and applies them to Search Indexing app card clicks across multiple specs, fixing timeout failures when the card lands on page 2 of the installed applications list. The post-uninstall check in `SearchIndexApplication.spec.ts` only inspects page 1, so it would miss the card if the uninstall failed and the app remained on page 2—consider restoring a paging-aware absence check.

1. 💡 Quality: Post-uninstall check only inspects page 1 of installed list
   Files: openmetadata-ui/src/main/resources/ui/playwright/e2e/Pages/SearchIndexApplication.spec.ts:432-436

   This PR exists precisely because the SearchIndexing card now lands on page 2 of the installed-apps list, yet the post-uninstall assertion was changed from the paging-aware `expectApplicationNotInstalled` to `toBeHidden()` on a page-1-scoped locator. If the app were still installed (uninstall failing) it would sit on page 2 and this locator would still be hidden, so the assertion passes regardless of whether the uninstall actually worked — it no longer verifies removal. Consider restoring a paging-aware absence check so the assertion inspects every page rather than only page 1.

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

@github-actions

Copy link
Copy Markdown
Contributor

✅ Playwright Results — workflow succeeded

Validated commit ed40dda4215c5be7c7ddd1d1bcec98d43c00ed83 in Playwright run 34581424241, attempt 1.

✅ 562 passed · ❌ 0 failed · 🟡 0 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) 48m 39s

⏱️ Max setup 3m 8s · max shard execution 17m 35s · max shard-job elapsed before upload 21m 29s · reporting 4s

🌐 207.77 requests/attempt · 2.81 app boots/UI scenario · 3.13% common-shard skew

Optimization targets still in progress:

  • Browser traffic was 207.77 requests per attempt (convergence target: fewer than 200).
  • Application boot ratio was 2.81 per UI scenario (1636 boots / 583 scenarios; convergence target: at most 1).
Shard Passed Failed Flaky Skipped Lifecycle failed Lifecycle flaky
✅ Shard chromium-01 119 0 0 0 0 0
✅ Shard chromium-02 141 0 0 0 0 0
✅ Shard chromium-03 144 0 0 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 ingestion-01 1 0 0 0 0 0
✅ Shard reindex-01 2 0 0 0 0 0
✅ Shard search-01 11 0 0 0 0 0
✅ Shard search-rbac-01 29 0 0 0 0 0

📦 Download artifacts

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

@sonika-shah
sonika-shah enabled auto-merge (squash) September 11, 2026 10:02
@sonika-shah
sonika-shah merged commit 26ef2d7 into 2.0 Sep 11, 2026
84 of 86 checks passed
@sonika-shah
sonika-shah deleted the backport/2.0/32295-page-to-app-card branch September 11, 2026 10:06

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.

3 participants