Skip to content

Get to the bottom of intermittent failures on Travis #6586

Closed

Description

@jenshnielsen

At this stage these are mainly my own notes on errors we have been seeing on Travis to see if I can find a pattern that can give a clue what the issue is:

From #6585 python2.7

======================================================================
FAIL: matplotlib.tests.test_backend_pdf.test_hatching_legend.test
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/travis/build/matplotlib/matplotlib/venv/lib/python2.7/site-packages/nose/case.py", line 197, in runTest
    self.test(*self.arg)
  File "/home/travis/build/matplotlib/matplotlib/venv/lib/python2.7/site-packages/matplotlib-2.0.0b1+40.g2855857-py2.7-linux-x86_64.egg/matplotlib/testing/decorators.py", line 55, in failer
    result = f(*args, **kwargs)
  File "/home/travis/build/matplotlib/matplotlib/venv/lib/python2.7/site-packages/matplotlib-2.0.0b1+40.g2855857-py2.7-linux-x86_64.egg/matplotlib/testing/decorators.py", line 251, in do_test
    self._tol, in_decorator=True)
  File "/home/travis/build/matplotlib/matplotlib/venv/lib/python2.7/site-packages/matplotlib-2.0.0b1+40.g2855857-py2.7-linux-x86_64.egg/matplotlib/testing/compare.py", line 337, in compare_images
    rms = calculate_rms(expectedImage, actualImage)
  File "/home/travis/build/matplotlib/matplotlib/venv/lib/python2.7/site-packages/matplotlib-2.0.0b1+40.g2855857-py2.7-linux-x86_64.egg/matplotlib/testing/compare.py", line 248, in calculate_rms
    "actual size {1}".format(expectedImage.shape, actualImage.shape))
ImageComparisonFailure: image sizes do not match expected size: (144, 72, 3) actual size (346, 461, 3)
======================================================================
FAIL: matplotlib.tests.test_mathtext.test_mathfont_dejavuserif_12.test
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/travis/build/matplotlib/matplotlib/venv/lib/python2.7/site-packages/nose/case.py", line 197, in runTest
    self.test(*self.arg)
  File "/home/travis/build/matplotlib/matplotlib/venv/lib/python2.7/site-packages/matplotlib-2.0.0b1+40.g2855857-py2.7-linux-x86_64.egg/matplotlib/testing/decorators.py", line 55, in failer
    result = f(*args, **kwargs)
  File "/home/travis/build/matplotlib/matplotlib/venv/lib/python2.7/site-packages/matplotlib-2.0.0b1+40.g2855857-py2.7-linux-x86_64.egg/matplotlib/testing/decorators.py", line 261, in do_test
    '(RMS %(rms).3f)'%err)
ImageComparisonFailure: images not close: /home/travis/build/matplotlib/matplotlib/result_images/test_mathtext/mathfont_dejavuserif_12.png vs. /home/travis/build/matplotlib/matplotlib/result_images/test_mathtext/mathfont_dejavuserif_12-expected.png (RMS 48.746)
----------------------------------------------------------------------

Activity

  1. jenshnielsen commented on Jun 15, 2016

    @jenshnielsen
    MemberAuthor

    2.x on python 2.7

    ======================================================================
    FAIL: matplotlib.tests.test_backend_pdf.test_grayscale_alpha.test
    ----------------------------------------------------------------------
    Traceback (most recent call last):
      File "/home/travis/build/matplotlib/matplotlib/venv/lib/python2.7/site-packages/nose/case.py", line 197, in runTest
        self.test(*self.arg)
      File "/home/travis/build/matplotlib/matplotlib/venv/lib/python2.7/site-packages/matplotlib-2.0.0b1+40.gb55563e-py2.7-linux-x86_64.egg/matplotlib/testing/decorators.py", line 55, in failer
        result = f(*args, **kwargs)
      File "/home/travis/build/matplotlib/matplotlib/venv/lib/python2.7/site-packages/matplotlib-2.0.0b1+40.gb55563e-py2.7-linux-x86_64.egg/matplotlib/testing/decorators.py", line 251, in do_test
        self._tol, in_decorator=True)
      File "/home/travis/build/matplotlib/matplotlib/venv/lib/python2.7/site-packages/matplotlib-2.0.0b1+40.gb55563e-py2.7-linux-x86_64.egg/matplotlib/testing/compare.py", line 337, in compare_images
        rms = calculate_rms(expectedImage, actualImage)
      File "/home/travis/build/matplotlib/matplotlib/venv/lib/python2.7/site-packages/matplotlib-2.0.0b1+40.gb55563e-py2.7-linux-x86_64.egg/matplotlib/testing/compare.py", line 248, in calculate_rms
        "actual size {1}".format(expectedImage.shape, actualImage.shape))
    ImageComparisonFailure: image sizes do not match expected size: (432, 576, 3) actual size (346, 461, 3)
    
  2. self-assigned this
    on Jun 15, 2016
  3. added this to the milestone on Jun 15, 2016
  4. tacaswell commented on Jun 19, 2016

    @tacaswell
    Member

    From #6611 on py3.5

    ======================================================================
    FAIL: matplotlib.tests.test_backend_pdf.test_hatching_legend.test
    ----------------------------------------------------------------------
    Traceback (most recent call last):
      File "/home/travis/build/matplotlib/matplotlib/venv/lib/python3.5/site-packages/nose/case.py", line 198, in runTest
        self.test(*self.arg)
      File "/home/travis/build/matplotlib/matplotlib/venv/lib/python3.5/site-packages/matplotlib-2.0.0b1+61.g725902e-py3.5-linux-x86_64.egg/matplotlib/testing/decorators.py", line 55, in failer
        result = f(*args, **kwargs)
      File "/home/travis/build/matplotlib/matplotlib/venv/lib/python3.5/site-packages/matplotlib-2.0.0b1+61.g725902e-py3.5-linux-x86_64.egg/matplotlib/testing/decorators.py", line 251, in do_test
        self._tol, in_decorator=True)
      File "/home/travis/build/matplotlib/matplotlib/venv/lib/python3.5/site-packages/matplotlib-2.0.0b1+61.g725902e-py3.5-linux-x86_64.egg/matplotlib/testing/compare.py", line 337, in compare_images
        rms = calculate_rms(expectedImage, actualImage)
      File "/home/travis/build/matplotlib/matplotlib/venv/lib/python3.5/site-packages/matplotlib-2.0.0b1+61.g725902e-py3.5-linux-x86_64.egg/matplotlib/testing/compare.py", line 248, in calculate_rms
        "actual size {1}".format(expectedImage.shape, actualImage.shape))
    matplotlib.testing.exceptions.ImageComparisonFailure: image sizes do not match expected size: (144, 72, 3) actual size (346, 461, 3)
    ----------------------------------------------------------------------
    
  5. tacaswell commented on Jun 20, 2016

    @tacaswell
    Member

    LPy on v2.x branch

    ======================================================================
    ERROR: matplotlib.tests.test_backend_ps.test_savefig_to_stringio_with_usetex_eps
    ----------------------------------------------------------------------
    Traceback (most recent call last):
      File "/home/travis/build/matplotlib/matplotlib/venv/lib/python2.7/site-packages/nose/case.py", line 197, in runTest
        self.test(*self.arg)
      File "/home/travis/build/matplotlib/matplotlib/venv/lib/python2.7/site-packages/matplotlib-2.0.0b1+61.g16f6655-py2.7-linux-x86_64.egg/matplotlib/testing/decorators.py", line 152, in wrapped_callable
        func(*args, **kwargs)
      File "/home/travis/build/matplotlib/matplotlib/venv/lib/python2.7/site-packages/matplotlib-2.0.0b1+61.g16f6655-py2.7-linux-x86_64.egg/matplotlib/testing/decorators.py", line 55, in failer
        result = f(*args, **kwargs)
      File "/home/travis/build/matplotlib/matplotlib/venv/lib/python2.7/site-packages/matplotlib-2.0.0b1+61.g16f6655-py2.7-linux-x86_64.egg/matplotlib/tests/test_backend_ps.py", line 96, in test_savefig_to_stringio_with_usetex_eps
        _test_savefig_to_stringio(format='eps')
      File "/home/travis/build/matplotlib/matplotlib/venv/lib/python2.7/site-packages/matplotlib-2.0.0b1+61.g16f6655-py2.7-linux-x86_64.egg/matplotlib/tests/test_backend_ps.py", line 40, in _test_savefig_to_stringio
        fig.savefig(buffer, format=format)
      File "/home/travis/build/matplotlib/matplotlib/venv/lib/python2.7/site-packages/matplotlib-2.0.0b1+61.g16f6655-py2.7-linux-x86_64.egg/matplotlib/figure.py", line 1533, in savefig
        self.canvas.print_figure(*args, **kwargs)
      File "/home/travis/build/matplotlib/matplotlib/venv/lib/python2.7/site-packages/matplotlib-2.0.0b1+61.g16f6655-py2.7-linux-x86_64.egg/matplotlib/backend_bases.py", line 2245, in print_figure
        **kwargs)
      File "/home/travis/build/matplotlib/matplotlib/venv/lib/python2.7/site-packages/matplotlib-2.0.0b1+61.g16f6655-py2.7-linux-x86_64.egg/matplotlib/backends/backend_ps.py", line 957, in print_eps
        return self._print_ps(outfile, 'eps', *args, **kwargs)
      File "/home/travis/build/matplotlib/matplotlib/venv/lib/python2.7/site-packages/matplotlib-2.0.0b1+61.g16f6655-py2.7-linux-x86_64.egg/matplotlib/backends/backend_ps.py", line 981, in _print_ps
        **kwargs)
      File "/home/travis/build/matplotlib/matplotlib/venv/lib/python2.7/site-packages/matplotlib-2.0.0b1+61.g16f6655-py2.7-linux-x86_64.egg/matplotlib/backends/backend_ps.py", line 1257, in _print_figure_tex
        self.figure.draw(renderer)
      File "/home/travis/build/matplotlib/matplotlib/venv/lib/python2.7/site-packages/matplotlib-2.0.0b1+61.g16f6655-py2.7-linux-x86_64.egg/matplotlib/artist.py", line 63, in draw_wrapper
        draw(artist, renderer, *args, **kwargs)
      File "/home/travis/build/matplotlib/matplotlib/venv/lib/python2.7/site-packages/matplotlib-2.0.0b1+61.g16f6655-py2.7-linux-x86_64.egg/matplotlib/figure.py", line 1129, in draw
        renderer, self, dsu, self.suppressComposite)
      File "/home/travis/build/matplotlib/matplotlib/venv/lib/python2.7/site-packages/matplotlib-2.0.0b1+61.g16f6655-py2.7-linux-x86_64.egg/matplotlib/image.py", line 139, in _draw_list_compositing_images
        a.draw(renderer)
      File "/home/travis/build/matplotlib/matplotlib/venv/lib/python2.7/site-packages/matplotlib-2.0.0b1+61.g16f6655-py2.7-linux-x86_64.egg/matplotlib/artist.py", line 63, in draw_wrapper
        draw(artist, renderer, *args, **kwargs)
      File "/home/travis/build/matplotlib/matplotlib/venv/lib/python2.7/site-packages/matplotlib-2.0.0b1+61.g16f6655-py2.7-linux-x86_64.egg/matplotlib/axes/_base.py", line 2373, in draw
        mimage._draw_list_compositing_images(renderer, self, dsu)
      File "/home/travis/build/matplotlib/matplotlib/venv/lib/python2.7/site-packages/matplotlib-2.0.0b1+61.g16f6655-py2.7-linux-x86_64.egg/matplotlib/image.py", line 139, in _draw_list_compositing_images
        a.draw(renderer)
      File "/home/travis/build/matplotlib/matplotlib/venv/lib/python2.7/site-packages/matplotlib-2.0.0b1+61.g16f6655-py2.7-linux-x86_64.egg/matplotlib/artist.py", line 63, in draw_wrapper
        draw(artist, renderer, *args, **kwargs)
      File "/home/travis/build/matplotlib/matplotlib/venv/lib/python2.7/site-packages/matplotlib-2.0.0b1+61.g16f6655-py2.7-linux-x86_64.egg/matplotlib/axis.py", line 1132, in draw
        renderer)
      File "/home/travis/build/matplotlib/matplotlib/venv/lib/python2.7/site-packages/matplotlib-2.0.0b1+61.g16f6655-py2.7-linux-x86_64.egg/matplotlib/axis.py", line 1072, in _get_tick_bboxes
        extent = tick.label1.get_window_extent(renderer)
      File "/home/travis/build/matplotlib/matplotlib/venv/lib/python2.7/site-packages/matplotlib-2.0.0b1+61.g16f6655-py2.7-linux-x86_64.egg/matplotlib/text.py", line 966, in get_window_extent
        bbox, info, descent = self._get_layout(self._renderer)
      File "/home/travis/build/matplotlib/matplotlib/venv/lib/python2.7/site-packages/matplotlib-2.0.0b1+61.g16f6655-py2.7-linux-x86_64.egg/matplotlib/text.py", line 362, in _get_layout
        ismath=ismath)
      File "/home/travis/build/matplotlib/matplotlib/venv/lib/python2.7/site-packages/matplotlib-2.0.0b1+61.g16f6655-py2.7-linux-x86_64.egg/matplotlib/backends/backend_ps.py", line 348, in get_text_width_height_descent
        renderer=self)
      File "/home/travis/build/matplotlib/matplotlib/venv/lib/python2.7/site-packages/matplotlib-2.0.0b1+61.g16f6655-py2.7-linux-x86_64.egg/matplotlib/texmanager.py", line 679, in get_text_width_height_descent
        page = next(iter(dvi))
      File "/home/travis/build/matplotlib/matplotlib/venv/lib/python2.7/site-packages/matplotlib-2.0.0b1+61.g16f6655-py2.7-linux-x86_64.egg/matplotlib/dviread.py", line 89, in __iter__
        have_page = self._read()
      File "/home/travis/build/matplotlib/matplotlib/venv/lib/python2.7/site-packages/matplotlib-2.0.0b1+61.g16f6655-py2.7-linux-x86_64.egg/matplotlib/dviread.py", line 149, in _read
        byte = ord(self.file.read(1)[0])
    IndexError: string index out of range
    ----------------------------------------------------------------------
    
  6. tacaswell commented on Jun 21, 2016

    @tacaswell
    Member

    OSX

    ======================================================================
    FAIL: matplotlib.tests.test_mathtext.test_mathfont_dejavusans_14.test
    ----------------------------------------------------------------------
    Traceback (most recent call last):
      File "/usr/local/lib/python2.7/site-packages/nose/case.py", line 197, in runTest
        self.test(*self.arg)
      File "/Users/travis/build/matplotlib/matplotlib/lib/matplotlib/testing/decorators.py", line 55, in failer
        result = f(*args, **kwargs)
      File "/Users/travis/build/matplotlib/matplotlib/lib/matplotlib/testing/decorators.py", line 267, in do_test
        '(RMS %(rms).3f)'%err)
    ImageComparisonFailure: images not close: /Users/travis/build/matplotlib/matplotlib/result_images/test_mathtext/mathfont_dejavusans_14.png vs. /Users/travis/build/matplotlib/matplotlib/result_images/test_mathtext/mathfont_dejavusans_14-expected.png (RMS 50.612)
    ----------------------------------------------------------------------
    
  7. jenshnielsen commented on Jul 10, 2016

    @jenshnielsen
    MemberAuthor

    The backend pdf errors of the form image sizes do not match expected size: (144, 72, 3) actual size (346, 461, 3) are hopefully fixed by #6713

  8. jenshnielsen commented on Jul 11, 2016

    @jenshnielsen
    MemberAuthor

    Following the merge of #6713 locally:

    ======================================================================
    ERROR: test suite for <class 'matplotlib.tests.test_dates.transplant_class.<locals>.C'>
    ----------------------------------------------------------------------
    Traceback (most recent call last):
      File "/Users/jhn/Envs/mplbisect/lib/python3.5/site-packages/nose/plugins/multiprocess.py", line 788, in run
        self.setUp()
      File "/Users/jhn/Envs/mplbisect/lib/python3.5/site-packages/nose/suite.py", line 293, in setUp
        self.setupContext(ancestor)
      File "/Users/jhn/Envs/mplbisect/lib/python3.5/site-packages/nose/plugins/multiprocess.py", line 770, in setupContext
        super(NoSharedFixtureContextSuite, self).setupContext(context)
      File "/Users/jhn/Envs/mplbisect/lib/python3.5/site-packages/nose/suite.py", line 316, in setupContext
        try_run(context, names)
      File "/Users/jhn/Envs/mplbisect/lib/python3.5/site-packages/nose/util.py", line 490, in try_run
        return func()
      File "/Users/jhn/Envs/mplbisect/lib/python3.5/site-packages/matplotlib/testing/decorators.py", line 194, in setup_class
        cls._func()
      File "/Users/jhn/Envs/mplbisect/lib/python3.5/site-packages/matplotlib/tests/test_dates.py", line 125, in test_RRuleLocator
        ax.plot([t0, tf], [0.0, 1.0], marker='o')
      File "/Users/jhn/Envs/mplbisect/lib/python3.5/site-packages/matplotlib/__init__.py", line 1900, in inner
        return func(ax, *args, **kwargs)
      File "/Users/jhn/Envs/mplbisect/lib/python3.5/site-packages/matplotlib/axes/_axes.py", line 1386, in plot
        self.add_line(line)
      File "/Users/jhn/Envs/mplbisect/lib/python3.5/site-packages/matplotlib/axes/_base.py", line 1752, in add_line
        self._update_line_limits(line)
      File "/Users/jhn/Envs/mplbisect/lib/python3.5/site-packages/matplotlib/axes/_base.py", line 1774, in _update_line_limits
        path = line.get_path()
      File "/Users/jhn/Envs/mplbisect/lib/python3.5/site-packages/matplotlib/lines.py", line 945, in get_path
        self.recache()
      File "/Users/jhn/Envs/mplbisect/lib/python3.5/site-packages/matplotlib/lines.py", line 633, in recache
        x = np.asarray(xconv, float)
      File "/Users/jhn/Envs/mplbisect/lib/python3.5/site-packages/numpy/core/numeric.py", line 482, in asarray
        return array(a, dtype, copy=False, order=order)
    TypeError: float() argument must be a string or a number, not 'datetime.datetime'
    
    ======================================================================
    FAIL: matplotlib.tests.test_dates.test_date_axhline.test
    ----------------------------------------------------------------------
    Traceback (most recent call last):
      File "/Users/jhn/Envs/mplbisect/lib/python3.5/site-packages/nose/case.py", line 198, in runTest
        self.test(*self.arg)
      File "/Users/jhn/Envs/mplbisect/lib/python3.5/site-packages/matplotlib/testing/decorators.py", line 55, in failer
        result = f(*args, **kwargs)
      File "/Users/jhn/Envs/mplbisect/lib/python3.5/site-packages/matplotlib/testing/decorators.py", line 267, in do_test
        '(RMS %(rms).3f)'%err)
    matplotlib.testing.exceptions.ImageComparisonFailure: images not close: /Users/jhn/src/python/matplotlib/result_images/test_dates/date_axhline.png vs. /Users/jhn/src/python/matplotlib/result_images/test_dates/date_axhline-expected.png (RMS 30.416)
    
    ----------------------------------------------------------------------
    
  9. jenshnielsen commented on Jul 11, 2016

    @jenshnielsen
    MemberAuthor

    2.x python 3.4

    ======================================================================
    FAIL: matplotlib.tests.test_backend_ps.test_savefig_to_stringio_with_usetex_eps
    ----------------------------------------------------------------------
    Traceback (most recent call last):
      File "/home/travis/build/matplotlib/matplotlib/venv/lib/python3.4/site-packages/nose/case.py", line 198, in runTest
        self.test(*self.arg)
      File "/home/travis/build/matplotlib/matplotlib/venv/lib/python3.4/site-packages/matplotlib-2.0.0b1+135.g16b18ea-py3.4-linux-x86_64.egg/matplotlib/testing/decorators.py", line 152, in wrapped_callable
        func(*args, **kwargs)
      File "/home/travis/build/matplotlib/matplotlib/venv/lib/python3.4/site-packages/matplotlib-2.0.0b1+135.g16b18ea-py3.4-linux-x86_64.egg/matplotlib/testing/decorators.py", line 55, in failer
        result = f(*args, **kwargs)
      File "/home/travis/build/matplotlib/matplotlib/venv/lib/python3.4/site-packages/matplotlib-2.0.0b1+135.g16b18ea-py3.4-linux-x86_64.egg/matplotlib/tests/test_backend_ps.py", line 96, in test_savefig_to_stringio_with_usetex_eps
        _test_savefig_to_stringio(format='eps')
      File "/home/travis/build/matplotlib/matplotlib/venv/lib/python3.4/site-packages/matplotlib-2.0.0b1+135.g16b18ea-py3.4-linux-x86_64.egg/matplotlib/tests/test_backend_ps.py", line 54, in _test_savefig_to_stringio
        assert values[0] == values[1]
    AssertionError
    ----------------------------------------------------------------------
    
  10. jenshnielsen commented on Jul 11, 2016

    @jenshnielsen
    MemberAuthor

    Travis python 3.5 without multiprocessing

    ======================================================================
    FAIL: matplotlib.tests.test_backend_ps.test_savefig_to_stringio_eps_afm
    ----------------------------------------------------------------------
    Traceback (most recent call last):
      File "/home/travis/build/matplotlib/matplotlib/venv/lib/python3.5/site-packages/nose/case.py", line 198, in runTest
        self.test(*self.arg)
      File "/home/travis/build/matplotlib/matplotlib/lib/matplotlib/testing/decorators.py", line 152, in wrapped_callable
        func(*args, **kwargs)
      File "/home/travis/build/matplotlib/matplotlib/lib/matplotlib/tests/test_backend_ps.py", line 89, in test_savefig_to_stringio_eps_afm
        _test_savefig_to_stringio(format='eps', use_log=True)
      File "/home/travis/build/matplotlib/matplotlib/lib/matplotlib/tests/test_backend_ps.py", line 54, in _test_savefig_to_stringio
        assert values[0] == values[1]
    AssertionError
    ----------------------------------------------------------------------
    
  11. jenshnielsen commented on Jul 11, 2016

    @jenshnielsen
    MemberAuthor

    Locally python 3.5 4 processes

    ======================================================================
    ERROR: test suite for <class 'matplotlib.tests.test_contour.transplant_class.<locals>.C'>
    ----------------------------------------------------------------------
    Traceback (most recent call last):
      File "/Users/jhn/Envs/mplbisect/lib/python3.5/site-packages/nose/plugins/multiprocess.py", line 788, in run
        self.setUp()
      File "/Users/jhn/Envs/mplbisect/lib/python3.5/site-packages/nose/suite.py", line 293, in setUp
        self.setupContext(ancestor)
      File "/Users/jhn/Envs/mplbisect/lib/python3.5/site-packages/nose/plugins/multiprocess.py", line 770, in setupContext
        super(NoSharedFixtureContextSuite, self).setupContext(context)
      File "/Users/jhn/Envs/mplbisect/lib/python3.5/site-packages/nose/suite.py", line 316, in setupContext
        try_run(context, names)
      File "/Users/jhn/Envs/mplbisect/lib/python3.5/site-packages/nose/util.py", line 490, in try_run
        return func()
      File "/Users/jhn/Envs/mplbisect/lib/python3.5/site-packages/matplotlib/testing/decorators.py", line 194, in setup_class
        cls._func()
      File "/Users/jhn/Envs/mplbisect/lib/python3.5/site-packages/matplotlib/tests/test_contour.py", line 227, in test_contour_datetime_axis
        plt.contour(x, y, z)
      File "/Users/jhn/Envs/mplbisect/lib/python3.5/site-packages/matplotlib/pyplot.py", line 2669, in contour
        ret = ax.contour(*args, **kwargs)
      File "/Users/jhn/Envs/mplbisect/lib/python3.5/site-packages/matplotlib/__init__.py", line 1900, in inner
        return func(ax, *args, **kwargs)
      File "/Users/jhn/Envs/mplbisect/lib/python3.5/site-packages/matplotlib/axes/_axes.py", line 5751, in contour
        contours = mcontour.QuadContourSet(self, *args, **kwargs)
      File "/Users/jhn/Envs/mplbisect/lib/python3.5/site-packages/matplotlib/contour.py", line 1440, in __init__
        ContourSet.__init__(self, ax, *args, **kwargs)
      File "/Users/jhn/Envs/mplbisect/lib/python3.5/site-packages/matplotlib/contour.py", line 864, in __init__
        self._process_args(*args, **kwargs)
      File "/Users/jhn/Envs/mplbisect/lib/python3.5/site-packages/matplotlib/contour.py", line 1461, in _process_args
        x, y, z = self._contour_args(args, kwargs)
      File "/Users/jhn/Envs/mplbisect/lib/python3.5/site-packages/matplotlib/contour.py", line 1544, in _contour_args
        x, y, z = self._check_xyz(args[:3], kwargs)
      File "/Users/jhn/Envs/mplbisect/lib/python3.5/site-packages/matplotlib/contour.py", line 1573, in _check_xyz
        x = np.asarray(x, dtype=np.float64)
      File "/Users/jhn/Envs/mplbisect/lib/python3.5/site-packages/numpy/core/numeric.py", line 482, in asarray
        return array(a, dtype, copy=False, order=order)
    TypeError: float() argument must be a string or a number, not 'datetime.datetime'
    
    ======================================================================
    FAIL: matplotlib.tests.test_contour.test_given_colors_levels_and_extends.test
    ----------------------------------------------------------------------
    Traceback (most recent call last):
      File "/Users/jhn/Envs/mplbisect/lib/python3.5/site-packages/nose/case.py", line 198, in runTest
        self.test(*self.arg)
      File "/Users/jhn/Envs/mplbisect/lib/python3.5/site-packages/matplotlib/testing/decorators.py", line 55, in failer
        result = f(*args, **kwargs)
      File "/Users/jhn/Envs/mplbisect/lib/python3.5/site-packages/matplotlib/testing/decorators.py", line 267, in do_test
        '(RMS %(rms).3f)'%err)
    matplotlib.testing.exceptions.ImageComparisonFailure: images not close: /Users/jhn/src/python/matplotlib/result_images/test_contour/contour_manual_colors_and_levels.png vs. /Users/jhn/src/python/matplotlib/result_images/test_contour/contour_manual_colors_and_levels-expected.png (RMS 92.225)
    
  12. jenshnielsen commented on Jul 11, 2016

    @jenshnielsen
    MemberAuthor

    In the last example

    test_given_colors_levels_and_extends
    Should be:
    contour_manual_colors_and_levels-expected
    but looks like:
    contour_manual_colors_and_levels

    This seems to be the content from test_contour_datetime_axis which is leaking when that test fails:

    contour_datetime_axis

  13. jenshnielsen commented on Jul 12, 2016

    @jenshnielsen
    MemberAuthor

    On travis 2.x
    python 3.4

    ======================================================================
    FAIL: matplotlib.tests.test_bbox_tight.test_bbox_inches_tight_suptile_legend.test
    ----------------------------------------------------------------------
    Traceback (most recent call last):
      File "/home/travis/build/matplotlib/matplotlib/venv/lib/python3.4/site-packages/nose/case.py", line 198, in runTest
        self.test(*self.arg)
      File "/home/travis/build/matplotlib/matplotlib/venv/lib/python3.4/site-packages/matplotlib-2.0.0b1+144.g05d910d-py3.4-linux-x86_64.egg/matplotlib/testing/decorators.py", line 55, in failer
        result = f(*args, **kwargs)
      File "/home/travis/build/matplotlib/matplotlib/venv/lib/python3.4/site-packages/matplotlib-2.0.0b1+144.g05d910d-py3.4-linux-x86_64.egg/matplotlib/testing/decorators.py", line 261, in do_test
        '(RMS %(rms).3f)'%err)
    matplotlib.testing.exceptions.ImageComparisonFailure: images not close: /home/travis/build/matplotlib/matplotlib/result_images/test_bbox_tight/bbox_inches_tight_suptile_legend_svg.png vs. /home/travis/build/matplotlib/matplotlib/result_images/test_bbox_tight/bbox_inches_tight_suptile_legend-expected_svg.png (RMS 0.514)
    
  14. jenshnielsen commented on Jul 12, 2016

    @jenshnielsen
    MemberAuthor

    On Travis OSX master. This one is known to be timing sensitive

    ======================================================================
    FAIL: Github issue #1256 identified a bug in Line.draw method
    ----------------------------------------------------------------------
    Traceback (most recent call last):
      File "/usr/local/lib/python2.7/site-packages/nose/case.py", line 197, in runTest
        self.test(*self.arg)
      File "/Users/travis/build/matplotlib/matplotlib/lib/matplotlib/testing/decorators.py", line 151, in wrapped_callable
        func(*args, **kwargs)
      File "/Users/travis/build/matplotlib/matplotlib/lib/matplotlib/tests/test_lines.py", line 61, in test_invisible_Line_rendering
        assert_true(slowdown_factor < slowdown_threshold)
    AssertionError: False is not true
    ----------------------------------------------------------------------
    
  15. jenshnielsen commented on Jul 12, 2016

    @jenshnielsen
    MemberAuthor

    Travis python3.5 on 2.x branch so run with multiprocessing

    ======================================================================
    FAIL: matplotlib.tests.test_mathtext.test_mathfont_dejavusans_12.test
    ----------------------------------------------------------------------
    Traceback (most recent call last):
      File "/home/travis/build/matplotlib/matplotlib/venv/lib/python3.5/site-packages/nose/case.py", line 198, in runTest
        self.test(*self.arg)
      File "/home/travis/build/matplotlib/matplotlib/venv/lib/python3.5/site-packages/matplotlib-2.0.0b1+159.ge2f4647-py3.5-linux-x86_64.egg/matplotlib/testing/decorators.py", line 55, in failer
        result = f(*args, **kwargs)
      File "/home/travis/build/matplotlib/matplotlib/venv/lib/python3.5/site-packages/matplotlib-2.0.0b1+159.ge2f4647-py3.5-linux-x86_64.egg/matplotlib/testing/decorators.py", line 261, in do_test
        '(RMS %(rms).3f)'%err)
    matplotlib.testing.exceptions.ImageComparisonFailure: images not close: /home/travis/build/matplotlib/matplotlib/result_images/test_mathtext/mathfont_dejavusans_12.png vs. /home/travis/build/matplotlib/matplotlib/result_images/test_mathtext/mathfont_dejavusans_12-expected.png (RMS 51.145)
    ----------------------------------------------------------------------
    
  16. jenshnielsen commented on Jul 15, 2016

    @jenshnielsen
    MemberAuthor

    Master 2.7 after the merge of #6741

    ======================================================================
    ERROR: matplotlib.tests.test_backend_ps.test_savefig_to_stringio_with_usetex
    ----------------------------------------------------------------------
    Traceback (most recent call last):
      File "/home/travis/build/matplotlib/matplotlib/venv/lib/python2.7/site-packages/nose/case.py", line 197, in runTest
        self.test(*self.arg)
      File "/home/travis/build/matplotlib/matplotlib/lib/matplotlib/testing/decorators.py", line 151, in wrapped_callable
        func(*args, **kwargs)
      File "/home/travis/build/matplotlib/matplotlib/lib/matplotlib/testing/decorators.py", line 55, in failer
        result = f(*args, **kwargs)
      File "/home/travis/build/matplotlib/matplotlib/lib/matplotlib/testing/decorators.py", line 55, in failer
        result = f(*args, **kwargs)
      File "/home/travis/build/matplotlib/matplotlib/lib/matplotlib/tests/test_backend_ps.py", line 78, in test_savefig_to_stringio_with_usetex
        _test_savefig_to_stringio()
      File "/home/travis/build/matplotlib/matplotlib/lib/matplotlib/tests/test_backend_ps.py", line 40, in _test_savefig_to_stringio
        fig.savefig(buffer, format=format)
      File "/home/travis/build/matplotlib/matplotlib/lib/matplotlib/figure.py", line 1666, in savefig
        self.canvas.print_figure(*args, **kwargs)
      File "/home/travis/build/matplotlib/matplotlib/lib/matplotlib/backend_bases.py", line 2227, in print_figure
        **kwargs)
      File "/home/travis/build/matplotlib/matplotlib/lib/matplotlib/backends/backend_ps.py", line 947, in print_ps
        return self._print_ps(outfile, 'ps', *args, **kwargs)
      File "/home/travis/build/matplotlib/matplotlib/lib/matplotlib/backends/backend_ps.py", line 974, in _print_ps
        **kwargs)
      File "/home/travis/build/matplotlib/matplotlib/lib/matplotlib/backends/backend_ps.py", line 1250, in _print_figure_tex
        self.figure.draw(renderer)
      File "/home/travis/build/matplotlib/matplotlib/lib/matplotlib/artist.py", line 68, in draw_wrapper
        return draw(artist, renderer, *args, **kwargs)
      File "/home/travis/build/matplotlib/matplotlib/lib/matplotlib/figure.py", line 1262, in draw
        renderer, self, dsu, self.suppressComposite)
      File "/home/travis/build/matplotlib/matplotlib/lib/matplotlib/image.py", line 139, in _draw_list_compositing_images
        a.draw(renderer)
      File "/home/travis/build/matplotlib/matplotlib/lib/matplotlib/artist.py", line 68, in draw_wrapper
        return draw(artist, renderer, *args, **kwargs)
      File "/home/travis/build/matplotlib/matplotlib/lib/matplotlib/axes/_base.py", line 2374, in draw
        mimage._draw_list_compositing_images(renderer, self, dsu)
      File "/home/travis/build/matplotlib/matplotlib/lib/matplotlib/image.py", line 139, in _draw_list_compositing_images
        a.draw(renderer)
      File "/home/travis/build/matplotlib/matplotlib/lib/matplotlib/artist.py", line 68, in draw_wrapper
        return draw(artist, renderer, *args, **kwargs)
      File "/home/travis/build/matplotlib/matplotlib/lib/matplotlib/axis.py", line 1111, in draw
        renderer)
      File "/home/travis/build/matplotlib/matplotlib/lib/matplotlib/axis.py", line 1051, in _get_tick_bboxes
        extent = tick.label1.get_window_extent(renderer)
      File "/home/travis/build/matplotlib/matplotlib/lib/matplotlib/text.py", line 965, in get_window_extent
        bbox, info, descent = self._get_layout(self._renderer)
      File "/home/travis/build/matplotlib/matplotlib/lib/matplotlib/text.py", line 362, in _get_layout
        ismath=ismath)
      File "/home/travis/build/matplotlib/matplotlib/lib/matplotlib/backends/backend_ps.py", line 341, in get_text_width_height_descent
        renderer=self)
      File "/home/travis/build/matplotlib/matplotlib/lib/matplotlib/texmanager.py", line 678, in get_text_width_height_descent
        page = next(iter(dvi))
      File "/home/travis/build/matplotlib/matplotlib/lib/matplotlib/dviread.py", line 239, in __iter__
        have_page = self._read()
      File "/home/travis/build/matplotlib/matplotlib/lib/matplotlib/dviread.py", line 299, in _read
        byte = ord(self.file.read(1)[0])
    IndexError: string index out of range
    ----------------------------------------------------------------------
    
  17. jenshnielsen commented on Jul 24, 2016

    @jenshnielsen
    MemberAuthor

    On 3.5 so no multiprocessing

    FAIL: matplotlib.tests.test_collections.test__EventCollection__set_positions.test
    ----------------------------------------------------------------------
    Traceback (most recent call last):
      File "/home/travis/build/matplotlib/matplotlib/venv/lib/python3.5/site-packages/nose/case.py", line 198, in runTest
        self.test(*self.arg)
      File "/home/travis/build/matplotlib/matplotlib/venv/lib/python3.5/site-packages/matplotlib-2.0.0b3+10.g8751f9b-py3.5-linux-x86_64.egg/matplotlib/testing/decorators.py", line 55, in failer
        result = f(*args, **kwargs)
      File "/home/travis/build/matplotlib/matplotlib/venv/lib/python3.5/site-packages/matplotlib-2.0.0b3+10.g8751f9b-py3.5-linux-x86_64.egg/matplotlib/testing/decorators.py", line 258, in do_test
        '(RMS %(rms).3f)'%err)
    matplotlib.testing.exceptions.ImageComparisonFailure: images not close: /home/travis/build/matplotlib/matplotlib/result_images/test_collections/EventCollection_plot__set_positions_svg.png vs. /home/travis/build/matplotlib/matplotlib/result_images/test_collections/EventCollection_plot__set_positions-expected_svg.png (RMS 0.125)
    
  18. Kojoley commented on Jul 27, 2016

    @Kojoley
    Member

    OSX. Pytest. No xdist (multiprocessing).

    =================================== FAILURES ===================================
    ________________________ test_mathtext_stix_19.test[0] _________________________
    fignum = 1
    actual_fname = '/Users/travis/build/matplotlib/matplotlib/result_images/test_mathtext/mathtext_stix_19.png'
    expected_fname = '/Users/travis/build/matplotlib/matplotlib/result_images/test_mathtext/mathtext_stix_19-expected.png'
    >                   '(RMS %(rms).3f)'%err)
    E                   ImageComparisonFailure: images not close: /Users/travis/build/matplotlib/matplotlib/result_images/test_mathtext/mathtext_stix_19.png vs. /Users/travis/build/matplotlib/matplotlib/result_images/test_mathtext/mathtext_stix_19-expected.png (RMS 16.944)
    

    Same commit but different outcomes:

    I cannot suggest anything about these fails on test_mathtext tests, but maybe it is worth adding some sort of rcParams dump to image_comparison decorator before raising ImageComparisonFailure?

  19. Kojoley commented on Jul 29, 2016

    @Kojoley
    Member

    Python: nightly. https://travis-ci.org/Kojoley/matplotlib/jobs/148118137

    FAIL: matplotlib.tests.test_axes.test_hist2d_transpose.test
    ----------------------------------------------------------------------
    Traceback (most recent call last):
      File "/home/travis/build/Kojoley/matplotlib/venv/lib/python3.6/site-packages/nose/case.py", line 198, in runTest
        self.test(*self.arg)
      File "/home/travis/build/Kojoley/matplotlib/lib/matplotlib/testing/decorators.py", line 55, in failer
        result = f(*args, **kwargs)
      File "/home/travis/build/Kojoley/matplotlib/lib/matplotlib/testing/decorators.py", line 263, in do_test
        '(RMS %(rms).3f)'%err)
    matplotlib.testing.exceptions.ImageComparisonFailure: images not close: /home/travis/build/Kojoley/matplotlib/result_images/test_axes/hist2d_transpose_svg.png vs. /home/travis/build/Kojoley/matplotlib/result_images/test_axes/hist2d_transpose-expected_svg.png (RMS 0.099)
    
  20. Kojoley commented on Aug 8, 2016

    @Kojoley
    Member

    https://travis-ci.org/Kojoley/matplotlib/jobs/150594362

    /home/travis/build/Kojoley/matplotlib/venv/lib/python2.7/site-packages/matplotlib/widgets.py:docstring of matplotlib.widgets.Cursor:22: WARNING: Exception occurred in plotting cursor
     from /home/travis/build/Kojoley/matplotlib/doc/mpl_examples/widgets/cursor.py:
    Traceback (most recent call last):
      File "/home/travis/build/Kojoley/matplotlib/venv/lib/python2.7/site-packages/matplotlib/sphinxext/plot_directive.py", line 517, in run_code
        six.exec_(code, ns)
      File "/home/travis/build/Kojoley/matplotlib/venv/lib/python2.7/site-packages/matplotlib/externals/six.py", line 672, in exec_
        exec("""exec _code_ in _globs_, _locs_""")
      File "<string>", line 1, in <module>
      File "<string>", line 9, in <module>
      File "/home/travis/build/Kojoley/matplotlib/venv/lib/python2.7/site-packages/matplotlib/figure.py", line 1005, in add_subplot
        a = subplot_class_factory(projection_class)(self, *args, **kwargs)
      File "/home/travis/build/Kojoley/matplotlib/venv/lib/python2.7/site-packages/matplotlib/axes/_subplots.py", line 73, in __init__
        self._axes_class.__init__(self, fig, self.figbox, **kwargs)
      File "/home/travis/build/Kojoley/matplotlib/venv/lib/python2.7/site-packages/matplotlib/axes/_base.py", line 537, in __init__
        self.update(kwargs)
      File "/home/travis/build/Kojoley/matplotlib/venv/lib/python2.7/site-packages/matplotlib/artist.py", line 856, in update
        raise AttributeError('Unknown property %s' % k)
    AttributeError: Unknown property facecolor
    Building HTML failed.
    
  21. QuLogic commented on Jan 20, 2017

    @QuLogic
    Member

    After several tries in mock, I was able to get matplotlib.tests.test_mathtext.test_mathfont_stixsans_11 to fail:
    mathfont_stixsans_11
    mathfont_stixsans_11-expected
    Still not sure how to debug that though.

  22. jkseppan commented on Jan 22, 2017

    @jkseppan
    Member

    At least some of the image-size mismatches were because of tests assuming that plt.subplot creates a new figure, while another test had already created a figure of the wrong size. See #7726.

  23. dopplershift commented on Feb 2, 2017

    @dopplershift
    Contributor

    https://travis-ci.org/matplotlib/matplotlib/jobs/196800319

    E           matplotlib.testing.exceptions.ImageComparisonFailure: images not close:
     /home/travis/build/matplotlib/matplotlib/result_images/test_mplot3d/mixedsubplot_svg.png vs. /home/travis/build/matplotlib/matplotlib/result_images/test_mplot3d/mixedsubplot-expected_svg.png (RMS 0.104)
    
  24. jkseppan commented on Feb 2, 2017

    @jkseppan
    Member

    Unfortunately the artifact uploading doesn't seem to be working (#7739) so we can't see what exactly happens with that. How about printing a base64 encoding of the diff image if it isn't too large? PNG compression should be pretty good on typical difference images.

  25. QuLogic commented on Feb 3, 2017

    @QuLogic
    Member

    With pytest, we might want to try the pytest-rerunfailures plugin. It won't fix it, but it would make for less waiting for a full rebuild.

  26. QuLogic commented on Mar 19, 2020

    @QuLogic
    Member

    Our tests generally do not intermittently fail any more, so I don't think we need to leave this open.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions