Diff of the two buildlogs: -- --- b1/build.log 2025-10-25 11:51:20.083822861 +0000 +++ b2/build.log 2025-10-25 11:54:25.828046514 +0000 @@ -1,6 +1,6 @@ I: pbuilder: network access will be disabled during build -I: Current time: Fri Nov 27 06:11:03 -12 2026 -I: pbuilder-time-stamp: 1795803063 +I: Current time: Sun Oct 26 01:51:22 +14 2025 +I: pbuilder-time-stamp: 1761393082 I: Building the build Environment I: extracting base tarball [/var/cache/pbuilder/forky-reproducible-base.tgz] I: copying local configuration @@ -24,52 +24,84 @@ dpkg-source: info: applying debianize-packaging-test.patch I: Not using root during the build. I: Installing the build-deps -I: user script /srv/workspace/pbuilder/3705296/tmp/hooks/D02_print_environment starting +I: user script /srv/workspace/pbuilder/3797835/tmp/hooks/D01_modify_environment starting +debug: Running on infom01-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 25 11:51 /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/3797835/tmp/hooks/D01_modify_environment finished +I: user script /srv/workspace/pbuilder/3797835/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=16 ' - 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=12 ' + 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='15c18adfd4344dc1a45fcc95ab21cde2' - 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='3705296' - PS1='# ' - PS2='> ' + INVOCATION_ID=75520bc332c34f279ae76c536f27180f + 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=3797835 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.fgR0z8rb/pbuilderrc_0AVd --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.fgR0z8rb/b1 --logfile b1/build.log python-daphne_4.2.1-1.dsc' - SUDO_GID='109' - SUDO_HOME='/var/lib/jenkins' - SUDO_UID='104' - SUDO_USER='jenkins' - TERM='unknown' - TZ='/usr/share/zoneinfo/Etc/GMT+12' - USER='root' - _='/usr/bin/systemd-run' + 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.fgR0z8rb/pbuilderrc_OXhz --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.fgR0z8rb/b2 --logfile b2/build.log python-daphne_4.2.1-1.dsc' + SUDO_GID=109 + SUDO_HOME=/var/lib/jenkins + SUDO_UID=104 + SUDO_USER=jenkins + TERM=unknown + TZ=/usr/share/zoneinfo/Etc/GMT-14 + UID=0 + USER=root + _='I: set' I: uname -a - Linux infom02-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-cloud-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/3705296/tmp/hooks/D02_print_environment finished + lrwxrwxrwx 1 root root 7 Aug 10 12:30 /bin -> usr/bin +I: user script /srv/workspace/pbuilder/3797835/tmp/hooks/D02_print_environment finished -> Attempting to satisfy build-dependencies -> Creating pbuilder-satisfydepends-dummy package Package: pbuilder-satisfydepends-dummy @@ -254,7 +286,7 @@ Get: 121 http://deb.debian.org/debian forky/main amd64 python3-pytest all 8.4.2-1 [266 kB] Get: 122 http://deb.debian.org/debian forky/main amd64 python3-pytest-asyncio all 1.2.0-1 [13.3 kB] Get: 123 http://deb.debian.org/debian forky/main amd64 python3-pytest-runner all 2.11.1-4 [8432 B] -Fetched 31.6 MB in 1s (29.2 MB/s) +Fetched 31.6 MB in 1s (30.0 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 ... 19900 files and directories currently installed.) @@ -655,8 +687,8 @@ Setting up tzdata (2025b-5) ... Current default time zone: 'Etc/UTC' -Local time is now: Fri Nov 27 18:13:02 UTC 2026. -Universal Time is now: Fri Nov 27 18:13:02 UTC 2026. +Local time is now: Sat Oct 25 11:52:57 UTC 2025. +Universal Time is now: Sat Oct 25 11:52:57 UTC 2025. Run 'dpkg-reconfigure tzdata' if you wish to change it. Setting up autotools-dev (20240727.1) ... @@ -776,7 +808,11 @@ Building tag database... -> Finished parsing the build-deps I: Building the package -I: Running cd /build/reproducible-path/python-daphne-4.2.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-daphne_4.2.1-1_source.changes +I: user script /srv/workspace/pbuilder/3797835/tmp/hooks/A99_set_merged_usr starting +Not re-configuring usrmerge for forky +I: user script /srv/workspace/pbuilder/3797835/tmp/hooks/A99_set_merged_usr finished +hostname: Name or service not known +I: Running cd /build/reproducible-path/python-daphne-4.2.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-daphne_4.2.1-1_source.changes dpkg-buildpackage: info: source package python-daphne dpkg-buildpackage: info: source version 4.2.1-1 dpkg-buildpackage: info: source distribution unstable @@ -803,15 +839,15 @@ * Building wheel... No `packages` or `py_modules` configuration, performing automatic discovery. `explicit-layout` detected -- analysing {'daphne': 'daphne', 'twisted': 'daphne/twisted'} -discovered packages -- ['daphne', 'daphne.management', 'daphne.twisted', 'daphne.management.commands', 'daphne.twisted.plugins', 'twisted', 'twisted.plugins'] +discovered packages -- ['daphne', 'daphne.twisted', 'daphne.management', 'daphne.twisted.plugins', 'daphne.management.commands', 'twisted', 'twisted.plugins'] /usr/lib/python3/dist-packages/setuptools/config/_apply_pyprojecttoml.py:82: SetuptoolsDeprecationWarning: `project.license` as a TOML table is deprecated !! ******************************************************************************** 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. ******************************************************************************** @@ -860,25 +896,25 @@ running build running build_py creating build/lib/daphne -copying daphne/utils.py -> build/lib/daphne +copying daphne/access.py -> build/lib/daphne copying daphne/http_protocol.py -> build/lib/daphne copying daphne/testing.py -> build/lib/daphne -copying daphne/server.py -> build/lib/daphne +copying daphne/ws_protocol.py -> build/lib/daphne copying daphne/__main__.py -> build/lib/daphne +copying daphne/server.py -> build/lib/daphne copying daphne/apps.py -> build/lib/daphne +copying daphne/utils.py -> build/lib/daphne copying daphne/checks.py -> build/lib/daphne -copying daphne/access.py -> build/lib/daphne +copying daphne/endpoints.py -> build/lib/daphne copying daphne/__init__.py -> build/lib/daphne copying daphne/cli.py -> build/lib/daphne -copying daphne/endpoints.py -> build/lib/daphne -copying daphne/ws_protocol.py -> build/lib/daphne creating build/lib/daphne/management copying daphne/management/__init__.py -> build/lib/daphne/management -creating build/lib/daphne/management/commands -copying daphne/management/commands/runserver.py -> build/lib/daphne/management/commands -copying daphne/management/commands/__init__.py -> build/lib/daphne/management/commands creating build/lib/daphne/twisted/plugins copying daphne/twisted/plugins/fd_endpoint.py -> build/lib/daphne/twisted/plugins +creating build/lib/daphne/management/commands +copying daphne/management/commands/__init__.py -> build/lib/daphne/management/commands +copying daphne/management/commands/runserver.py -> build/lib/daphne/management/commands creating build/lib/twisted/plugins copying daphne/twisted/plugins/fd_endpoint.py -> build/lib/twisted/plugins running egg_info @@ -897,35 +933,35 @@ running install running install_lib creating build/bdist.linux-x86_64/wheel +creating build/bdist.linux-x86_64/wheel/twisted +creating build/bdist.linux-x86_64/wheel/twisted/plugins +copying build/lib/twisted/plugins/fd_endpoint.py -> build/bdist.linux-x86_64/wheel/./twisted/plugins creating build/bdist.linux-x86_64/wheel/daphne -copying build/lib/daphne/utils.py -> build/bdist.linux-x86_64/wheel/./daphne -creating build/bdist.linux-x86_64/wheel/daphne/management -creating build/bdist.linux-x86_64/wheel/daphne/management/commands -copying build/lib/daphne/management/commands/runserver.py -> build/bdist.linux-x86_64/wheel/./daphne/management/commands -copying build/lib/daphne/management/commands/__init__.py -> build/bdist.linux-x86_64/wheel/./daphne/management/commands -copying build/lib/daphne/management/__init__.py -> build/bdist.linux-x86_64/wheel/./daphne/management +copying build/lib/daphne/access.py -> build/bdist.linux-x86_64/wheel/./daphne copying build/lib/daphne/http_protocol.py -> build/bdist.linux-x86_64/wheel/./daphne copying build/lib/daphne/testing.py -> build/bdist.linux-x86_64/wheel/./daphne -copying build/lib/daphne/server.py -> build/bdist.linux-x86_64/wheel/./daphne -copying build/lib/daphne/__main__.py -> build/bdist.linux-x86_64/wheel/./daphne -copying build/lib/daphne/apps.py -> build/bdist.linux-x86_64/wheel/./daphne -copying build/lib/daphne/checks.py -> build/bdist.linux-x86_64/wheel/./daphne creating build/bdist.linux-x86_64/wheel/daphne/twisted creating build/bdist.linux-x86_64/wheel/daphne/twisted/plugins copying build/lib/daphne/twisted/plugins/fd_endpoint.py -> build/bdist.linux-x86_64/wheel/./daphne/twisted/plugins -copying build/lib/daphne/access.py -> build/bdist.linux-x86_64/wheel/./daphne +copying build/lib/daphne/ws_protocol.py -> build/bdist.linux-x86_64/wheel/./daphne +copying build/lib/daphne/__main__.py -> build/bdist.linux-x86_64/wheel/./daphne +copying build/lib/daphne/server.py -> build/bdist.linux-x86_64/wheel/./daphne +copying build/lib/daphne/apps.py -> build/bdist.linux-x86_64/wheel/./daphne +copying build/lib/daphne/utils.py -> build/bdist.linux-x86_64/wheel/./daphne +copying build/lib/daphne/checks.py -> build/bdist.linux-x86_64/wheel/./daphne +copying build/lib/daphne/endpoints.py -> build/bdist.linux-x86_64/wheel/./daphne copying build/lib/daphne/__init__.py -> build/bdist.linux-x86_64/wheel/./daphne copying build/lib/daphne/cli.py -> build/bdist.linux-x86_64/wheel/./daphne -copying build/lib/daphne/endpoints.py -> build/bdist.linux-x86_64/wheel/./daphne -copying build/lib/daphne/ws_protocol.py -> build/bdist.linux-x86_64/wheel/./daphne -creating build/bdist.linux-x86_64/wheel/twisted -creating build/bdist.linux-x86_64/wheel/twisted/plugins -copying build/lib/twisted/plugins/fd_endpoint.py -> build/bdist.linux-x86_64/wheel/./twisted/plugins +creating build/bdist.linux-x86_64/wheel/daphne/management +creating build/bdist.linux-x86_64/wheel/daphne/management/commands +copying build/lib/daphne/management/commands/__init__.py -> build/bdist.linux-x86_64/wheel/./daphne/management/commands +copying build/lib/daphne/management/commands/runserver.py -> build/bdist.linux-x86_64/wheel/./daphne/management/commands +copying build/lib/daphne/management/__init__.py -> build/bdist.linux-x86_64/wheel/./daphne/management running install_egg_info Copying daphne.egg-info to build/bdist.linux-x86_64/wheel/./daphne-4.2.1.egg-info running install_scripts creating build/bdist.linux-x86_64/wheel/daphne-4.2.1.dist-info/WHEEL -creating '/build/reproducible-path/python-daphne-4.2.1/.pybuild/cpython3_3.13/.tmp-j36_uzau/daphne-4.2.1-py3-none-any.whl' and adding 'build/bdist.linux-x86_64/wheel' to it +creating '/build/reproducible-path/python-daphne-4.2.1/.pybuild/cpython3_3.13/.tmp-mbog46co/daphne-4.2.1-py3-none-any.whl' and adding 'build/bdist.linux-x86_64/wheel' to it adding 'daphne/__init__.py' adding 'daphne/__main__.py' adding 'daphne/access.py' @@ -958,67 +994,273 @@ platform linux -- Python 3.13.9, pytest-8.4.2, pluggy-1.6.0 rootdir: /build/reproducible-path/python-daphne-4.2.1/.pybuild/cpython3_3.13/build configfile: pyproject.toml -plugins: typeguard-4.4.4, asyncio-1.2.0, hypothesis-6.140.2 +plugins: asyncio-1.2.0, hypothesis-6.140.2, typeguard-4.4.4 asyncio: mode=Mode.STRICT, debug=False, asyncio_default_fixture_loop_scope=None, asyncio_default_test_loop_scope=function collected 65 items / 1 deselected / 64 selected tests/test_checks.py . [ 1%] tests/test_cli.py ..............s [ 25%] tests/test_http_protocol.py . [ 26%] -tests/test_http_request.py ............... [ 50%] +tests/test_http_request.py ..........F.... [ 50%] tests/test_http_response.py ......... [ 64%] tests/test_utils.py ............ [ 82%] tests/test_websocket.py ........... [100%] -================= 63 passed, 1 skipped, 1 deselected in 18.38s ================= - create-stamp debian/debhelper-build-stamp - dh_testroot -O--buildsystem=pybuild - dh_prep -O--buildsystem=pybuild - debian/rules override_dh_auto_install -make[1]: Entering directory '/build/reproducible-path/python-daphne-4.2.1' -dh_auto_install -I: pybuild plugin_pyproject:178: Copying package built for python3.13 to destdir -rm -rf debian/tmp/usr/lib/python3*/dist-packages/.hypothesis -make[1]: Leaving directory '/build/reproducible-path/python-daphne-4.2.1' - dh_install -O--buildsystem=pybuild - dh_installdocs -O--buildsystem=pybuild - dh_installchangelogs -O--buildsystem=pybuild - debian/rules override_dh_installman -make[1]: Entering directory '/build/reproducible-path/python-daphne-4.2.1' -docbook-to-man debian/manpage.daphne.sgml > daphne.1 -/usr/bin/onsgmls:debian/manpage.daphne.sgml:78:82:E: end tag for "REPLACEABLE" omitted, but OMITTAG NO was specified -/usr/bin/onsgmls:debian/manpage.daphne.sgml:78:53: start tag was here -/usr/bin/onsgmls:debian/manpage.daphne.sgml:78:82: open elements: REFENTRY REFSYNOPSISDIV[1] CMDSYNOPSIS[1] ARG[1] OPTION[1] REPLACEABLE[1] (#PCDATA[1]) -dh_installman -make[1]: Leaving directory '/build/reproducible-path/python-daphne-4.2.1' - dh_python3 -O--buildsystem=pybuild -I: dh_python3 tools:114: replacing shebang in debian/daphne/usr/bin/daphne - 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 'daphne' in '../daphne_4.2.1-1_all.deb'. -dpkg-deb: building package 'python3-daphne' in '../python3-daphne_4.2.1-1_all.deb'. - dpkg-genbuildinfo --build=binary -O../python-daphne_4.2.1-1_amd64.buildinfo - dpkg-genchanges --build=binary -O../python-daphne_4.2.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 +=================================== FAILURES =================================== +__________________ TestHTTPRequest.test_request_body_chunking __________________ + + Exception Group Traceback (most recent call last): + | File "/build/reproducible-path/python-daphne-4.2.1/.pybuild/cpython3_3.13/build/tests/test_http_request.py", line 124, in test_request_body_chunking + | @settings(max_examples=5, deadline=5000) + | ^^^^^^^ + | File "/usr/lib/python3/dist-packages/hypothesis/core.py", line 2124, in wrapped_test + | raise the_error_hypothesis_found + | hypothesis.errors.FlakyFailure: Hypothesis test_request_body_chunking(self=, request_path='/', chunk_size=1) produces unreliable results: Falsified on the first call but did not on a subsequent one (1 sub-exception) + | Falsifying example: test_request_body_chunking( + | self=, + | request_path='/', + | chunk_size=1, + | ) + | Failed to reproduce exception. Expected: + | self = + | method = 'POST', path = '/', params = None + | body = b'The quick brown fox jumps over the lazy dog' + | responses = [{'status': 200, 'type': 'http.response.start'}, {'body': b'OK', 'type': 'http.response.body'}] + | headers = None, timeout = 1, xff = False, request_buffer_size = 1 + | + | def run_daphne_http( + | self, + | method, + | path, + | params, + | body, + | responses, + | headers=None, + | timeout=1, + | xff=False, + | request_buffer_size=None, + | ): + | """ + | Runs Daphne with the given request callback (given the base URL) + | and response messages. + | """ + | with DaphneTestingInstance( + | xff=xff, request_buffer_size=request_buffer_size + | ) as test_app: + | # Add the response messages + | test_app.add_send_messages(responses) + | # Send it the request. We have to do this the long way to allow + | # duplicate headers. + | conn = HTTPConnection(test_app.host, test_app.port, timeout=timeout) + | if params: + | path += "?" + parse.urlencode(params, doseq=True) + | conn.putrequest(method, path, skip_accept_encoding=True, skip_host=True) + | # Manually send over headers + | if headers: + | for header_name, header_value in headers: + | conn.putheader(header_name, header_value) + | # Send body if provided. + | if body: + | conn.putheader("Content-Length", str(len(body))) + | conn.endheaders(message_body=body) + | else: + | conn.endheaders() + | try: + | > response = conn.getresponse() + | ^^^^^^^^^^^^^^^^^^ + | + | tests/http_base.py:60: + | _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + | /usr/lib/python3.13/http/client.py:1430: in getresponse + | response.begin() + | /usr/lib/python3.13/http/client.py:331: in begin + | version, status, reason = self._read_status() + | ^^^^^^^^^^^^^^^^^^^ + | /usr/lib/python3.13/http/client.py:292: in _read_status + | line = str(self.fp.readline(_MAXLINE + 1), "iso-8859-1") + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + | _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + | + | self = + | b = + | + | def readinto(self, b): + | """Read up to len(b) bytes into the writable buffer *b* and return + | the number of bytes read. If the socket is non-blocking and no bytes + | are available, None is returned. + | + | If *b* is non-empty, a 0 return value indicates that the connection + | was shutdown at the other end. + | """ + | self._checkClosed() + | self._checkReadable() + | if self._timeout_occurred: + | raise OSError("cannot read from timed out object") + | try: + | > return self._sock.recv_into(b) + | ^^^^^^^^^^^^^^^^^^^^^^^ + | E TimeoutError: timed out + | + | /usr/lib/python3.13/socket.py:719: TimeoutError + | + | During handling of the above exception, another exception occurred: + | + | self = + | request_path = '/', chunk_size = 1 + | + | @given(request_path=http_strategies.http_path(), chunk_size=integers(min_value=1)) + | @settings(max_examples=5, deadline=5000) + | def test_request_body_chunking(self, request_path, chunk_size): + | """ + | Tests request body chunking logic. + | """ + | body = b"The quick brown fox jumps over the lazy dog" + | > _, messages = self.run_daphne_request( + | "POST", + | request_path, + | body=body, + | request_buffer_size=chunk_size, + | ) + | + | tests/test_http_request.py:130: + | _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + | tests/http_base.py:106: in run_daphne_request + | scope, messages, _ = self.run_daphne_http( + | _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + | + | self = + | method = 'POST', path = '/', params = None + | body = b'The quick brown fox jumps over the lazy dog' + | responses = [{'status': 200, 'type': 'http.response.start'}, {'body': b'OK', 'type': 'http.response.body'}] + | headers = None, timeout = 1, xff = False, request_buffer_size = 1 + | + | def run_daphne_http( + | self, + | method, + | path, + | params, + | body, + | responses, + | headers=None, + | timeout=1, + | xff=False, + | request_buffer_size=None, + | ): + | """ + | Runs Daphne with the given request callback (given the base URL) + | and response messages. + | """ + | with DaphneTestingInstance( + | xff=xff, request_buffer_size=request_buffer_size + | ) as test_app: + | # Add the response messages + | test_app.add_send_messages(responses) + | # Send it the request. We have to do this the long way to allow + | # duplicate headers. + | conn = HTTPConnection(test_app.host, test_app.port, timeout=timeout) + | if params: + | path += "?" + parse.urlencode(params, doseq=True) + | conn.putrequest(method, path, skip_accept_encoding=True, skip_host=True) + | # Manually send over headers + | if headers: + | for header_name, header_value in headers: + | conn.putheader(header_name, header_value) + | # Send body if provided. + | if body: + | conn.putheader("Content-Length", str(len(body))) + | conn.endheaders(message_body=body) + | else: + | conn.endheaders() + | try: + | response = conn.getresponse() + | except socket.timeout: + | # See if they left an exception for us to load + | test_app.get_received() + | > raise RuntimeError( + | "Daphne timed out handling request, no exception found." + | ) + | E RuntimeError: Daphne timed out handling request, no exception found. + | + | tests/http_base.py:64: RuntimeError + | + +-+---------------- 1 ---------------- + | Traceback (most recent call last): + | File "/build/reproducible-path/python-daphne-4.2.1/.pybuild/cpython3_3.13/build/tests/http_base.py", line 60, in run_daphne_http + | response = conn.getresponse() + | File "/usr/lib/python3.13/http/client.py", line 1430, in getresponse + | response.begin() + | ~~~~~~~~~~~~~~^^ + | File "/usr/lib/python3.13/http/client.py", line 331, in begin + | version, status, reason = self._read_status() + | ~~~~~~~~~~~~~~~~~^^ + | File "/usr/lib/python3.13/http/client.py", line 292, in _read_status + | line = str(self.fp.readline(_MAXLINE + 1), "iso-8859-1") + | ~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^ + | File "/usr/lib/python3.13/socket.py", line 719, in readinto + | return self._sock.recv_into(b) + | ~~~~~~~~~~~~~~~~~~~~^^^ + | TimeoutError: timed out + | + | During handling of the above exception, another exception occurred: + | + | Traceback (most recent call last): + | File "/usr/lib/python3/dist-packages/hypothesis/core.py", line 1207, in _execute_once_for_engine + | result = self.execute_once(data) + | File "/usr/lib/python3/dist-packages/hypothesis/core.py", line 1147, in execute_once + | result = self.test_runner(data, run) + | File "/usr/lib/python3/dist-packages/hypothesis/core.py", line 822, in default_executor + | return function(data) + | File "/usr/lib/python3/dist-packages/hypothesis/core.py", line 1103, in run + | return test(*args, **kwargs) + | File "/build/reproducible-path/python-daphne-4.2.1/.pybuild/cpython3_3.13/build/tests/test_http_request.py", line 124, in test_request_body_chunking + | @settings(max_examples=5, deadline=5000) + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + | File "/usr/lib/python3/dist-packages/hypothesis/core.py", line 1012, in test + | result = self.test(*args, **kwargs) + | File "/build/reproducible-path/python-daphne-4.2.1/.pybuild/cpython3_3.13/build/tests/test_http_request.py", line 130, in test_request_body_chunking + | _, messages = self.run_daphne_request( + | ~~~~~~~~~~~~~~~~~~~~~~~^ + | "POST", + | ^^^^^^^ + | ...<2 lines>... + | request_buffer_size=chunk_size, + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + | ) + | ^ + | File "/build/reproducible-path/python-daphne-4.2.1/.pybuild/cpython3_3.13/build/tests/http_base.py", line 106, in run_daphne_request + | scope, messages, _ = self.run_daphne_http( + | ~~~~~~~~~~~~~~~~~~~~^ + | method=method, + | ^^^^^^^^^^^^^^ + | ...<9 lines>... + | ], + | ^^ + | ) + | ^ + | File "/build/reproducible-path/python-daphne-4.2.1/.pybuild/cpython3_3.13/build/tests/http_base.py", line 64, in run_daphne_http + | raise RuntimeError( + | "Daphne timed out handling request, no exception found." + | ) + | RuntimeError: Daphne timed out handling request, no exception found. + +------------------------------------ +=========================== short test summary info ============================ +FAILED tests/test_http_request.py::TestHTTPRequest::test_request_body_chunking +============ 1 failed, 62 passed, 1 skipped, 1 deselected in 23.67s ============ +E: pybuild pybuild:389: test: plugin pyproject failed with: exit code=1: cd /build/reproducible-path/python-daphne-4.2.1/.pybuild/cpython3_3.13/build; python3.13 -m pytest --deselect tests/test_packaging.py::test_fd_endpoint_plugin_installed +dh_auto_test: error: pybuild --test --test-pytest -i python{version} -p 3.13 returned exit code 13 +make: *** [debian/rules:15: 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/3797835/tmp/hooks/C01_cleanup starting +debug output: disk usage on i-capture-the-hostname at Sat Oct 25 11:54:22 UTC 2025 +Filesystem Size Used Avail Use% Mounted on +tmpfs 12G 0 12G 0% /dev/shm + +I: user script /srv/workspace/pbuilder/3797835/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/3705296 and its subdirectories -I: Current time: Fri Nov 27 06:14:19 -12 2026 -I: pbuilder-time-stamp: 1795803259 +I: removing directory /srv/workspace/pbuilder/3797835 and its subdirectories