[Pkg-matrix-maintainers] Bug#980670: pantalaimon: FTBFS: dh_auto_test: error: pybuild --test --test-pytest -i python{version} -p 3.9 returned exit code 13

Lucas Nussbaum lucas at debian.org
Wed Jan 20 20:47:00 GMT 2021


Source: pantalaimon
Version: 0.8.0-2
Severity: serious
Justification: FTBFS on amd64
Tags: bullseye sid ftbfs
Usertags: ftbfs-20210120 ftbfs-bullseye

Hi,

During a rebuild of all packages in sid, your package failed to build
on amd64.

Relevant part (hopefully):
> dpkg-buildpackage
> -----------------
> 
> Command: dpkg-buildpackage -us -uc -sa -rfakeroot
> dpkg-buildpackage: info: source package pantalaimon
> dpkg-buildpackage: info: source version 0.8.0-2
> dpkg-buildpackage: info: source distribution unstable
> dpkg-buildpackage: info: source changed by Jonas Smedegaard <dr at jones.dk>
>  dpkg-source --before-build .
> dpkg-buildpackage: info: host architecture amd64
>  debian/rules clean
> dh clean
>    dh_testdir
>    dh_auto_clean
> I: pybuild base:232: python3.9 setup.py clean 
> running clean
> removing '/<<PKGBUILDDIR>>/.pybuild/cpython3_3.9/build' (and everything under it)
> 'build/bdist.linux-x86_64' does not exist -- can't clean it
> 'build/scripts-3.9' does not exist -- can't clean it
>    dh_autoreconf_clean
>    dh_clean
>  dpkg-source -b .
> dpkg-source: info: using source format '3.0 (quilt)'
> dpkg-source: info: building pantalaimon using existing ./pantalaimon_0.8.0.orig.tar.gz
> dpkg-source: info: using patch list from debian/patches/series
> dpkg-source: info: building pantalaimon in pantalaimon_0.8.0-2.debian.tar.xz
> dpkg-source: info: building pantalaimon in pantalaimon_0.8.0-2.dsc
>  debian/rules binary
> dh binary
>    dh_testdir
>    dh_update_autotools_config
>    dh_autoreconf
>    dh_auto_configure
> I: pybuild base:232: python3.9 setup.py config 
> running config
>    dh_auto_build
> I: pybuild base:232: /usr/bin/python3 setup.py build 
> running build
> running build_py
> creating /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9/build/pantalaimon
> copying pantalaimon/panctl.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9/build/pantalaimon
> copying pantalaimon/daemon.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9/build/pantalaimon
> copying pantalaimon/__init__.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9/build/pantalaimon
> copying pantalaimon/index.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9/build/pantalaimon
> copying pantalaimon/store.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9/build/pantalaimon
> copying pantalaimon/client.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9/build/pantalaimon
> copying pantalaimon/thread_messages.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9/build/pantalaimon
> copying pantalaimon/config.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9/build/pantalaimon
> copying pantalaimon/ui.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9/build/pantalaimon
> copying pantalaimon/log.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9/build/pantalaimon
> copying pantalaimon/main.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9/build/pantalaimon
>    dh_auto_test
> I: pybuild base:232: cd /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9/build; python3.9 -m pytest tests
> ============================= test session starts ==============================
> platform linux -- Python 3.9.1+, pytest-6.0.2, py-1.10.0, pluggy-0.13.0
> rootdir: /<<PKGBUILDDIR>>
> collected 16 items
> 
> tests/pan_client_test.py ..ss.                                           [ 31%]
> tests/proxy_test.py .....                                                [ 62%]
> tests/store_test.py ...Fs.                                               [100%]
> 
> =================================== FAILURES ===================================
> _________________________ TestClass.test_fetcher_tasks _________________________
> 
> self = <store_test.TestClass object at 0x7f6a17d243d0>
> panstore_with_users = PanStore(store_path='/tmp/tmpeylexotu', database_name='pan.db', database=<peewee.SqliteDatabase object at 0x7f6a18766040>, database_path='/tmp/tmpeylexotu/pan.db')
> 
>     def test_fetcher_tasks(self, panstore_with_users):
>         panstore = panstore_with_users
>         accounts = panstore.load_all_users()
>         user, _ = accounts[0]
>     
>         task = FetchTask(TEST_ROOM, "abc1234")
>         task2 = FetchTask(TEST_ROOM2, "abc1234")
>     
> >       assert not panstore.load_fetcher_tasks("example", user)
> 
> tests/store_test.py:113: 
> _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
> pantalaimon/store.py:230: in load_fetcher_tasks
>     server = Servers.get(name=server)
> /usr/lib/python3/dist-packages/peewee.py:6430: in get
>     return sq.get()
> /usr/lib/python3/dist-packages/peewee.py:6860: in get
>     return clone.execute(database)[0]
> _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
> 
> self = <peewee.ModelSelect object at 0x7f6a18831580>, database = None, args = ()
> kwargs = {}
> 
>     @wraps(method)
>     def inner(self, database=None, *args, **kwargs):
>         database = self._database if database is None else database
>         if not database:
> >           raise InterfaceError('Query must be bound to a database in order '
>                                  'to call "%s".' % method.__name__)
> E           peewee.InterfaceError: Query must be bound to a database in order to call "execute".
> 
> /usr/lib/python3/dist-packages/peewee.py:1896: InterfaceError
> =============================== warnings summary ===============================
> .pybuild/cpython3_3.9/build/tests/pan_client_test.py: 5 warnings
> .pybuild/cpython3_3.9/build/tests/proxy_test.py: 10 warnings
>   /usr/lib/python3/dist-packages/janus/__init__.py:39: DeprecationWarning: The loop argument is deprecated since Python 3.8, and scheduled for removal in Python 3.10.
>     self._async_mutex = asyncio.Lock(loop=loop)
> 
> .pybuild/cpython3_3.9/build/tests/pan_client_test.py: 5 warnings
> .pybuild/cpython3_3.9/build/tests/proxy_test.py: 10 warnings
>   /usr/lib/python3/dist-packages/janus/__init__.py:40: DeprecationWarning: The loop argument is deprecated since Python 3.8, and scheduled for removal in Python 3.10.
>     self._async_not_empty = asyncio.Condition(self._async_mutex, loop=loop)
> 
> .pybuild/cpython3_3.9/build/tests/pan_client_test.py: 5 warnings
> .pybuild/cpython3_3.9/build/tests/proxy_test.py: 10 warnings
>   /usr/lib/python3/dist-packages/janus/__init__.py:41: DeprecationWarning: The loop argument is deprecated since Python 3.8, and scheduled for removal in Python 3.10.
>     self._async_not_full = asyncio.Condition(self._async_mutex, loop=loop)
> 
> .pybuild/cpython3_3.9/build/tests/pan_client_test.py: 5 warnings
> .pybuild/cpython3_3.9/build/tests/proxy_test.py: 10 warnings
>   /usr/lib/python3/dist-packages/janus/__init__.py:42: DeprecationWarning: The loop argument is deprecated since Python 3.8, and scheduled for removal in Python 3.10.
>     self._finished = asyncio.Event(loop=self._loop)
> 
> -- Docs: https://docs.pytest.org/en/stable/warnings.html
> =========================== short test summary info ============================
> FAILED tests/store_test.py::TestClass::test_fetcher_tasks - peewee.InterfaceE...
> ============= 1 failed, 12 passed, 3 skipped, 60 warnings in 3.88s =============
> E: pybuild pybuild:353: test: plugin distutils failed with: exit code=1: cd /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9/build; python3.9 -m pytest tests
> dh_auto_test: error: pybuild --test --test-pytest -i python{version} -p 3.9 returned exit code 13

The full build log is available from:
   http://qa-logs.debian.net/2021/01/20/pantalaimon_0.8.0-2_unstable.log

A list of current common problems and possible solutions is available at
http://wiki.debian.org/qa.debian.org/FTBFS . You're welcome to contribute!

If you reassign this bug to another package, please marking it as 'affects'-ing
this package. See https://www.debian.org/Bugs/server-control#affects

If you fail to reproduce this, please provide a build log and diff it with me
so that we can identify if something relevant changed in the meantime.

About the archive rebuild: The rebuild was done on EC2 VM instances from
Amazon Web Services, using a clean, minimal and up-to-date chroot. Every
failed build was retried once to eliminate random failures.



More information about the Pkg-matrix-maintainers mailing list