Record approved exceptions in visual regression tests
3 November 2026
To record approved exceptions in visual regression testing when a known harmless difference recurs in a release candidate, build an explicit exception map. Record the exact crop, permitted pattern, reviewer, build scope and expiry. Keep the normal release checks active outside that crop and on critical content inside it. A rectangle alone cannot tell a harmless difference from a newly changed figure. Render difference results
Context and criteria for visual exception mapping
In automated document rendering pipelines, visual regression testing compares pixel outputs between a reference baseline and a release candidate build. When rendering engines update or font rasterisation shifts slightly, automated image comparisons often highlight recurring pixel variations. If these differences do not alter document meaning or layout readability, flagging them across every subsequent candidate build creates unnecessary release friction. Poppler cross build
To prevent valid candidate builds from being repeatedly blocked, engineering teams record formal exception maps. An exception map isolates acceptable pixel noise to a localized geometric crop while maintaining strict pipeline checks across the remainder of the page. Setting up an effective exception record requires five core elements:
- Exact crop coordinates: Bounding box parameters specifying where pixel differences are permitted.
- Designated reviewer: The named owner responsible for inspecting and verifying the visual change.
- Environment scope: The precise software stack, renderer version, and DPI resolution to which the exception applies.
- Expiry boundary: A predefined time limit or build cycle count after which the exception must be re-evaluated.
- Boundary isolation rule: An explicit rule sending differences outside the crop through the normal review or failure policy. Render difference results · Poppler cross build
Worked decision record and evidence analysis
Suppose a reviewer has already established that a small recurring change to a decorative border is harmless in one document. For illustration only, on a 1,191 × 1,684 pixel reference render at 144 dpi, use a half-open crop with x from 40 to 72 and y from 40 to 64. These coordinates describe a hypothetical border example. They are not the measured critical-region coordinates or a general-purpose mask. Render difference results
| Exception entry | What the release owner records |
|---|---|
| Baseline and page | Exact PDF and reference-image versions, page identifier, dimensions, DPI, orientation and approved crop overlay |
| Allowed pattern | The known border change within this crop only, with the previously reviewed difference image |
| Reviewer and reason | Name of the person with authority to accept the visual change, what they inspected, decision and date. Leave pending until signed off. |
| Scope and expiry | One fixture and specified renderer builds/settings; for this hypothetical record, reapprove before the next release or any font, renderer, input or layout change. |
| Outside, changed or ambiguous pattern | Any difference outside the crop, a new pattern inside it or overlap with a critical field goes to normal review. A known border exception cannot approve all future pixels in the box. |
Before activating a rule, run the unchanged input, the known harmless difference and a separate meaningful mutation. If masking turns the meaningful mutation green, reject the rule or narrow it. Keep both the unmasked comparison and the evaluation after applying the proposed rule so a reviewer can see what it suppresses. Render difference results
Why the measured digit change must stay visible
The source’s deliberate fault changes 137.50 to 187.50. In the PyMuPDF control there were 333 pixels with an exact difference and 289 above the threshold of 16. All 289 fell within a critical region, half-open x 96–1094 and y 375–491. That accounted for about 0.0144 per cent of the page: too little to trigger the example page-wide 0.1 per cent rule, but enough to trigger the critical-region rule. The source leaves human threshold approval pending. Render difference results · Poppler cross build
That critical region is a detection mechanism for a meaningful change, not a masking exception or evidence of harmless antialiasing. The recorded builds did not approve a 30-day exception or appoint a named reviewer. For an actual recurring difference, attach the approved crop, the independent fault-control result and the expiry owner. When the record expires, restore normal checking and obtain a fresh decision against the current baseline. Render difference results · Poppler cross build
Part of the Test PDF rendering changes across two Poppler builds guide.
Published by Arke Technologies (Pty) Ltd, Johannesburg. Drafted with NotebookLM. Source checks and editing by Kairos (Codex).
