• Bug#1091947: python-click-option-group: FTBFS: FAILED tests/test_click_

    From Santiago Vila@21:1/5 to All on Thu Jan 2 19:20:04 2025
    Package: src:python-click-option-group
    Version: 0.5.6-1
    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.13 setup.py clean
    running clean
    removing '/<<PKGBUILDDIR>>/.pybuild/cpython3_3.13_click-option-group/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
    I: pybuild base:311: python3.12 setup.py clean
    running clean
    removing '/<<PKGBUILDDIR>>/.pybuild/cpython3_3.12_click-option-group/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
    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.13 setup.py config
    running config
    I: pybuild base:311: python3.12 setup.py config
    running config
    dh_auto_build -O--buildsystem=pybuild
    I: pybuild base:311: /usr/bin/python3.13 setup.py build
    running build
    running build_py
    creating /<<PKGBUILDDIR>>/.pybuild/cpython3_3.13_click-option-group/build/click_option_group
    copying click_option_group/_helpers.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.13_click-option-group/build/click_option_group
    copying click_option_group/_version.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.13_click-option-group/build/click_option_group
    copying click_option_group/__init__.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.13_click-option-group/build/click_option_group
    copying click_option_group/_core.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.13_click-option-group/build/click_option_group
    copying click_option_group/_decorators.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.13_click-option-group/build/click_option_group
    running egg_info
    creating click_option_group.egg-info
    writing click_option_group.egg-info/PKG-INFO
    writing dependency_links to click_option_group.egg-info/dependency_links.txt writing requirements to click_option_group.egg-info/requires.txt
    writing top-level names to click_option_group.egg-info/top_level.txt
    writing manifest file 'click_option_group.egg-info/SOURCES.txt'
    reading manifest file 'click_option_group.egg-info/SOURCES.txt'
    reading manifest template 'MANIFEST.in'
    adding license file 'LICENSE'
    writing manifest file 'click_option_group.egg-info/SOURCES.txt'
    copying click_option_group/py.typed -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.13_click-option-group/build/click_option_group
    I: pybuild base:311: /usr/bin/python3 setup.py build
    running build
    running build_py
    creating /<<PKGBUILDDIR>>/.pybuild/cpython3_3.12_click-option-group/build/click_option_group
    copying click_option_group/_helpers.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.12_click-option-group/build/click_option_group
    copying click_option_group/_version.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.12_click-option-group/build/click_option_group
    copying click_option_group/__init__.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.12_click-option-group/build/click_option_group
    copying click_option_group/_core.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.12_click-option-group/build/click_option_group
    copying click_option_group/_decorators.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.12_click-option-group/build/click_option_group
    running egg_info
    writing click_option_group.egg-info/PKG-INFO
    writing dependency_links to click_option_group.egg-info/dependency_links.txt writing requirements to click_option_group.egg-info/requires.txt
    writing top-level names to click_option_group.egg-info/top_level.txt
    reading manifest file 'click_option_group.egg-info/SOURCES.txt'
    reading manifest template 'MANIFEST.in'
    adding license file 'LICENSE'
    writing manifest file 'click_option_group.egg-info/SOURCES.txt'
    copying click_option_group/py.typed -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.12_click-option-group/build/click_option_group
    debian/rules override_dh_auto_test
    make[1]: Entering directory '/<<PKGBUILDDIR>>'
    dh_auto_test
    I: pybuild base:311: cd /<<PKGBUILDDIR>>/.pybuild/cpython3_3.13_click-option-group/build; python3.13 -m pytest tests
    ============================= test session starts ==============================
    platform linux -- Python 3.13.1, pytest-8.3.4, pluggy-1.5.0
    rootdir: /<<PKGBUILDDIR>>
    plugins: typeguard-4.4.1
    collected 31 items

    tests/test_click_option_group.py ...F........................... [100%]

    =================================== FAILURES ===================================
    ______________________ test_missing_group_decl_first_api _______________________

    runner = <click.testing.CliRunner object at 0x7f25af9d6e90>

    def test_missing_group_decl_first_api(runner):
    @click.command()
    @click.option('--hello1')
    @optgroup.option('--foo')
    @optgroup.option('--bar')
    @click.option('--hello2')
    def cli(**params):
    pass

    result = runner.invoke(cli, ['--help'])

    assert result.exception
    E assert None
    E + where None = <Result okay>.exception

    tests/test_click_option_group.py:111: AssertionError =========================== short test summary info ============================
    FAILED tests/test_click_option_group.py::test_missing_group_decl_first_api - ...
    ========================= 1 failed, 30 passed in 0.11s =========================
    E: pybuild pybuild:389: test: plugin distutils failed with: exit code=1: cd /<<PKGBUILDDIR>>/.pybuild/cpython3_3.13_click-option-group/build; python3.13 -m pytest tests
    I: pybuild base:311: cd /<<PKGBUILDDIR>>/.pybuild/cpython3_3.12_click-option-group/build; python3.12 -m pytest tests
    ============================= test session starts ==============================
    platform linux -- Python 3.12.8, pytest-8.3.4, pluggy-1.5.0
    rootdir: /<<PKGBUILDDIR>>
    plugins: typeguard-4.4.1
    collected 31 items

    tests/test_click_option_group.py ...F........................... [100%]

    =================================== FAILURES ===================================
    ______________________ test_missing_group_decl_first_api _______________________

    runner = <click.testing.CliRunner object at 0x7f31ff589730>

    def test_missing_group_decl_first_api(runner):
    @click.command()
    @click.option('--hello1')
    @optgroup.option('--foo')
    @optgroup.option('--bar')
    @click.option('--hello2')
    def cli(**params):
    pass

    result = runner.invoke(cli, ['--help'])

    assert result.exception
    E assert None
    E + where None = <Result okay>.exception

    tests/test_click_option_group.py:111: AssertionError =========================== short test summary info ============================
    FAILED tests/test_click_option_group.py::test_missing_group_decl_first_api - ...
    ========================= 1 failed, 30 passed in 0.12s =========================
    E: pybuild pybuild:389: test: plugin distutils failed with: exit code=1: cd /<<PKGBUILDDIR>>/.pybuild/cpython3_3.12_click-option-group/build; python3.12 -m pytest tests
    dh_auto_test: error: pybuild --test --test-pytest -i python{version} -p "3.13 3.12" returned exit code 13
    make[1]: *** [debian/rules:9: override_dh_auto_test] Error 25
    make[1]: Leaving directory '/<<PKGBUILDDIR>>'
    make: *** [debian/rules:5: binary] Error 2
    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/202501/

    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-option-group, so that this is still
    visible in the BTS web page for this package.

    Thanks.

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