Page MenuHomeSoftware Heritage
Paste P335

indexer: debian package build failure due to hypothesis 3.6 (debian stable) too old
ActivePublic

Authored by ardumont on Nov 19 2018, 11:38 AM.
Hypothesis issue with old version: https://github.com/HypothesisWorks/hypothesis/issues/290
build output:
```
============================= test session starts ==============================
platform linux -- Python 3.5.3, pytest-3.0.6, py-1.4.32, pluggy-0.4.0
rootdir: /<<PKGBUILDDIR>>, inifile:
plugins: hypothesis-3.6.1, celery-4.2.1
collected 48 items / 2 errors
==================================== ERRORS ====================================
ERROR collecting .pybuild/pythonX.Y_3.5/build/swh/indexer/tests/storage/test_api_client.py
swh/indexer/tests/storage/test_api_client.py:13: in <module>
from .test_storage import CommonTestStorage
<frozen importlib._bootstrap>:969: in _find_and_load
???
<frozen importlib._bootstrap>:958: in _find_and_load_unlocked
???
<frozen importlib._bootstrap>:664: in _load_unlocked
???
<frozen importlib._bootstrap>:634: in _load_backward_compatible
???
/usr/lib/python3/dist-packages/_pytest/assertion/rewrite.py:216: in load_module
py.builtin.exec_(co, mod.__dict__)
swh/indexer/tests/storage/test_storage.py:1621: in <module>
class PropBasedTestStorage(BaseTestStorage, unittest.TestCase):
swh/indexer/tests/storage/test_storage.py:1635: in PropBasedTestStorage
@given(gen_content_mimetypes(min_size=1, max_size=4))
E TypeError: gen_content_mimetypes() got an unexpected keyword argument 'min_size'
ERROR collecting .pybuild/pythonX.Y_3.5/build/swh/indexer/tests/storage/test_storage.py
swh/indexer/tests/storage/test_storage.py:1621: in <module>
class PropBasedTestStorage(BaseTestStorage, unittest.TestCase):
swh/indexer/tests/storage/test_storage.py:1635: in PropBasedTestStorage
@given(gen_content_mimetypes(min_size=1, max_size=4))
E TypeError: gen_content_mimetypes() got an unexpected keyword argument 'min_size'
!!!!!!!!!!!!!!!!!!! Interrupted: 2 errors during collection !!!!!!!!!!!!!!!!!!!!
============================== 1 tests deselected ==============================
==================== 1 deselected, 2 error in 0.36 seconds =====================
E: pybuild pybuild:283: test: plugin distutils failed with: exit code=2: cd /<<PKGBUILDDIR>>/.pybuild/pythonX.Y_3.5/build; python3.5 -m pytest -m 'not db and not fs and not property_based'
dh_auto_test: pybuild --test --test-pytest -i python{version} -p 3.5 returned exit code 13
debian/rules:7: recipe for target 'build' failed
make: *** [build] Error 25
dpkg-buildpackage: error: debian/rules build gave error exit status 2
--------------------------------------------------------------------------------
Build finished at 2018-11-19T10:34:57Z
Finished
--------
+------------------------------------------------------------------------------+
| Generic Build Failed Commands |
+------------------------------------------------------------------------------+
bash -i </dev/tty >/dev/tty 2>/dev/tty
--------------------------------------
(stretch-amd64-sbuild)root@bespin:/build/swh-indexer-rAXLaN# exit
I: Finished running 'bash -i </dev/tty >/dev/tty 2>/dev/tty'.
Finished processing commands.
--------------------------------------------------------------------------------
+------------------------------------------------------------------------------+
| Cleanup |
+------------------------------------------------------------------------------+
Purging /<<BUILDDIR>>
Not cleaning session: cloned chroot in use
E: Build failure (dpkg-buildpackage died)
+------------------------------------------------------------------------------+
| Summary |
+------------------------------------------------------------------------------+
Build Architecture: amd64
Build Type: full
Build-Space: n/a
Build-Time: 2
Distribution: stretch-backports-swh
Fail-Stage: build
Host Architecture: amd64
Install-Time: 9
Job: /tmp/tmp.oLwxkg8ZcR/swh-indexer_0.0.55.post64-1~bpo9~swh+1.dsc
Machine Architecture: amd64
Package: swh-indexer
Package-Time: 13
Source-Version: 0.0.55.post64-1~bpo9~swh+1
Space: n/a
Status: attempted
Version: 0.0.55.post64-1~bpo9~swh+1
--------------------------------------------------------------------------------
Finished at 2018-11-19T10:34:57Z
Build needed 00:00:13, no disk space
E: Build failure (dpkg-buildpackage died)
```

Event Timeline

Fixed by forcing a superior version >= 3.11.0 (backport).

rDCIDX373b432db9e2: d/*: tests: Need a hypothesis version from backports to run tests.