[Python-modules-team] Bug#883038: thumbor: FTBFS (32-bit big-endian): orientation-related tests fail

Aaron M. Ucko ucko at debian.org
Wed Nov 29 02:17:22 UTC 2017


Source: thumbor
Version: 6.3.2-3
Severity: important
Tags: upstream
Justification: fails to build from source

Builds of thumbor for mips and the non-release architecture powerpc
have been failing due to errors and failures in eight
orientation-related tests, per the below excerpts from
https://buildd.debian.org/status/fetch.php?pkg=thumbor&arch=powerpc&ver=6.3.2-3&stamp=1511660726&raw=0.
(I'm excerpting this rather than the mips log because the latter also
contains errors from #883028.)

Of note, both are 32-bit big-endian architectures.  So is the
non-release architecture m68k, but AFAICT it skipped the tests
altogether for some reason.  As for 64-bit big-endian architectures,
tests crashed there, I think before they could get to this point; I'll
report that crash separately.

Could you please take a look?

Thanks!

------------------------------------------------------------

Requests count: 456
 SUCCESS (unsafe/meta/gradient.jpg)
[...]
 SUCCESS (unsafe/filters:gifv()/gradient.webp...................F....FEFFEFE..................................................................S..............S................gifsicle: warning: trivial adaptive palette (only 199 colors in source)
.......gifsicle: warning: trivial adaptive palette (only 199 colors in source)
..gifsicle: warning: trivial adaptive palette (only 199 colors in source)
.....................................................................................................................................................................................................S......./usr/lib/python2.7/dist-packages/preggy/assertions/equality.py:26: UnicodeWarning: Unicode equal comparison failed to convert both arguments to Unicode - interpreting them as being unequal
  return expected == topic
.................................................................................
======================================================================
ERROR: test_reorientate3 (tests.engines.test_base_engine.BaseEngineTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/«PKGBUILDDIR»/.pybuild/pythonX.Y_2.7/build/tests/engines/test_base_engine.py", line 254, in test_reorientate3
    expect(self.engine.rotate.call_args[0]).to_equal((180,))
TypeError: 'NoneType' object has no attribute '__getitem__'

======================================================================
ERROR: test_reorientate6 (tests.engines.test_base_engine.BaseEngineTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/«PKGBUILDDIR»/.pybuild/pythonX.Y_2.7/build/tests/engines/test_base_engine.py", line 297, in test_reorientate6
    expect(self.engine.rotate.call_args[0]).to_equal((270,))
TypeError: 'NoneType' object has no attribute '__getitem__'

======================================================================
ERROR: test_reorientate8 (tests.engines.test_base_engine.BaseEngineTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/«PKGBUILDDIR»/.pybuild/pythonX.Y_2.7/build/tests/engines/test_base_engine.py", line 324, in test_reorientate8
    expect(self.engine.rotate.call_args[0]).to_equal((90,))
TypeError: 'NoneType' object has no attribute '__getitem__'

======================================================================
FAIL: test_get_orientation (tests.engines.test_base_engine.BaseEngineTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/«PKGBUILDDIR»/.pybuild/pythonX.Y_2.7/build/tests/engines/test_base_engine.py", line 201, in test_get_orientation
    expect(self.engine.get_orientation()).to_equal(1)
  File "/usr/lib/python2.7/dist-packages/preggy/core.py", line 285, in _assert_topic
    return _registered_assertions[method_name](self.topic, *args, **kw)
  File "/usr/lib/python2.7/dist-packages/preggy/core.py", line 58, in wrapper
    func(*args, **kw)
  File "/usr/lib/python2.7/dist-packages/preggy/core.py", line 126, in test_assertion
    raise AssertionError(err_msg)
AssertionError: Expected topic(256) to equal 1
-------------------- >> begin captured logging << --------------------
preggy.utils: DEBUG: fetching assertion: 'to_equal'
--------------------- >> end captured logging << ---------------------

======================================================================
FAIL: test_reorientate2 (tests.engines.test_base_engine.BaseEngineTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/«PKGBUILDDIR»/.pybuild/pythonX.Y_2.7/build/tests/engines/test_base_engine.py", line 240, in test_reorientate2
    expect(self.engine.flip_horizontally.called).to_be_true()
  File "/usr/lib/python2.7/dist-packages/preggy/core.py", line 285, in _assert_topic
    return _registered_assertions[method_name](self.topic, *args, **kw)
  File "/usr/lib/python2.7/dist-packages/preggy/core.py", line 58, in wrapper
    func(*args, **kw)
  File "/usr/lib/python2.7/dist-packages/preggy/assertions/types/boolean.py", line 21, in to_be_true
    raise AssertionError(msg)
AssertionError: Expected topic(False) to be truthy
-------------------- >> begin captured logging << --------------------
preggy.utils: DEBUG: fetching assertion: 'to_be_false'
preggy.utils: DEBUG: fetching assertion: 'to_be_true'
--------------------- >> end captured logging << ---------------------

======================================================================
FAIL: test_reorientate4 (tests.engines.test_base_engine.BaseEngineTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/«PKGBUILDDIR»/.pybuild/pythonX.Y_2.7/build/tests/engines/test_base_engine.py", line 271, in test_reorientate4
    expect(self.engine.flip_vertically.called).to_be_true()
  File "/usr/lib/python2.7/dist-packages/preggy/core.py", line 285, in _assert_topic
    return _registered_assertions[method_name](self.topic, *args, **kw)
  File "/usr/lib/python2.7/dist-packages/preggy/core.py", line 58, in wrapper
    func(*args, **kw)
  File "/usr/lib/python2.7/dist-packages/preggy/assertions/types/boolean.py", line 21, in to_be_true
    raise AssertionError(msg)
AssertionError: Expected topic(False) to be truthy
-------------------- >> begin captured logging << --------------------
preggy.utils: DEBUG: fetching assertion: 'to_be_false'
preggy.utils: DEBUG: fetching assertion: 'to_be_false'
preggy.utils: DEBUG: fetching assertion: 'to_be_true'
--------------------- >> end captured logging << ---------------------

======================================================================
FAIL: test_reorientate5 (tests.engines.test_base_engine.BaseEngineTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/«PKGBUILDDIR»/.pybuild/pythonX.Y_2.7/build/tests/engines/test_base_engine.py", line 285, in test_reorientate5
    expect(self.image).to_equal(((1, 2), (3, 4)))
  File "/usr/lib/python2.7/dist-packages/preggy/core.py", line 285, in _assert_topic
    return _registered_assertions[method_name](self.topic, *args, **kw)
  File "/usr/lib/python2.7/dist-packages/preggy/core.py", line 58, in wrapper
    func(*args, **kw)
  File "/usr/lib/python2.7/dist-packages/preggy/core.py", line 126, in test_assertion
    raise AssertionError(err_msg)
AssertionError: Expected topic(((1, 3), (2, 4))) to equal ((1, 2), (3, 4))
-------------------- >> begin captured logging << --------------------
preggy.utils: DEBUG: fetching assertion: 'to_equal'
--------------------- >> end captured logging << ---------------------

======================================================================
FAIL: test_reorientate7 (tests.engines.test_base_engine.BaseEngineTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/«PKGBUILDDIR»/.pybuild/pythonX.Y_2.7/build/tests/engines/test_base_engine.py", line 312, in test_reorientate7
    expect(self.image).to_equal(((1, 2), (3, 4)))
  File "/usr/lib/python2.7/dist-packages/preggy/core.py", line 285, in _assert_topic
    return _registered_assertions[method_name](self.topic, *args, **kw)
  File "/usr/lib/python2.7/dist-packages/preggy/core.py", line 58, in wrapper
    func(*args, **kw)
  File "/usr/lib/python2.7/dist-packages/preggy/core.py", line 126, in test_assertion
    raise AssertionError(err_msg)
AssertionError: Expected topic(((4, 2), (3, 1))) to equal ((1, 2), (3, 4))
-------------------- >> begin captured logging << --------------------
preggy.utils: DEBUG: fetching assertion: 'to_equal'
--------------------- >> end captured logging << ---------------------

----------------------------------------------------------------------
Ran 424 tests in 29.200s

FAILED (SKIP=3, errors=3, failures=5)

-- 
Aaron M. Ucko, KB1CJC (amu at alum.mit.edu, ucko at debian.org)
http://www.mit.edu/~amu/ | http://stuff.mit.edu/cgi/finger/?amu@monk.mit.edu


More information about the Python-modules-team mailing list