From 6e7fe50e537a7c4c2c1bda5044a59368f95e8ceb Mon Sep 17 00:00:00 2001 From: Stephen Waits Date: Thu, 22 Oct 2026 15:00:12 -0600 Subject: [PATCH] Test: the tall sidebar's pixels are compared only where they were blessed 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 Claude-Session: https://claude.ai/code/session_01T3gXMVt7XJPi6ens1or9Dj --- crates/ledger-gui/tests/sidenav.rs | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/crates/ledger-gui/tests/sidenav.rs b/crates/ledger-gui/tests/sidenav.rs index 6af686c..f51f6fd 100644 --- a/crates/ledger-gui/tests/sidenav.rs +++ b/crates/ledger-gui/tests/sidenav.rs @@ -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) => {