#1098529 anymarkup: FTBFS: E assert 2 == 0

#1098529#5
Date:
2025-02-21 23:26:09 UTC
From:
To:
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_anymarkup/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_anymarkup/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_anymarkup/build/anymarkup
copying anymarkup/cli.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.12_anymarkup/build/anymarkup
copying anymarkup/__init__.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.12_anymarkup/build/anymarkup
I: pybuild base:311: /usr/bin/python3 setup.py build
running build
running build_py
creating /<<PKGBUILDDIR>>/.pybuild/cpython3_3.13_anymarkup/build/anymarkup
copying anymarkup/cli.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.13_anymarkup/build/anymarkup
copying anymarkup/__init__.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.13_anymarkup/build/anymarkup
   dh_auto_test -O--buildsystem=pybuild
I: pybuild base:311: cd /<<PKGBUILDDIR>>/.pybuild/cpython3_3.12_anymarkup/build; python3.12 -m pytest test
============================= 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 25 items

test/test_cli.py F.....                                                  [ 24%]
test/test_cli_ini.py .....                                               [ 44%]
test/test_cli_json.py ...                                                [ 56%]
test/test_cli_json5.py ...                                               [ 68%]
test/test_cli_toml.py ...                                                [ 80%]
test/test_cli_xml.py ..                                                  [ 88%]
test/test_cli_yaml.py ..                                                 [ 96%]
test/test_imports.py .                                                   [100%]

=================================== FAILURES ===================================

E       assert 2 == 0
E        +  where 2 = <Result SystemExit(2)>.exit_code

test/test_cli.py:17: AssertionError
=========================== short test summary info ============================
FAILED test/test_cli.py::TestCli::test_no_arguments - assert 2 == 0
========================= 1 failed, 24 passed in 0.16s =========================
E: pybuild pybuild:389: test: plugin distutils failed with: exit code=1: cd /<<PKGBUILDDIR>>/.pybuild/cpython3_3.12_anymarkup/build; python3.12 -m pytest test
I: pybuild base:311: cd /<<PKGBUILDDIR>>/.pybuild/cpython3_3.13_anymarkup/build; python3.13 -m pytest test
============================= 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 25 items

test/test_cli.py F.....                                                  [ 24%]
test/test_cli_ini.py .....                                               [ 44%]
test/test_cli_json.py ...                                                [ 56%]
test/test_cli_json5.py ...                                               [ 68%]
test/test_cli_toml.py ...                                                [ 80%]
test/test_cli_xml.py ..                                                  [ 88%]
test/test_cli_yaml.py ..                                                 [ 96%]
test/test_imports.py .                                                   [100%]

=================================== FAILURES ===================================

E       assert 2 == 0
E        +  where 2 = <Result SystemExit(2)>.exit_code

test/test_cli.py:17: AssertionError
=========================== short test summary info ============================
FAILED test/test_cli.py::TestCli::test_no_arguments - assert 2 == 0
========================= 1 failed, 24 passed in 0.15s =========================
E: pybuild pybuild:389: test: plugin distutils failed with: exit code=1: cd /<<PKGBUILDDIR>>/.pybuild/cpython3_3.13_anymarkup/build; python3.13 -m pytest test
dh_auto_test: error: pybuild --test --test-pytest -i python{version} -p "3.12 3.13" returned exit code 13
make: *** [debian/rules:6: 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:anymarkup, so that this is still
visible in the BTS web page for this package.

Thanks.

#1098529#10
Date:
2025-03-02 07:35:14 UTC
From:
To:
Hello Santiago,

I cannot reproduce the bug in a freshly created unstable chroot, so I'm lowering the
severity for the time being. Please let me know how to reproduce the issue.

FWIW, python-anymarkup also builds fine in openSUSE Tumbleweed with Python 3.13 where
it is regularly rebuild to check for build regressions [1].

Adrian

#1098529#17
Date:
2025-03-02 09:55:40 UTC
From:
To:
retitle 1098529 anymarkup: will FTBFS with click 8.2
thanks

El 2/3/25 a las 8:35, John Paul Adrian Glaubitz escribió:

The issue was reproducible at the date I reported it, so I used debbisect
to see why it does not fail anymore:

bisection finished successfully
   last bad timestamp: 20250228T151043Z
   first good timestamp: 20250228T210243Z
the following packages differ between the last good and first bad timestamp:
   apt 2.9.30 -> 2.9.31
   libapt-pkg7.0:amd64 2.9.30 -> 2.9.31
   python3-click 8.2.0-1 -> 8.2.0+0.really.8.1.8-1

AFAIK, click 8.2.0 was known to break too many packages so it was
reverted for trixie.

I'm keeping the bug open (with the lower severity) because this issue
will be back eventually.

Thanks.

#1098529#24
Date:
2025-03-02 09:57:43 UTC
From:
To:
Hi Santiago,

Thanks for the bisect, this information is very useful. It might be a good idea
to forward this bug report to anymarkup upstream.

I agree.

Adrian