[Python-modules-team] Bug#851722: django-pipeline: FTBFS randomly (failing tests)

Santiago Vila sanvila at debian.org
Tue Jan 17 23:53:23 UTC 2017


Package: src:django-pipeline
Version: 1.6.8-2
Severity: important

Dear maintainer:

I tried to build this package in stretch with "dpkg-buildpackage -A"
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>>'
dh_auto_build
I: pybuild base:184: /usr/bin/python setup.py build 
running build

[... snipped ...]

    default_collector.clear()
  File "/<<PKGBUILDDIR>>/pipeline/collector.py", line 23, in clear
    dirs, files = self.storage.listdir(path)
  File "/usr/lib/python2.7/dist-packages/django/core/files/storage.py", line 399, in listdir
    for entry in os.listdir(path):
OSError: [Errno 2] No such file or directory: '/<<PKGBUILDDIR>>/tests/static'

======================================================================
ERROR: test_pipeline_enabled_and_found (tests.tests.test_views.ServeStaticViewsTest)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/<<PKGBUILDDIR>>/tests/tests/test_views.py", line 24, in setUp
    default_collector.clear()
  File "/<<PKGBUILDDIR>>/pipeline/collector.py", line 23, in clear
    dirs, files = self.storage.listdir(path)
  File "/usr/lib/python2.7/dist-packages/django/core/files/storage.py", line 399, in listdir
    for entry in os.listdir(path):
OSError: [Errno 2] No such file or directory: '/<<PKGBUILDDIR>>/tests/static'

======================================================================
ERROR: test_pipeline_enabled_and_not_found (tests.tests.test_views.ServeStaticViewsTest)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/<<PKGBUILDDIR>>/tests/tests/test_views.py", line 24, in setUp
    default_collector.clear()
  File "/<<PKGBUILDDIR>>/pipeline/collector.py", line 23, in clear
    dirs, files = self.storage.listdir(path)
  File "/usr/lib/python2.7/dist-packages/django/core/files/storage.py", line 399, in listdir
    for entry in os.listdir(path):
OSError: [Errno 2] No such file or directory: '/<<PKGBUILDDIR>>/tests/static'

----------------------------------------------------------------------
Ran 88 tests in 0.931s

FAILED (errors=8, skipped=15)
Creating test database for alias 'default'...
Destroying test database for alias 'default'...
E: pybuild pybuild:276: test: plugin custom failed with: exit code=1: PYTHONPATH=. python2.7 /usr/bin/django-admin test --settings=tests.settings
dh_auto_test: pybuild --test -i python{version} -p 2.7 returned exit code 13
debian/rules:24: recipe for target 'override_dh_auto_test' failed
make[1]: *** [override_dh_auto_test] Error 25
make[1]: Leaving directory '/<<PKGBUILDDIR>>'
debian/rules:11: recipe for target 'build-indep' failed
make: *** [build-indep] Error 2
dpkg-buildpackage: error: debian/rules build-indep gave error exit status 2
--------------------------------------------------------------------------------

This is just how the build ends, not necessarily the relevant part.

I've put several build logs here:

https://people.debian.org/~sanvila/build-logs/django-pipeline/

If this is really a bug in one of the build-depends, please use reassign and affects,
so that this is still visible in the page for this package.

The bug should be reproducible with sbuild on a single CPU virtual machine,
provided you try enough times (as the failure happens randomly).

Thanks.



More information about the Python-modules-team mailing list