• Bug#1066785: python-pytest-lazy-fixture: FTBFS: dh_auto_test: error: py

    From Lucas Nussbaum@21:1/5 to All on Wed Mar 13 16:10:03 2024
    Source: python-pytest-lazy-fixture
    Version: 0.6.3-2
    Severity: serious
    Justification: FTBFS
    Tags: trixie sid ftbfs
    User: lucas@debian.org
    Usertags: ftbfs-20240313 ftbfs-trixie

    Hi,

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


    Relevant part (hopefully):
    debian/rules binary
    dh binary --with python3 --buildsystem=pybuild
    dh_update_autotools_config -O--buildsystem=pybuild
    dh_autoreconf -O--buildsystem=pybuild
    dh_auto_configure -O--buildsystem=pybuild
    I: pybuild base:305: python3.12 setup.py config
    running config
    I: pybuild base:305: python3.11 setup.py config
    running config
    dh_auto_build -O--buildsystem=pybuild
    I: pybuild base:305: /usr/bin/python3.12 setup.py build
    running build
    running build_py
    copying pytest_lazyfixture.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.12_pytest-lazy-fixture/build
    I: pybuild base:305: /usr/bin/python3 setup.py build
    running build
    running build_py
    copying pytest_lazyfixture.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.11_pytest-lazy-fixture/build
    dh_auto_test -O--buildsystem=pybuild
    I: pybuild pybuild:308: cp -r /<<PKGBUILDDIR>>/tests /<<PKGBUILDDIR>>/.pybuild/cpython3_3.12_pytest-lazy-fixture/build
    I: pybuild base:305: cd /<<PKGBUILDDIR>>/.pybuild/cpython3_3.12_pytest-lazy-fixture/build; python3.12 -m pytest tests
    ============================= test session starts ==============================
    platform linux -- Python 3.12.2, pytest-8.0.2, pluggy-1.4.0
    rootdir: /<<PKGBUILDDIR>>
    collected 0 items / 1 error

    ==================================== ERRORS ====================================
    _ ERROR collecting .pybuild/cpython3_3.12_pytest-lazy-fixture/build/tests/test_lazyfixture.py _
    /usr/lib/python3/dist-packages/pluggy/_hooks.py:501: in __call__
    return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult)
    /usr/lib/python3/dist-packages/pluggy/_manager.py:119: in _hookexec
    return self._inner_hookexec(hook_name, methods, kwargs, firstresult) /usr/lib/python3/dist-packages/_pytest/python.py:278: in pytest_pycollect_makeitem
    return list(collector._genfunctions(name, obj)) /usr/lib/python3/dist-packages/_pytest/python.py:507: in _genfunctions
    self.ihook.pytest_generate_tests.call_extra(methods, dict(metafunc=metafunc))
    /usr/lib/python3/dist-packages/pluggy/_hooks.py:562: in call_extra
    return self._hookexec(self.name, hookimpls, kwargs, firstresult) /usr/lib/python3/dist-packages/pluggy/_manager.py:119: in _hookexec
    return self._inner_hookexec(hook_name, methods, kwargs, firstresult) pytest_lazyfixture.py:74: in pytest_generate_tests
    normalize_metafunc_calls(metafunc, 'funcargs')
    pytest_lazyfixture.py:81: in normalize_metafunc_calls
    calls = normalize_call(callspec, metafunc, valtype, used_keys) pytest_lazyfixture.py:105: in normalize_call
    valtype_keys = set(getattr(callspec, valtype).keys()) - used_keys
    E AttributeError: 'CallSpec2' object has no attribute 'funcargs' =============================== warnings summary ===============================
    ../../../../../../usr/lib/python3/dist-packages/_pytest/python.py:507
    /usr/lib/python3/dist-packages/_pytest/python.py:507: PluggyTeardownRaisedWarning: A plugin raised an exception during an old-style hookwrapper teardown.
    Plugin: pytest_lazyfixture, Hook: pytest_generate_tests
    AttributeError: 'CallSpec2' object has no attribute 'funcargs'
    For more information see https://pluggy.readthedocs.io/en/stable/api_reference.html#pluggy.PluggyTeardownRaisedWarning
    self.ihook.pytest_generate_tests.call_extra(methods, dict(metafunc=metafunc))

    -- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html =========================== short test summary info ============================
    ERROR tests/test_lazyfixture.py - AttributeError: 'CallSpec2' object has no a...
    !!!!!!!!!!!!!!!!!!!! Interrupted: 1 error during collection !!!!!!!!!!!!!!!!!!!!
    ========================= 1 warning, 1 error in 0.19s ==========================
    E: pybuild pybuild:389: test: plugin distutils failed with: exit code=2: cd /<<PKGBUILDDIR>>/.pybuild/cpython3_3.12_pytest-lazy-fixture/build; python3.12 -m pytest tests
    I: pybuild pybuild:308: cp -r /<<PKGBUILDDIR>>/tests /<<PKGBUILDDIR>>/.pybuild/cpython3_3.11_pytest-lazy-fixture/build
    I: pybuild base:305: cd /<<PKGBUILDDIR>>/.pybuild/cpython3_3.11_pytest-lazy-fixture/build; python3.11 -m pytest tests
    ============================= test session starts ==============================
    platform linux -- Python 3.11.8, pytest-8.0.2, pluggy-1.4.0
    rootdir: /<<PKGBUILDDIR>>
    collected 0 items / 1 error

    ==================================== ERRORS ====================================
    _ ERROR collecting .pybuild/cpython3_3.11_pytest-lazy-fixture/build/tests/test_lazyfixture.py _
    /usr/lib/python3/dist-packages/pluggy/_hooks.py:501: in __call__
    return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult)
    /usr/lib/python3/dist-packages/pluggy/_manager.py:119: in _hookexec
    return self._inner_hookexec(hook_name, methods, kwargs, firstresult) /usr/lib/python3/dist-packages/_pytest/python.py:278: in pytest_pycollect_makeitem
    return list(collector._genfunctions(name, obj)) /usr/lib/python3/dist-packages/_pytest/python.py:507: in _genfunctions
    self.ihook.pytest_generate_tests.call_extra(methods, dict(metafunc=metafunc))
    /usr/lib/python3/dist-packages/pluggy/_hooks.py:562: in call_extra
    return self._hookexec(self.name, hookimpls, kwargs, firstresult) /usr/lib/python3/dist-packages/pluggy/_manager.py:119: in _hookexec
    return self._inner_hookexec(hook_name, methods, kwargs, firstresult) pytest_lazyfixture.py:74: in pytest_generate_tests
    normalize_metafunc_calls(metafunc, 'funcargs')
    pytest_lazyfixture.py:81: in normalize_metafunc_calls
    calls = normalize_call(callspec, metafunc, valtype, used_keys) pytest_lazyfixture.py:105: in normalize_call
    valtype_keys = set(getattr(callspec, valtype).keys()) - used_keys
    E AttributeError: 'CallSpec2' object has no attribute 'funcargs' =============================== warnings summary ===============================
    ../../../../../../usr/lib/python3/dist-packages/_pytest/python.py:507
    /usr/lib/python3/dist-packages/_pytest/python.py:507: PluggyTeardownRaisedWarning: A plugin raised an exception during an old-style hookwrapper teardown.
    Plugin: pytest_lazyfixture, Hook: pytest_generate_tests
    AttributeError: 'CallSpec2' object has no attribute 'funcargs'
    For more information see https://pluggy.readthedocs.io/en/stable/api_reference.html#pluggy.PluggyTeardownRaisedWarning
    self.ihook.pytest_generate_tests.call_extra(methods, dict(metafunc=metafunc))

    -- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html =========================== short test summary info ============================
    ERROR tests/test_lazyfixture.py - AttributeError: 'CallSpec2' object has no a...
    !!!!!!!!!!!!!!!!!!!! Interrupted: 1 error during collection !!!!!!!!!!!!!!!!!!!!
    ========================= 1 warning, 1 error in 0.24s ==========================
    E: pybuild pybuild:389: test: plugin distutils failed with: exit code=2: cd /<<PKGBUILDDIR>>/.pybuild/cpython3_3.11_pytest-lazy-fixture/build; python3.11 -m pytest tests
    dh_auto_test: error: pybuild --test --test-pytest -i python{version} -p "3.12 3.11" returned exit code 13


    The full build log is available from: http://qa-logs.debian.net/2024/03/13/python-pytest-lazy-fixture_0.6.3-2_unstable.log

    All bugs filed during this archive rebuild are listed at: https://bugs.debian.org/cgi-bin/pkgreport.cgi?tag=ftbfs-20240313;users=lucas@debian.org
    or: https://udd.debian.org/bugs/?release=na&merged=ign&fnewerval=7&flastmodval=7&fusertag=only&fusertagtag=ftbfs-20240313&fusertaguser=lucas@debian.org&allbugs=1&cseverity=1&ctags=1&caffected=1#results

    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 mark 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.

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)