Skip to content

fix(action): ignore sub-pixel glyph drift - #17

Merged
dcramer merged 1 commit into
mainfrom
codex/ignore-glyph-drift
Oct 15, 2026
Merged

dcramer merged 1 commit into
mainfrom
codex/ignore-glyph-drift

Conversation

@dcramer

@dcramer dcramer commented Oct 15, 2026

Copy link
Copy Markdown
Owner

Screenshot comparison now recognizes sub-pixel glyph rasterization drift after Honeydiff reports a change. Same-size comparisons without height alignment are rechecked using padded diff regions, linear-light ink measurements, and whole-pixel movement detection; qualifying drift is reported as unchanged and its diff image is removed.

The guard remains conservative: transparency, flat-pixel edits, whole-pixel movement, color changes, and glyph shape changes remain changed. The 12 false positives in the report linked from the issue are suppressed, and the checked-in Action bundle includes the new behavior.

Fixes #16

@vercel

vercel Bot commented Oct 15, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
frameshift Ready Ready Preview Oct 15, 2026 5:08am UTC

Request Review

@github-actions

Copy link
Copy Markdown

8 screenshot changes — 0 changed · 8 added · 0 removed

Review screenshots in Frameshift

@dcramer
dcramer marked this pull request as ready for review October 15, 2026 05:12
@dcramer
dcramer merged commit 57ef8e4 into main Oct 15, 2026
8 checks passed
dcramer added a commit to getsentry/junior that referenced this pull request Oct 15, 2026
Move both Frameshift steps from v0.1.0 (`b730732`) to v0.2.0
(`57ef8e4`).

v0.2.0 ignores sub-pixel glyph drift (dcramer/frameshift#17). Chrome
sometimes draws text a fraction of a pixel to one side between runs.
v0.1.0 reported those screenshots as changed, even though they look the
same. PR #2140 had 12 such false flags.

Checks:
- The `ci/` and `publish/workflow` action files did not change between
the two versions, so the inputs and baseline artifacts stay the same.
- v0.2.0 on the #2140 baseline and candidate images reports 0 changed
instead of 12.

Baseline images do not change. Frameshift checks this PR's screenshots
with v0.2.0. Real changes still show up.

<!-- junior-request-attribution:start -->
via **David Cramer**.
<!-- junior-request-attribution:end -->

<!-- junior-session-footer:start -->
<!-- junior-conversation-id:slack%3AC0B595QDZLL%3A1792026612.765249 -->

--

[View Junior
Session](https://junior-prod.sentry.dev/conversations/slack%3AC0B595QDZLL%3A1792026612.765249)
[[Sentry]](https://sentry.sentry.io/explore/conversations/slack%3AC0B595QDZLL%3A1792026612.765249/?project=4510944073809921)

<!-- junior-session-footer:end -->

Co-authored-by: sentry-junior[bot] <264270552+sentry-junior[bot]@users.noreply.github.com>
Co-authored-by: David Cramer <[email protected]>

This branch was successfully deployed

1 active deployment
Preview — df1129cd Deployed Oct 15, 2026 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Ignore sub-pixel glyph position drift in screenshot comparison

1 participant