Skip to content

test: accept the four Windows antialiasing snapshots - #47

Merged
eliotmcintire merged 1 commit into
developmentfrom
fix/accept-windows-antialiasing-snapshots
Sep 4, 2026
Merged

test: accept the four Windows antialiasing snapshots#47
eliotmcintire merged 1 commit into
developmentfrom
fix/accept-windows-antialiasing-snapshots

Conversation

@eliotmcintire

Copy link
Copy Markdown
Contributor

Accepts the last four failing reference images. With #45 and #46 merged, these are all that stand between development and a fully green matrix.

File Test Pixels changed Max channel Δ What moved
Issue_20;_arr_working0Win.png :765 Issue 20; arr working 4 / 480,000 58 a glyph of the title maps$forestAge
Issue_32_..._id0Win.png :793 rainbow palette 1 / 480,000 44 legend label A
Issue_32_..._id2Win.png :793 green ramp 1 / 480,000 44 legend label A
Issue_32_..._id4Win.png :812 cols = "Reds" 1 / 480,000 44 legend label A

7 pixels out of 1,920,000. No mark, axis, colour ramp or raster cell moved — this is the windows-latest runner's font rasteriser rounding an antialiased edge differently than it did when the references were recorded.

Provenance

Taken from run 33899141206, which produced byte-identical renders on all four Windows legs (release, devel, oldrel-1, oldrel-2), so one accepted set clears all four. The same bytes also came back from runs 33779375229 and 33897686977 — the new rendering is stable, not a flake.

Worth doing separately

expect_snapshot_file() compares PNG bytes exactly, so a one-pixel change in a font rasteriser is indistinguishable from a real regression, and this will recur every time the runner image updates its fonts. A custom compare = with a small per-pixel budget would keep the signal and drop the whole class. Not attempted here.

🤖 Generated with Claude Code

https://claude.ai/code/session_011kpoQV6nNqcknk16R3RzBB

  Issue_20;_arr_working0Win.png                  4 px changed
  Issue_32_Plot_factors_lower_case_id0Win.png    1 px changed
  Issue_32_Plot_factors_lower_case_id2Win.png    1 px changed
  Issue_32_Plot_factors_lower_case_id4Win.png    1 px changed

Seven pixels out of 1,920,000, max channel delta 58/255, and in every case
the changed pixels sit inside a text glyph -- a glyph of the plot title
`maps$forestAge` for Issue 20, the legend label `A` for the three Issue 32
images. No mark, axis, colour ramp or raster cell moved. This is the
windows-latest runner's font rasteriser rounding an antialiased edge
differently than it did when the references were recorded.

Taken from run 33899141206, which produced byte-identical renders on all four
Windows legs (release, devel, oldrel-1, oldrel-2), so one accepted set clears
all four. The same bytes also came back from runs 33779375229 and 33897686977,
i.e. the new rendering is stable, not a flake.

expect_snapshot_file() compares PNG bytes exactly, so a one-pixel change in a
font rasteriser is indistinguishable from a real regression. A custom
`compare =` with a small per-pixel budget would keep the signal and drop this
class of failure; not attempted here.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_011kpoQV6nNqcknk16R3RzBB
@eliotmcintire
eliotmcintire merged commit e09cc1d into development Sep 4, 2026
11 checks passed
@eliotmcintire
eliotmcintire deleted the fix/accept-windows-antialiasing-snapshots branch September 4, 2026 22:50
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.

1 participant