Source: sadisplay
Version: 0.4.9-1.1
Severity: serious
Justification: FTBFS
Tags: bookworm sid ftbfs
User: lu...@debian.org
Usertags: ftbfs-20211023 ftbfs-bookworm

Hi,

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


Relevant part (hopefully):
>  debian/rules build
> dh /usr/share/openstack-pkg-tools/pkgos.make --buildsystem=pybuild --with 
> python3
> dh: error: Unknown sequence /usr/share/openstack-pkg-tools/pkgos.make (choose 
> from: binary binary-arch binary-indep build build-arch build-indep clean 
> install install-arch install-indep)
> dh build --buildsystem=pybuild --with python3
>    dh_update_autotools_config -O--buildsystem=pybuild
>    dh_autoreconf -O--buildsystem=pybuild
>    dh_auto_configure -O--buildsystem=pybuild
> I: pybuild base:232: python3.9 setup.py config 
> running config
>    dh_auto_build -O--buildsystem=pybuild
> I: pybuild base:232: /usr/bin/python3 setup.py build 
> running build
> running build_py
> creating /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9_sadisplay/build/sadisplay
> copying sadisplay/__init__.py -> 
> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9_sadisplay/build/sadisplay
> copying sadisplay/describe.py -> 
> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9_sadisplay/build/sadisplay
> copying sadisplay/reflect.py -> 
> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9_sadisplay/build/sadisplay
> copying sadisplay/render.py -> 
> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9_sadisplay/build/sadisplay
>    dh_auto_test -O--buildsystem=pybuild
> I: pybuild pybuild:285: cp -r /<<PKGBUILDDIR>>/tests 
> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9_sadisplay/build/
> I: pybuild base:232: cd 
> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9_sadisplay/build; python3.9 -m pytest 
> tests
> ============================= test session starts 
> ==============================
> platform linux -- Python 3.9.7, pytest-6.2.5, py-1.10.0, pluggy-0.13.0
> rootdir: /<<PKGBUILDDIR>>
> collected 7 items
> 
> tests/test_describe.py F.F....                                           
> [100%]
> 
> =================================== FAILURES 
> ===================================
> ______________________________ test_single_mapper 
> ______________________________
> 
>     def test_single_mapper():
>     
>         objects, relations, inherits = sadisplay.describe([model.User])
>     
>         assert len(objects) == 1
>         assert relations == []
>         assert inherits == []
> >       assert objects[0] == {
>             'name':
>             model.User.__name__,
>             'cols': [
>                 ('INTEGER', 'id', 'pk'),
>                 ('VARCHAR(50)', 'name', None),
>             ],
>             'indexes': [{
>                 'cols': ['name', 'department'],
>                 'name': 'ix_username_department',
>             }],
>             'props': [
>                 'address',
>                 'books',
>             ],
>             'methods': [
>                 'login',
>             ],
>         }
> E       AssertionError: assert {'cols': [('I...: 'User', ...} == {'cols': 
> [('I...: 'User', ...}
> E         Omitting 4 identical items, use -vv to show
> E         Differing items:
> E         {'props': ['address']} != {'props': ['address', 'books']}
> E         Use -v to get the full diff
> 
> tests/test_describe.py:17: AssertionError
> ________________________________ test_inherits 
> _________________________________
> 
>     def test_inherits():
>     
>         objects, relations, inherits = sadisplay \
>             .describe([model.User, model.Admin, model.Manager])
>     
>         assert len(relations) == 0
>         assert len(objects) == 3
>         assert len(inherits) == 2
> >       assert objects[1] == {
>             'name':
>             model.Admin.__name__,
>             'cols': [
>                 ('INTEGER', 'id', 'pk'),
>                 ('VARCHAR(50)', 'name', None),
>                 ('VARCHAR(50)', 'phone', None),
>             ],
>             'indexes': [{
>                 'cols': ['name', 'department'],
>                 'name': 'ix_username_department',
>             }],
>             'props': [
>                 'address',
>                 'books',
>             ],
>             'methods': [
>                 'permissions',
>             ],
>         }
> E       AssertionError: assert {'cols': [('I... 'Admin', ...} == {'cols': 
> [('I... 'Admin', ...}
> E         Omitting 4 identical items, use -vv to show
> E         Differing items:
> E         {'props': ['address']} != {'props': ['address', 'books']}
> E         Use -v to get the full diff
> 
> tests/test_describe.py:74: AssertionError
> =============================== warnings summary 
> ===============================
> tests/model.py:61
>   /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9_sadisplay/build/tests/model.py:61: 
> SAWarning: implicitly coercing SELECT object to scalar subquery; please use 
> the .scalar_subquery() method to produce a scalar subquery.
>     department = column_property(
> 
> .pybuild/cpython3_3.9_sadisplay/build/tests/test_describe.py: 13 warnings
>   
> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9_sadisplay/build/sadisplay/describe.py:141:
>  SADeprecationWarning: Use .persist_selectable (deprecated since: 1.3)
>     if isinstance(mapper.mapped_table, Table):
> 
> .pybuild/cpython3_3.9_sadisplay/build/tests/test_describe.py: 13 warnings
>   
> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9_sadisplay/build/sadisplay/describe.py:142:
>  SADeprecationWarning: Use .persist_selectable (deprecated since: 1.3)
>     self.indexes = mapper.mapped_table.indexes
> 
> .pybuild/cpython3_3.9_sadisplay/build/tests/test_describe.py: 13 warnings
>   
> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9_sadisplay/build/sadisplay/describe.py:148:
>  SADeprecationWarning: Use .persist_selectable (deprecated since: 1.3)
>     self.table_name = str(mapper.mapped_table)
> 
> -- Docs: https://docs.pytest.org/en/stable/warnings.html
> =========================== short test summary info 
> ============================
> FAILED tests/test_describe.py::test_single_mapper - AssertionError: assert 
> {'...
> FAILED tests/test_describe.py::test_inherits - AssertionError: assert 
> {'cols'...
> =================== 2 failed, 5 passed, 40 warnings in 0.20s 
> ===================
> E: pybuild pybuild:354: test: plugin distutils failed with: exit code=1: cd 
> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9_sadisplay/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/10/23/sadisplay_0.4.9-1.1_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 mine
so that we can identify if something relevant changed in the meantime.

Reply via email to