Skip to content

test: cap matplotlib<3.11 to stabilize colorbar image baselines#713

Merged
timtreis merged 1 commit into
mainfrom
fix/pin-matplotlib-test-baselines
Jun 12, 2026
Merged

test: cap matplotlib<3.11 to stabilize colorbar image baselines#713
timtreis merged 1 commit into
mainfrom
fix/pin-matplotlib-test-baselines

Conversation

@timtreis

Copy link
Copy Markdown
Member

Problem

matplotlib==3.11.0 was released on 2026-06-12 (02:27 UTC) and changes colorbar/image rasterization enough to push tests/pl/test_colorbar.py::TestColorbarControls image comparisons past the RMS tolerance (RMS ~22–31 vs tol 15). This fails CI repo-wide on the hatch-test.py3.11-stable env — main and every open PR will go red on their next run once uv resolves 3.11.0. (py3.14-stable is 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.11 in the test dependency-group only. CI's hatch-test env installs that group, so the cap applies to testing; the package's runtime matplotlib dependency stays open, so users and downstream libraries still resolve 3.11.

Follow-up

Temporary. The proper fix is to regenerate the test_colorbar baselines against matplotlib 3.11 and lift the cap; the inline comment flags that.

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-commenter

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 76.28%. Comparing base (94a0a50) to head (5f18f2b).

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     

see 1 file with indirect coverage changes

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@timtreis timtreis merged commit b370b1f into main Jun 12, 2026
7 of 8 checks passed
@timtreis timtreis deleted the fix/pin-matplotlib-test-baselines branch June 12, 2026 17:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants