Skip to content

Turn off the Playwright visual regression lane - #38194

Merged
shah-harshit merged 3 commits into
mainfrom
ci/disable-visual-regression-lane
Nov 19, 2026
Merged

shah-harshit merged 3 commits into
mainfrom
ci/disable-visual-regression-lane

Conversation

@shah-harshit

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

Copy link
Copy Markdown
Contributor

Summary

Turns off the Playwright visual regression lane on main for every event: merge queue, the nightly schedule, release-nightly dispatches and manual runs.

The lane runs only after merge, never on PR checks, so any change that alters rendering lands with stale baselines. The nightly then fails until someone refreshes them on CI. The 2.1 release nightly on 18 Nov failed all 7 visual shards (36 tests) for this reason.

  • check-changes.outputs.visual in playwright-e2e-reusable.yml is now the constant 'false'. build-visual-ui and the visual shard plans skip as they already do on a PR without visual changes. playwright-ci does not depend on build-visual-ui succeeding.
  • The specs, baselines, yarn playwright:visual and the visual paths filter are untouched. Restoring the previous expression (kept in git history) turns the lane back on.
  • The PR template's "Visual regression baselines" section, the pr-checklist step and checklist bullet that required refreshed baselines, and the .github/playwright/README.md lane description are updated. Authors no longer need to refresh or list baselines.
  • A decision record, ADR:2026-11-19-the-playwright-visual-lane-is-off-until-baselines-are-checked-before-merge, is added, and the 2026-10-23 record is amended. The guard test in test_playwright_cache_assets.py now asserts the lane is off.
  • docs/generated/api-reference.md picks up the missing POST /v1/search/query row, refreshed by the pre-commit generated-doc hook.

Testing

🤖 Generated with Claude Code

RetriggerView in GreptileConfidence Score: 5/5

The PR appears safe to merge.

Summary

Turns off the Playwright visual lane for every CI event and removes the requirement to refresh screenshot baselines.

  • Playwright CI no longer runs the visual lane on any event.
  • PR guidance no longer asks authors to refresh visual baselines.
  • The generated API reference lists the POST search-query endpoint.

No new actionable issues found in the changes since the previous review.

Reviews (8) · Last reviewed commit: "docs(pr): drop the visual baseline requi..." · Reviewed by Greptile

The visual lane ran only after merge (merge queue, nightly, dispatch),
so every rendering change left stale baselines and failed the nightlies
until someone refreshed them. Force the lane's switch to false on every
event. The specs, baselines and the paths filter stay in place, so the
previous expression turns it back on.
@shah-harshit
shah-harshit requested a review from a team as a code owner November 19, 2026 09:17
@shah-harshit shah-harshit added safe to test Add this label to run secure Github workflows on PRs skip-pr-checks Bypass PR metadata validation check labels Nov 19, 2026
@shah-harshit shah-harshit self-assigned this Nov 19, 2026
The cache-assets guard test asserted the old visual expression; assert
the lane is the constant 'false' instead. Add a decision record for
turning the lane off and amend the 2026-10-23 record, whose visual half
no longer holds.
@shah-harshit
shah-harshit enabled auto-merge (squash) November 19, 2026 09:45
The PR template, the pr-checklist skill and the Playwright README still
asked authors to refresh visual baselines. The lane no longer runs, so
remove the requirement and point at the decision record.
@gitar-bot

gitar-bot Bot commented Nov 19, 2026

Copy link
Copy Markdown
Code Review ✅ Approved 🟡 Medium risk 2 closed / 2 findings

Disabling the Playwright visual lane on every event removes automated rendering-regression detection, so UI changes could ship with unnoticed visual defects.

Turns off the Playwright visual regression lane on main by hard-coding check-changes.outputs.visual to 'false' in playwright-e2e-reusable.yml, so visual builds and shards skip on merge queue, nightly, and manual runs. The guard test test_playwright_cache_assets that failed on the constant is now addressed, and the previously conflicting accepted ADR is resolved with a recorded decision. No open issues found.

✅ 2 closed
✅ Bug: Constant visual: 'false' fails the guard test test_playwright_cache_assets

📄 .github/workflows/playwright-e2e-reusable.yml:204
test_visual_renders_the_regular_bundle_in_front_of_the_shared_server in .github/scripts/tests/test_playwright_cache_assets.py finds the visual: line in the check-changes outputs. It then asserts that the line contains inputs.protocol != 'h2' and ends with || 'false' }}. The new line visual: 'false' fails both checks, so this test fails once the PR merges. The PR's Testing section only covers the YAML consumers and never mentions this test. The skip-pr-checks label may be why CI didn't catch it.

Fix: update the test in the same PR so it asserts the lane is off (visual == " visual: 'false'") and keeps the rdf checks. Alternatively, mark the visual part of the test as skipped and link the decision that turned the lane off.

✅ Quality: Disabling visual lane overrides an accepted ADR and records no new rule

📄 .github/workflows/playwright-e2e-reusable.yml:201-204
docs/decisions/2026-10-23-playwright-visual-and-rdf-are-blocking-lanes-on-the-regular-bundle.md is Accepted. It says visual is a blocking lane of playwright-e2e-reusable.yml that "runs when its UI path filter matches ... and [runs] on every manual and scheduled run". The workflow cites it inline as ADR:2026-10-23-..., and it names the lane-gating tests as its guard. This PR reverses that decision ("Turns off the Playwright visual regression lane on main for every event"). It does not revise the ADR or add a record that supersedes it, so the tree would now disagree with its own Accepted decision. The rationale is only in a YAML comment and in a PR description that squash-merge drops.

The record needs to say something like this: "The visual regression lane is disabled on every event (merge queue, schedule, release-nightly, manual), because its baselines are only checked after merge and go stale whenever rendering changes. It is re-enabled only once baselines are validated before merge." That last condition is what the description implies with "it ran only after merge". Mark the 2026-10-23 record as revised or superseded for its visual-lane bullet. Its RDF and regular-bundle bullets still hold.

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 merged commit a696bd8 into main Nov 19, 2026
52 checks passed
@shah-harshit
shah-harshit deleted the ci/disable-visual-regression-lane branch November 19, 2026 09:51
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