#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

#1098529#37
Date:
2026-07-21 06:54:57 UTC
From:
To:
Hi,

Since this has been raised to serious now, I will switch kiwi from anymarkup
to anymarkup-core in coordination with kiwi upstream. I don't think it's worth
fixing it.

In the mean time, I might just skip the test "test_no_arguments" like openSUSE
does [1].

Adrian

#1098529#42
Date:
2026-07-21 21:48:59 UTC
From:
To:
We believe that the bug you reported is fixed in the latest version of
anymarkup, which is due to be installed in the Debian FTP archive.

A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to 1098529@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
John Paul Adrian Glaubitz <glaubitz@physik.fu-berlin.de> (supplier of updated anymarkup package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing ftpmaster@ftp-master.debian.org)
Format: 1.8
Date: Tue, 21 Jul 2026 23:23:19 +0200
Source: anymarkup
Architecture: source
Version: 0.8.1-3
Distribution: unstable
Urgency: medium
Maintainer: John Paul Adrian Glaubitz <glaubitz@physik.fu-berlin.de>
Changed-By: John Paul Adrian Glaubitz <glaubitz@physik.fu-berlin.de>
Closes: 1098529
Changes:
 anymarkup (0.8.1-3) unstable; urgency=medium
 .
   * Skip test_no_arguments test in debian/rules (Closes: #1098529)
Checksums-Sha1:
 eac94f81386b63062cc5a982dd9c34f0977bf69f 2049 anymarkup_0.8.1-3.dsc
 c53f7fb2983ec1af0e0d940890524d7141627a11 2148 anymarkup_0.8.1-3.debian.tar.xz
 73f9879c446d8f2d38a0f597990e6fc45a8247a6 7113 anymarkup_0.8.1-3_amd64.buildinfo
Checksums-Sha256:
 3fbb981b0b6881bec2fde97c5ce1e0c89062a7961ae38891655c32ee9683ece0 2049 anymarkup_0.8.1-3.dsc
 3f9fda1449af169b9b91a2eb882eef0ef0a5721f9fc594c85096ee21e0d88ddc 2148 anymarkup_0.8.1-3.debian.tar.xz
 5254f78c1ce8ff23584c00565bad9fdec0f276cc82af7bf4d4895842eb7f11dd 7113 anymarkup_0.8.1-3_amd64.buildinfo
Files:
 7e45f6bdc8fc7558694e8098d5f76ba6 2049 python optional anymarkup_0.8.1-3.dsc
 446fbdc73071e888885a2d9595778365 2148 python optional anymarkup_0.8.1-3.debian.tar.xz
 e7fa606b8a6d0f31f10f9838622c1964 7113 python optional anymarkup_0.8.1-3_amd64.buildinfo
-----BEGIN PGP SIGNATURE-----

iQIzBAEBCgAdFiEEYv+KdYTgKVaVRgAGdCY7N/W1+RMFAmpf5AcACgkQdCY7N/W1
+ROcrg/8DUpttd4uOz59rEv2mb177vCVzUpmy1zia8B7WowRLojHL9hZpioID1cP
1YGr9A6lRGN1OJow0jy/cxvqFXD7Ov3zPrDCG9rFcOdX1vH++IRNqUBSkJ1Oc44H
EnSLOCpnzdvbetVOmeGZRD8LNl2wvQa6LPI1iN6SjJXaCz3QMs7+FWlwzUN4q8uw
8mFUo1bvGuNg5IHHGaePLRGmxo8aBs4Y2c2aUM5zo+uPHplqQJHxZO23S0vtc0kW
FivsYHmQRulmRkFtyE1RDgfKncTjNK2ejNMLWcoRa2zpqyFbM0m3Or+Im+X4MjCa
EmOKWBbbYiPtTAzRMBrx8dicoSn5E0+G/QwkS0UyaIHSs/qmeuv0ruURImLha9Z0
9K6M+LU7z8bbAFYz43DhvpJ921OCAJSCG5pH/UoL11yq9B/q/WKwM+usLlsgB3ug
kAH8kPz+0RGQWdkKY32S0vbsiPm+aXYKs8GVKWAZ3XpQIqdJkZr68d2RAVnJkJ37
tmEQFvx2AyWqHNnlRGP7Za0NcUEnrrXl0G1pkJ5LxzjZNHEsSXzCXPby8i94cC8T
3PbMLOjl7aEPmv3fieGsb9b3f9oEHzK8TPqGYKEO/OCCKQ5BYXOTeONsehWNYRu9
OB8L19oTDWJN8anb2Ccb3QMxTD7k2btKhJP7grRtFU+ha/OmMbU=
=G1Ov
-----END PGP SIGNATURE-----