Diff of the two buildlogs: -- --- b1/build.log 2025-10-29 17:07:40.291343655 +0000 +++ b2/build.log 2025-10-29 17:10:47.299535890 +0000 @@ -1,6 +1,6 @@ I: pbuilder: network access will be disabled during build -I: Current time: Tue Dec 1 11:27:42 -12 2026 -I: pbuilder-time-stamp: 1796167662 +I: Current time: Thu Oct 30 07:07:45 +14 2025 +I: pbuilder-time-stamp: 1761757665 I: Building the build Environment I: extracting base tarball [/var/cache/pbuilder/forky-reproducible-base.tgz] I: copying local configuration @@ -22,53 +22,85 @@ dpkg-source: info: unpacking python-snitun_0.45.1-1.debian.tar.xz I: using fakeroot in build. I: Installing the build-deps -I: user script /srv/workspace/pbuilder/744023/tmp/hooks/D02_print_environment starting +I: user script /srv/workspace/pbuilder/2858638/tmp/hooks/D01_modify_environment starting +debug: Running on ionos1-amd64. +I: Changing host+domainname to test build reproducibility +I: Adding a custom variable just for the fun of it... +I: Changing /bin/sh to bash +'/bin/sh' -> '/bin/bash' +lrwxrwxrwx 1 root root 9 Oct 29 17:08 /bin/sh -> /bin/bash +I: Setting pbuilder2's login shell to /bin/bash +I: Setting pbuilder2's GECOS to second user,second room,second work-phone,second home-phone,second other +I: user script /srv/workspace/pbuilder/2858638/tmp/hooks/D01_modify_environment finished +I: user script /srv/workspace/pbuilder/2858638/tmp/hooks/D02_print_environment starting I: set - BUILDDIR='/build/reproducible-path' - BUILDUSERGECOS='first user,first room,first work-phone,first home-phone,first other' - BUILDUSERNAME='pbuilder1' - BUILD_ARCH='amd64' - DEBIAN_FRONTEND='noninteractive' - DEB_BUILD_OPTIONS='buildinfo=+all reproducible=+all parallel=42 ' - DISTRIBUTION='forky' - HOME='/root' - HOST_ARCH='amd64' + BASH=/bin/sh + BASHOPTS=checkwinsize:cmdhist:complete_fullquote:extquote:force_fignore:globasciiranges:globskipdots:hostcomplete:interactive_comments:patsub_replacement:progcomp:promptvars:sourcepath + BASH_ALIASES=() + BASH_ARGC=() + BASH_ARGV=() + BASH_CMDS=() + BASH_LINENO=([0]="12" [1]="0") + BASH_LOADABLES_PATH=/usr/local/lib/bash:/usr/lib/bash:/opt/local/lib/bash:/usr/pkg/lib/bash:/opt/pkg/lib/bash:. + BASH_SOURCE=([0]="/tmp/hooks/D02_print_environment" [1]="/tmp/hooks/D02_print_environment") + BASH_VERSINFO=([0]="5" [1]="3" [2]="3" [3]="1" [4]="release" [5]="x86_64-pc-linux-gnu") + BASH_VERSION='5.3.3(1)-release' + BUILDDIR=/build/reproducible-path + BUILDUSERGECOS='second user,second room,second work-phone,second home-phone,second other' + BUILDUSERNAME=pbuilder2 + BUILD_ARCH=amd64 + DEBIAN_FRONTEND=noninteractive + DEB_BUILD_OPTIONS='buildinfo=+all reproducible=+all parallel=40 ' + DIRSTACK=() + DISTRIBUTION=forky + EUID=0 + FUNCNAME=([0]="Echo" [1]="main") + GROUPS=() + HOME=/root + HOSTNAME=i-capture-the-hostname + HOSTTYPE=x86_64 + HOST_ARCH=amd64 IFS=' ' - INVOCATION_ID='fce3d9da1aae4690a72a02d70c8b480a' - LANG='C' - LANGUAGE='en_US:en' - LC_ALL='C' - MAIL='/var/mail/root' - OPTIND='1' - PATH='/usr/sbin:/usr/bin:/sbin:/bin:/usr/games' - PBCURRENTCOMMANDLINEOPERATION='build' - PBUILDER_OPERATION='build' - PBUILDER_PKGDATADIR='/usr/share/pbuilder' - PBUILDER_PKGLIBDIR='/usr/lib/pbuilder' - PBUILDER_SYSCONFDIR='/etc' - PPID='744023' - PS1='# ' - PS2='> ' + INVOCATION_ID=b589a79de4574c93954ffb066888db69 + LANG=C + LANGUAGE=et_EE:et + LC_ALL=C + MACHTYPE=x86_64-pc-linux-gnu + MAIL=/var/mail/root + OPTERR=1 + OPTIND=1 + OSTYPE=linux-gnu + PATH=/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/i/capture/the/path + PBCURRENTCOMMANDLINEOPERATION=build + PBUILDER_OPERATION=build + PBUILDER_PKGDATADIR=/usr/share/pbuilder + PBUILDER_PKGLIBDIR=/usr/lib/pbuilder + PBUILDER_SYSCONFDIR=/etc + PIPESTATUS=([0]="0") + POSIXLY_CORRECT=y + PPID=2858638 PS4='+ ' - PWD='/' - SHELL='/bin/bash' - SHLVL='2' - SUDO_COMMAND='/usr/bin/timeout -k 18.1h 18h /usr/bin/ionice -c 3 /usr/bin/nice /usr/sbin/pbuilder --build --configfile /srv/reproducible-results/rbuild-debian/r-b-build.5Ng7CjKy/pbuilderrc_r9y1 --distribution forky --hookdir /etc/pbuilder/first-build-hooks --debbuildopts -b --basetgz /var/cache/pbuilder/forky-reproducible-base.tgz --buildresult /srv/reproducible-results/rbuild-debian/r-b-build.5Ng7CjKy/b1 --logfile b1/build.log python-snitun_0.45.1-1.dsc' - SUDO_GID='111' - SUDO_HOME='/var/lib/jenkins' - SUDO_UID='106' - SUDO_USER='jenkins' - TERM='unknown' - TZ='/usr/share/zoneinfo/Etc/GMT+12' - USER='root' - _='/usr/bin/systemd-run' - http_proxy='http://213.165.73.152:3128' + PWD=/ + SHELL=/bin/bash + SHELLOPTS=braceexpand:errexit:hashall:interactive-comments:posix + SHLVL=3 + SUDO_COMMAND='/usr/bin/timeout -k 24.1h 24h /usr/bin/ionice -c 3 /usr/bin/nice -n 11 /usr/bin/unshare --uts -- /usr/sbin/pbuilder --build --configfile /srv/reproducible-results/rbuild-debian/r-b-build.5Ng7CjKy/pbuilderrc_Glo3 --distribution forky --hookdir /etc/pbuilder/rebuild-hooks --debbuildopts -b --basetgz /var/cache/pbuilder/forky-reproducible-base.tgz --buildresult /srv/reproducible-results/rbuild-debian/r-b-build.5Ng7CjKy/b2 --logfile b2/build.log python-snitun_0.45.1-1.dsc' + SUDO_GID=110 + SUDO_HOME=/var/lib/jenkins + SUDO_UID=105 + SUDO_USER=jenkins + TERM=unknown + TZ=/usr/share/zoneinfo/Etc/GMT-14 + UID=0 + USER=root + _='I: set' + http_proxy=http://46.16.76.132:3128 I: uname -a - Linux ionos15-amd64 6.12.48+deb13-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.12.48-1 (2025-09-20) x86_64 GNU/Linux + Linux i-capture-the-hostname 6.12.48+deb13-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.12.48-1 (2025-09-20) x86_64 GNU/Linux I: ls -l /bin - lrwxrwxrwx 1 root root 7 Aug 10 2025 /bin -> usr/bin -I: user script /srv/workspace/pbuilder/744023/tmp/hooks/D02_print_environment finished + lrwxrwxrwx 1 root root 7 Aug 10 12:30 /bin -> usr/bin +I: user script /srv/workspace/pbuilder/2858638/tmp/hooks/D02_print_environment finished -> Attempting to satisfy build-dependencies -> Creating pbuilder-satisfydepends-dummy package Package: pbuilder-satisfydepends-dummy @@ -211,7 +243,7 @@ Get: 81 http://deb.debian.org/debian forky/main amd64 python3-pytest-asyncio all 1.2.0-1 [13.3 kB] Get: 82 http://deb.debian.org/debian forky/main amd64 python3-pytest-aiohttp all 1.1.0-3 [6412 B] Get: 83 http://deb.debian.org/debian forky/main amd64 python3-pytest-timeout all 2.4.0-2 [22.3 kB] -Fetched 22.7 MB in 8s (2815 kB/s) +Fetched 22.7 MB in 1s (18.9 MB/s) Preconfiguring packages ... Selecting previously unselected package libexpat1:amd64. (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 19902 files and directories currently installed.) @@ -488,8 +520,8 @@ Setting up tzdata (2025b-5) ... Current default time zone: 'Etc/UTC' -Local time is now: Tue Dec 1 23:29:14 UTC 2026. -Universal Time is now: Tue Dec 1 23:29:14 UTC 2026. +Local time is now: Wed Oct 29 17:09:26 UTC 2025. +Universal Time is now: Wed Oct 29 17:09:26 UTC 2025. Run 'dpkg-reconfigure tzdata' if you wish to change it. Setting up autotools-dev (20240727.1) ... @@ -576,7 +608,11 @@ Solving dependencies... 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. I: Building the package -I: Running cd /build/reproducible-path/python-snitun-0.45.1/ && env PATH="/usr/sbin:/usr/bin:/sbin:/bin:/usr/games" HOME="/nonexistent/first-build" dpkg-buildpackage -us -uc -b && env PATH="/usr/sbin:/usr/bin:/sbin:/bin:/usr/games" HOME="/nonexistent/first-build" dpkg-genchanges -S > ../python-snitun_0.45.1-1_source.changes +I: user script /srv/workspace/pbuilder/2858638/tmp/hooks/A99_set_merged_usr starting +Not re-configuring usrmerge for forky +I: user script /srv/workspace/pbuilder/2858638/tmp/hooks/A99_set_merged_usr finished +hostname: Name or service not known +I: Running cd /build/reproducible-path/python-snitun-0.45.1/ && env PATH="/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/i/capture/the/path" HOME="/nonexistent/second-build" dpkg-buildpackage -us -uc -b && env PATH="/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/i/capture/the/path" HOME="/nonexistent/second-build" dpkg-genchanges -S > ../python-snitun_0.45.1-1_source.changes dpkg-buildpackage: info: source package python-snitun dpkg-buildpackage: info: source version 0.45.1-1 dpkg-buildpackage: info: source distribution unstable @@ -603,8 +639,8 @@ ******************************************************************************** Please use a simple string containing a SPDX expression for `project.license`. You can also use `project.license-files`. (Both options available on setuptools>=77.0.0). - This deprecation is overdue, please update your project and remove deprecated - calls to avoid build errors in the future. + By 2026-Feb-18, you need to update your project and remove deprecated calls + or your builds will no longer be supported. See https://packaging.python.org/en/latest/guides/writing-pyproject-toml/#license for details. ******************************************************************************** @@ -641,41 +677,41 @@ running build running build_py creating build/lib/snitun -copying snitun/__init__.py -> build/lib/snitun copying snitun/exceptions.py -> build/lib/snitun +copying snitun/__init__.py -> build/lib/snitun creating build/lib/snitun/utils -copying snitun/utils/aiohttp_client.py -> build/lib/snitun/utils -copying snitun/utils/server.py -> build/lib/snitun/utils copying snitun/utils/ipaddress.py -> build/lib/snitun/utils copying snitun/utils/__init__.py -> build/lib/snitun/utils -copying snitun/utils/asyncio.py -> build/lib/snitun/utils copying snitun/utils/aes.py -> build/lib/snitun/utils -creating build/lib/snitun/multiplexer -copying snitun/multiplexer/message.py -> build/lib/snitun/multiplexer -copying snitun/multiplexer/queue.py -> build/lib/snitun/multiplexer -copying snitun/multiplexer/crypto.py -> build/lib/snitun/multiplexer -copying snitun/multiplexer/core.py -> build/lib/snitun/multiplexer -copying snitun/multiplexer/channel.py -> build/lib/snitun/multiplexer -copying snitun/multiplexer/__init__.py -> build/lib/snitun/multiplexer -copying snitun/multiplexer/const.py -> build/lib/snitun/multiplexer -creating build/lib/snitun/metrics -copying snitun/metrics/base.py -> build/lib/snitun/metrics -copying snitun/metrics/noop.py -> build/lib/snitun/metrics -copying snitun/metrics/factory.py -> build/lib/snitun/metrics -copying snitun/metrics/__init__.py -> build/lib/snitun/metrics +copying snitun/utils/asyncio.py -> build/lib/snitun/utils +copying snitun/utils/aiohttp_client.py -> build/lib/snitun/utils +copying snitun/utils/server.py -> build/lib/snitun/utils creating build/lib/snitun/client -copying snitun/client/client_peer.py -> build/lib/snitun/client copying snitun/client/__init__.py -> build/lib/snitun/client +copying snitun/client/client_peer.py -> build/lib/snitun/client copying snitun/client/connector.py -> build/lib/snitun/client creating build/lib/snitun/server -copying snitun/server/peer_manager.py -> build/lib/snitun/server -copying snitun/server/listener_peer.py -> build/lib/snitun/server -copying snitun/server/worker.py -> build/lib/snitun/server -copying snitun/server/run.py -> build/lib/snitun/server copying snitun/server/peer.py -> build/lib/snitun/server -copying snitun/server/__init__.py -> build/lib/snitun/server +copying snitun/server/worker.py -> build/lib/snitun/server copying snitun/server/sni.py -> build/lib/snitun/server +copying snitun/server/listener_peer.py -> build/lib/snitun/server +copying snitun/server/__init__.py -> build/lib/snitun/server +copying snitun/server/peer_manager.py -> build/lib/snitun/server copying snitun/server/listener_sni.py -> build/lib/snitun/server +copying snitun/server/run.py -> build/lib/snitun/server +creating build/lib/snitun/metrics +copying snitun/metrics/base.py -> build/lib/snitun/metrics +copying snitun/metrics/__init__.py -> build/lib/snitun/metrics +copying snitun/metrics/factory.py -> build/lib/snitun/metrics +copying snitun/metrics/noop.py -> build/lib/snitun/metrics +creating build/lib/snitun/multiplexer +copying snitun/multiplexer/crypto.py -> build/lib/snitun/multiplexer +copying snitun/multiplexer/channel.py -> build/lib/snitun/multiplexer +copying snitun/multiplexer/message.py -> build/lib/snitun/multiplexer +copying snitun/multiplexer/core.py -> build/lib/snitun/multiplexer +copying snitun/multiplexer/__init__.py -> build/lib/snitun/multiplexer +copying snitun/multiplexer/const.py -> build/lib/snitun/multiplexer +copying snitun/multiplexer/queue.py -> build/lib/snitun/multiplexer running egg_info creating snitun.egg-info writing snitun.egg-info/PKG-INFO @@ -692,45 +728,45 @@ creating build/bdist.linux-x86_64/wheel creating build/bdist.linux-x86_64/wheel/snitun creating build/bdist.linux-x86_64/wheel/snitun/utils -copying build/lib/snitun/utils/aiohttp_client.py -> build/bdist.linux-x86_64/wheel/./snitun/utils -copying build/lib/snitun/utils/server.py -> build/bdist.linux-x86_64/wheel/./snitun/utils copying build/lib/snitun/utils/ipaddress.py -> build/bdist.linux-x86_64/wheel/./snitun/utils copying build/lib/snitun/utils/__init__.py -> build/bdist.linux-x86_64/wheel/./snitun/utils -copying build/lib/snitun/utils/asyncio.py -> build/bdist.linux-x86_64/wheel/./snitun/utils copying build/lib/snitun/utils/aes.py -> build/bdist.linux-x86_64/wheel/./snitun/utils -creating build/bdist.linux-x86_64/wheel/snitun/multiplexer -copying build/lib/snitun/multiplexer/message.py -> build/bdist.linux-x86_64/wheel/./snitun/multiplexer -copying build/lib/snitun/multiplexer/queue.py -> build/bdist.linux-x86_64/wheel/./snitun/multiplexer -copying build/lib/snitun/multiplexer/crypto.py -> build/bdist.linux-x86_64/wheel/./snitun/multiplexer -copying build/lib/snitun/multiplexer/core.py -> build/bdist.linux-x86_64/wheel/./snitun/multiplexer -copying build/lib/snitun/multiplexer/channel.py -> build/bdist.linux-x86_64/wheel/./snitun/multiplexer -copying build/lib/snitun/multiplexer/__init__.py -> build/bdist.linux-x86_64/wheel/./snitun/multiplexer -copying build/lib/snitun/multiplexer/const.py -> build/bdist.linux-x86_64/wheel/./snitun/multiplexer -creating build/bdist.linux-x86_64/wheel/snitun/metrics -copying build/lib/snitun/metrics/base.py -> build/bdist.linux-x86_64/wheel/./snitun/metrics -copying build/lib/snitun/metrics/noop.py -> build/bdist.linux-x86_64/wheel/./snitun/metrics -copying build/lib/snitun/metrics/factory.py -> build/bdist.linux-x86_64/wheel/./snitun/metrics -copying build/lib/snitun/metrics/__init__.py -> build/bdist.linux-x86_64/wheel/./snitun/metrics -copying build/lib/snitun/__init__.py -> build/bdist.linux-x86_64/wheel/./snitun +copying build/lib/snitun/utils/asyncio.py -> build/bdist.linux-x86_64/wheel/./snitun/utils +copying build/lib/snitun/utils/aiohttp_client.py -> build/bdist.linux-x86_64/wheel/./snitun/utils +copying build/lib/snitun/utils/server.py -> build/bdist.linux-x86_64/wheel/./snitun/utils creating build/bdist.linux-x86_64/wheel/snitun/client -copying build/lib/snitun/client/client_peer.py -> build/bdist.linux-x86_64/wheel/./snitun/client copying build/lib/snitun/client/__init__.py -> build/bdist.linux-x86_64/wheel/./snitun/client +copying build/lib/snitun/client/client_peer.py -> build/bdist.linux-x86_64/wheel/./snitun/client copying build/lib/snitun/client/connector.py -> build/bdist.linux-x86_64/wheel/./snitun/client creating build/bdist.linux-x86_64/wheel/snitun/server -copying build/lib/snitun/server/peer_manager.py -> build/bdist.linux-x86_64/wheel/./snitun/server -copying build/lib/snitun/server/listener_peer.py -> build/bdist.linux-x86_64/wheel/./snitun/server -copying build/lib/snitun/server/worker.py -> build/bdist.linux-x86_64/wheel/./snitun/server -copying build/lib/snitun/server/run.py -> build/bdist.linux-x86_64/wheel/./snitun/server copying build/lib/snitun/server/peer.py -> build/bdist.linux-x86_64/wheel/./snitun/server -copying build/lib/snitun/server/__init__.py -> build/bdist.linux-x86_64/wheel/./snitun/server +copying build/lib/snitun/server/worker.py -> build/bdist.linux-x86_64/wheel/./snitun/server copying build/lib/snitun/server/sni.py -> build/bdist.linux-x86_64/wheel/./snitun/server +copying build/lib/snitun/server/listener_peer.py -> build/bdist.linux-x86_64/wheel/./snitun/server +copying build/lib/snitun/server/__init__.py -> build/bdist.linux-x86_64/wheel/./snitun/server +copying build/lib/snitun/server/peer_manager.py -> build/bdist.linux-x86_64/wheel/./snitun/server copying build/lib/snitun/server/listener_sni.py -> build/bdist.linux-x86_64/wheel/./snitun/server +copying build/lib/snitun/server/run.py -> build/bdist.linux-x86_64/wheel/./snitun/server +creating build/bdist.linux-x86_64/wheel/snitun/metrics +copying build/lib/snitun/metrics/base.py -> build/bdist.linux-x86_64/wheel/./snitun/metrics +copying build/lib/snitun/metrics/__init__.py -> build/bdist.linux-x86_64/wheel/./snitun/metrics +copying build/lib/snitun/metrics/factory.py -> build/bdist.linux-x86_64/wheel/./snitun/metrics +copying build/lib/snitun/metrics/noop.py -> build/bdist.linux-x86_64/wheel/./snitun/metrics +creating build/bdist.linux-x86_64/wheel/snitun/multiplexer +copying build/lib/snitun/multiplexer/crypto.py -> build/bdist.linux-x86_64/wheel/./snitun/multiplexer +copying build/lib/snitun/multiplexer/channel.py -> build/bdist.linux-x86_64/wheel/./snitun/multiplexer +copying build/lib/snitun/multiplexer/message.py -> build/bdist.linux-x86_64/wheel/./snitun/multiplexer +copying build/lib/snitun/multiplexer/core.py -> build/bdist.linux-x86_64/wheel/./snitun/multiplexer +copying build/lib/snitun/multiplexer/__init__.py -> build/bdist.linux-x86_64/wheel/./snitun/multiplexer +copying build/lib/snitun/multiplexer/const.py -> build/bdist.linux-x86_64/wheel/./snitun/multiplexer +copying build/lib/snitun/multiplexer/queue.py -> build/bdist.linux-x86_64/wheel/./snitun/multiplexer copying build/lib/snitun/exceptions.py -> build/bdist.linux-x86_64/wheel/./snitun +copying build/lib/snitun/__init__.py -> build/bdist.linux-x86_64/wheel/./snitun running install_egg_info Copying snitun.egg-info to build/bdist.linux-x86_64/wheel/./snitun-0.0.0.egg-info running install_scripts creating build/bdist.linux-x86_64/wheel/snitun-0.0.0.dist-info/WHEEL -creating '/build/reproducible-path/python-snitun-0.45.1/.pybuild/cpython3_3.13/.tmp-7_85s6f3/snitun-0.0.0-py3-none-any.whl' and adding 'build/bdist.linux-x86_64/wheel' to it +creating '/build/reproducible-path/python-snitun-0.45.1/.pybuild/cpython3_3.13/.tmp-l_g0ftfd/snitun-0.0.0-py3-none-any.whl' and adding 'build/bdist.linux-x86_64/wheel' to it adding 'snitun/__init__.py' adding 'snitun/exceptions.py' adding 'snitun/client/__init__.py' @@ -775,7 +811,7 @@ platform linux -- Python 3.13.9, pytest-8.4.2, pluggy-1.6.0 rootdir: /build/reproducible-path/python-snitun-0.45.1/.pybuild/cpython3_3.13/build configfile: pyproject.toml -plugins: timeout-2.4.0, asyncio-1.2.0, typeguard-4.4.4, aiohttp-1.1.0 +plugins: typeguard-4.4.4, asyncio-1.2.0, aiohttp-1.1.0, timeout-2.4.0 asyncio: mode=Mode.AUTO, debug=False, asyncio_default_fixture_loop_scope=None, asyncio_default_test_loop_scope=function collected 181 items @@ -787,13 +823,13 @@ tests/metrics/test_worker_integration.py ....... [ 19%] tests/multiplexer/test_channel.py ............... [ 27%] tests/multiplexer/test_const.py . [ 28%] -tests/multiplexer/test_core.py ......................... [ 41%] +tests/multiplexer/test_core.py .....................F... [ 41%] tests/multiplexer/test_crypto.py . [ 42%] tests/multiplexer/test_message.py ... [ 44%] tests/multiplexer/test_queue.py ....................... [ 56%] tests/server/test_all.py . [ 57%] tests/server/test_listener_peer.py ...... [ 60%] -tests/server/test_listener_sni.py ............ [ 67%] +tests/server/test_listener_sni.py ...........F [ 67%] tests/server/test_peer.py ...... [ 70%] tests/server/test_peer_manager.py .......... [ 76%] tests/server/test_run.py .............. [ 83%] @@ -805,47 +841,257 @@ tests/utils/test_ipaddress.py .. [ 98%] tests/utils/test_server.py .. [100%] +=================================== FAILURES =================================== +___________________ test_remote_input_queue_goes_under_water ___________________ + +multiplexer_client = +multiplexer_server = + + @patch.object(channel_module, "INCOMING_QUEUE_LOW_WATERMARK", HEADER_SIZE * 2) + @patch.object(channel_module, "INCOMING_QUEUE_HIGH_WATERMARK", HEADER_SIZE * 3) + async def test_remote_input_queue_goes_under_water( + multiplexer_client: Multiplexer, + multiplexer_server: Multiplexer, + ) -> None: + """Test the remote input queue going under water.""" + assert not multiplexer_client._channels + assert not multiplexer_server._channels + + client_channel_under_water: list[bool] = [] + server_channel_under_water: list[bool] = [] + + def _on_client_channel_under_water(under_water: bool) -> None: + client_channel_under_water.append(under_water) + + def _on_server_channel_under_water(under_water: bool) -> None: + server_channel_under_water.append(under_water) + + channel_client = await multiplexer_client.create_channel( + IP_ADDR, + _on_client_channel_under_water, + ) + await asyncio.sleep(0.1) + + channel_server = multiplexer_server._channels.get(channel_client.id) + channel_server.set_pause_resume_reader_callback(_on_server_channel_under_water) + + assert channel_client + assert channel_server + sent_messages: list[bytes] = [] + message_count = 255 + + for i in range(message_count): + payload = str(i).encode() + sent_messages.append(payload) + await channel_client.write(payload) + + await asyncio.sleep(0.1) +> assert client_channel_under_water == [True] +E assert [] == [True] +E +E Right contains one more item: True +E Use -v to get more diff + +tests/multiplexer/test_core.py:566: AssertionError +---------------------------- Captured stderr setup ----------------------------- +DEBUG:asyncio:Using selector: EpollSelector +------------------------------ Captured log setup ------------------------------ +DEBUG asyncio:selector_events.py:64 Using selector: EpollSelector +----------------------------- Captured stderr call ----------------------------- +DEBUG:snitun.multiplexer.queue:Queue creating channel fce068c7c3ce55d03d83ae017266e706 +DEBUG:snitun.multiplexer.channel:Sending new channel fce068c7c3ce55d03d83ae017266e706 +DEBUG:snitun.multiplexer.queue:Queue creating channel fce068c7c3ce55d03d83ae017266e706 +DEBUG:snitun.multiplexer.channel:Informing remote that fce068c7c3ce55d03d83ae017266e706 input is now under water +------------------------------ Captured log call ------------------------------- +DEBUG snitun.multiplexer.queue:queue.py:133 Queue creating channel fce068c7c3ce55d03d83ae017266e706 +DEBUG snitun.multiplexer.channel:channel.py:288 Sending new channel fce068c7c3ce55d03d83ae017266e706 +DEBUG snitun.multiplexer.queue:queue.py:133 Queue creating channel fce068c7c3ce55d03d83ae017266e706 +DEBUG snitun.multiplexer.channel:channel.py:161 Informing remote that fce068c7c3ce55d03d83ae017266e706 input is now under water +--------------------------- Captured stderr teardown --------------------------- +DEBUG:snitun.multiplexer.core:Cancel connection +DEBUG:snitun.multiplexer.channel:Schedule close channel fce068c7c3ce55d03d83ae017266e706 +DEBUG:snitun.multiplexer.core:Receive canceling +DEBUG:snitun.multiplexer.core:Multiplexer connection is closed +DEBUG:snitun.multiplexer.core:Cancel connection +DEBUG:snitun.multiplexer.channel:Schedule close channel fce068c7c3ce55d03d83ae017266e706 +DEBUG:snitun.multiplexer.core:Receive canceling +DEBUG:snitun.multiplexer.core:Multiplexer connection is closed +---------------------------- Captured log teardown ----------------------------- +DEBUG snitun.multiplexer.core:core.py:112 Cancel connection +DEBUG snitun.multiplexer.channel:channel.py:231 Schedule close channel fce068c7c3ce55d03d83ae017266e706 +DEBUG snitun.multiplexer.core:core.py:195 Receive canceling +DEBUG snitun.multiplexer.core:core.py:227 Multiplexer connection is closed +DEBUG snitun.multiplexer.core:core.py:112 Cancel connection +DEBUG snitun.multiplexer.channel:channel.py:231 Schedule close channel fce068c7c3ce55d03d83ae017266e706 +DEBUG snitun.multiplexer.core:core.py:195 Receive canceling +DEBUG snitun.multiplexer.core:core.py:227 Multiplexer connection is closed +______________________ test_proxy_peer_os_error_on_write _______________________ + +multiplexer_client = +peer_manager = +caplog = <_pytest.logging.LogCaptureFixture object at 0x7ff9330c05f0> + + async def test_proxy_peer_os_error_on_write( + multiplexer_client: Multiplexer, + peer_manager: PeerManager, + caplog: pytest.LogCaptureFixture, + ) -> None: + """Test proxy peer handler handles oserror.""" + proxy_peer_handler: ProxyPeerHandler | None = None + + class InstrumentedProxyPeerHandler(ProxyPeerHandler): + """Instrumented Proxy Peer Handler. + + This class is used to test the ProxyPeerHandler class + and save the reader and writer for testing. + """ + + writer: asyncio.StreamWriter + reader: asyncio.StreamReader + + async def start( + self, + multiplexer: Multiplexer, + client_hello: bytes, + reader: asyncio.StreamReader, + writer: asyncio.StreamWriter, + ) -> None: + self.reader = reader + self.writer = writer + await super().start(multiplexer, client_hello, reader, writer) + + def save_proxy_peer_handler( + loop: asyncio.AbstractEventLoop, + ip_address: ipaddress.IPv4Address, + ) -> ProxyPeerHandler: + nonlocal proxy_peer_handler + proxy_peer_handler = InstrumentedProxyPeerHandler(loop, ip_address) + return proxy_peer_handler + + with patch("snitun.server.listener_sni.ProxyPeerHandler", save_proxy_peer_handler): + proxy = SNIProxy(peer_manager, "127.0.0.1", "8863") + await proxy.start() + reader, writer = await asyncio.open_connection(host="127.0.0.1", port="8863") + test_client_ssl = Client(reader, writer) + test_client_ssl.writer.write(TLS_1_2) + await test_client_ssl.writer.drain() + await asyncio.sleep(0.1) + + assert isinstance(proxy_peer_handler, ProxyPeerHandler) + + assert multiplexer_client._channels + server_channel = next(iter(multiplexer_client._channels.values())) + assert server_channel.ip_address == IP_ADDR + + client_hello = await server_channel.read() + assert client_hello == TLS_1_2 + + test_client_ssl.writer.write(b"Very secret!") + await test_client_ssl.writer.drain() + + data = await server_channel.read() + assert data == b"Very secret!" + + with patch.object( + proxy_peer_handler.writer, + "write", + side_effect=OSError(errno.EPIPE, "Broken Pipe"), + ): + await server_channel.write(b"some data that will trigger oserror") + await asyncio.sleep(0.1) + +> assert not multiplexer_client._channels +E AssertionError: assert not {b'\xe50\x9cT\xb3\xb4s/\xc3v\xd7\x1b\x03Z\x07\x88': } +E + where {b'\xe50\x9cT\xb3\xb4s/\xc3v\xd7\x1b\x03Z\x07\x88': } = ._channels + +tests/server/test_listener_sni.py:356: AssertionError +---------------------------- Captured stderr setup ----------------------------- +DEBUG:asyncio:Using selector: EpollSelector +------------------------------ Captured log setup ------------------------------ +DEBUG asyncio:selector_events.py:64 Using selector: EpollSelector +----------------------------- Captured stderr call ----------------------------- +DEBUG:snitun.server.listener_sni:Processing for hostname localhost started +DEBUG:snitun.multiplexer.queue:Queue creating channel e5309c54b3b4732fc376d71b035a0788 +DEBUG:snitun.multiplexer.channel:Sending new channel e5309c54b3b4732fc376d71b035a0788 +DEBUG:snitun.multiplexer.queue:Queue creating channel e5309c54b3b4732fc376d71b035a0788 +DEBUG:snitun.server.listener_sni:Transport closed by Proxy for e5309c54b3b4732fc376d71b035a0788: [Errno 32] Broken Pipe +Traceback (most recent call last): + File "/build/reproducible-path/python-snitun-0.45.1/.pybuild/cpython3_3.13/build/snitun/server/listener_sni.py", line 197, in start + writer.write(from_peer.result()) + ~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^ + File "/usr/lib/python3.13/unittest/mock.py", line 1169, in __call__ + return self._mock_call(*args, **kwargs) + ~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^ + File "/usr/lib/python3.13/unittest/mock.py", line 1173, in _mock_call + return self._execute_mock_call(*args, **kwargs) + ~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^ + File "/usr/lib/python3.13/unittest/mock.py", line 1228, in _execute_mock_call + raise effect +BrokenPipeError: [Errno 32] Broken Pipe +DEBUG:snitun.multiplexer.channel:Sending close channel e5309c54b3b4732fc376d71b035a0788 +------------------------------ Captured log call ------------------------------- +DEBUG snitun.server.listener_sni:listener_sni.py:101 Processing for hostname localhost started +DEBUG snitun.multiplexer.queue:queue.py:133 Queue creating channel e5309c54b3b4732fc376d71b035a0788 +DEBUG snitun.multiplexer.channel:channel.py:288 Sending new channel e5309c54b3b4732fc376d71b035a0788 +DEBUG snitun.multiplexer.queue:queue.py:133 Queue creating channel e5309c54b3b4732fc376d71b035a0788 +DEBUG snitun.server.listener_sni:listener_sni.py:208 Transport closed by Proxy for e5309c54b3b4732fc376d71b035a0788: [Errno 32] Broken Pipe +Traceback (most recent call last): + File "/build/reproducible-path/python-snitun-0.45.1/.pybuild/cpython3_3.13/build/snitun/server/listener_sni.py", line 197, in start + writer.write(from_peer.result()) + ~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^ + File "/usr/lib/python3.13/unittest/mock.py", line 1169, in __call__ + return self._mock_call(*args, **kwargs) + ~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^ + File "/usr/lib/python3.13/unittest/mock.py", line 1173, in _mock_call + return self._execute_mock_call(*args, **kwargs) + ~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^ + File "/usr/lib/python3.13/unittest/mock.py", line 1228, in _execute_mock_call + raise effect +BrokenPipeError: [Errno 32] Broken Pipe +DEBUG snitun.multiplexer.channel:channel.py:282 Sending close channel e5309c54b3b4732fc376d71b035a0788 +--------------------------- Captured stderr teardown --------------------------- +DEBUG:snitun.multiplexer.core:Cancel connection +DEBUG:snitun.multiplexer.core:Receive canceling +DEBUG:snitun.multiplexer.core:Multiplexer connection is closed +DEBUG:snitun.multiplexer.core:Cancel connection +DEBUG:snitun.multiplexer.channel:Schedule close channel e5309c54b3b4732fc376d71b035a0788 +DEBUG:snitun.multiplexer.core:Receive canceling +DEBUG:snitun.multiplexer.core:Multiplexer connection is closed +---------------------------- Captured log teardown ----------------------------- +DEBUG snitun.multiplexer.core:core.py:112 Cancel connection +DEBUG snitun.multiplexer.core:core.py:195 Receive canceling +DEBUG snitun.multiplexer.core:core.py:227 Multiplexer connection is closed +DEBUG snitun.multiplexer.core:core.py:112 Cancel connection +DEBUG snitun.multiplexer.channel:channel.py:231 Schedule close channel e5309c54b3b4732fc376d71b035a0788 +DEBUG snitun.multiplexer.core:core.py:195 Receive canceling +DEBUG snitun.multiplexer.core:core.py:227 Multiplexer connection is closed =============================== warnings summary =============================== tests/server/test_run.py: 24 warnings tests/server/test_worker.py: 8 warnings - /usr/lib/python3.13/multiprocessing/popen_fork.py:67: DeprecationWarning: This process (pid=849855) is multi-threaded, use of fork() may lead to deadlocks in the child. + /usr/lib/python3.13/multiprocessing/popen_fork.py:67: DeprecationWarning: This process (pid=2878915) is multi-threaded, use of fork() may lead to deadlocks in the child. self.pid = os.fork() -- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html -====================== 181 passed, 32 warnings in 44.88s ======================= - create-stamp debian/debhelper-build-stamp - dh_testroot -O--buildsystem=pybuild - dh_prep -O--buildsystem=pybuild - dh_auto_install --destdir=debian/python3-snitun/ -O--buildsystem=pybuild -I: pybuild plugin_pyproject:178: Copying package built for python3.13 to destdir - dh_installdocs -O--buildsystem=pybuild - dh_installchangelogs -O--buildsystem=pybuild - dh_python3 -O--buildsystem=pybuild - dh_installsystemduser -O--buildsystem=pybuild - dh_perl -O--buildsystem=pybuild - dh_link -O--buildsystem=pybuild - dh_strip_nondeterminism -O--buildsystem=pybuild - dh_compress -O--buildsystem=pybuild - dh_fixperms -O--buildsystem=pybuild - dh_missing -O--buildsystem=pybuild - dh_installdeb -O--buildsystem=pybuild - dh_gencontrol -O--buildsystem=pybuild - dh_md5sums -O--buildsystem=pybuild - dh_builddeb -O--buildsystem=pybuild -dpkg-deb: building package 'python3-snitun' in '../python3-snitun_0.45.1-1_all.deb'. - dpkg-genbuildinfo --build=binary -O../python-snitun_0.45.1-1_amd64.buildinfo - dpkg-genchanges --build=binary -O../python-snitun_0.45.1-1_amd64.changes -dpkg-genchanges: info: binary-only upload (no source code included) - dpkg-source --after-build . -dpkg-buildpackage: info: binary-only upload (no source included) -dpkg-genchanges: info: including full source code in upload +=========================== short test summary info ============================ +FAILED tests/multiplexer/test_core.py::test_remote_input_queue_goes_under_water +FAILED tests/server/test_listener_sni.py::test_proxy_peer_os_error_on_write +================= 2 failed, 179 passed, 32 warnings in 46.37s ================== +E: pybuild pybuild:389: test: plugin pyproject failed with: exit code=1: cd /build/reproducible-path/python-snitun-0.45.1/.pybuild/cpython3_3.13/build; python3.13 -m pytest --ignore=tests/benchmarks +dh_auto_test: error: pybuild --test --test-pytest -i python{version} -p 3.13 returned exit code 13 +make: *** [debian/rules:5: binary] Error 25 +dpkg-buildpackage: error: debian/rules binary subprocess returned exit status 2 I: copying local configuration +E: Failed autobuilding of package +I: user script /srv/workspace/pbuilder/2858638/tmp/hooks/C01_cleanup starting +debug output: disk usage on i-capture-the-hostname at Wed Oct 29 17:10:44 UTC 2025 +Filesystem Size Used Avail Use% Mounted on +tmpfs 40G 0 40G 0% /dev/shm + +I: user script /srv/workspace/pbuilder/2858638/tmp/hooks/C01_cleanup finished I: unmounting dev/ptmx filesystem I: unmounting dev/pts filesystem I: unmounting dev/shm filesystem I: unmounting proc filesystem I: unmounting sys filesystem I: cleaning the build env -I: removing directory /srv/workspace/pbuilder/744023 and its subdirectories -I: Current time: Tue Dec 1 11:30:38 -12 2026 -I: pbuilder-time-stamp: 1796167838 +I: removing directory /srv/workspace/pbuilder/2858638 and its subdirectories