Bug#1098595: python-click-plugins: FTBFS: test_register_and_run fails
Santiago Vila
sanvila at debian.org
Fri Feb 21 23:28:27 GMT 2025
Package: src:python-click-plugins
Version: 1.1.1-4
Severity: serious
Tags: ftbfs trixie sid
Dear maintainer:
During a rebuild of all packages in unstable, your package failed to build:
--------------------------------------------------------------------------------
[...]
debian/rules clean
dh clean --with python3 --buildsystem pybuild
dh_auto_clean -O--buildsystem=pybuild
I: pybuild base:311: python3.12 setup.py clean
running clean
removing '/<<PKGBUILDDIR>>/.pybuild/cpython3_3.12_click-plugins/build' (and everything under it)
'build/bdist.linux-x86_64' does not exist -- can't clean it
'build/scripts-3.12' does not exist -- can't clean it
I: pybuild base:311: python3.13 setup.py clean
running clean
removing '/<<PKGBUILDDIR>>/.pybuild/cpython3_3.13_click-plugins/build' (and everything under it)
'build/bdist.linux-x86_64' does not exist -- can't clean it
'build/scripts-3.13' does not exist -- can't clean it
dh_autoreconf_clean -O--buildsystem=pybuild
dh_clean -O--buildsystem=pybuild
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:311: python3.12 setup.py config
running config
I: pybuild base:311: python3.13 setup.py config
running config
dh_auto_build -O--buildsystem=pybuild
I: pybuild base:311: /usr/bin/python3.12 setup.py build
running build
running build_py
creating /<<PKGBUILDDIR>>/.pybuild/cpython3_3.12_click-plugins/build/click_plugins
copying click_plugins/core.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.12_click-plugins/build/click_plugins
copying click_plugins/__init__.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.12_click-plugins/build/click_plugins
running egg_info
creating click_plugins.egg-info
writing click_plugins.egg-info/PKG-INFO
writing dependency_links to click_plugins.egg-info/dependency_links.txt
writing requirements to click_plugins.egg-info/requires.txt
writing top-level names to click_plugins.egg-info/top_level.txt
writing manifest file 'click_plugins.egg-info/SOURCES.txt'
reading manifest file 'click_plugins.egg-info/SOURCES.txt'
reading manifest template 'MANIFEST.in'
adding license file 'LICENSE.txt'
adding license file 'AUTHORS.txt'
writing manifest file 'click_plugins.egg-info/SOURCES.txt'
I: pybuild base:311: /usr/bin/python3 setup.py build
running build
running build_py
creating /<<PKGBUILDDIR>>/.pybuild/cpython3_3.13_click-plugins/build/click_plugins
copying click_plugins/core.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.13_click-plugins/build/click_plugins
copying click_plugins/__init__.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.13_click-plugins/build/click_plugins
running egg_info
writing click_plugins.egg-info/PKG-INFO
writing dependency_links to click_plugins.egg-info/dependency_links.txt
writing requirements to click_plugins.egg-info/requires.txt
writing top-level names to click_plugins.egg-info/top_level.txt
reading manifest file 'click_plugins.egg-info/SOURCES.txt'
reading manifest template 'MANIFEST.in'
adding license file 'LICENSE.txt'
adding license file 'AUTHORS.txt'
writing manifest file 'click_plugins.egg-info/SOURCES.txt'
dh_auto_test -O--buildsystem=pybuild
I: pybuild pybuild:308: cp -r /<<PKGBUILDDIR>>/tests /<<PKGBUILDDIR>>/.pybuild/cpython3_3.12_click-plugins/build
I: pybuild base:311: cd /<<PKGBUILDDIR>>/.pybuild/cpython3_3.12_click-plugins/build; python3.12 -m pytest tests
============================= test session starts ==============================
platform linux -- Python 3.12.9, pytest-8.3.4, pluggy-1.5.0
rootdir: /<<PKGBUILDDIR>>
plugins: typeguard-4.4.1
collected 7 items
tests/test_plugins.py .FFF.FF [100%]
=================================== FAILURES ===================================
____________________________ test_register_and_run _____________________________
runner = <click.testing.CliRunner object at 0x7ff3e185b2c0>
def test_register_and_run(runner):
result = runner.invoke(good_cli)
> assert result.exit_code == 0
E assert 2 == 0
E + where 2 = <Result SystemExit(2)>.exit_code
tests/test_plugins.py:81: AssertionError
_________________________ test_broken_register_and_run _________________________
runner = <click.testing.CliRunner object at 0x7ff3e15f8a40>
def test_broken_register_and_run(runner):
result = runner.invoke(broken_cli)
> assert result.exit_code == 0
E assert 2 == 0
E + where 2 = <Result SystemExit(2)>.exit_code
tests/test_plugins.py:92: AssertionError
_______________________________ test_group_chain _______________________________
runner = <click.testing.CliRunner object at 0x7ff3e15f87a0>
def test_group_chain(runner):
# Attach a sub-group to a CLI and get execute it without arguments to make
# sure both the sub-group and all the parent group's commands are present
@good_cli.group()
def sub_cli():
"""Sub CLI."""
pass
result = runner.invoke(good_cli)
> assert result.exit_code == 0
E assert 2 == 0
E + where 2 = <Result SystemExit(2)>.exit_code
tests/test_plugins.py:111: AssertionError
____________________ test_broken_register_and_run_with_help ____________________
runner = <click.testing.CliRunner object at 0x7ff3e15f9550>
def test_broken_register_and_run_with_help(runner):
result = runner.invoke(broken_cli)
> assert result.exit_code == 0
E assert 2 == 0
E + where 2 = <Result SystemExit(2)>.exit_code
tests/test_plugins.py:145: AssertionError
____________________ test_broken_register_and_run_with_args ____________________
runner = <click.testing.CliRunner object at 0x7ff3e15fa060>
def test_broken_register_and_run_with_args(runner):
result = runner.invoke(broken_cli)
> assert result.exit_code == 0
E assert 2 == 0
E + where 2 = <Result SystemExit(2)>.exit_code
tests/test_plugins.py:156: AssertionError
=============================== warnings summary ===============================
tests/test_plugins.py:1
/<<PKGBUILDDIR>>/.pybuild/cpython3_3.12_click-plugins/build/tests/test_plugins.py:1: DeprecationWarning: pkg_resources is deprecated as an API. See https://setuptools.pypa.io/en/latest/pkg_resources.html
from pkg_resources import EntryPoint
-- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html
=========================== short test summary info ============================
FAILED tests/test_plugins.py::test_register_and_run - assert 2 == 0
FAILED tests/test_plugins.py::test_broken_register_and_run - assert 2 == 0
FAILED tests/test_plugins.py::test_group_chain - assert 2 == 0
FAILED tests/test_plugins.py::test_broken_register_and_run_with_help - assert...
FAILED tests/test_plugins.py::test_broken_register_and_run_with_args - assert...
==================== 5 failed, 2 passed, 1 warning in 0.07s ====================
E: pybuild pybuild:389: test: plugin distutils failed with: exit code=1: cd /<<PKGBUILDDIR>>/.pybuild/cpython3_3.12_click-plugins/build; python3.12 -m pytest tests
I: pybuild pybuild:308: cp -r /<<PKGBUILDDIR>>/tests /<<PKGBUILDDIR>>/.pybuild/cpython3_3.13_click-plugins/build
I: pybuild base:311: cd /<<PKGBUILDDIR>>/.pybuild/cpython3_3.13_click-plugins/build; python3.13 -m pytest tests
============================= test session starts ==============================
platform linux -- Python 3.13.2, pytest-8.3.4, pluggy-1.5.0
rootdir: /<<PKGBUILDDIR>>
plugins: typeguard-4.4.1
collected 7 items
tests/test_plugins.py .FFF.FF [100%]
=================================== FAILURES ===================================
____________________________ test_register_and_run _____________________________
runner = <click.testing.CliRunner object at 0x7fa4005bf230>
def test_register_and_run(runner):
result = runner.invoke(good_cli)
> assert result.exit_code == 0
E assert 2 == 0
E + where 2 = <Result SystemExit(2)>.exit_code
tests/test_plugins.py:81: AssertionError
_________________________ test_broken_register_and_run _________________________
runner = <click.testing.CliRunner object at 0x7fa400410f50>
def test_broken_register_and_run(runner):
result = runner.invoke(broken_cli)
> assert result.exit_code == 0
E assert 2 == 0
E + where 2 = <Result SystemExit(2)>.exit_code
tests/test_plugins.py:92: AssertionError
_______________________________ test_group_chain _______________________________
runner = <click.testing.CliRunner object at 0x7fa400411d10>
def test_group_chain(runner):
# Attach a sub-group to a CLI and get execute it without arguments to make
# sure both the sub-group and all the parent group's commands are present
@good_cli.group()
def sub_cli():
"""Sub CLI."""
pass
result = runner.invoke(good_cli)
> assert result.exit_code == 0
E assert 2 == 0
E + where 2 = <Result SystemExit(2)>.exit_code
tests/test_plugins.py:111: AssertionError
____________________ test_broken_register_and_run_with_help ____________________
runner = <click.testing.CliRunner object at 0x7fa400597490>
def test_broken_register_and_run_with_help(runner):
result = runner.invoke(broken_cli)
> assert result.exit_code == 0
E assert 2 == 0
E + where 2 = <Result SystemExit(2)>.exit_code
tests/test_plugins.py:145: AssertionError
____________________ test_broken_register_and_run_with_args ____________________
runner = <click.testing.CliRunner object at 0x7fa400597a80>
def test_broken_register_and_run_with_args(runner):
result = runner.invoke(broken_cli)
> assert result.exit_code == 0
E assert 2 == 0
E + where 2 = <Result SystemExit(2)>.exit_code
tests/test_plugins.py:156: AssertionError
=============================== warnings summary ===============================
tests/test_plugins.py:1
/<<PKGBUILDDIR>>/.pybuild/cpython3_3.13_click-plugins/build/tests/test_plugins.py:1: DeprecationWarning: pkg_resources is deprecated as an API. See https://setuptools.pypa.io/en/latest/pkg_resources.html
from pkg_resources import EntryPoint
-- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html
=========================== short test summary info ============================
FAILED tests/test_plugins.py::test_register_and_run - assert 2 == 0
FAILED tests/test_plugins.py::test_broken_register_and_run - assert 2 == 0
FAILED tests/test_plugins.py::test_group_chain - assert 2 == 0
FAILED tests/test_plugins.py::test_broken_register_and_run_with_help - assert...
FAILED tests/test_plugins.py::test_broken_register_and_run_with_args - assert...
==================== 5 failed, 2 passed, 1 warning in 0.06s ====================
E: pybuild pybuild:389: test: plugin distutils failed with: exit code=1: cd /<<PKGBUILDDIR>>/.pybuild/cpython3_3.13_click-plugins/build; python3.13 -m pytest tests
dh_auto_test: error: pybuild --test -i python{version} -p "3.12 3.13" returned exit code 13
make: *** [debian/rules:13: binary] Error 25
dpkg-buildpackage: error: debian/rules binary subprocess returned exit status 2
--------------------------------------------------------------------------------
The above is just how the build ends and not necessarily the most relevant part.
If required, the full build log is available here:
https://people.debian.org/~sanvila/build-logs/202502/
About the archive rebuild: The build was made on virtual machines from AWS,
using sbuild and a reduced chroot with only build-essential packages.
If you could not reproduce the bug please contact me privately, as I
am willing to provide ssh access to a virtual machine where the bug is
fully reproducible.
If this is really a bug in one of the build-depends, please use
reassign and add an affects on src:python-click-plugins, so that this is still
visible in the BTS web page for this package.
Thanks.
More information about the Pkg-grass-devel
mailing list