test: cap matplotlib<3.11 to stabilize colorbar image baselines#713
Merged
Conversation
matplotlib 3.11.0 (released 2026-06-12) changes colorbar/image rasterization enough to push tests/pl/test_colorbar.py image comparisons past the RMS tolerance (RMS ~22-31 vs 15), failing CI repo-wide on the py3.11-stable env. Cap matplotlib in the 'test' dependency-group only; the runtime dependency stays open so users/downstream still get 3.11. Temporary until the colorbar baselines are regenerated against 3.11.
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #713 +/- ##
==========================================
+ Coverage 76.26% 76.28% +0.02%
==========================================
Files 14 14
Lines 4327 4327
Branches 1006 1006
==========================================
+ Hits 3300 3301 +1
Misses 667 667
+ Partials 360 359 -1 🚀 New features to boost your workflow:
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Problem
matplotlib==3.11.0was released on 2026-06-12 (02:27 UTC) and changes colorbar/image rasterization enough to pushtests/pl/test_colorbar.py::TestColorbarControlsimage comparisons past the RMS tolerance (RMS ~22–31 vs tol 15). This fails CI repo-wide on thehatch-test.py3.11-stableenv —mainand every open PR will go red on their next run onceuvresolves 3.11.0. (py3.14-stableis unaffected for now: 3.11.0 ships no cp314 wheel yet, so that env stays on 3.10.x.)Confirmed via PyPI upload timestamp: the last passing run resolved 3.10.x (run before 3.11.0 existed), the first failing run resolved 3.11.0. No source change is involved.
Fix
Cap
matplotlib<3.11in thetestdependency-group only. CI'shatch-testenv installs that group, so the cap applies to testing; the package's runtimematplotlibdependency stays open, so users and downstream libraries still resolve 3.11.Follow-up
Temporary. The proper fix is to regenerate the
test_colorbarbaselines against matplotlib 3.11 and lift the cap; the inline comment flags that.