Skip to content

[2.1] test(playwright): fix 2.1 AUT failures in Context Center, LineageSettings and MetricSearch - #37515

Merged
anuj-kumary merged 1 commit into
2.1from
anuj-kumary/2.1-failures-fix-2.1
Nov 11, 2026
Merged

anuj-kumary merged 1 commit into
2.1from
anuj-kumary/2.1-failures-fix-2.1

Conversation

@anuj-kumary

Copy link
Copy Markdown
Member

Describe your changes:

Fixes the non-glossary failures from the nightly AUT run 42933460302 (kind / mysql 1.11.13 ➡ 2.1). These are test-only fixes: the product behaves as intended, and the specs were stale or too strict.

Failure Root cause Fix
ContextCenterDocument bulk move + bulk delete, nightly/ContextCenter bulk download: '2 selected' not found #37325 clears the document selection whenever the search changes. The tests searched for each file before ticking it, so the first selection was cleared and only 1 stayed selected (visible in the failure screenshot). New selectDocumentsBySharedTerm helper. Both files share one uuid in their names, the test searches for that uuid once, then ticks both rows.
ContextCenterArchive lazy-load: beforeAll hook timeout (60s) The hook uploads 18 docs, and each waitForDocumentProcessingComplete waits up to 90s for extraction. That wait alone exceeds the 60s hook budget. test.setTimeout(3 * 60 * 1000) inside that beforeAll.
LineageSettings: "Saving the lineage config keeps the settings the form does not edit" After an upgrade from 1.11 the stored setting has no graphPerformanceConfig. The test saved only cacheTTLSeconds: 600, the server filled the other 13 schema defaults, and the exact toEqual failed. Read the setting back after seeding it and compare against that. A save that drops the field still fails the test, because the 600 is lost.
MetricSearch clause-explosion (flaky) getByTestId('alert-bar') matched other workers' success toasts (strict-mode violation). Use the existing expectNoErrorToast helper, which only looks at error toasts.

Out of scope:

  • GlossaryTermMoveApproval is handled separately.
  • The local-webserver lane failed at image build: Collate ingestion pins openmetadata-ingestion==2.1.0.0rc2, which isn't on PyPI. That's infra, not test code.

Cherry-pick of #37514 to 2.1.

Type of change:

  • Bug fix

High-level design:

N/A — small change.

Tests:

Use cases covered

  • Bulk move / delete / download of two Context Center documents
  • Archive page lazy loading with 18 archived docs
  • Lineage config save preserves graphPerformanceConfig on an upgraded instance
  • Metric search with a long multi-word name shows no error toast

Unit tests

Not applicable (Playwright-only change).

Backend integration tests

  • Not applicable (no backend API changes).

Ingestion integration tests

  • Not applicable (no ingestion changes).

Playwright (UI) tests

Files updated: ContextCenterDocument.spec.ts, nightly/ContextCenter.spec.ts, ContextCenterArchive.spec.ts, LineageSettings.spec.ts, MetricSearch.spec.ts, utils/ContextCenterUtil.ts.
yarn lint:playwright reports 0 errors, and yarn tsc:playwright reports no errors in the changed files. I haven't run the specs locally; they need the merge-queue run or the next AUT run to confirm.

Manual testing performed

  • Pulled the failure list and error-context snapshots from the AUT HTML report for the run and traced each failure to its root cause (above).

UI screen recording:

Not applicable — test-only change.

Checklist:

  • I have read the CONTRIBUTING document.
  • I have commented on my code, particularly in hard-to-understand areas.
  • I have added tests (unit / integration / Playwright as applicable) and listed them above.

🤖 Generated with Claude Code

…ings and MetricSearch

- Context Center bulk move/delete/download: #37325 clears the selection when
  the search changes, so select both files from one search on a uuid their
  names share.
- ContextCenterArchive lazy-load beforeAll: 18 uploads each wait up to 90s
  for extraction; give the hook a 3-minute budget.
- LineageSettings: an upgraded instance stores no graphPerformanceConfig and
  the server fills defaults on write; compare against the seeded value.
- MetricSearch: assert no error toast instead of any alert-bar, which catches
  other workers' success notifications.
@anuj-kumary
anuj-kumary requested a review from a team as a code owner November 11, 2026 05:23
@anuj-kumary anuj-kumary added the safe to test Add this label to run secure Github workflows on PRs label Nov 11, 2026
@anuj-kumary
anuj-kumary requested review from Rohit0301 and removed request for a team November 11, 2026 05:23
@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.

@gitar-bot

gitar-bot Bot commented Nov 11, 2026 •

Copy link
Copy Markdown
Code Review ✅ Approved 🟡 Medium risk

Extending the archive setup hook timeout to three minutes changes test execution and could tie up test workers longer if uploads stall.

Test-only fixes for non-glossary nightly AUT failures in Context Center, LineageSettings, and MetricSearch specs. Document selection now uses a shared-term search, the archive lazy-load hook gets a longer timeout, the lineage config test compares against the stored setting, and the metric search check uses the error-only toast helper. No issues found.

Verification

Rules No rules evaluated

Functional validation Not enabled

Set up

Auto-approval Not enabled

Set up

For more verification details, comment gitar display:verbose.

Options

Display: compact → Showing compact verification results.

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

@anuj-kumary
anuj-kumary enabled auto-merge (squash) November 11, 2026 05:55

@ayush-shah ayush-shah left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reviewed at 7a30edf. No blocking findings. Focused Chromium selection and toast helper checks passed; full backend E2E was not run.

@anuj-kumary
anuj-kumary merged commit 1f1b3b9 into 2.1 Nov 11, 2026
52 of 53 checks passed
@anuj-kumary
anuj-kumary deleted the anuj-kumary/2.1-failures-fix-2.1 branch November 11, 2026 06:05
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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants