- Package:
- src:pytest-httpbin
- Source:
- src:pytest-httpbin
- Submitter:
- Santiago Vila
- Date:
- 2026-05-31 17:35:02 UTC
- Severity:
- normal
- Tags:
Dear maintainer: During a rebuild of all packages in trixie, this package failed to build. Below you will find the last part of the build log (probably the most relevant part, but not necessarily). If required, the full build log is available here: https://people.debian.org/~sanvila/build-logs/trixie/ Note: I managed to fix this by applying this simple patch: --- a/pytest_httpbin/serve.py +++ b/pytest_httpbin/serve.py @@ -68,8 +68,8 @@ class SecureWSGIServer(WSGIServer): address, ) except Exception as e: - print("pytest-httpbin server hit an exception serving request: %s" % e) - print("attempting to ignore so the rest of the tests can run") + print("pytest-httpbin server hit an exception serving request: %s" % e, flush=True) + print("attempting to ignore so the rest of the tests can run", flush=True) raise def setup_environ(self): which I also forwarded upstream: https://github.com/kevin1024/pytest-httpbin/pull/100 The test failure does not seem to happen in forky/sid, but I believe the patch is correct anyway, so my plan is to apply the patch in unstable first (for completeness), and then make an upload for stable-proposed-updates. Note: If you want to reproduce this in trixie, please try GRUB_CMDLINE_LINUX="nr_cpus=1" first, as the probability of failure seems to be a lot higher that way. 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 cannot 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:pytest-httpbin, so that this is still visible in the BTS web page for this package. Thanks.-------------------------------------------------------------------------------- [...] tests/test_server.py::test_dont_crash_on_handshake_timeout pytest-httpbin server hit an exception serving request: _ssl.c:1012: The handshake operation timed out attempting to ignore so the rest of the tests can run FAILED =================================== FAILURES =================================== re.match( r"pytest-httpbin server hit an exception serving request:.* The " "handshake operation timed out\nattempting to ignore so the rest " "of the tests can run\n", capsys.readouterr().out, ) is not None ) E AssertionError: assert None is not None E + where None = <function match at 0x7f2c84d8a8e0>('pytest-httpbin server hit an exception serving request:.* The handshake operation timed out\nattempting to ignore so the rest of the tests can run\n', '') E + where <function match at 0x7f2c84d8a8e0> = re.match E + and '' = CaptureResult(out='', err='').out E + where CaptureResult(out='', err='') = readouterr() E + where readouterr = <_pytest.capture.CaptureFixture object at 0x7f2c82884050>.readouterr tests/test_server.py:63: AssertionError =========================== short test summary info ============================ FAILED tests/test_server.py::test_dont_crash_on_handshake_timeout - Assertion... !!!!!!!!!!!!!!!!!!!!!!!!!! stopping after 1 failures !!!!!!!!!!!!!!!!!!!!!!!!!!! ========================= 1 failed, 19 passed in 2.17s ========================= E: pybuild pybuild:389: test: plugin custom failed with: exit code=1: python3.13 -m pytest -v -x -s dh_auto_test: error: pybuild --test --test-pytest -i python{version} -p 3.13 returned exit code 13 make[1]: *** [debian/rules:15: override_dh_auto_install] Error 25 make[1]: Leaving directory '/<<PKGBUILDDIR>>' make: *** [debian/rules:9: binary] Error 2 dpkg-buildpackage: error: debian/rules binary subprocess returned exit status 2 --------------------------------------------------------------------------------
Hello, Bug #1137653 in pytest-httpbin reported by you has been fixed in the Git repository and is awaiting an upload. You can see the commit message below and you can check the diff of the fix at: https://salsa.debian.org/python-team/packages/pytest-httpbin/-/commit/edbd1f27de65aa7dbf8eaedfe7eefb977ce167ec (this message was generated automatically) -- Greetings https://bugs.debian.org/1137653
We believe that the bug you reported is fixed in the latest version of pytest-httpbin, 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 1137653@bugs.debian.org, and the maintainer will reopen the bug report if appropriate. Debian distribution maintenance software pp. Santiago Vila <sanvila@debian.org> (supplier of updated pytest-httpbin 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: Sun, 31 May 2026 17:35:00 +0200 Source: pytest-httpbin Architecture: source Version: 2.1.0-3 Distribution: unstable Urgency: medium Maintainer: Debian Python Team <team+python@tracker.debian.org> Changed-By: Santiago Vila <sanvila@debian.org> Closes: 1137653 Changes: pytest-httpbin (2.1.0-3) unstable; urgency=medium . * Team upload. * Fix flaky test. Closes: #1137653. * Drop "Priority: optional" (default). * Update standards-version. * Fine-tune salsa-ci.yml. Checksums-Sha1: 1417bdb63cc3a430a7295ab3e40228785ce1f179 1948 pytest-httpbin_2.1.0-3.dsc 1b552d29451b54bdac3d827ffd3185e732d8ee73 5588 pytest-httpbin_2.1.0-3.debian.tar.xz ac0fbc89a1fb92f355892ccbf14bf3e8aefbeebe 6519 pytest-httpbin_2.1.0-3_source.buildinfo Checksums-Sha256: b84d904633bb0cf306f776fc591053b34f30511855b4d420ee59b4b37007c746 1948 pytest-httpbin_2.1.0-3.dsc 11e0bc1194d1900775c2532112e7bfee38e0cfb8425990b5accc40d96f518dac 5588 pytest-httpbin_2.1.0-3.debian.tar.xz d89403d5d42c0d558d1fa1c12f6b67e4c45ca95b90bb0a57f77831284f531c1a 6519 pytest-httpbin_2.1.0-3_source.buildinfo Files: 84ebed9c023efa00baa5d8da4c6c4584 1948 python optional pytest-httpbin_2.1.0-3.dsc a14e90fdfc5ef8e41949cb48b592e70f 5588 python optional pytest-httpbin_2.1.0-3.debian.tar.xz 3968fff2a810310cbfa360a140141e1d 6519 python optional pytest-httpbin_2.1.0-3_source.buildinfo -----BEGIN PGP SIGNATURE----- iQEzBAEBCgAdFiEE1Uw7+v+wQt44LaXXQc5/C58bizIFAmocVg4ACgkQQc5/C58b izI4Swf/SpEK/tnNfeDnmB+vJ1qkbDU7Lc7G3gfrzRjD8NksUS5JbRK8YjiRByEe rc8SfMUmMQlai6fa2JH4VJlqi8O6D2bXs0QoqPmqsMKj9i9/Sef3mZYVApUlesuJ 6PjHZvx5Y9D6+70bGhCeyjxGDHfiruLVA0gppXlgzplJlDLXgW1UdJJnjoONd8Sj 19JKZsg4s4zE95UEthcGcgQcJgeIIoIEzp80mhOrsBVTi67o8EYM9TWZ8ceSsTfp uOOGdxlmHGOr90LZHTxzkmQ5w/Gr0NrYZqEkM/fJytenKgwyPxpavCc5X1/bBVE/ fV3/N6S+5XOIW9JlgBRC0JIpaDuHuw== =j82d -----END PGP SIGNATURE-----
reopen 1137653 tags 1137653 help thanks After some additional test I noticed that the simple patch does not fix the problem in trixie, so for now there will not be any upload for trixie-proposed-updates. The failure does not seem to happen when running sbuild interactively, only when it runs from a script which is a child of cron (i.e. inside my autobuilding setup). If somebody knows what's going on here, help is welcome. Thanks.
one getting those failures.
Hello, Bug #1137653 in pytest-httpbin reported by you has been fixed in the Git repository and is awaiting an upload. You can see the commit message below and you can check the diff of the fix at: https://salsa.debian.org/python-team/packages/pytest-httpbin/-/commit/def1c30ba7de2d3b309b57a9380c3dd458da4706 This reverts commit edbd1f27de65aa7dbf8eaedfe7eefb977ce167ec. ------------------------------------------------------------------------ (this message was generated automatically) -- Greetings https://bugs.debian.org/1137653
Hello, Bug #1137653 in pytest-httpbin reported by you has been fixed in the Git repository and is awaiting an upload. You can see the commit message below and you can check the diff of the fix at: https://salsa.debian.org/python-team/packages/pytest-httpbin/-/commit/f75bdf56eff7cd0384a2c392007966c7b006370b (this message was generated automatically) -- Greetings https://bugs.debian.org/1137653
We believe that the bug you reported is fixed in the latest version of pytest-httpbin, 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 1137653@bugs.debian.org, and the maintainer will reopen the bug report if appropriate. Debian distribution maintenance software pp. Santiago Vila <sanvila@debian.org> (supplier of updated pytest-httpbin 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: Sun, 31 May 2026 19:10:00 +0200 Source: pytest-httpbin Architecture: source Version: 2.1.0-4 Distribution: unstable Urgency: medium Maintainer: Debian Python Team <team+python@tracker.debian.org> Changed-By: Santiago Vila <sanvila@debian.org> Closes: 1137653 Changes: pytest-httpbin (2.1.0-4) unstable; urgency=medium . * Team upload. * Disable flaky test. Closes: #1137653. Checksums-Sha1: d7ab2f03b69a3f61c51c8b0660c60927db36214b 1948 pytest-httpbin_2.1.0-4.dsc 1faa534690fbe8254b9efaedb5cfa7752a0cb7c3 5556 pytest-httpbin_2.1.0-4.debian.tar.xz 29a2a25b969f5eb35631d124a4869da32d623891 6519 pytest-httpbin_2.1.0-4_source.buildinfo Checksums-Sha256: b36a7c3395a5a7b6c8d364472cdca81b77fbd2f7c40b40b6ab34eaf7f943636b 1948 pytest-httpbin_2.1.0-4.dsc e39841878fc6bfbe591277946e46ad1158a7876442f24307127ba5c13cb49b69 5556 pytest-httpbin_2.1.0-4.debian.tar.xz 869fb73c12e8a932c138948fd6ce6b6e7834150b5ea5ea9983735b14aecfa347 6519 pytest-httpbin_2.1.0-4_source.buildinfo Files: 91fd33b818cd0bdc9dc020087b9d7243 1948 python optional pytest-httpbin_2.1.0-4.dsc ee4f75387c72c11243abcb509dfe21f2 5556 python optional pytest-httpbin_2.1.0-4.debian.tar.xz a98f8a30934cb8e9df89d847ce8fe83e 6519 python optional pytest-httpbin_2.1.0-4_source.buildinfo -----BEGIN PGP SIGNATURE----- iQEzBAEBCgAdFiEE1Uw7+v+wQt44LaXXQc5/C58bizIFAmocbC0ACgkQQc5/C58b izIdhQgAjanpRymRwG8wHyxJeIAr1Pg+C4OGc/w4522rK8MmDb27zYFrRgC/r7XX U/EfNZmof27PV52++7RfN1/zel59O05Zbv/LtorSe9FcVKxbXYofdVIbEHKyBQ0f YuuPfkfSJ3o0954WpLXGlPwfZ2bamBrkSz/45jz/z7NSZE1Oaz63vYN8eBeaqMXz 3Z4Rw/qNTRXFy5EzmDgVOrOBca6YkBEkjXvVCHDf4nRiAiQs4n9xKFMQFWVfhXeD /y3P+OmiA15lnP13bUmVwLrk2ZmJZdjWAoTze1BaLs0QHkAAqfJKjMQu6lDAiCNz +FGigoBiCBezHbEPmd6X6dOEIOk7BA== =rk8E -----END PGP SIGNATURE-----