Skip to content

Downstream issues with 3.11.0rc1 #31589

@QuLogic

Description

@QuLogic

I've run a rebuild with everything downstream in Fedora. Of the 117 packages, there are 17 failures, 7 of which are pre-existing. I've been through the logs and determined the following:

Existing failures

moose

Failing in build before getting to any tests, so unknown consequences.

pygrib

Failing 3 tests with some tolerance with no change to RMS in new build

Details
_________________________________ test_lambert _________________________________
Error: Image files did not match.
  RMS Value: 37.44671188836211
  Expected:  
    /tmp/tmpqb2v6_vv/test_lambert.test_lambert/baseline.png
  Actual:    
    /tmp/tmpqb2v6_vv/test_lambert.test_lambert/result.png
  Difference:
    /tmp/tmpqb2v6_vv/test_lambert.test_lambert/result-failed-diff.png
  Tolerance: 
    20
_______________________________ test_rotated_ll ________________________________
Error: Image files did not match.
  RMS Value: 24.190282814363474
  Expected:  
    /tmp/tmpqb2v6_vv/test_rotated_ll.test_rotated_ll/baseline.png
  Actual:    
    /tmp/tmpqb2v6_vv/test_rotated_ll.test_rotated_ll/result.png
  Difference:
    /tmp/tmpqb2v6_vv/test_rotated_ll.test_rotated_ll/result-failed-diff.png
  Tolerance: 
    20
_________________________________ test_stere1 __________________________________
Error: Image files did not match.
  RMS Value: 28.193706953956152
  Expected:  
    /tmp/tmpqb2v6_vv/test_stere.test_stere1/baseline.png
  Actual:    
    /tmp/tmpqb2v6_vv/test_stere.test_stere1/result.png
  Difference:
    /tmp/tmpqb2v6_vv/test_stere.test_stere1/result-failed-diff.png
  Tolerance: 
    20

Submitted a bug report: https://bugzilla.redhat.com/show_bug.cgi?id=2463977

python-cartopy

Many failures with latest Proj, but Matplotlib issues known upstream already: SciTools/cartopy#2666

python-mplcairo

Failing due to GhostScript change and 3.14 mock change; should be fixed in python-matplotlib instead.

python-opytimizer

Orphaned, so not going to investigate further.

python-pandas

5 existing failures due to warning changes. Build with 3.11.0rc1 is failing 207 tests, and all of them seem to be deprecation of the locs attribute.

Unfortunately, the Fedora package is outdated as Pandas is at v3, so not sure that's been fixed upstream yet.

python-SALib

8 failures due to some NumPy changes. No new failures with 3.11.0rc1.

New Failures

myst-nb

6 test failures; unclear if these are acceptable as they are some kind of image
file hash.

Reported upstream: executablebooks/MyST-NB#715

python-animatplot

2 test failures that seem pretty minor.

Reported upstream: boutproject/animatplot-ng#31

python-ase

One test failure:

Details
=================================== FAILURES ===================================
___________________________ test_repeat_transpose_bz ___________________________

testdir = PosixPath('/tmp/pytest-of-mockbuild/pytest-0/test_repeat_transpose_bz0')
datadir = PosixPath('/builddir/build/BUILD/python-ase-3.25.0-build/ase-3.25.0/build/lib/ase/test/testdata')

    def test_repeat_transpose_bz(testdir, datadir) -> None:
        """Testing plot_bz."""
    
        hex2d = HEX2D(a=1.0)
        r = Rotation.from_rotvec([0, 0, np.deg2rad(10)])
        fig, ax = plt.subplots()
        hex2d.plot_bz(repeat=(2, 1), transforms=[r], ax=ax)
        test_image = 'test_bz.png'
        ref_image = str(datadir / 'rotated_bz.png')
        fig.savefig(test_image)
>       assert compare_images(test_image, ref_image, 0.5) is None
E       AssertionError: assert 'Error: Image files did not match.\n  RMS Value: 3.2818136090028194\n  Expected:  \n    test_bz.png\n  Actual:    \n  ...UILD/python-ase-3.25.0-build/ase-3.25.0/build/lib/ase/test/testdata/rotated_bz-failed-diff.png\n  Tolerance: \n    0.5' is None
E        +  where 'Error: Image files did not match.\n  RMS Value: 3.2818136090028194\n  Expected:  \n    test_bz.png\n  Actual:    \n  ...UILD/python-ase-3.25.0-build/ase-3.25.0/build/lib/ase/test/testdata/rotated_bz-failed-diff.png\n  Tolerance: \n    0.5' = compare_images('test_bz.png', '/builddir/build/BUILD/python-ase-3.25.0-build/ase-3.25.0/build/lib/ase/test/testdata/rotated_bz.png', 0.5)

This package is about a year out of date though, so unsure if it's still relevant.

python-distributed

Random timeout; seems unrelated.

python-fsleyes-widgets

One new failure:

Details
_______________________________ test_textbitmap ________________________________

    def test_textbitmap():
    
        texts     = ['R', 'Label']
        fontsizes = [6, 10, 16]
        bgColours = [(0, 0, 0, 0), (0, 0, 0, 1), (1, 0, 0, 1)]
        fgColours = [(0, 0, 0, 1), (1, 0, 0, 1), (1, 1, 1, 1)]
        alphas    = [0.5, 1.0]
        haligns   = ['left', 'right', 'centre']
    
        testcases = it.product(texts, fontsizes, bgColours, fgColours, alphas, haligns)
    
        for text, size, bg, fg, alpha, halign in testcases:
    
            if bg == fg:
                continue
    
            bmp = textbmp.textBitmap(text, 75, 50, size, fg, bg, alpha, halign=halign)
    
            fname = [text, size] + list(bg) + list(fg) + [alpha] + [halign]
            fname = '{}.png'.format('_'.join(map(str, fname)))
            fname = op.join(datadir, fname)
    
            benchmark = mplimg.imread(fname) * 255
>           assert compare_images(bmp, benchmark, 0.1)[0]
E           assert np.False_

fsleyes_widgets/tests/test_textbitmap.py:43: AssertionError

python-iplotx

Details

3 test failures from using internals:

E       AttributeError: module 'matplotlib.cm' has no attribute '_ensure_cmap'

2 test failures from 3D changes:

E           AttributeError: 'Vertex3DCollection' object has no attribute '_depthshade_minalpha'

and 1 image comparison failure:

______________________________ test_simple_graph _______________________________

args = (), kwds = {}

    @wraps(func)
    def inner(*args, **kwds):
        with self._recreate_cm():
>           return func(*args, **kwds)
                   ^^^^^^^^^^^^^^^^^^^
E           matplotlib.testing.exceptions.ImageComparisonFailure: images not close (RMS 7.608):
E           	result_images/test_networkx/simple_graph.png
E           	result_images/test_networkx/simple_graph-expected.png
E           	result_images/test_networkx/simple_graph-failed-diff.png

Opened an issue upstream: fabilab/iplotx#26

python-mapclassify

One image failure:

Details
_________________ TestValueByAlphaChoropleth.test_legend[png] __________________

args = (<mapclassify.tests.test_value_by_alpha.TestValueByAlphaChoropleth object at 0x7fd11db13650>,)
kwds = {'extension': 'png', 'request': <FixtureRequest for <Function test_legend[png]>>}

    @wraps(func)
    def inner(*args, **kwds):
        with self._recreate_cm():
>           return func(*args, **kwds)
                   ^^^^^^^^^^^^^^^^^^^
E           matplotlib.testing.exceptions.ImageComparisonFailure: images not close (RMS 3.668):
E           	result_images/test_value_by_alpha/legend.png
E           	result_images/test_value_by_alpha/legend-expected.png
E           	result_images/test_value_by_alpha/legend-failed-diff.png

/usr/lib64/python3.14/contextlib.py:85: ImageComparisonFailure

Mentioned this in an upstream issue: pysal/mapclassify#307 (comment)

python-matplotlib-scalebar

One test failure:

Details
__________________________________ test_info ___________________________________

    def test_info():
        fig = plt.figure()
        ax = fig.add_subplot(111)
    
        data = np.array([[1, 2, 3], [4, 5, 6], [7, 8, 9]])
        ax.imshow(data)
    
        scalebar = ScaleBar(0.5)
        ax.add_artist(scalebar)
    
        with pytest.raises(ValueError):
            scalebar.info
    
        plt.draw()
    
        info = scalebar.info
        assert info.length_px == pytest.approx(0.4, 1e-4)
        assert info.value == pytest.approx(2, 1e-4)
        assert info.units == "dm"
        assert info.scale_text == "2 dm"
        assert info.window_extent.x0 == pytest.approx(456.5755555555555, 1e-4)
>       assert info.window_extent.y0 == pytest.approx(390.81511111111104, 1e-4)
E       assert np.float64(390.47852256944435) == 390.81511111111104 ± 0.0390815
E         
E         comparison failed
E         Obtained: 390.47852256944435
E         Expected: 390.81511111111104 ± 0.0390815

tests/test_scalebar.py:395: AssertionError

Reported upstream: ppinard/matplotlib-scalebar#75

python-pytest-mpl

Some test failures, but this is an outdated version.

Reported upstream using their own CI results: matplotlib/pytest-mpl#263

python-seaborn

287 failures! But they all look similar. At least the use of *Scale appears to be buggy; fixing these reduces problems down to 5.

Metadata

Metadata

Assignees

No one assigned

    Type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions