Repository navigation
test(playwright): fix the 2.1 visual lane: refresh stale baselines, fix DQ, search index and incident-time fixtures - #37695
Conversation
… 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.
❌ PR checklist incompleteThis PR cannot be merged until the following are addressed on its linked issue:
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 |
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.
🔴 Playwright Results — workflow failedValidated commit ✅ 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)
PerformanceBlocking 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
Optimization targets still in progress:
Zero-attempt skipped tests40 planned test(s) were reported as skipped with no attempts. They remain included in coverage; Playwright did not report a reliable reason.
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.
Code Review ✅ Approved 🟡 Medium riskRefreshing 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 VerificationRules No rules evaluated Functional validation Not enabledAuto-approval Not enabledFor more verification details, comment OptionsDisplay: compact → Showing compact verification results. Comment with these commands to change the behavior for this request:
Was this helpful? React with 👍 / 👎 | Powered by Gitar — free for open source |
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
maincounterpart 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.pngdiffers only in the sidebar glossary icon, which differs betweenmainand 2.1.Fix: each baseline is replaced with its first-attempt
-actual.pngfrom 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 asexplore-advanced-nested-groupneeded 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 forcardinality, soDataAssetsCoveragePieChartWidgetreadtotalData[0]from an empty report and threw ("An unexpected error occurred."). This brokepage-data-qualityand thequality-*scenes in both themes. Fix: the fixture also answersvalue_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 forno-data-placeholderin the tab panel, asEntityConfigTabs.spec.tsdoes.4. "Last check N secs ago" moved between runs. The incident fixture timestamp equalled
FIXED_DATE, and the browser clock keeps running aftersetSystemTime. 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
Not covered here
rdf-01fails 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.mainruns:explore-long-resultsand the staticexplorepage race the coreBreadcrumbsauto-collapse. Also seen:settings-policy-detailandquality-add-menu-dark. They need their own fixes.Type of change:
Testing