Skip to content

Expand OSS visual regression coverage in light and dark modes - #36640

Merged
shah-harshit merged 44 commits into
mainfrom
shah-harshit/playwright-visual-recursion-missing
Nov 5, 2026
Merged

shah-harshit merged 44 commits into
mainfrom
shah-harshit/playwright-visual-recursion-missing

Conversation

@shah-harshit

@shah-harshit shah-harshit commented Oct 30, 2026 •

Copy link
Copy Markdown
Contributor

Describe your changes:

Refs open-metadata/openmetadata-collate#7505. Workflow prerequisite #36820 is merged.

Passing verification: Full Playwright run 41871462993 PASSED on eec28b67e1422d02e068f580c9cbf606b157db69. All 2,259 visual tests passed without retries. Full suite: 7,338 passed, 2 passed on retry, 4 existing skips, 0 failures. Snapshot updating was disabled.

Latest branch update: merged main (ad8ce1188938c65dd52d86c9bd35a5e9004c5887) in 8ae2a7df94e99667a169b683f84ce7fce8be6ebd and resolved the glossary permission-test conflict. Retained main's denied-term listing assertion together with exact-resource GET 403, forbidden-route and permission-placeholder checks. Frozen-lockfile installation, full Playwright lint (0 errors; 200 existing warnings), Playwright type checking, imports/formatting, regenerated impact-map consistency and PR-diff whitespace checks pass. Focused discovery finds both permission tests; local E2E execution was not run for this OSS conflict-only merge. The shared failure limit remains 50 and entity-data setup is retained. The passing full-suite result above validates the earlier eec28b67e1422d02e068f580c9cbf606b157db69; checks for the merged commit are running.

Expand OSS visual regression from 22 light-only screenshots to 2,259 tests across 34 specs, with AI light/dark coverage and Classic/public-authentication light coverage. The committed catalog contains 2,701 Linux PNGs, 184.8 MiB: 1,390 light and 1,311 dark. All configured snapshot paths exist; the full-catalog Linux comparison passed in the run linked above.

The broader source audit has 444 surface/state candidates: 206 covered, 74 partial, 164 needing reconciliation. These include pages, forms, tabs, dialogs and shared controls; they are not counts of distinct pages or components. The remaining audit work is listed below.

Type of change:

  • Improvement

High-level design:

  • Isolate scenes with deterministic HTTP fixtures, dates and fonts. Unexpected reads fail; mutations do not change persistent application data.
  • Cover pages/entity tabs, creation/settings forms, 110 connector forms and alternate schema/auth branches, custom properties, shared controls, menus, dialogs, contracts, workflow views, incidents and Classic settings.
  • Assert the rendered theme and loaded content, capture full form bodies plus viewport frames, and scroll long selectors to cover below-fold options.
  • Set and assert Classic sidebar state independently of saved preferences. Wait for selected entity tabs to be fully visible before capture so horizontal scrolling cannot approve a clipped active label.
  • Keep visual execution within the existing 20-minute shard budget and eight-shard ceiling; seven shards cover the configured catalog.
  • Add row-header semantics to shared entity listings and glossary relationship tables, and update glossary tab counts when feed counts arrive.
  • Inherit PNG licence-file filtering from merged Fix UI licence-header checks for large screenshot updates #36820; this PR now has no workflow changes.

Tests:

Merge verification at fa6b1a777fb8

  • Resolved all 11 conflicts against main, retaining deterministic fixture PNGs, main's dependency upgrades/header API, and row-header semantics. No submodule pointers or workflow changes are authored by this PR.
  • Frozen Yarn installation, production build, Playwright type checking, resolved-source import/lint/format checks and licence header validation pass. RelationshipTypeTable.test.tsx: 2 passed.
  • All 2,701 PNGs pass integrity checks. The 2,259 visual cases across 34 specs reconcile with timing records and partition into seven disjoint shards; the largest planned budget is 19.67 minutes. All 4,705 main timing records are retained. The retired sidebar case ID now uses its recorded passing comparison measurement.
  • Planner suite: 129 passed, 3 failed; all three failures reproduce on an untouched main snapshot (Basic exclusion, SchemaSearch ingestion-tag and summary-condition assertions). Full app type checking has the unchanged-main missing isLoading prop described above.
  • Full Linux screenshot comparison was not rerun for this conflict resolution; the retained Linux PNGs are unchanged. Final verification is recorded in the passing run linked above; the broader coverage audit remains open.

Unit tests

  • At fixture-contract source e59f43d0f66: 43 fixture-schema checks, 128 strict HTTP-fixture browser checks and 179 browser-helper checks passed. Checks cover unknown reads, explicit named indices, catalog aliases and response contracts.
  • Current frontend production build passes after frozen dependency installation.
  • Current changed-file import/lint/format sequence passes; licence header and git diff --check origin/main pass.
  • Current Playwright type checking passes. Full application type checking reports a missing isLoading prop at CustomPropertiesDetailPage.tsx:135; that page and the table definition are unchanged from main.

Backend integration tests

Not applicable: this PR authors no Java, backend API, schema, migration or generated-model changes. Main was merged at b9223a76322 to include its exported event schema types required by downstream compatibility builds; the latest compatibility result is recorded below.

Ingestion integration tests

Not applicable: no ingestion changes.

Playwright (UI) tests

  • Earlier source 8fb5b440679: 10 ordinary local comparisons passed, zero failures, covering the glossary Data Observability tab in light and dark five times each, without snapshot updates. Two initial diagnostic generations also passed. Frontend: current production build on native preview localhost:3109, with the Java server's base-path substitution applied to ignored build output. Backend: existing local stack at localhost:8585; shared containers were not restarted. These macOS diagnostics do not replace committed Linux images.
  • The preceding Classic sidebar correction passed 13 local generation cases and 26 ordinary comparisons across two repeats.
  • Full ordinary Linux comparison, source a44f5040b48: 2,248 passed, 11 failed, zero flaky, across all 2,259 cases. Seven failures have stale Classic header images, three have stale fixture-content images, and one exposed the horizontal-tab capture timing fixed above. This is not a clean final comparison.
  • Full Linux generation, fixture-contract source e59f43d0f66: 2,259 passed, zero failures/retries/flaky results, with all case IDs reconciled. Its reviewed captures supply the current catalog. Generation is not comparison evidence.
  • Final Linux baseline review and ordinary comparison passed in the run linked above. Screenshot tolerances have not been relaxed.

Manual testing performed

  • Compared base/branch production previews in light and dark, including domain listing and glossary relationship row semantics.
  • Verified row-header names and keyboard selection, full form/menu bounds, loaded-state checkpoints and the fully visible selected glossary tab.
  • Checked PNG integrity and reconciled committed paths with the configured screenshot catalog.

UI comparisons

Production previews: main source e32170cdf3c17aaf34303693a259ebab179758f0, branch b929e4d107bb3654c1645639130f194ee2e6cb93, macOS, identical isolated fixtures. Accessibility checks found domain row headers increased from 0 to 1 and relationship row headers from 0 to 12.

View Main Branch
Domain listing · light Main Branch
Domain listing · dark Main Branch
Glossary relationships · light Main Branch
Glossary relationships · dark Main Branch

The glossary count comparison resolves task reads before activity reads. Main keeps the badge at 4; the branch updates it to 5. The pre-fix component is byte-identical to main; after-fix source is ecbd89155a0, production previews on macOS with identical isolated fixtures.

View Main Branch
Glossary activity count · light Main Branch
Glossary activity count · dark Main Branch

UI screen recording:

N/A — test coverage and accessibility corrections; before/after light/dark comparisons are attached above.

Run 41823905896 follow-up

  • Source fixes: 69ef00ca6b77ad17f26ad782abe71a01c31e20c6; main sync and canonical scope/tab fixes retained in 1de59f6cc2a35dce9d02ded270d6ea053655ee0d.
  • The reported comparison ran 2,259 visual cases: 1,403 passed and 856 failed. Of those, 816 were screenshot comparisons and 40 were interaction/fixture failures.
  • Updated ontology review/config fixtures and create-dialog selectors, custom-property validation interactions and disabled-submit assertions, and optional metric-expression assertions. Preserved strict fixture routing and screenshot tolerances.
  • Related fixes scope duplicate team tabs, retain main’s explicit unscoped task-count assertion, route pipeline-deployment tests to the Airflow lane, grant the import fixture explicit Create permission, and isolate the observability navigation session.
  • Local: 80/80 ordinary diagnostic comparisons (40 repaired cases in both themes, repeated twice); 43/43 schema-contract checks; Playwright type-check; full Playwright lint (0 errors); imports, ESLint, Prettier, license headers and diff whitespace checks passed. Diagnostic screenshots remain outside the committed Linux baseline catalog.
  • Main’s new /domains/styles read is modeled with the generated DTO in 797ea0fcd6e4aaed1f259d9150fe814672c1a7d9; the pipeline widget now waits for its populated row in 9b1bbb6137c (6/6 repeated ordinary light/dark comparisons).
  • Selected-tab viewport assertions now allow at most half a CSS pixel of horizontal clipping-rounding (b7b67d2431a), with 18/18 repeated ordinary comparisons plus a 6/6 rerun of the catalog’s failed IDs. Screenshot comparison thresholds are unchanged. The broad local diagnostic execution completed 2,259 cases: 2,253 initially passed; its six old geometry failures were corrected and reran successfully.
  • Linux capture: run 41847545865 reconciled exactly 2,259 passing cases, 0 failures, 0 retries/flaky cases, and 2,701 valid PNGs (184.89 MiB) across seven shards. Reviewed expected/candidate samples for 62 spec/theme groups and the corrected validation dialogs. Adopted 2,347 changed PNGs in 10c55a5d1c21e32af352f0832cd0587800b7d606; no paths added or retired. The capture branch only changed Playwright configuration/reporting, and workflows are unchanged.
  • Full ordinary verification: run 41859152249 on 10c55a5d1c21e32af352f0832cd0587800b7d606 reconciled all 7,344 planned cases: 7,332 passed, 6 failed, 2 flaky and 4 skipped. Visual: 2,257 passed, 2 timed out, zero image mismatches. All 53 cases across the six originally affected nonvisual specs passed on their first attempt.
  • Follow-ups ce5120eac7e7330fe56862edf0623ad02ad594f8 and eec28b67e1422d02e068f580c9cbf606b157db69 fix the additional findings: test denied glossary/term deep links with exact-resource HTTP 403 and forbidden-page assertions; allow cached profile navigation without a duplicate read; match the precise escaped certification query; assert description-cell text without assuming Markdown paragraph markup. Only the exhaustive datatype-menu test uses test.slow(); every option and zero-difference comparison is retained. Deterministic local certification/profile reproductions failed before and passed after; six repeated ordinary datatype-menu comparisons passed. Three current-frontend HTTP-fixture checks also passed: escaped certification search and both denied-resource redirects. Imports, ESLint (0 errors), Prettier, license headers, Playwright type-check and whitespace checks passed.
  • Final ordinary verification: run 41871462993 succeeded on eec28b67e1422d02e068f580c9cbf606b157db69, with snapshot updating disabled. Exactly 7,344/7,344 planned cases reconciled: 7,338 passed, 2 flaky passes, 4 existing skips, 0 failures; 21 setup/teardown executions also passed. All 2,259 visual cases passed on their first attempts, including all 856 visual failure IDs from the reported run. All 53 cases across the six originally affected nonvisual specs and all eight issues from the first verification passed without retries. No worker errors or missing planned cases.
  • The seven visual shards took 9.49–14.81 minutes of test execution each, excluding environment preparation. The catalog remains 2,701 PNGs / 184.89 MiB across 34 visual spec groups. All automatic PR checks pass, including UI checkstyle and downstream compatibility; the PR is mergeable.
  • Two additional retry-only results appeared in the broader suite: Flow/SchemaTable.spec.ts — “Copy column link button should copy the column URL to clipboard” (initial clipboard read was empty); Features/Workflows/ChangeRequestReviewLifecycle.spec.ts — “edits the workflow does not gate publish at once” (initial ungated-description save response wait timed out). Both passed on retry. The four skips are the unchanged RDF authoring/governance and data-insight application cases.

Review follow-up — November 5

  • b862a0d57401047ce0d4904edb5746b50af4d99b removes the app's redundant @untitledui/file-icons devDependency; the core component library owns this dependency. The lockfile is unchanged. Frozen-lockfile installation and the production build passed for that follow-up.
  • 180e55810a2dfeab69346e557675a79ce48da35e restores the shared maxFailures: 50, matching main, including the visual lane. The visual-only exception and its explanatory comment are removed. The separate SSO configuration retains its existing limit of 10.
  • c9ee5136340e42704ae38953e5025fa0fb9e32a9 removes the redundant visual-project fullyParallel: true declaration and its comment. Parallel execution inherits the existing global setting. Loaded before/after configurations are equivalent for all 23 default projects; import organization, ESLint, Prettier and whitespace checks pass. maxFailures remains 50.
  • 812ac2af9498345c973f91869b38ee94f8d411d7 restores dependencies: ['setup', 'entity-data-setup'] for the visual project, matching main, and removes the obsolete comment about skipping entity seeding. Verified both dependency projects exist and every other setting is unchanged across the 23 default projects. Import organization, ESLint, Prettier and whitespace checks passed.
  • Local verification after restoring the limit: four loaded-configuration checks (visual/chromium/RDF/unset) all return 50; import organization, ESLint (0 errors), Prettier and git diff --check passed. Self-review against REVIEW.md found no unanswered finding; no additional sibling changes were needed.
  • The passing full Playwright run linked above validates eec28b67e1422d02e068f580c9cbf606b157db69. The subsequent follow-ups remove the redundant dependency declaration and restore the original failure limit; test selection, assertions, snapshots and retries are unchanged by these follow-ups.

Remaining work:

  • Complete 74 partial and 164 unreconciled audit candidates, including shared, retired and OSS-inaccessible surfaces. Add reachable remaining Explore, entity/glossary/domain/product, lineage/graph, observability, ingestion, administration, task, bulk-edit, authentication and overlay states.

Checklist:

  • Linked issue and prerequisite PR.
  • Comments explain current fixture, capture and isolation constraints.
  • Tests added; passing and incomplete verification distinguished above.
  • No authored schema/migration/backend changes.
  • Before/after light/dark screenshots attached.
  • Complete the broader coverage audit.
  • Clean final Linux baseline comparison and required CI checks on eec28b67e1422d02e068f580c9cbf606b157db69.
  • Final self-review against REVIEW.md and decision/documentation check, reviewed at eec28b67e1422d02e068f580c9cbf606b157db69, with follow-ups reviewed at b862a0d57401047ce0d4904edb5746b50af4d99b, 180e55810a2dfeab69346e557675a79ce48da35e, c9ee5136340e42704ae38953e5025fa0fb9e32a9, 812ac2af9498345c973f91869b38ee94f8d411d7 and 8ae2a7df94e99667a169b683f84ce7fce8be6ebd; no unanswered finding in the changed behavior. Additional broader-suite retries are recorded above.

Collate counterpart: https://github.com/open-metadata/openmetadata-collate/pull/8305 — adds Collate-specific light/dark visual coverage and local Playwright results.

@shah-harshit shah-harshit added UI UI specific issues 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
@shah-harshit shah-harshit self-assigned this Oct 30, 2026
@github-actions

ghost commented Oct 30, 2026

Copy link
Copy Markdown
Contributor

🔴 Playwright Results — workflow failed

Validated commit ecbd89155a004f449085ac5078b55dce4f5afd83 in Playwright run 41016597336, attempt 1.

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

❌ Action needed: test(s) failed on every attempt against this PR’s validated commit — see Genuine Failures below. These are test failures, not CI budget or infrastructure issues.

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) 50m 24s

⏱️ Max setup 11m 35s · max shard execution 17m 2s · max shard-job elapsed before upload 30m 7s · reporting 11s

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

⚠️ CI time-budget signals — pipeline capacity telemetry, not test failures, and not caused by this PR:

  • Budget target `Environment setup` breached (target ≤ 480 s) — exceeded on 8 shard(s): visual-07 695 s, rdf-01 690 s, visual-05 688 s, visual-06 677 s, visual-02 670 s (+3 more).
  • Budget target `Maximum shard-job elapsed before upload` breached (target ≤ 1800 s) — exceeded on 1 shard(s): visual-06 1807 s.

Optimization targets still in progress:

  • Application boot ratio was 1.29 per UI scenario (53 boots / 41 scenarios; convergence target: at most 1).
Shard Passed Failed Flaky Skipped Lifecycle failed Lifecycle flaky
✅ Shard chromium-01 41 0 0 0 0 0
✅ Shard rdf-01 51 0 0 3 0 0
🔴 Shard visual-01 300 10 0 0 0 0
🔴 Shard visual-02 301 12 0 0 0 0
🔴 Shard visual-03 300 5 1 0 0 0
🔴 Shard visual-04 305 4 1 0 0 0
🔴 Shard visual-05 329 3 0 0 0 0
🔴 Shard visual-06 334 41 0 0 0 0
🔴 Shard visual-07 300 12 1 0 0 0

Genuine Failures (failed on all attempts)

❌ ../utils/visualScenarios.ts › page-data-quality (shard visual-01)
Error: �[2mexpect(�[22m�[31mpage�[39m�[2m).�[22mtoHaveScreenshot�[2m(�[22m�[32mexpected�[39m�[2m)�[22m failed    15948 pixels (ratio 0.02 of all image pixels) are different.    Snapshot: page-data-quality.png  Call log: �[2m  - Expect "toHaveScreenshot(page-data-quality.png)" with timeout 15000ms�[22m �[2m    - verifying given screenshot expectation�[22m �[2m  - taking page screenshot�[22m �[2m    - disabled all CSS animations�[22m �[2m  - waiting for fonts to load...�[22m �[2m  - fonts loaded�[22m �[2m  - 15948 pixels (ratio 0.02 of all image pixels) are different.�[22m �[2m  - waiting 100ms before taking screenshot�[22m �[2m  - taking page screenshot�[22m �[2m    - disabled all CSS animations�[22m �[2m  - waiting for fonts to load...�[22m �[2m  - fonts loaded�[22m �[2m  - captured a stable screenshot�[22m �[2m  - 15948 pixels (ratio 0.02 of all image pixels) are different.�[22m 
❌ ../utils/visualScenarios.ts › tab-domain-data-observability (shard visual-01)
Error: �[2mexpect(�[22m�[31mpage�[39m�[2m).�[22mtoHaveScreenshot�[2m(�[22m�[32mexpected�[39m�[2m)�[22m failed    15954 pixels (ratio 0.02 of all image pixels) are different.    Snapshot: tab-domain-data-observability-dark.png  Call log: �[2m  - Expect "toHaveScreenshot(tab-domain-data-observability-dark.png)" with timeout 15000ms�[22m �[2m    - verifying given screenshot expectation�[22m �[2m  - taking page screenshot�[22m �[2m    - disabled all CSS animations�[22m �[2m  - waiting for fonts to load...�[22m �[2m  - fonts loaded�[22m �[2m  - 15954 pixels (ratio 0.02 of all image pixels) are different.�[22m �[2m  - waiting 100ms before taking screenshot�[22m �[2m  - taking page screenshot�[22m �[2m    - disabled all CSS animations�[22m �[2m  - waiting for fonts to load...�[22m �[2m  - fonts loaded�[22m �[2m  - captured a stable screenshot�[22m �[2m  - 15954 pixels (ratio 0.02 of all image pixels) are different.�[22m 
❌ ../utils/visualScenarios.ts › tab-dataProduct-data-observability (shard visual-01)
Error: �[2mexpect(�[22m�[31mpage�[39m�[2m).�[22mtoHaveScreenshot�[2m(�[22m�[32mexpected�[39m�[2m)�[22m failed    15954 pixels (ratio 0.02 of all image pixels) are different.    Snapshot: tab-dataProduct-data-observability-dark.png  Call log: �[2m  - Expect "toHaveScreenshot(tab-dataProduct-data-observability-dark.png)" with timeout 15000ms�[22m �[2m    - verifying given screenshot expectation�[22m �[2m  - taking page screenshot�[22m �[2m    - disabled all CSS animations�[22m �[2m  - waiting for fonts to load...�[22m �[2m  - fonts loaded�[22m �[2m  - 15954 pixels (ratio 0.02 of all image pixels) are different.�[22m �[2m  - waiting 100ms before taking screenshot�[22m �[2m  - taking page screenshot�[22m �[2m    - disabled all CSS animations�[22m �[2m  - waiting for fonts to load...�[22m �[2m  - fonts loaded�[22m �[2m  - captured a stable screenshot�[22m �[2m  - 15954 pixels (ratio 0.02 of all image pixels) are different.�[22m 
❌ ../utils/visualScenarios.ts › glossaryTerm-tab-data-observability (shard visual-01)
Error: �[2mexpect(�[22m�[31mpage�[39m�[2m).�[22mtoHaveScreenshot�[2m(�[22m�[32mexpected�[39m�[2m)�[22m failed    15954 pixels (ratio 0.02 of all image pixels) are different.    Snapshot: glossaryTerm-tab-data-observability-dark.png  Call log: �[2m  - Expect "toHaveScreenshot(glossaryTerm-tab-data-observability-dark.png)" with timeout 15000ms�[22m �[2m    - verifying given screenshot expectation�[22m �[2m  - taking page screenshot�[22m �[2m    - disabled all CSS animations�[22m �[2m  - waiting for fonts to load...�[22m �[2m  - fonts loaded�[22m �[2m  - 15954 pixels (ratio 0.02 of all image pixels) are different.�[22m �[2m  - waiting 100ms before taking screenshot�[22m �[2m  - taking page screenshot�[22m �[2m    - disabled all CSS animations�[22m �[2m  - waiting for fonts to load...�[22m �[2m  - fonts loaded�[22m �[2m  - captured a stable screenshot�[22m �[2m  - 15954 pixels (ratio 0.02 of all image pixels) are different.�[22m 
❌ ../utils/visualScenarios.ts › tag-tab-data-observability (shard visual-01)
Error: �[2mexpect(�[22m�[31mpage�[39m�[2m).�[22mtoHaveScreenshot�[2m(�[22m�[32mexpected�[39m�[2m)�[22m failed    15955 pixels (ratio 0.02 of all image pixels) are different.    Snapshot: tag-tab-data-observability-dark.png  Call log: �[2m  - Expect "toHaveScreenshot(tag-tab-data-observability-dark.png)" with timeout 15000ms�[22m �[2m    - verifying given screenshot expectation�[22m �[2m  - taking page screenshot�[22m �[2m    - disabled all CSS animations�[22m �[2m  - waiting for fonts to load...�[22m �[2m  - fonts loaded�[22m �[2m  - 15955 pixels (ratio 0.02 of all image pixels) are different.�[22m �[2m  - waiting 100ms before taking screenshot�[22m �[2m  - taking page screenshot�[22m �[2m    - disabled all CSS animations�[22m �[2m  - waiting for fonts to load...�[22m �[2m  - fonts loaded�[22m �[2m  - captured a stable screenshot�[22m �[2m  - 15955 pixels (ratio 0.02 of all image pixels) are different.�[22m 
❌ ../utils/visualScenarios.ts › home-widget-dataEstate (shard visual-01)
Error: �[2mexpect(�[22m�[31mlocator�[39m�[2m).�[22mtoHaveScreenshot�[2m(�[22m�[32mexpected�[39m�[2m)�[22m failed  Locator: getByTestId('topic-card-dataEstate')   4451 pixels (ratio 0.02 of all image pixels) are different.    Snapshot: home-widget-dataEstate.png  Call log: �[2m  - Expect "toHaveScreenshot(home-widget-dataEstate.png)" with timeout 15000ms�[22m �[2m    - verifying given screenshot expectation�[22m �[2m  - waiting for getByTestId('topic-card-dataEstate')�[22m �[2m    - locator resolved to <div data-testid="topic-card-dataEstate" class="tw:focus-visible:outline-2 tw:focus-visible:outline-offset-2 tw:relative tw:overflow-hidden tw:rounded-xl tw:transition tw:duration-100 tw:border-1 tw:border-subtle tw:bg-surface tw:flex tw:min-w-0 tw:flex-col tw:h-full">…</div>�[22m �[2m  - taking element screenshot�[22m �[2m    - disabled all CSS animations�[22m �[2m  - waiting for fonts to load...�[22m �[2m  - fonts loaded�[22m �[2m  - attempting scroll into view action�[22m �[2m    - wai
❌ ../utils/visualScenarios.ts › home-widget-totalDataAssets (shard visual-01)
Error: �[2mexpect(�[22m�[31mlocator�[39m�[2m).�[22mtoHaveScreenshot�[2m(�[22m�[32mexpected�[39m�[2m)�[22m failed  Locator: getByTestId('topic-card-totalDataAssets')   5836 pixels (ratio 0.03 of all image pixels) are different.    Snapshot: home-widget-totalDataAssets.png  Call log: �[2m  - Expect "toHaveScreenshot(home-widget-totalDataAssets.png)" with timeout 15000ms�[22m �[2m    - verifying given screenshot expectation�[22m �[2m  - waiting for getByTestId('topic-card-totalDataAssets')�[22m �[2m    - locator resolved to <div data-testid="topic-card-totalDataAssets" class="tw:focus-visible:outline-2 tw:focus-visible:outline-offset-2 tw:relative tw:overflow-hidden tw:rounded-xl tw:transition tw:duration-100 tw:border-1 tw:border-subtle tw:bg-surface tw:flex tw:min-w-0 tw:flex-col tw:h-full">…</div>�[22m �[2m  - taking element screenshot�[22m �[2m    - disabled all CSS animations�[22m �[2m  - waiting for fonts to load...�[22m �[2m  - fonts loaded�[22m �[2m  - attempting scroll into view 
❌ ../utils/visualScenarios.ts › home-widget-dataQuality (shard visual-01)
Error: �[2mexpect(�[22m�[31mlocator�[39m�[2m).�[22mtoHaveScreenshot�[2m(�[22m�[32mexpected�[39m�[2m)�[22m failed  Locator: getByTestId('topic-card-dataQuality')   3897 pixels (ratio 0.02 of all image pixels) are different.    Snapshot: home-widget-dataQuality.png  Call log: �[2m  - Expect "toHaveScreenshot(home-widget-dataQuality.png)" with timeout 15000ms�[22m �[2m    - verifying given screenshot expectation�[22m �[2m  - waiting for getByTestId('topic-card-dataQuality')�[22m �[2m    - locator resolved to <div data-testid="topic-card-dataQuality" class="tw:focus-visible:outline-2 tw:focus-visible:outline-offset-2 tw:relative tw:overflow-hidden tw:rounded-xl tw:transition tw:duration-100 tw:border-1 tw:border-subtle tw:bg-surface tw:flex tw:min-w-0 tw:flex-col tw:h-full">…</div>�[22m �[2m  - taking element screenshot�[22m �[2m    - disabled all CSS animations�[22m �[2m  - waiting for fonts to load...�[22m �[2m  - fonts loaded�[22m �[2m  - attempting scroll into view action�[22m �[2m    
❌ VisualRegression/staticPages.spec.ts › landing-page matches baseline (shard visual-01)
Error: �[2mexpect(�[22m�[31mpage�[39m�[2m).�[22mtoHaveScreenshot�[2m(�[22m�[32mexpected�[39m�[2m)�[22m failed    12223 pixels (ratio 0.01 of all image pixels) are different.    Snapshot: landing-page.png  Call log: �[2m  - Expect "toHaveScreenshot(landing-page.png)" with timeout 15000ms�[22m �[2m    - verifying given screenshot expectation�[22m �[2m  - taking page screenshot�[22m �[2m    - disabled all CSS animations�[22m �[2m  - waiting for fonts to load...�[22m �[2m  - fonts loaded�[22m �[2m  - 12223 pixels (ratio 0.01 of all image pixels) are different.�[22m �[2m  - waiting 100ms before taking screenshot�[22m �[2m  - taking page screenshot�[22m �[2m    - disabled all CSS animations�[22m �[2m  - waiting for fonts to load...�[22m �[2m  - fonts loaded�[22m �[2m  - captured a stable screenshot�[22m �[2m  - 12223 pixels (ratio 0.01 of all image pixels) are different.�[22m 
❌ VisualRegression/staticPages.spec.ts › glossary matches baseline (shard visual-01)
Error: �[2mexpect(�[22m�[31mpage�[39m�[2m).�[22mtoHaveScreenshot�[2m(�[22m�[32mexpected�[39m�[2m)�[22m failed    15468 pixels (ratio 0.02 of all image pixels) are different.    Snapshot: glossary.png  Call log: �[2m  - Expect "toHaveScreenshot(glossary.png)" with timeout 15000ms�[22m �[2m    - verifying given screenshot expectation�[22m �[2m  - taking page screenshot�[22m �[2m    - disabled all CSS animations�[22m �[2m  - waiting for fonts to load...�[22m �[2m  - fonts loaded�[22m �[2m  - 15466 pixels (ratio 0.02 of all image pixels) are different.�[22m �[2m  - waiting 100ms before taking screenshot�[22m �[2m  - taking page screenshot�[22m �[2m    - disabled all CSS animations�[22m �[2m  - waiting for fonts to load...�[22m �[2m  - fonts loaded�[22m �[2m  - captured a stable screenshot�[22m �[2m  - 15468 pixels (ratio 0.02 of all image pixels) are different.�[22m 
❌ VisualRegression/exploreInteractions.spec.ts › explore-tools-menu (shard visual-02)
Error: A snapshot doesn't exist at /home/runner/work/OpenMetadata/OpenMetadata/openmetadata-ui/src/main/resources/ui/playwright/e2e/VisualRegression/__snapshots__/exploreInteractions.spec.ts-snapshots/explore-tools-menu-dark.png, writing actual.
❌ VisualRegression/exploreInteractions.spec.ts › explore-sort-menu (shard visual-02)
Error: A snapshot doesn't exist at /home/runner/work/OpenMetadata/OpenMetadata/openmetadata-ui/src/main/resources/ui/playwright/e2e/VisualRegression/__snapshots__/exploreInteractions.spec.ts-snapshots/explore-sort-menu-dark.png, writing actual.
❌ VisualRegression/exploreInteractions.spec.ts › explore-export-visible (shard visual-02)
Error: A snapshot doesn't exist at /home/runner/work/OpenMetadata/OpenMetadata/openmetadata-ui/src/main/resources/ui/playwright/e2e/VisualRegression/__snapshots__/exploreInteractions.spec.ts-snapshots/explore-export-visible-dark.png, writing actual.
❌ VisualRegression/exploreInteractions.spec.ts › explore-export-all (shard visual-02)
Error: A snapshot doesn't exist at /home/runner/work/OpenMetadata/OpenMetadata/openmetadata-ui/src/main/resources/ui/playwright/e2e/VisualRegression/__snapshots__/exploreInteractions.spec.ts-snapshots/explore-export-all-dark.png, writing actual.
❌ VisualRegression/exploreInteractions.spec.ts › explore-advanced-initial (shard visual-02)
Error: A snapshot doesn't exist at /home/runner/work/OpenMetadata/OpenMetadata/openmetadata-ui/src/main/resources/ui/playwright/e2e/VisualRegression/__snapshots__/exploreInteractions.spec.ts-snapshots/explore-advanced-initial-dark.png, writing actual.
❌ VisualRegression/exploreInteractions.spec.ts › explore-advanced-or (shard visual-02)
Error: A snapshot doesn't exist at /home/runner/work/OpenMetadata/OpenMetadata/openmetadata-ui/src/main/resources/ui/playwright/e2e/VisualRegression/__snapshots__/exploreInteractions.spec.ts-snapshots/explore-advanced-or-dark.png, writing actual.
❌ VisualRegression/exploreInteractions.spec.ts › explore-advanced-extra-rule (shard visual-02)
Error: A snapshot doesn't exist at /home/runner/work/OpenMetadata/OpenMetadata/openmetadata-ui/src/main/resources/ui/playwright/e2e/VisualRegression/__snapshots__/exploreInteractions.spec.ts-snapshots/explore-advanced-extra-rule-dark.png, writing actual.
❌ VisualRegression/exploreInteractions.spec.ts › explore-advanced-group-menu (shard visual-02)
Error: A snapshot doesn't exist at /home/runner/work/OpenMetadata/OpenMetadata/openmetadata-ui/src/main/resources/ui/playwright/e2e/VisualRegression/__snapshots__/exploreInteractions.spec.ts-snapshots/explore-advanced-group-menu-dark.png, writing actual.
❌ VisualRegression/exploreInteractions.spec.ts › explore-advanced-nested-group (shard visual-02)
Error: A snapshot doesn't exist at /home/runner/work/OpenMetadata/OpenMetadata/openmetadata-ui/src/main/resources/ui/playwright/e2e/VisualRegression/__snapshots__/exploreInteractions.spec.ts-snapshots/explore-advanced-nested-group-frame-dark.png, writing actual.
❌ VisualRegression/exploreInteractions.spec.ts › explore-long-results (shard visual-02)
Error: A snapshot doesn't exist at /home/runner/work/OpenMetadata/OpenMetadata/openmetadata-ui/src/main/resources/ui/playwright/e2e/VisualRegression/__snapshots__/exploreInteractions.spec.ts-snapshots/explore-long-results-dark.png, writing actual.
❌ VisualRegression/exploreInteractions.spec.ts › explore-search-error (shard visual-02)
Error: A snapshot doesn't exist at /home/runner/work/OpenMetadata/OpenMetadata/openmetadata-ui/src/main/resources/ui/playwright/e2e/VisualRegression/__snapshots__/exploreInteractions.spec.ts-snapshots/explore-search-error-dark.png, writing actual.
❌ VisualRegression/glossaryInteractions.spec.ts › glossary-late-activity-count (shard visual-02)
Error: A snapshot doesn't exist at /home/runner/work/OpenMetadata/OpenMetadata/openmetadata-ui/src/main/resources/ui/playwright/e2e/VisualRegression/__snapshots__/glossaryInteractions.spec.ts-snapshots/glossary-late-activity-count-dark.png, writing actual.
❌ ../utils/visualScenarios.ts › home-widget-dataEstate (shard visual-03)
Error: �[2mexpect(�[22m�[31mlocator�[39m�[2m).�[22mtoHaveScreenshot�[2m(�[22m�[32mexpected�[39m�[2m)�[22m failed  Locator: getByTestId('topic-card-dataEstate')   4417 pixels (ratio 0.02 of all image pixels) are different.    Snapshot: home-widget-dataEstate-dark.png  Call log: �[2m  - Expect "toHaveScreenshot(home-widget-dataEstate-dark.png)" with timeout 15000ms�[22m �[2m    - verifying given screenshot expectation�[22m �[2m  - waiting for getByTestId('topic-card-dataEstate')�[22m �[2m    - locator resolved to <div data-testid="topic-card-dataEstate" class="tw:focus-visible:outline-2 tw:focus-visible:outline-offset-2 tw:relative tw:overflow-hidden tw:rounded-xl tw:transition tw:duration-100 tw:border-1 tw:border-subtle tw:bg-surface tw:flex tw:min-w-0 tw:flex-col tw:h-full">…</div>�[22m �[2m  - taking element screenshot�[22m �[2m    - disabled all CSS animations�[22m �[2m  - waiting for fonts to load...�[22m �[2m  - fonts loaded�[22m �[2m  - attempting scroll into view action�[22m �[2
❌ ../utils/visualScenarios.ts › home-widget-totalDataAssets (shard visual-03)
Error: �[2mexpect(�[22m�[31mlocator�[39m�[2m).�[22mtoHaveScreenshot�[2m(�[22m�[32mexpected�[39m�[2m)�[22m failed  Locator: getByTestId('topic-card-totalDataAssets')   5836 pixels (ratio 0.03 of all image pixels) are different.    Snapshot: home-widget-totalDataAssets-dark.png  Call log: �[2m  - Expect "toHaveScreenshot(home-widget-totalDataAssets-dark.png)" with timeout 15000ms�[22m �[2m    - verifying given screenshot expectation�[22m �[2m  - waiting for getByTestId('topic-card-totalDataAssets')�[22m �[2m    - locator resolved to <div data-testid="topic-card-totalDataAssets" class="tw:focus-visible:outline-2 tw:focus-visible:outline-offset-2 tw:relative tw:overflow-hidden tw:rounded-xl tw:transition tw:duration-100 tw:border-1 tw:border-subtle tw:bg-surface tw:flex tw:min-w-0 tw:flex-col tw:h-full">…</div>�[22m �[2m  - taking element screenshot�[22m �[2m    - disabled all CSS animations�[22m �[2m  - waiting for fonts to load...�[22m �[2m  - fonts loaded�[22m �[2m  - attempting scroll 
❌ ../utils/visualScenarios.ts › home-widget-dataQuality (shard visual-03)
Error: �[2mexpect(�[22m�[31mlocator�[39m�[2m).�[22mtoHaveScreenshot�[2m(�[22m�[32mexpected�[39m�[2m)�[22m failed  Locator: getByTestId('topic-card-dataQuality')   3890 pixels (ratio 0.02 of all image pixels) are different.    Snapshot: home-widget-dataQuality-dark.png  Call log: �[2m  - Expect "toHaveScreenshot(home-widget-dataQuality-dark.png)" with timeout 15000ms�[22m �[2m    - verifying given screenshot expectation�[22m �[2m  - waiting for getByTestId('topic-card-dataQuality')�[22m �[2m    - locator resolved to <div data-testid="topic-card-dataQuality" class="tw:focus-visible:outline-2 tw:focus-visible:outline-offset-2 tw:relative tw:overflow-hidden tw:rounded-xl tw:transition tw:duration-100 tw:border-1 tw:border-subtle tw:bg-surface tw:flex tw:min-w-0 tw:flex-col tw:h-full">…</div>�[22m �[2m  - taking element screenshot�[22m �[2m    - disabled all CSS animations�[22m �[2m  - waiting for fonts to load...�[22m �[2m  - fonts loaded�[22m �[2m  - attempting scroll into view action�[22
❌ ../utils/visualScenarios.ts › table-long-header (shard visual-03)
Error: �[2mexpect(�[22m�[31mpage�[39m�[2m).�[22mtoHaveScreenshot�[2m(�[22m�[32mexpected�[39m�[2m)�[22m failed    13084 pixels (ratio 0.02 of all image pixels) are different.    Snapshot: table-long-header.png  Call log: �[2m  - Expect "toHaveScreenshot(table-long-header.png)" with timeout 15000ms�[22m �[2m    - verifying given screenshot expectation�[22m �[2m  - taking page screenshot�[22m �[2m    - disabled all CSS animations�[22m �[2m  - waiting for fonts to load...�[22m �[2m  - fonts loaded�[22m �[2m  - 13084 pixels (ratio 0.02 of all image pixels) are different.�[22m �[2m  - waiting 100ms before taking screenshot�[22m �[2m  - taking page screenshot�[22m �[2m    - disabled all CSS animations�[22m �[2m  - waiting for fonts to load...�[22m �[2m  - fonts loaded�[22m �[2m  - captured a stable screenshot�[22m �[2m  - 13084 pixels (ratio 0.02 of all image pixels) are different.�[22m 
❌ VisualRegression/staticPages.spec.ts › incident-manager matches baseline (shard visual-03)
Error: �[2mexpect(�[22m�[31mpage�[39m�[2m).�[22mtoHaveScreenshot�[2m(�[22m�[32mexpected�[39m�[2m)�[22m failed    10485 pixels (ratio 0.01 of all image pixels) are different.    Snapshot: incident-manager.png  Call log: �[2m  - Expect "toHaveScreenshot(incident-manager.png)" with timeout 15000ms�[22m �[2m    - verifying given screenshot expectation�[22m �[2m  - taking page screenshot�[22m �[2m    - disabled all CSS animations�[22m �[2m  - waiting for fonts to load...�[22m �[2m  - fonts loaded�[22m �[2m  - 10485 pixels (ratio 0.01 of all image pixels) are different.�[22m �[2m  - waiting 100ms before taking screenshot�[22m �[2m  - taking page screenshot�[22m �[2m    - disabled all CSS animations�[22m �[2m  - waiting for fonts to load...�[22m �[2m  - fonts loaded�[22m �[2m  - captured a stable screenshot�[22m �[2m  - 10485 pixels (ratio 0.01 of all image pixels) are different.�[22m 
❌ ../utils/visualScenarios.ts › tab-domain-data-observability (shard visual-04)
Error: �[2mexpect(�[22m�[31mpage�[39m�[2m).�[22mtoHaveScreenshot�[2m(�[22m�[32mexpected�[39m�[2m)�[22m failed    18574 pixels (ratio 0.02 of all image pixels) are different.    Snapshot: tab-domain-data-observability.png  Call log: �[2m  - Expect "toHaveScreenshot(tab-domain-data-observability.png)" with timeout 15000ms�[22m �[2m    - verifying given screenshot expectation�[22m �[2m  - taking page screenshot�[22m �[2m    - disabled all CSS animations�[22m �[2m  - waiting for fonts to load...�[22m �[2m  - fonts loaded�[22m �[2m  - 18574 pixels (ratio 0.02 of all image pixels) are different.�[22m �[2m  - waiting 100ms before taking screenshot�[22m �[2m  - taking page screenshot�[22m �[2m    - disabled all CSS animations�[22m �[2m  - waiting for fonts to load...�[22m �[2m  - fonts loaded�[22m �[2m  - captured a stable screenshot�[22m �[2m  - 18574 pixels (ratio 0.02 of all image pixels) are different.�[22m 
❌ ../utils/visualScenarios.ts › tab-dataProduct-data-observability (shard visual-04)
Error: �[2mexpect(�[22m�[31mpage�[39m�[2m).�[22mtoHaveScreenshot�[2m(�[22m�[32mexpected�[39m�[2m)�[22m failed    15949 pixels (ratio 0.02 of all image pixels) are different.    Snapshot: tab-dataProduct-data-observability.png  Call log: �[2m  - Expect "toHaveScreenshot(tab-dataProduct-data-observability.png)" with timeout 15000ms�[22m �[2m    - verifying given screenshot expectation�[22m �[2m  - taking page screenshot�[22m �[2m    - disabled all CSS animations�[22m �[2m  - waiting for fonts to load...�[22m �[2m  - fonts loaded�[22m �[2m  - 15949 pixels (ratio 0.02 of all image pixels) are different.�[22m �[2m  - waiting 100ms before taking screenshot�[22m �[2m  - taking page screenshot�[22m �[2m    - disabled all CSS animations�[22m �[2m  - waiting for fonts to load...�[22m �[2m  - fonts loaded�[22m �[2m  - captured a stable screenshot�[22m �[2m  - 15949 pixels (ratio 0.02 of all image pixels) are different.�[22m 
❌ ../utils/visualScenarios.ts › glossaryTerm-tab-data-observability (shard visual-04)
Error: �[2mexpect(�[22m�[31mpage�[39m�[2m).�[22mtoHaveScreenshot�[2m(�[22m�[32mexpected�[39m�[2m)�[22m failed    15948 pixels (ratio 0.02 of all image pixels) are different.    Snapshot: glossaryTerm-tab-data-observability.png  Call log: �[2m  - Expect "toHaveScreenshot(glossaryTerm-tab-data-observability.png)" with timeout 15000ms�[22m �[2m    - verifying given screenshot expectation�[22m �[2m  - taking page screenshot�[22m �[2m    - disabled all CSS animations�[22m �[2m  - waiting for fonts to load...�[22m �[2m  - fonts loaded�[22m �[2m  - 15948 pixels (ratio 0.02 of all image pixels) are different.�[22m �[2m  - waiting 100ms before taking screenshot�[22m �[2m  - taking page screenshot�[22m �[2m    - disabled all CSS animations�[22m �[2m  - waiting for fonts to load...�[22m �[2m  - fonts loaded�[22m �[2m  - captured a stable screenshot�[22m �[2m  - 15948 pixels (ratio 0.02 of all image pixels) are different.�[22m 

... and 57 more failures

🟡 3 flaky test(s) (passed on retry)
  • VisualRegression/metricList.spec.ts › Metric interaction create-reviewer-picker dark (shard visual-03, 1 retry)
  • VisualRegression/staticPages.spec.ts › explore matches baseline (shard visual-04, 1 retry)
  • ../utils/visualScenarios.ts › form-create-product (shard visual-07, 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

@github-actions

ghost commented Nov 4, 2026

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: 1028 → 1028
- 0 added, 0 removed, 1 changed spec-list

Entries whose spec list changed:
  openmetadata-ui/src/main/resources/ui/playwright/utils/isolatedDomainUser.ts

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

@github-actions

ghost commented Nov 4, 2026

Copy link
Copy Markdown
Contributor

⚠️ UI Checkstyle passed — lint findings in changed files

🔍 ESLint findings in this PR's files — 0 error(s), 4 warning(s)

Errors block the build. Warnings do not yet — they are rules whose backlog is still
being worked down, listed so this PR does not add to it. See docs/ui-code-quality-gate.md.

0 error(s), 4 warning(s) across 1 changed file(s).

Count Rule
4 react-hooks/exhaustive-deps
All findings
Location Rule Message
🟡 src/components/Glossary/GlossaryDetails/GlossaryDetails.component.tsx:210:6 react-hooks/exhaustive-deps React Hook useMemo has missing dependencies: 'getEntityFeedCount', 'glossary.childrenCount', 'glossary.id', 'glossary.owners', 'glossary.reviewers', 'glossary.t
🟡 src/components/Glossary/GlossaryDetails/GlossaryDetails.component.tsx:223:6 react-hooks/exhaustive-deps React Hook useEffect has missing dependencies: 'fetchActivityCount' and 'fetchTaskCounts'. Either include them or remove the dependency array.
🟡 src/components/Glossary/GlossaryDetails/GlossaryDetails.component.tsx:227:5 react-hooks/exhaustive-deps React Hook useMemo has a missing dependency: 'tabs'. Either include it or remove the dependency array.
🟡 src/components/Glossary/GlossaryDetails/GlossaryDetails.component.tsx:227:6 react-hooks/exhaustive-deps React Hook useMemo has a complex expression in the dependency array. Extract it to a separate variable so it can be statically checked.

Fix locally (fast - only checks files changed in this branch):

make ui-checkstyle-changed

"@types/use-analytics": "^0.0.3",
"@typescript-eslint/eslint-plugin": "^8.72.1",
"@typescript-eslint/parser": "^8.72.1",
"@untitledui/file-icons": "^0.0.9",

ghost Nov 5, 2026

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

why?

ghost Nov 5, 2026

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

The app's direct @untitledui/file-icons devDependency was redundant: @openmetadata/ui-core-components already owns it as a dependency. Removed the duplicate; the lockfile is unchanged. A frozen-lockfile installation and the production build pass. Checked the PR and repository for sibling occurrences: 0 additional duplicates required changes; the core library's declaration is the correct owner.

Committed in b862a0d.

// that the run cannot be useful. Healthy runs never approach this limit.
maxFailures: 50,
// Keep every visual difference in the report; other lanes retain fail-fast limits.
maxFailures: process.env.PW_SHARD_LANE === 'visual' ? 0 : 50,

ghost Nov 5, 2026

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

This means any failure will stop the run immediately, is that expected?

ghost Nov 5, 2026 •

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Restored maxFailures: 50 for the visual lane and other lanes in the shared configuration, matching main. Removed the visual-only exception and its explanatory comment. Testing stops once the failure limit is reached.

Verified the loaded configuration for visual, chromium, RDF, and an unset lane: all use 50. Import organization, ESLint, Prettier and git diff --check pass. The separate SSO configuration retains its existing limit of 10; no additional sibling changes were needed.

Committed in 180e558.

@sonarqubecloud

ghost commented Nov 5, 2026

Copy link
Copy Markdown

@gitar-bot

ghost commented Nov 5, 2026

Copy link
Copy Markdown
Code Review ✅ Approved 3 closed / 3 findings

🟡 Medium risk · Adding row-header semantics and updating glossary tab counts changes rendered navigation and counts; regressions could misidentify rows or show stale totals.

Expands OSS Playwright visual regression coverage from 22 light-only screenshots to 2,259 tests across 34 specs, with light and dark theme captures and deterministic HTTP fixtures. Resolved this session: visual-lane shard efficiency and fail-fast limit are now recorded, unmodeled reads on known collections fail as fixture errors rather than returning empty 200s, and the five new visual specs now ship committed baseline images. No open findings.

✅ 3 closed
✅ Quality: Visual-lane shard efficiency, 8-shard cap and fail-fast limit are unrecorded

📄 .github/scripts/build_playwright_shards.py:97-99 📄 .github/scripts/build_playwright_shards.py:666-670 📄 .github/scripts/build_playwright_shards.py:678-679 📄 openmetadata-ui/src/main/resources/ui/playwright.config.ts
This PR sets three new judgment-call budgets for a blocking CI lane: VISUAL_EFFICIENCY = 0.70 (calibrated from one run, 40957818435), a visual shard range of (1, 8) in lane_bounds, and maxFailures: 0 for PW_SHARD_LANE === 'visual' in playwright.config.ts. The removed comment said gated lanes are single-shard. The only record covering this lane, ADR:2026-10-23-playwright-visual-and-rdf-are-blocking-lanes-on-the-regular-bundle, does not state any of these values. The description states the rule only in prose: "Visual sharding stays within the existing 20-minute budget and eight-shard ceiling." The record would say: "The visual lane is planned at 70% worker efficiency against the 20-minute shard budget, may split into at most 8 shards, and runs without a max-failures limit so every visual difference is reported." It should also say when to re-measure the efficiency figure.

✅ Edge Case: Unmodeled reads on known collections return empty 200s, not fixture errors

📄 openmetadata-ui/src/main/resources/ui/playwright/utils/visualData.ts:1375-1389 📄 openmetadata-ui/src/main/resources/ui/playwright/utils/visualRegression.ts:192-194
The PR says unexpected data reads in visual scenes fail the test instead of producing a misleading empty baseline. In practice, only paths with no matching fixture collection get the 503 Missing visual read fixture: response. Two cases on known collections get a 200 empty page instead:

  • An unmodeled child read on a matched entity, such as tables/<id>/someNewChild, hits the else if (childPath) branch.
  • An unmatched non-name/ suffix hits the final fallback.

No error is shown, so expectVisualScreenshot passes and records an empty panel as the approved baseline. The missingFixture text check in visualRegression.ts also misses any 503 that the UI catches without displaying its message.

Fix: answer unmodeled child paths and unknown suffixes with the same 503 Missing visual read fixture response, keeping a small allow-list for child paths that are meant to be empty. Also record unmodeled reads in a per-page list and assert it is empty, so detection doesn't depend on the UI rendering the error.

✅ Bug: Five new visual specs ship without any committed baseline images

📄 openmetadata-ui/src/main/resources/ui/playwright/e2e/VisualRegression/connectionBranches.spec.ts:84-98 📄 openmetadata-ui/src/main/resources/ui/playwright/e2e/VisualRegression/settingsForms.spec.ts 📄 openmetadata-ui/src/main/resources/ui/playwright/e2e/VisualRegression/sharedControls.spec.ts 📄 openmetadata-ui/src/main/resources/ui/playwright/e2e/VisualRegression/homeInteractions.spec.ts 📄 openmetadata-ui/src/main/resources/ui/playwright/e2e/VisualRegression/listingStates.spec.ts
connectionBranches.spec.ts (447 recipes × 2 themes), settingsForms.spec.ts, sharedControls.spec.ts, homeInteractions.spec.ts and listingStates.spec.ts (11 Listing states scenes) all call toHaveScreenshot/expectVisualScreenshot. However, __snapshots__/ has no connectionBranches.spec.ts-snapshots, settingsForms.spec.ts-snapshots, sharedControls.spec.ts-snapshots, homeInteractions.spec.ts-snapshots or listingStates.spec.ts-snapshots directory, either in the diff or on disk. Under the default updateSnapshots: 'missing', Playwright writes the actual image and fails the test when the snapshot is missing. So roughly 900+ visual tests fail on the first CI run. ADR:2026-10-23-playwright-visual-and-rdf-are-blocking-lanes-on-the-regular-bundle makes the visual lane block merges, so this would block the merge queue. maxFailures: 0 for the visual lane also means every one of those tests runs before the shard reports. Fix: commit reviewed Linux baselines for these specs, or keep the specs out of testMatch until their baselines land.

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

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