2025-08-15 16:06:14
Dear #lazyweb,
I think I've reached the limit of #matplotlib trying to graph the forks from a #git repository. What I want to to plot the slowly growing trunk and then show the relative sizes o…
Dear #lazyweb,
I think I've reached the limit of #matplotlib trying to graph the forks from a #git repository. What I want to to plot the slowly growing trunk and then show the relative sizes o…
#Matplotlib has a lot of "image comparison tests" that are horrible fragile. Technically, most of them permit some deviation from the reference images, but quite often I've been getting higher RMS than that. So for a long time, we've been maintaining patches that increased the tolerance in tests, and regularly either had to be rebased and updated for new tests.
At some point upstream started adding conditions permitting higher tolerance on non-x86_64 platforms. Of course, these changes forced me to rebase our patches. Curious enough, my previous overrides often happened to be close to the tolerance given for non-x86_64 platforms.
Today, it finally occurred to me that instead of updating the patch once again, I can try dropping it entirely and just sed-ing all `platform.machine() == 'x86_64'` with `False`. And guess what — down to 3 failures (related to TeΧ). And I don't have to spend 15 minutes manually doing what effectively accounted to the same thing.
#Gentoo #Python
#Matplotlib ma sporo testów opartych o "porównywaniu grafik", które często się sypią. Technicznie rzecz biorąc, większość z nich dopuszcza pewien odchył od obrazów referencyjnych, ale całkiem często dostałem większe wartości RMS. Tak więc przez długi czas musieliśmy utrzymywać spore łatki, które zwiększały tolerancję w tych testach, i regularnie wymagały aktualizacji.
W pewnym mome…