Test: the tall sidebar's pixels are compared only where they were blessed
check / check (push) Canceled after 0s

CI's software renderer antialiases the same shapes differently (4635
pixels at 1440x920), so a_tall_sidebar_is_unchanged failed there. The
shape hash stays the check everywhere; the pixels are a local check with
SIDENAV_PIXELS=1.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01T3gXMVt7XJPi6ens1or9Dj
This commit is contained in:
swaitsandClaude Opus 5.5 committed 2026-10-22 15:00:13 -06:00
1 parent 641184d3a3
commit 6e7fe50e53
1 file changed
+7 -1
+7 -1
View File
@@ -653,7 +653,13 @@ fn a_tall_sidebar_is_unchanged() {
"the sidebar's shapes at 1440x920 changed"
);
}
// Pixels too, where this machine can render (CI has no GPU).
// Pixels too, only on the machine that blessed them (SIDENAV_PIXELS=1):
// another renderer rasterizes the same shapes differently (CI's
// software renderer differs in antialiasing), so the shapes above are
// the check everywhere and the pixels a local one.
if !bless && std::env::var("SIDENAV_PIXELS").is_err() {
return;
}
let png = dir.join("sidenav-1440x920.png");
match h.render() {
Ok(img) => {