September 26, 2026
A check that could not see purple
Eight.ly OS's screen-picture suite passed 169 of 169 with the dark theme repainted purple. The causes were a colour tolerance, an area budget, a chart race and a missing glyph, and fixing them took most of the day.
Eight.ly OS has a screen-picture suite. It opens 13 pages of the dashboard in each of 13 themes, takes 169 full-page screenshots, and compares each one against a stored baseline. It exists so that a change to a stylesheet or a component cannot quietly repaint a screen nobody looked at. On the night of the 25th I was getting it ready to run in CI for the first time, on baselines drawn by a Linux runner (EOS-2048, PR #1721). At one in the morning on the 26th I tested whether it could actually catch anything, and found that it could not.

The probe
The test was blunt on purpose. On a throwaway branch I changed the eightly-dark theme's background from near-black #09090b to a dark purple, #3b0764, and pushed it. Every screen in that theme now had a different background colour. Run 36219085452 drew eightly-ci-6 and reported 169 collected -- 169 passed, 0 failed. A second probe kept the purple and also renamed the dashboard heading from "System Dashboard" to "PROBE Dashboard". That one drew gitrunner3 and failed 5 screens. The heading had changed on 13 dashboards, and 8 of them still passed.
My first suspicion was a stale build, where the runner compares old screenshots against old baselines, but the build was fresh. I pulled a render from a baselines run on the purple branch and read the pixels: the page background on the runner was (59, 7, 100), which is #3b0764. The runner painted purple. The comparison looked at a purple page and a black baseline and called them the same.
Four separate causes
The first cause was the per-pixel colour tolerance. Playwright compares pixels with a threshold that defaults to 0.2, and I had never set it. Under that setting the distance between #09090b and #3b0764 works out to 593 against a limit of 1,409, so every pixel of a repainted dark background counted as unchanged. On a dark theme, a lot of quite different dark colours sit inside that window.
The second was the area budget. The suite allowed 0.1% of a screen's pixels to differ before failing. A changed heading in a sidebar layout is a small patch of text on a large page, and on 8 of the 13 dashboards it fit inside the allowance.
I couldn't just tighten those two numbers, because the screens were not repeatable. Two runner renders of the same code differed on 34 of 156 screens. My first explanation of that turned out to be half right, and I corrected it on the ticket at 02:20. The two renders had come from different machines, gitrunner2 and eightly-ci-6, and there were two causes mixed together.
The third cause was a race in the dashboard itself. The CPU and memory charts load history from /system/history and also take live samples. If the history landed after the first live sample, it replaced the chart. If it landed before, the sample was appended. Either way the axis window moved by one sample, so one run's axis read 21:04:38 and another's 21:04:33. On top of that, page.clock.install() set a start time but let the clock keep running, so the timestamps depended on how long the page took to load. That was about 2,000 pixels a screen, right at the edge of the budget.
The fourth was fonts. The Nova footer, the Infrastructure header and the command-palette badge all show the ⌘ character, U+2318. The gitrunners on testprox have Playwright's font set, which covers it. eightly-ci-4, 5 and 6 on the T320 at .107 only had fonts-liberation, which does not, so they drew a missing-glyph box. Whether those screens passed depended on which machine ran the job. That is the same failure as EOS-2376 the day before, a test whose answer came from which runner happened to pick it up.
The fix
PR #1726 (merged as 20eca6755) changed all of it together. The per-pixel threshold went from 0.2 to 0.05. The area budget went from a percentage to a fixed 400 pixels. Screenshots now wait for fonts to load, for loading placeholders to clear and for the page height to stop changing, instead of a fixed pause, which matters on a busy runner. The dashboard merges chart history in front of live readings regardless of which request answers first, so that part is a small product fix and not only a test change. Charts honour reduced motion, the suite asks for reduced motion, and chart canvases are masked. A runner without the baseline fonts now reports CANNOT_RUN instead of comparing and producing a meaningless verdict. EOS-2398 put the font set on the three .107 runners, and EOS-2401 taught the install step Ubuntu 22.04's package names for gitrunner7.
Then I proved it from both directions. A throwaway pull request, #1727, repainted eightly-dark purple and renamed the heading again. On eightly-ci-5 it failed exactly 25 of 169: the 13 eightly-dark screens and the other 12 themes' dashboards, and nothing else. The eightly-dark dashboard alone showed 752,583 different pixels, about 35% of the image. The same unchanged code on gitrunner2, compared against baselines drawn on gitrunner5, passed 169 of 169. I also ran the whole suite on my Mac with four processes burning CPU to imitate a loaded runner, and it passed 169 of 169. #1727 was closed unmerged, and EOS-2396 went to Done at 13:18.
The cost
This took longer than it should have, and some of that is on how I ran it. Chasing the cause meant a lot of 15-minute CI runs and local picture runs, and the session working it waited on each one inside the same turn. It went past three hours with nothing on the board moving, and I had to interrupt it to find out whether anything was still happening. The rule that came out of it is that a run gets started, I get told in a couple of lines what it is and when it lands, and the result is read the next time round, so a long test run no longer means hours of silence.
The day around it was not a smooth one either. The backlog had grown from about 55 tickets to 125, partly because findings were being filed and left behind instead of filed and worked, and the sprint had 18 tickets in progress at once. I spent a fair amount of the day pulling that back to something one day can hold.
Still, I'm glad this one came out the way it did. Had I merged those baselines that night, the screen-picture suite would have gone green on every pull request and stayed green through a theme repainted the wrong colour. A check that has never been shown failing on a real change tells you very little. Since PR #1726 I have a run on record where a purple screen failed it.