Skip to content

Add a CI visual check that diffs two Cipher refs - #137

Merged
andrewhuhh merged 11 commits into
mainfrom
andrew/cipher-visual-check
Nov 19, 2026
Merged

andrewhuhh merged 11 commits into
mainfrom
andrew/cipher-visual-check

Conversation

@andrewhuhh

@andrewhuhh andrewhuhh commented Nov 18, 2026 •

Copy link
Copy Markdown
Collaborator

Adds .github/workflows/cipher-visual.yml, the release visual check for INF-232. It renders every showcase example at a baseline ref and a candidate ref, pixel-diffs them and uploads a cipher-visual-report artifact with before, after and diff images for each change and a summary of the changed count, the total and the changed files. The README's Release section says how to run it.

  • Refs: gh workflow run cipher-visual.yml -f base=<tag> -f candidate=<ref> [-f scope=scoped] once this is on main. On this pull request it runs on CIPHER_BASE and CIPHER_CANDIDATE from the workflow env (v0.1.15 and v0.1.16). A release tag renders the source commit under it.
  • Rendering: both sides render with this branch's visual.html, visual.tsx, vite.visual.config.ts and visual.spec.ts in the pinned Playwright image, eight shards per side, both sides in parallel.
  • Scope: scope=scoped (or the cipher-visual:scoped label on a pull request) renders only the pages whose examples reach a changed file through the import graph, with changed icons tracked by name. Tokens, global CSS, fonts, theme code, package dependencies and the frame and overlay primitives render every page. .github/cipher-visual/scope.mjs is shared with the app's check in Infisical/infisical.

On v0.1.15 against v0.1.16, the full run reports 168 changed, 4 added of 1472 snapshots in about 5 minutes. The scoped run renders 50 of 103 pages (896 snapshots), finds the same 168 and 4, and takes about 4 minutes.

Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
@infisical-review-police

Copy link
Copy Markdown

💬 Discussion in Slack: #pr-review-cipher-137-prototype-cipher-visual-check-between-two-refs

Posted by Review Police — reviews, comments, new commits, and CI failures will stream into this channel.

@capy-ai capy-ai Bot added the live-preview label Nov 18, 2026
andrewhuhh and others added 2 commits November 18, 2026 23:09
Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
@capy-ai capy-ai Bot added cipher-visual:scoped Cipher visual check renders only the pages a change reaches and removed cipher-visual:scoped Cipher visual check renders only the pages a change reaches labels Nov 18, 2026
Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
@capy-ai capy-ai Bot changed the title Prototype: Cipher visual check between two refs Add a CI visual check that diffs two Cipher refs Nov 18, 2026
@capy-ai
capy-ai Bot marked this pull request as ready for review November 18, 2026 23:43
@greptile-apps

greptile-apps Bot commented Nov 18, 2026 •

Copy link
Copy Markdown

RetriggerView in GreptileConfidence Score: 5/5 Tier: plus

[Low impact] The reviewed changes appear safe to merge.

Summary

Adds a CI check that compares showcase screenshots at two Git refs and uploads a report with changed images.

  • Maintainers can compare showcase screenshots between two refs in CI.
  • Scoped runs select showcase pages affected by changed code.

The earlier findings are addressed. No new actionable issues found.

Reviews (8) · Last reviewed commit: "Fall back to a full run when a showcase ..." · Reviewed by Greptile

Comment thread .github/cipher-visual/scope.mjs Resolved
Comment thread .github/cipher-visual/scope.mjs Resolved
Comment thread .github/cipher-visual/scope.mjs Resolved
Comment thread .github/workflows/cipher-visual.yml Resolved
…pty scoped runs

Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
Comment thread .github/cipher-visual/scope.mjs Resolved
Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
@capy-ai

capy-ai Bot commented Nov 18, 2026

Copy link
Copy Markdown
Contributor

@greptileai review

@capy-ai capy-ai Bot added cipher-visual:scoped Cipher visual check renders only the pages a change reaches and removed cipher-visual:scoped Cipher visual check renders only the pages a change reaches labels Nov 18, 2026
andrewhuhh and others added 4 commits November 19, 2026 00:09
…ease tags

Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
Comment thread .github/cipher-visual/scope.mjs Resolved
Comment thread .github/cipher-visual/compare.mjs Resolved
…ized screenshots

Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
@capy-ai

capy-ai Bot commented Nov 19, 2026

Copy link
Copy Markdown
Contributor

@greptileai review

@andrewhuhh
andrewhuhh merged commit ab03e33 into main Nov 19, 2026
27 checks passed
@andrewhuhh andrewhuhh mentioned this pull request Nov 19, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant