Skip to content

Add empty placeholder for glossary page and terms - #30057

Merged
anuj-kumary merged 5 commits into
mainfrom
glossary-empty
Jul 15, 2026
Merged

anuj-kumary merged 5 commits into
mainfrom
glossary-empty

Conversation

@anuj-kumary

@anuj-kumary anuj-kumary commented Jul 14, 2026 •

Copy link
Copy Markdown
Member

Describe your changes:

Screenshot 2026-07-14 at 8 45 41 PM Screenshot 2026-07-14 at 11 28 42 PM

Type of change:

  • Bug fix
  • Improvement
  • New feature
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • Documentation

High-level design:

N/A — small change.

Tests:

Use cases covered

Unit tests

Backend integration tests

Ingestion integration tests

Playwright (UI) tests

Manual testing performed

UI screen recording / screenshots:

Not applicable.

Checklist:

  • I have read the CONTRIBUTING document.
  • My PR title is Fixes <issue-number>: <short explanation>
  • My PR is linked to a GitHub issue via Fixes #<issue-number> above.
  • I have commented on my code, particularly in hard-to-understand areas.
  • For JSON Schema changes: I updated the migration scripts or explained why it is not needed.
  • For UI changes: I attached a screen recording and/or screenshots above.
  • I have added tests (unit / integration / Playwright as applicable) and listed them above.

Greptile Summary

This PR adds new empty states for glossary pages and glossary terms. The main changes are:

  • New EmptyPlaceholder layouts for empty glossary and term lists.
  • Core UI buttons for creating glossaries and terms from empty states.
  • New localized copy for the glossary onboarding placeholders.
  • Styling and tests for the updated term empty state.

Confidence Score: 5/5

This looks safe to merge.

  • No blocking issues found in the changed code.

Important Files Changed

Filename Overview
openmetadata-ui/src/main/resources/ui/src/pages/Glossary/GlossaryPage/GlossaryPage.component.tsx Replaces the empty glossary placeholder with the new feature-style empty state and create action.
openmetadata-ui/src/main/resources/ui/src/components/Glossary/GlossaryTermTab/GlossaryTermTab.component.tsx Replaces the empty term placeholder with the new blank empty state and preserves term creation gating.
openmetadata-ui/src/main/resources/ui/src/components/Glossary/GlossaryTermTab/GlossaryTermTab.test.tsx Updates empty-state test coverage for the new placeholder and term creation action.
openmetadata-ui/src/main/resources/ui/src/components/Glossary/glossaryV1.less Adds container sizing for the new glossary term empty state.
openmetadata-ui/src/main/resources/ui/src/locale/languages/en-us.json Adds English strings for the new glossary onboarding empty states.

Reviews (5): Last reviewed commit: "nit" | Re-trigger Greptile

Context used (3)

  • Context used - CLAUDE.md (source)
  • Context used - openmetadata-ui-core-components/CLAUDE.md (source)
  • Context used - AGENTS.md (source)

@anuj-kumary anuj-kumary self-assigned this Jul 14, 2026
@anuj-kumary
anuj-kumary requested a review from a team as a code owner July 14, 2026 17:58
@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 Jul 14, 2026
@github-actions

github-actions Bot commented Jul 14, 2026 •

Copy link
Copy Markdown
Contributor

Jest test Coverage

UI tests summary

Lines Statements Branches Functions
Coverage: 64%
64.99% (75815/116646) 48.89% (45277/92608) 49.53% (13676/27610)

@github-actions

github-actions Bot commented Jul 14, 2026 •

Copy link
Copy Markdown
Contributor

🟡 Playwright Results — all passed (32 flaky)

✅ 4543 passed · ❌ 0 failed · 🟡 32 flaky · ⏭️ 95 skipped

Shard Passed Failed Flaky Skipped
🟡 Shard 1 439 0 5 16
✅ Shard 2 11 0 0 0
🟡 Shard 3 821 0 11 8
🟡 Shard 4 819 0 3 18
🟡 Shard 5 841 0 1 5
🟡 Shard 6 786 0 2 46
🟡 Shard 7 826 0 10 2
🟡 32 flaky test(s) (passed on retry)
  • Features/TeamsDragAndDrop.spec.ts › Should drag and drop on Division team type (shard 1, 1 retry)
  • Flow/TestConnectionModal.spec.ts › modal opens with gate card and capability checks sections (shard 1, 1 retry)
  • Pages/Lineage/LineageRightPanel.spec.ts › Verify custom properties tab IS visible for supported type: metric (shard 1, 1 retry)
  • Pages/SearchSettings.spec.ts › Latest preview config wins when a superseded request resolves late (shard 1, 1 retry)
  • Flow/SearchRBAC.spec.ts › a fully denied user sees neither asset type when browsing (shard 1, 1 retry)
  • Features/BulkEditEntity.spec.ts › Table (shard 3, 1 retry)
  • Features/BulkImportWithDotInName.spec.ts › CSV with quoted FQN loads correctly in import grid (shard 3, 1 retry)
  • Features/BulkImportWithDotInName.spec.ts › Column with dot in name under service with dot (shard 3, 1 retry)
  • Features/ContextCenterArchive.spec.ts › archive page lazy-loads more rows on scroll within its own scroll container (shard 3, 1 retry)
  • Features/ContextCenterArticles.spec.ts › Article listing search filters, clears, and shows empty state (shard 3, 1 retry)
  • Features/ContextCenterArticles.spec.ts › Article list cards, recently viewed widget, and pagination work (shard 3, 1 retry)
  • Features/ContextCenterArticles.spec.ts › description: switching articles does not bleed unsaved content into next article (shard 3, 1 retry)
  • Features/ContextCenterMemories.spec.ts › Shared memory shows the shared-with-specific-people description (shard 3, 1 retry)
  • Features/ContextCenterPermission.spec.ts › user with view-only permission cannot see restore or delete actions on an archived document (shard 3, 1 retry)
  • Features/ContextCenterPermission.spec.ts › user with editAll permission can see restore action but not delete action on an archived document, and can restore it (shard 3, 1 retry)
  • Features/DataQuality/DataQualityDashboard.spec.ts › Entity Health pie chart segment click redirects to Test Cases with correct status (shard 3, 1 retry)
  • Features/Glossary/GlossaryTermRelationsGraphNested.spec.ts › viewing a child term: parent appears as a 1-hop neighbour via parentOf edge (shard 4, 1 retry)
  • Features/Glossary/GlossaryTermRelationsGraphNested.spec.ts › viewing a child term: parentOf edge is rendered between parent and child (shard 4, 1 retry)
  • Features/SearchExport.spec.ts › Export queues a background job and downloads from the jobs tray (shard 4, 1 retry)
  • Pages/CustomProperties.spec.ts › Enum (shard 5, 1 retry)
  • Pages/EntityDataSteward.spec.ts › Tier Add, Update and Remove (shard 6, 1 retry)
  • Pages/ExplorePageRightPanel_KnowledgeCenter.spec.ts › Should remove user owner for knowledgeCenter (shard 6, 1 retry)
  • Pages/ExplorePageRightPanel.spec.ts › Should allow Data Steward to view all tabs for searchIndex (shard 7, 1 retry)
  • Pages/GlossaryImportExport.spec.ts › Glossary Bulk Import Export (shard 7, 1 retry)
  • Pages/GlossaryImportExport.spec.ts › Import partial success - some terms pass, some fail (shard 7, 1 retry)
  • Pages/InputOutputPorts.spec.ts › Output ports section collapse/expand (shard 7, 1 retry)
  • Pages/Lineage/LineageFilters.spec.ts › Verify Impact Analysis service filter selection (shard 7, 1 retry)
  • Pages/Lineage/LineageRightPanel.spec.ts › Verify custom properties tab is NOT visible for pipelineService in platform lineage (shard 7, 1 retry)
  • Pages/Lineage/LineageRightPanel.spec.ts › Verify custom properties tab is NOT visible for apiService in platform lineage (shard 7, 1 retry)
  • Pages/Tag.spec.ts › Verify Owner Add Delete (shard 7, 1 retry)
  • ... and 2 more

📦 Download artifacts

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

@sonarqubecloud

Copy link
Copy Markdown

@anuj-kumary
anuj-kumary enabled auto-merge (squash) July 15, 2026 17:53
@anuj-kumary
anuj-kumary merged commit dcb17ac into main Jul 15, 2026
53 of 54 checks passed
@anuj-kumary
anuj-kumary deleted the glossary-empty branch July 15, 2026 18:56
@gitar-bot

gitar-bot Bot commented Jul 15, 2026

Copy link
Copy Markdown
Code Review ⚠️ Changes requested 2 resolved / 4 findings

Adds empty-state placeholders to glossary pages and terms but requires internationalization of hardcoded strings and better filtering logic for the blank state display.

⚠️ Quality: Empty-state placeholder text hardcoded in English, bypasses i18n

📄 openmetadata-ui/src/main/resources/ui/src/components/Glossary/GlossaryTermTab/GlossaryTermTab.component.tsx:1737-1746

In glossaryPlaceholderText, the strings No Glossary Term found for "${searchTerm}", No Glossary Term found, and No Glossary Terms are hardcoded English literals passed to the search/filter empty-state ErrorPlaceHolder. This violates the repo's i18n requirement (all UI strings must go through the t() hook) and means non-English users always see English text — especially notable since this same PR adds 50+ localized keys across 20 locale files. Add translation keys (e.g. message.no-glossary-term-found-for, message.no-glossary-term-found, label.no-glossary-term-plural) and resolve them via t().

Route the placeholder text through t() with new locale keys.
const glossaryPlaceholderText = useMemo(() => {
  if (isSearchActive && searchTerm) {
    return t('message.no-glossary-term-found-for', { searchTerm });
  }
  if (isSearchActive || isStatusFilterActive) {
    return t('message.no-glossary-term-found');
  }

  return t('label.no-glossary-term-plural');
}, [isSearchActive, isStatusFilterActive, searchTerm, t]);
💡 Edge Case: Blank 'add first term' state can show while a status filter is active

📄 openmetadata-ui/src/main/resources/ui/src/components/Glossary/GlossaryTermTab/GlossaryTermTab.component.tsx:1749-1763

The early-return blank placeholder guard (hasNoTerms && !isSearchActive && totalTermsCount === 0 && !isTableLoading) does not exclude the case where a status filter is active. If a glossary is genuinely empty (count 0) while a non-'all' status filter is applied, the user sees the onboarding 'Add the first term' placeholder instead of a 'no results for filter' message, which is misleading. Consider also gating on !isStatusFilterActive so the onboarding state only appears when no search/filter is active.

✅ 2 resolved
✅ Quality: Hardcoded inline height 'calc(100vh - 300px)' on empty state

📄 openmetadata-ui/src/main/resources/ui/src/components/Glossary/GlossaryTermTab/GlossaryTermTab.component.tsx:1555-1558
The empty-state container in GlossaryTermTab uses an inline style={{ height: 'calc(100vh - 300px)', overflow: 'auto' }} with a magic 300px offset, replacing the previous h-full class. This is brittle across layouts/viewport chrome and bypasses the Tailwind token conventions used elsewhere. Prefer a class/token-based height or h-full to stay consistent.

✅ Quality: Tests mutate shared activeGlossary mock without reset

📄 openmetadata-ui/src/main/resources/ui/src/components/Glossary/GlossaryTermTab/GlossaryTermTab.test.tsx:320-323 📄 openmetadata-ui/src/main/resources/ui/src/components/Glossary/GlossaryTermTab/GlossaryTermTab.test.tsx:345-348
In GlossaryTermTab.test.tsx the two Empty State tests reassign mockUseGlossaryStore.activeGlossary (to Approved, then Draft) but the top-level beforeEach only calls jest.clearAllMocks() and never restores activeGlossary. Since the mock object is shared across the whole suite, later tests inherit the last-set value, which can cause order-dependent flakiness. Reset mockUseGlossaryStore.activeGlossary = mockedGlossaryTerms[0] in beforeEach.

🤖 Prompt for agents
Code Review: Adds empty-state placeholders to glossary pages and terms but requires internationalization of hardcoded strings and better filtering logic for the blank state display.

1. ⚠️ Quality: Empty-state placeholder text hardcoded in English, bypasses i18n
   Files: openmetadata-ui/src/main/resources/ui/src/components/Glossary/GlossaryTermTab/GlossaryTermTab.component.tsx:1737-1746

   In `glossaryPlaceholderText`, the strings `No Glossary Term found for "${searchTerm}"`, `No Glossary Term found`, and `No Glossary Terms` are hardcoded English literals passed to the search/filter empty-state ErrorPlaceHolder. This violates the repo's i18n requirement (all UI strings must go through the `t()` hook) and means non-English users always see English text — especially notable since this same PR adds 50+ localized keys across 20 locale files. Add translation keys (e.g. `message.no-glossary-term-found-for`, `message.no-glossary-term-found`, `label.no-glossary-term-plural`) and resolve them via `t()`.

   Fix (Route the placeholder text through t() with new locale keys.):
   const glossaryPlaceholderText = useMemo(() => {
     if (isSearchActive && searchTerm) {
       return t('message.no-glossary-term-found-for', { searchTerm });
     }
     if (isSearchActive || isStatusFilterActive) {
       return t('message.no-glossary-term-found');
     }
   
     return t('label.no-glossary-term-plural');
   }, [isSearchActive, isStatusFilterActive, searchTerm, t]);

2. 💡 Edge Case: Blank 'add first term' state can show while a status filter is active
   Files: openmetadata-ui/src/main/resources/ui/src/components/Glossary/GlossaryTermTab/GlossaryTermTab.component.tsx:1749-1763

   The early-return blank placeholder guard (`hasNoTerms && !isSearchActive && totalTermsCount === 0 && !isTableLoading`) does not exclude the case where a status filter is active. If a glossary is genuinely empty (count 0) while a non-'all' status filter is applied, the user sees the onboarding 'Add the first term' placeholder instead of a 'no results for filter' message, which is misleading. Consider also gating on `!isStatusFilterActive` so the onboarding state only appears when no search/filter is active.

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 👍 / 👎 | Gitar

siddhant1 added a commit that referenced this pull request Jul 29, 2026
Domains "Create DataProducts and add remove assets": the assets empty-state
CTA lost its data-testid in #30489 — CreatePlaceholder maps the action's id
onto the button's DOM id — so select it by id instead.

GlossaryNavigation empty state: #30057 replaced the ErrorPlaceHolder text
("...there are no Glossary Terms defined...") with an EmptyPlaceholder, and
message.no-glossary-term is now unused. Assert the placeholder testid, matching
CustomizeDetailPage.spec.ts.

Glossary "Request description task for Glossary Term": restore
{ navigate: true } so performAdminLogin returns an authenticated page rather
than taking the API-only path, and replace the one-shot textContent read with a
web-first assertion — it read an empty container before the description
rendered, mirroring the sibling glossary-level test.

Co-Authored-By: Claude <[email protected]>
timothybrush pushed a commit to timothybrush/OpenMetadata that referenced this pull request Jul 31, 2026
…pen-metadata#30451)

* test(ui): re-enable Domains, Data Product & domain-rename E2E suites

Re-enables E2E coverage that was disabled by the mass-skip open-metadata#29909 and a
few one-off skips, fixing the tests that had broken from UI migrations.

Fixed:
- Domains (9 suites): 47/49 already passed once run; fixed the 2 real
  failures, both migration selector drifts — "Add Assets" moved to the
  core-ui `asset-selection-modal` Dialog (old `form-heading` testid
  gone), and the tree toggle is now a `radio`, not a `button`.
- DomainDataProductsWidgets: marked `test.describe.serial` (the suite is
  one sequential scenario: assign widgets -> add assets -> verify ->
  remove), and fixed the data-product asset-removal count-timing bug —
  wait for the asset card to render before counting, otherwise count()
  reads 0 and removes nothing.
- GlossaryNavigation empty-state: assert the empty-glossary placeholder
  (message.no-glossary-term) instead of the "No Glossary Term found" row
  that only a non-matching status filter shows.

Unskipped as-is (passed without changes):
- Glossary "Request description task for Glossary Term"
- EntityRenameConsolidation domain rename (x2)

Left skipped (blocked on product/BE work, still documented):
- DataMarketplace x3 (routes removed in open-metadata#27377)
- GlossaryStatusFilterNestedTerms x5 (flat nested status-filter results
  not implemented; status-only queries route through directChildrenOf)
- Glossary "Term should stay approved" (BE approval-workflow reverts it)

BulkImport is untouched.

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

* fix(e2e): repair three specs that broke against current main

Domains "Create DataProducts and add remove assets": the assets empty-state
CTA lost its data-testid in open-metadata#30489 — CreatePlaceholder maps the action's id
onto the button's DOM id — so select it by id instead.

GlossaryNavigation empty state: open-metadata#30057 replaced the ErrorPlaceHolder text
("...there are no Glossary Terms defined...") with an EmptyPlaceholder, and
message.no-glossary-term is now unused. Assert the placeholder testid, matching
CustomizeDetailPage.spec.ts.

Glossary "Request description task for Glossary Term": restore
{ navigate: true } so performAdminLogin returns an authenticated page rather
than taking the API-only path, and replace the one-shot textContent read with a
web-first assertion — it read an empty container before the description
rendered, mirroring the sibling glossary-level test.

Co-Authored-By: Claude <[email protected]>

* ci(playwright): track the 25m shard wrapper in the perf gate

open-metadata#30689 raised the shard step's `timeout ... 21m` wrapper to 25m and the job
`timeout-minutes` 30 -> 35, but left the blocking performance target at
`maxExecutionSeconds <= 1260`. That opened a 21-25 minute band where a shard
completes well inside its timeout and every test passes, yet
evaluate_playwright_performance.py fails the run and playwright-summary
reports it as a CI/reporting failure with zero test failures.

Merge-queue run 30590319979 for open-metadata#30451 landed in exactly that band: all 34
shards green, slowest execution 1396s, blocked solely by this target.

Move the target to 1500s so it tracks the wrapper, and rename it to match.

* ci(playwright): give shards 30m and keep the gates tracking the wrapper

chromium-18 was killed by the 25m timeout wrapper on merge-queue run
30603720876 (exit 124, PW_EXECUTION_SECONDS=1500): 244 tests planned, 236
finished, 8 never ran. The shard genuinely needs more than 25 minutes, so
raising the gate alone is not enough — the wrapper has to move too.

- shard wrapper 25m -> 30m
- job timeout-minutes 35 -> 40; the killed job's wall was 28m46s against a
  25m wrapper, so overhead is ~4m and 35 would leave almost none. Keeping the
  job clock a clear 10m above the wrapper means the wrapper always trips
  first, which fails the shard cleanly instead of cancelling mid-upload.
- executionAtMostTwentyFiveMinutes (1500) -> executionAtMostThirtyMinutes (1800)
- shardsAtMostThirtyMinutesBeforeUpload (1800) ->
  shardsAtMostThirtyFiveMinutesBeforeUpload (2100); elapsed runs ~200s above
  execution, so a 30m wrapper would otherwise breach the old 1800s cap.

This does not reduce the underlying skew: the same run had 35.67% common
shard skew, so one shard runs ~30m while others finish in 3m. That stays a
convergence warning and wants a planner fix, not a bigger timeout.

* ci(playwright): restore real weights for re-enabled specs in the timing baseline

The planner weights every test from timing-baseline.json. load_history pins a
recorded `skipped` entry to 0:

    elif test_id and test.get("outcome") == "skipped":
        durations[test_id].append(0)

and build_playwright_shards.py reads it as

    test_weights.get(test_id, identity_weights.get(..., FALLBACK_TEST_MS))

so an explicit 0 wins over the 20 s fallback. Once a PR re-enables those specs
the planner still costs them at zero, packs them onto one shard, and the shard
overruns its wrapper with no warning: on merge-queue run 30603720876 chromium-18
was predicted at 18.8 min (predictedExecutionMs 1128075) and was killed at the
25 min wrapper with 8 of 244 tests unrun. Domains.spec.ts alone ran 1157 s there
against a recorded weight of 0.

Refresh the 76 entries that were recorded `skipped` with 0 ms and have real
durations in the timing history of run 30590319979 (mode=full, all 34 shards
green): +1500 s of weight the planner could not previously see. Entries still
skipped in that run keep their zero, and the two genuinely instant `expected`
0 ms entries are left alone — they already fall through to FALLBACK_TEST_MS,
and test_versioned_baseline_only_uses_zero_weight_for_skipped_ids asserts it.

Replanned locally against the real `playwright test --list` for this branch:

    workers  Domains.spec.ts spread   max tests/shard   chromium shards
    3        2 -> 9 shards            243 -> 213        22 -> 23
    4        2 -> 7 shards            343 -> 280        17 -> 17

Predicted execution stays ~18.5-18.8 min, but it is now honest: the weight the
shard actually carries is visible to the planner instead of arriving as ~7.5 min
of unbudgeted work at 3 workers.

* Revert "ci(playwright): restore real weights for re-enabled specs in the timing baseline"

Drops the timing-baseline.json change from this PR so it carries only the
re-enabled specs. The zero-weight planner blind spot it addressed is real —
Domains.spec.ts is recorded at 0 ms against ~1073 s of actual work, which is
what let chromium-18 be planned at 18.8 min and killed by the 25 min wrapper —
but it will be handled by splitting the spec instead: moving the tests to new
files changes their Playwright ids (the id prefix is a per-file hash), so the
stale zero-weight entries no longer match and the tests fall through to
FALLBACK_TEST_MS.

Note this also gives up the restored weights for the other files the baseline
patch covered, ~468 s in total, notably DomainDataProductsWidgets.spec.ts
(186.5 s) and EntityRenameConsolidation.spec.ts (26.6 s), both re-enabled by
this PR and now back at zero.

---------

Co-authored-by: Claude Opus 4.8 (1M context) <[email protected]>
siddhant1 added a commit that referenced this pull request Jul 31, 2026
…30451) (#30777)

* test(ui): re-enable Domains, Data Product & domain-rename E2E suites

Re-enables E2E coverage that was disabled by the mass-skip #29909 and a
few one-off skips, fixing the tests that had broken from UI migrations.

Fixed:
- Domains (9 suites): 47/49 already passed once run; fixed the 2 real
  failures, both migration selector drifts — "Add Assets" moved to the
  core-ui `asset-selection-modal` Dialog (old `form-heading` testid
  gone), and the tree toggle is now a `radio`, not a `button`.
- DomainDataProductsWidgets: marked `test.describe.serial` (the suite is
  one sequential scenario: assign widgets -> add assets -> verify ->
  remove), and fixed the data-product asset-removal count-timing bug —
  wait for the asset card to render before counting, otherwise count()
  reads 0 and removes nothing.
- GlossaryNavigation empty-state: assert the empty-glossary placeholder
  (message.no-glossary-term) instead of the "No Glossary Term found" row
  that only a non-matching status filter shows.

Unskipped as-is (passed without changes):
- Glossary "Request description task for Glossary Term"
- EntityRenameConsolidation domain rename (x2)

Left skipped (blocked on product/BE work, still documented):
- DataMarketplace x3 (routes removed in #27377)
- GlossaryStatusFilterNestedTerms x5 (flat nested status-filter results
  not implemented; status-only queries route through directChildrenOf)
- Glossary "Term should stay approved" (BE approval-workflow reverts it)

BulkImport is untouched.



* fix(e2e): repair three specs that broke against current main

Domains "Create DataProducts and add remove assets": the assets empty-state
CTA lost its data-testid in #30489 — CreatePlaceholder maps the action's id
onto the button's DOM id — so select it by id instead.

GlossaryNavigation empty state: #30057 replaced the ErrorPlaceHolder text
("...there are no Glossary Terms defined...") with an EmptyPlaceholder, and
message.no-glossary-term is now unused. Assert the placeholder testid, matching
CustomizeDetailPage.spec.ts.

Glossary "Request description task for Glossary Term": restore
{ navigate: true } so performAdminLogin returns an authenticated page rather
than taking the API-only path, and replace the one-shot textContent read with a
web-first assertion — it read an empty container before the description
rendered, mirroring the sibling glossary-level test.



* ci(playwright): track the 25m shard wrapper in the perf gate

#30689 raised the shard step's `timeout ... 21m` wrapper to 25m and the job
`timeout-minutes` 30 -> 35, but left the blocking performance target at
`maxExecutionSeconds <= 1260`. That opened a 21-25 minute band where a shard
completes well inside its timeout and every test passes, yet
evaluate_playwright_performance.py fails the run and playwright-summary
reports it as a CI/reporting failure with zero test failures.

Merge-queue run 30590319979 for #30451 landed in exactly that band: all 34
shards green, slowest execution 1396s, blocked solely by this target.

Move the target to 1500s so it tracks the wrapper, and rename it to match.

* ci(playwright): give shards 30m and keep the gates tracking the wrapper

chromium-18 was killed by the 25m timeout wrapper on merge-queue run
30603720876 (exit 124, PW_EXECUTION_SECONDS=1500): 244 tests planned, 236
finished, 8 never ran. The shard genuinely needs more than 25 minutes, so
raising the gate alone is not enough — the wrapper has to move too.

- shard wrapper 25m -> 30m
- job timeout-minutes 35 -> 40; the killed job's wall was 28m46s against a
  25m wrapper, so overhead is ~4m and 35 would leave almost none. Keeping the
  job clock a clear 10m above the wrapper means the wrapper always trips
  first, which fails the shard cleanly instead of cancelling mid-upload.
- executionAtMostTwentyFiveMinutes (1500) -> executionAtMostThirtyMinutes (1800)
- shardsAtMostThirtyMinutesBeforeUpload (1800) ->
  shardsAtMostThirtyFiveMinutesBeforeUpload (2100); elapsed runs ~200s above
  execution, so a 30m wrapper would otherwise breach the old 1800s cap.

This does not reduce the underlying skew: the same run had 35.67% common
shard skew, so one shard runs ~30m while others finish in 3m. That stays a
convergence warning and wants a planner fix, not a bigger timeout.

* ci(playwright): restore real weights for re-enabled specs in the timing baseline

The planner weights every test from timing-baseline.json. load_history pins a
recorded `skipped` entry to 0:

    elif test_id and test.get("outcome") == "skipped":
        durations[test_id].append(0)

and build_playwright_shards.py reads it as

    test_weights.get(test_id, identity_weights.get(..., FALLBACK_TEST_MS))

so an explicit 0 wins over the 20 s fallback. Once a PR re-enables those specs
the planner still costs them at zero, packs them onto one shard, and the shard
overruns its wrapper with no warning: on merge-queue run 30603720876 chromium-18
was predicted at 18.8 min (predictedExecutionMs 1128075) and was killed at the
25 min wrapper with 8 of 244 tests unrun. Domains.spec.ts alone ran 1157 s there
against a recorded weight of 0.

Refresh the 76 entries that were recorded `skipped` with 0 ms and have real
durations in the timing history of run 30590319979 (mode=full, all 34 shards
green): +1500 s of weight the planner could not previously see. Entries still
skipped in that run keep their zero, and the two genuinely instant `expected`
0 ms entries are left alone — they already fall through to FALLBACK_TEST_MS,
and test_versioned_baseline_only_uses_zero_weight_for_skipped_ids asserts it.

Replanned locally against the real `playwright test --list` for this branch:

    workers  Domains.spec.ts spread   max tests/shard   chromium shards
    3        2 -> 9 shards            243 -> 213        22 -> 23
    4        2 -> 7 shards            343 -> 280        17 -> 17

Predicted execution stays ~18.5-18.8 min, but it is now honest: the weight the
shard actually carries is visible to the planner instead of arriving as ~7.5 min
of unbudgeted work at 3 workers.

* Revert "ci(playwright): restore real weights for re-enabled specs in the timing baseline"

Drops the timing-baseline.json change from this PR so it carries only the
re-enabled specs. The zero-weight planner blind spot it addressed is real —
Domains.spec.ts is recorded at 0 ms against ~1073 s of actual work, which is
what let chromium-18 be planned at 18.8 min and killed by the 25 min wrapper —
but it will be handled by splitting the spec instead: moving the tests to new
files changes their Playwright ids (the id prefix is a per-file hash), so the
stale zero-weight entries no longer match and the tests fall through to
FALLBACK_TEST_MS.

Note this also gives up the restored weights for the other files the baseline
patch covered, ~468 s in total, notably DomainDataProductsWidgets.spec.ts
(186.5 s) and EntityRenameConsolidation.spec.ts (26.6 s), both re-enabled by
this PR and now back at zero.

---------


(cherry picked from commit 64c33fc)

Co-authored-by: Claude Opus 4.8 (1M context) <[email protected]>
k-anshul pushed a commit to k-anshul/OpenMetadata that referenced this pull request Aug 12, 2026
…pen-metadata#30451)

* test(ui): re-enable Domains, Data Product & domain-rename E2E suites

Re-enables E2E coverage that was disabled by the mass-skip open-metadata#29909 and a
few one-off skips, fixing the tests that had broken from UI migrations.

Fixed:
- Domains (9 suites): 47/49 already passed once run; fixed the 2 real
  failures, both migration selector drifts — "Add Assets" moved to the
  core-ui `asset-selection-modal` Dialog (old `form-heading` testid
  gone), and the tree toggle is now a `radio`, not a `button`.
- DomainDataProductsWidgets: marked `test.describe.serial` (the suite is
  one sequential scenario: assign widgets -> add assets -> verify ->
  remove), and fixed the data-product asset-removal count-timing bug —
  wait for the asset card to render before counting, otherwise count()
  reads 0 and removes nothing.
- GlossaryNavigation empty-state: assert the empty-glossary placeholder
  (message.no-glossary-term) instead of the "No Glossary Term found" row
  that only a non-matching status filter shows.

Unskipped as-is (passed without changes):
- Glossary "Request description task for Glossary Term"
- EntityRenameConsolidation domain rename (x2)

Left skipped (blocked on product/BE work, still documented):
- DataMarketplace x3 (routes removed in open-metadata#27377)
- GlossaryStatusFilterNestedTerms x5 (flat nested status-filter results
  not implemented; status-only queries route through directChildrenOf)
- Glossary "Term should stay approved" (BE approval-workflow reverts it)

BulkImport is untouched.

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

* fix(e2e): repair three specs that broke against current main

Domains "Create DataProducts and add remove assets": the assets empty-state
CTA lost its data-testid in open-metadata#30489 — CreatePlaceholder maps the action's id
onto the button's DOM id — so select it by id instead.

GlossaryNavigation empty state: open-metadata#30057 replaced the ErrorPlaceHolder text
("...there are no Glossary Terms defined...") with an EmptyPlaceholder, and
message.no-glossary-term is now unused. Assert the placeholder testid, matching
CustomizeDetailPage.spec.ts.

Glossary "Request description task for Glossary Term": restore
{ navigate: true } so performAdminLogin returns an authenticated page rather
than taking the API-only path, and replace the one-shot textContent read with a
web-first assertion — it read an empty container before the description
rendered, mirroring the sibling glossary-level test.

Co-Authored-By: Claude <[email protected]>

* ci(playwright): track the 25m shard wrapper in the perf gate

open-metadata#30689 raised the shard step's `timeout ... 21m` wrapper to 25m and the job
`timeout-minutes` 30 -> 35, but left the blocking performance target at
`maxExecutionSeconds <= 1260`. That opened a 21-25 minute band where a shard
completes well inside its timeout and every test passes, yet
evaluate_playwright_performance.py fails the run and playwright-summary
reports it as a CI/reporting failure with zero test failures.

Merge-queue run 30590319979 for open-metadata#30451 landed in exactly that band: all 34
shards green, slowest execution 1396s, blocked solely by this target.

Move the target to 1500s so it tracks the wrapper, and rename it to match.

* ci(playwright): give shards 30m and keep the gates tracking the wrapper

chromium-18 was killed by the 25m timeout wrapper on merge-queue run
30603720876 (exit 124, PW_EXECUTION_SECONDS=1500): 244 tests planned, 236
finished, 8 never ran. The shard genuinely needs more than 25 minutes, so
raising the gate alone is not enough — the wrapper has to move too.

- shard wrapper 25m -> 30m
- job timeout-minutes 35 -> 40; the killed job's wall was 28m46s against a
  25m wrapper, so overhead is ~4m and 35 would leave almost none. Keeping the
  job clock a clear 10m above the wrapper means the wrapper always trips
  first, which fails the shard cleanly instead of cancelling mid-upload.
- executionAtMostTwentyFiveMinutes (1500) -> executionAtMostThirtyMinutes (1800)
- shardsAtMostThirtyMinutesBeforeUpload (1800) ->
  shardsAtMostThirtyFiveMinutesBeforeUpload (2100); elapsed runs ~200s above
  execution, so a 30m wrapper would otherwise breach the old 1800s cap.

This does not reduce the underlying skew: the same run had 35.67% common
shard skew, so one shard runs ~30m while others finish in 3m. That stays a
convergence warning and wants a planner fix, not a bigger timeout.

* ci(playwright): restore real weights for re-enabled specs in the timing baseline

The planner weights every test from timing-baseline.json. load_history pins a
recorded `skipped` entry to 0:

    elif test_id and test.get("outcome") == "skipped":
        durations[test_id].append(0)

and build_playwright_shards.py reads it as

    test_weights.get(test_id, identity_weights.get(..., FALLBACK_TEST_MS))

so an explicit 0 wins over the 20 s fallback. Once a PR re-enables those specs
the planner still costs them at zero, packs them onto one shard, and the shard
overruns its wrapper with no warning: on merge-queue run 30603720876 chromium-18
was predicted at 18.8 min (predictedExecutionMs 1128075) and was killed at the
25 min wrapper with 8 of 244 tests unrun. Domains.spec.ts alone ran 1157 s there
against a recorded weight of 0.

Refresh the 76 entries that were recorded `skipped` with 0 ms and have real
durations in the timing history of run 30590319979 (mode=full, all 34 shards
green): +1500 s of weight the planner could not previously see. Entries still
skipped in that run keep their zero, and the two genuinely instant `expected`
0 ms entries are left alone — they already fall through to FALLBACK_TEST_MS,
and test_versioned_baseline_only_uses_zero_weight_for_skipped_ids asserts it.

Replanned locally against the real `playwright test --list` for this branch:

    workers  Domains.spec.ts spread   max tests/shard   chromium shards
    3        2 -> 9 shards            243 -> 213        22 -> 23
    4        2 -> 7 shards            343 -> 280        17 -> 17

Predicted execution stays ~18.5-18.8 min, but it is now honest: the weight the
shard actually carries is visible to the planner instead of arriving as ~7.5 min
of unbudgeted work at 3 workers.

* Revert "ci(playwright): restore real weights for re-enabled specs in the timing baseline"

Drops the timing-baseline.json change from this PR so it carries only the
re-enabled specs. The zero-weight planner blind spot it addressed is real —
Domains.spec.ts is recorded at 0 ms against ~1073 s of actual work, which is
what let chromium-18 be planned at 18.8 min and killed by the 25 min wrapper —
but it will be handled by splitting the spec instead: moving the tests to new
files changes their Playwright ids (the id prefix is a per-file hash), so the
stale zero-weight entries no longer match and the tests fall through to
FALLBACK_TEST_MS.

Note this also gives up the restored weights for the other files the baseline
patch covered, ~468 s in total, notably DomainDataProductsWidgets.spec.ts
(186.5 s) and EntityRenameConsolidation.spec.ts (26.6 s), both re-enabled by
this PR and now back at zero.

---------

Co-authored-by: Claude Opus 4.8 (1M context) <[email protected]>

This branch was previously deployed

1 inactive deployment
test — 21ee4f8c Deployed Jul 15, 2026 by anuj-kumary via playwright-ci-postgresql (1, 7) #56710
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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants