Closed sabinala closed 7 months ago
This issue is caused by an overly aggressive test threshold that doesn't take into account different hardware choices in rendering images. Setting test_threshold = 0.2
should still catch anything egregious without failing on expected hardware variation. Thanks to @JosephCottam for explaining the issue.
For more context, we tried to make a test that different machines were making the roughly the same PNG. But different OS/hardware pairings handle things like alpha composition and anti-aliasing differently so this ended up being vexingly hard. We thought we had it worked out but apparently not.
Upping the threshold will still catch RADICALLY different plots, so it will still ensure that the same general type of plot is produced. I think moving it to .2 is the right move for "make progress, catch bad things". We refine the definition of "make consistent plots" when we get further along.
Getting the following error message from a test failing in
tests/visuals/test_schemas.py
when runningpytest.