Skip to content

test(playwright): fix the 2.1 visual lane: refresh stale baselines, fix DQ, search index and incident-time fixtures - #37695

Merged
shrabantipaul-collate merged 5 commits into
2.1from
shah-harshit/visual-regression-2.1-fail
Nov 13, 2026
Merged

shrabantipaul-collate merged 5 commits into
2.1from
shah-harshit/visual-regression-2.1-fail

Conversation

@shah-harshit

@shah-harshit shah-harshit commented Nov 12, 2026 •

Copy link
Copy Markdown
Contributor

Describe your changes:

Fixes the 2.1 visual lane. All 7 visual shards now pass with 0 failed, 0 flaky and 0 skipped tests (run 43316709517: 2,271 visual tests). The source failure was run 43212731841: 214 failures across all 7 visual shards. The main counterpart is #37696. This is a test-only fix, so there is no linked issue.

RCA

1. Stale baselines. 199 of the 200 mismatched baselines were still the original capture from #36640. #37656 refreshed only what its source run reached: 6 of its 7 shards stopped at maxFailures: 50, so about 700 tests never ran. The diffs are the UI changes since then: entity header card, pagination page-size select, Ontology Studio restyle, core-ui icons, announcement cards, bot avatars, and 1–80px antialias drift on connection forms and alerts. staticPages/glossary.png differs only in the sidebar glossary icon, which differs between main and 2.1.

Fix: each baseline is replaced with its first-attempt -actual.png from a 2.1 visual run (CI Linux renderer, regular UI bundle). An image was only accepted if it matched its retry capture (no pixel off by more than 16 per channel). A scene stops at its first mismatched screenshot, so multi-frame scenes such as explore-advanced-nested-group needed one refresh per frame.

2. Data quality page raises an error toast. #37507 changed the table total to aggType=value_count. The batch fixture only returned a row for cardinality, so DataAssetsCoveragePieChartWidget read totalData[0] from an empty report and threw ("An unexpected error occurred."). This broke page-data-quality and the quality-* scenes in both themes. Fix: the fixture also answers value_count. The data-observability tabs and the data quality page now show the fixture's real coverage (25 tables) instead of 0.

3. Search index settings scene never becomes ready. #37120 removed the panel title the scene waited for. The fixture index has no settings, so the tab shows NoDataPlaceholder. The scene now waits for no-data-placeholder in the tab panel, as EntityConfigTabs.spec.ts does.

4. "Last check N secs ago" moved between runs. The incident fixture timestamp equalled FIXED_DATE, and the browser clock keeps running after setSystemTime. The asset health widget therefore rendered an elapsed time that depended on how long each scene took. The incident now dates from one hour earlier, so it reads "1 hour ago" for the whole run.

Runs on this branch

Run Visual failures Notes
43264131527 11 (+ shard 02 infra) DQ and data-observability scenes after the fixture fix; shard 02 failed downloading plans
43297316037 9 first run of shard 02: announcements, bots, incident manager, nested-group frames
43307968814 1 last nested-group frame
43316709517 0 all 7 visual shards green

Not covered here

  • RDF lane: rdf-01 fails with "RDF Indexing Job Failed: Failed to clear RDF data" on some runs and passes on others with the same code. It is unrelated to the visual lane.
  • Flakes that pass on retry: seen on main runs: explore-long-results and the static explore page race the core Breadcrumbs auto-collapse. Also seen: settings-policy-detail and quality-add-menu-dark. They need their own fixes.

Type of change:

  • Bug fix (test-only)

Testing

  • Prettier and ESLint on the changed Playwright files: clean.
  • Visual lane dispatched on this branch until all 7 shards passed (table above).

… quality and search index scenes

The visual lane on 2.1 still failed 214 tests after #37656. 199 of the 200
mismatched baselines date from the original capture in #36640 and never ran
in the run #37656 refreshed from, because 6 of 7 shards stopped at
maxFailures. Each is replaced with the first-attempt actual from 2.1 run
43212731841.

- visualData: the batch DQ fixture also answers value_count. #37507 switched
  the table total to value_count, the fixture returned no row, and
  DataAssetsCoveragePieChartWidget threw reading totalData[0], raising an
  error toast on the data quality page and its interaction scenes.
- scenarios: the search index settings tab waits for its empty-state
  placeholder. #37120 removed the panel title the scene waited for; the
  fixture index has no settings.
@shah-harshit
shah-harshit requested a review from a team as a code owner November 12, 2026 15:56
@shah-harshit
shah-harshit requested review from shrabantipaul-collate and removed request for a team November 12, 2026 15:56
@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 Nov 12, 2026
@shah-harshit shah-harshit self-assigned this Nov 12, 2026
@github-actions

Copy link
Copy Markdown
Contributor

❌ PR checklist incomplete

This PR cannot be merged until the following are addressed on its linked issue:

  • No GitHub issue is linked. Link an issue in the Development section of the PR (or add Fixes #12345 to the description). For a same-org cross-repo issue, add Fixes open-metadata/<repo>#123 to the description.

The fields live on the linked issue in the Shipping project (open the issue → right sidebar → Projects). After you set them, re-run this check (or push a commit) — issue/project changes do not re-trigger it automatically.

Maintainers can bypass this check by adding the skip-pr-checks label.

The incident timestamp equalled FIXED_DATE while the browser clock keeps
running, so the asset health widget rendered 'Last check N secs ago' with N
depending on scene duration. It is now one hour earlier.
@github-actions

github-actions Bot commented Nov 12, 2026 •

Copy link
Copy Markdown
Contributor

🔴 Playwright Results — workflow failed

Validated commit b2de77441b3395752304d9aeec5a055052bf2fc9 in Playwright run 43316709517, attempt 1.

✅ 2312 passed · ❌ 0 failed · 🟡 0 flaky · ⏭️ 40 skipped (40 zero-attempt; reason unknown) · 🧰 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.

Pipeline and setup failures (1)

  • Shard rdf-01 failed in Playwright lifecycle test ontology-rdf.setup.ts › assert RDF health and projection writes.

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) 37m 52s

⏱️ Max setup 12m 19s · max shard execution 15m 54s · max shard-job elapsed before upload 29m 44s · reporting 5s

🌐 2.81 requests/attempt · 1.31 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-04 739 s, visual-05 737 s, visual-07 736 s, visual-03 717 s, visual-02 696 s (+3 more).

Optimization targets still in progress:

  • Application boot ratio was 1.31 per UI scenario (55 boots / 42 scenarios; convergence target: at most 1).

Zero-attempt skipped tests

40 planned test(s) were reported as skipped with no attempts. They remain included in coverage; Playwright did not report a reliable reason.

Shard Passed Failed Flaky Skipped Lifecycle failed Lifecycle flaky
✅ Shard chromium-01 42 0 0 0 0 0
🔴 Shard rdf-01 13 0 0 40 1 0
✅ Shard visual-01 309 0 0 0 0 0
✅ Shard visual-02 312 0 0 0 0 0
✅ Shard visual-03 307 0 0 0 0 0
✅ Shard visual-04 310 0 0 0 0 0
✅ Shard visual-05 332 0 0 0 0 0
✅ Shard visual-06 375 0 0 0 0 0
✅ Shard visual-07 312 0 0 0 0 0

📦 Download artifacts

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

Run 43264131527 renders the data quality and data observability scenes with
the value_count fixture fix, the table manage menu, and an advanced-search
nested-group frame that the previous run never reached. Each actual matched
its retry.
… frames

Run 43297316037 is the first 2.1 run where shard 02 ran its tests: dark
announcements, bots, incident manager and advanced-search frames. Each actual
matched its retry. The dark nested group-2 card is identical on main, where
it was captured from run 43263784280; the earlier frames of that scene match
pixel for pixel.
The last advanced-search nested-group frame that earlier 2.1 runs never
reached (run 43307968814). The actual matched its retry.
@gitar-bot

gitar-bot Bot commented Nov 12, 2026

Copy link
Copy Markdown
Code Review ✅ Approved 🟡 Medium risk

Refreshing roughly 200 visual baselines and adjusting Playwright fixtures changes regression expectations, which could cause later UI regressions to go unnoticed.

Refreshes 200 stale 2.1 visual baselines with first-attempt renders from the CI run and fixes the data quality fixture to answer value_count aggregations plus the search index settings readiness signal. 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

@shah-harshit shah-harshit changed the title test(playwright): refresh stale 2.1 visual baselines and fix the data quality and search index scenes test(playwright): fix the 2.1 visual lane: refresh stale baselines, fix DQ, search index and incident-time fixtures Nov 12, 2026
@shrabantipaul-collate
shrabantipaul-collate merged commit 91ae7fe into 2.1 Nov 13, 2026
77 of 79 checks passed
@shrabantipaul-collate
shrabantipaul-collate deleted the shah-harshit/visual-regression-2.1-fail branch November 13, 2026 05:27

This branch was previously deployed

1 inactive deployment
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

safe to test Add this label to run secure Github workflows on PRs 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