[Python-modules-team] Bug#836585: celery: FTBFS in testing (failing tests)

Santiago Vila sanvila at unex.es
Sun Sep 4 09:54:01 UTC 2016


Package: src:celery
Version: 3.1.23-5
Severity: serious

Dear maintainer:

I tried to build this package in stretch with "dpkg-buildpackage -A"
(which is what the "Arch: all" autobuilder would do to build it)
but it failed:

--------------------------------------------------------------------------------
[...]
 debian/rules build-indep
dh build-indep --with python2,python3,sphinxdoc --buildsystem=pybuild
   dh_testdir -i -O--buildsystem=pybuild
   dh_update_autotools_config -i -O--buildsystem=pybuild
   dh_auto_configure -i -O--buildsystem=pybuild
I: pybuild base:184: python2.7 setup.py config 
running config
I: pybuild base:184: python3.5 setup.py config 
running config
   debian/rules override_dh_auto_build
make[1]: Entering directory '/<<PKGBUILDDIR>>'
PYTHONPATH=.:$PYTHONPATH sphinx-build -b html -d .build/.doctrees -N docs .build/html
Running Sphinx v1.4.5

[... snipped ...]

ERROR: test_unknown_source (celery.tests.security.test_serialization.test_SecureSerializer)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/<<PKGBUILDDIR>>/celery/tests/security/test_serialization.py", line 42, in test_unknown_source
    s1.deserialize, s1.serialize('foo'))
  File "/<<PKGBUILDDIR>>/celery/security/serialization.py", line 55, in serialize
    signer=self._cert.get_id())
  File "/usr/lib/python2.7/contextlib.py", line 35, in __exit__
    self.gen.throw(type, value, traceback)
  File "/<<PKGBUILDDIR>>/celery/security/utils.py", line 35, in reraise_errors
    sys.exc_info()[2])
  File "/<<PKGBUILDDIR>>/celery/security/utils.py", line 31, in reraise_errors
    yield
  File "/<<PKGBUILDDIR>>/celery/security/serialization.py", line 54, in serialize
    signature=self._key.sign(body, self._digest),
  File "/<<PKGBUILDDIR>>/celery/security/key.py", line 27, in sign
    return crypto.sign(self._key, ensure_bytes(data), digest)
  File "/usr/lib/python2.7/dist-packages/OpenSSL/crypto.py", line 2563, in sign
    md_ctx = _ffi.new("EVP_MD_CTX*")
SecurityError: Unable to serialize: TypeError("cannot instantiate ctype 'EVP_MD_CTX' of unknown size",)

======================================================================
ERROR: test_unmatched_key_cert (celery.tests.security.test_serialization.test_SecureSerializer)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/<<PKGBUILDDIR>>/celery/tests/security/test_serialization.py", line 36, in test_unmatched_key_cert
    s.deserialize, s.serialize('foo'))
  File "/<<PKGBUILDDIR>>/celery/security/serialization.py", line 55, in serialize
    signer=self._cert.get_id())
  File "/usr/lib/python2.7/contextlib.py", line 35, in __exit__
    self.gen.throw(type, value, traceback)
  File "/<<PKGBUILDDIR>>/celery/security/utils.py", line 35, in reraise_errors
    sys.exc_info()[2])
  File "/<<PKGBUILDDIR>>/celery/security/utils.py", line 31, in reraise_errors
    yield
  File "/<<PKGBUILDDIR>>/celery/security/serialization.py", line 54, in serialize
    signature=self._key.sign(body, self._digest),
  File "/<<PKGBUILDDIR>>/celery/security/key.py", line 27, in sign
    return crypto.sign(self._key, ensure_bytes(data), digest)
  File "/usr/lib/python2.7/dist-packages/OpenSSL/crypto.py", line 2563, in sign
    md_ctx = _ffi.new("EVP_MD_CTX*")
SecurityError: Unable to serialize: TypeError("cannot instantiate ctype 'EVP_MD_CTX' of unknown size",)

----------------------------------------------------------------------
Ran 1710 tests in 32.248s

FAILED (errors=7, skipped=49)
E: pybuild pybuild:276: test: plugin custom failed with: exit code=1: python2.7 setup.py test
dh_auto_test: pybuild --test --test-nose -i python{version} -p 2.7 --system=custom --test-args={interpreter} setup.py test returned exit code 13
debian/rules:25: recipe for target 'override_dh_auto_test' failed
make[1]: *** [override_dh_auto_test] Error 25
make[1]: Leaving directory '/<<PKGBUILDDIR>>'
debian/rules:10: recipe for target 'build-indep' failed
make: *** [build-indep] Error 2
dpkg-buildpackage: error: debian/rules build-indep gave error exit status 2
--------------------------------------------------------------------------------

The failure does not seem related to using "dpkg-buildpackage -A".

Thanks.



More information about the Python-modules-team mailing list