Diff of the two buildlogs: -- --- b1/build.log 2024-12-01 01:11:43.230230834 +0000 +++ b2/build.log 2024-12-01 01:21:45.814895822 +0000 @@ -1,6 +1,6 @@ I: pbuilder: network access will be disabled during build -I: Current time: Sat Nov 30 13:07:45 -12 2024 -I: pbuilder-time-stamp: 1733015265 +I: Current time: Sun Dec 1 15:11:56 +14 2024 +I: pbuilder-time-stamp: 1733015516 I: Building the build Environment I: extracting base tarball [/var/cache/pbuilder/trixie-reproducible-base.tgz] I: copying local configuration @@ -25,52 +25,84 @@ dpkg-source: info: unpacking python-asyncinject_0.6-2.debian.tar.xz I: Not using root during the build. I: Installing the build-deps -I: user script /srv/workspace/pbuilder/20638/tmp/hooks/D02_print_environment starting +I: user script /srv/workspace/pbuilder/30750/tmp/hooks/D01_modify_environment starting +debug: Running on ff64a. +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 Dec 1 01:13 /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/30750/tmp/hooks/D01_modify_environment finished +I: user script /srv/workspace/pbuilder/30750/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='armhf' - DEBIAN_FRONTEND='noninteractive' - DEB_BUILD_OPTIONS='buildinfo=+all reproducible=+all parallel=3 ' - DISTRIBUTION='trixie' - HOME='/root' - HOST_ARCH='armhf' + 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]="2" [2]="32" [3]="1" [4]="release" [5]="arm-unknown-linux-gnueabihf") + BASH_VERSION='5.2.32(1)-release' + BUILDDIR=/build/reproducible-path + BUILDUSERGECOS='second user,second room,second work-phone,second home-phone,second other' + BUILDUSERNAME=pbuilder2 + BUILD_ARCH=armhf + DEBIAN_FRONTEND=noninteractive + DEB_BUILD_OPTIONS='buildinfo=+all reproducible=+all parallel=6 ' + DIRSTACK=() + DISTRIBUTION=trixie + EUID=0 + FUNCNAME=([0]="Echo" [1]="main") + GROUPS=() + HOME=/root + HOSTNAME=i-capture-the-hostname + HOSTTYPE=arm + HOST_ARCH=armhf IFS=' ' - INVOCATION_ID='0a59a6a786d64486877d94f44de4fcaa' - 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='20638' - PS1='# ' - PS2='> ' + INVOCATION_ID=cea887e4f2884172afc4d66720f94d47 + LANG=C + LANGUAGE=it_CH:it + LC_ALL=C + MACHTYPE=arm-unknown-linux-gnueabihf + MAIL=/var/mail/root + OPTERR=1 + OPTIND=1 + OSTYPE=linux-gnueabihf + 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=30750 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.qRh9qbtJ/pbuilderrc_vNH5 --distribution trixie --hookdir /etc/pbuilder/first-build-hooks --debbuildopts -b --basetgz /var/cache/pbuilder/trixie-reproducible-base.tgz --buildresult /srv/reproducible-results/rbuild-debian/r-b-build.qRh9qbtJ/b1 --logfile b1/build.log python-asyncinject_0.6-2.dsc' - SUDO_GID='113' - SUDO_UID='107' - SUDO_USER='jenkins' - TERM='unknown' - TZ='/usr/share/zoneinfo/Etc/GMT+12' - USER='root' - _='/usr/bin/systemd-run' - http_proxy='http://10.0.0.15:3142/' + 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.qRh9qbtJ/pbuilderrc_jlPR --distribution trixie --hookdir /etc/pbuilder/rebuild-hooks --debbuildopts -b --basetgz /var/cache/pbuilder/trixie-reproducible-base.tgz --buildresult /srv/reproducible-results/rbuild-debian/r-b-build.qRh9qbtJ/b2 --logfile b2/build.log python-asyncinject_0.6-2.dsc' + SUDO_GID=114 + SUDO_UID=109 + SUDO_USER=jenkins + TERM=unknown + TZ=/usr/share/zoneinfo/Etc/GMT-14 + UID=0 + USER=root + _='I: set' + http_proxy=http://10.0.0.15:3142/ I: uname -a - Linux cbxi4a 6.1.0-23-armmp #1 SMP Debian 6.1.99-1 (2024-07-15) armv7l GNU/Linux + Linux i-capture-the-hostname 6.1.0-28-arm64 #1 SMP Debian 6.1.119-1 (2024-11-22) aarch64 GNU/Linux I: ls -l /bin lrwxrwxrwx 1 root root 7 Aug 4 21:30 /bin -> usr/bin -I: user script /srv/workspace/pbuilder/20638/tmp/hooks/D02_print_environment finished +I: user script /srv/workspace/pbuilder/30750/tmp/hooks/D02_print_environment finished -> Attempting to satisfy build-dependencies -> Creating pbuilder-satisfydepends-dummy package Package: pbuilder-satisfydepends-dummy @@ -193,7 +225,7 @@ Get: 73 http://deb.debian.org/debian trixie/main armhf python3-pluggy all 1.5.0-1 [26.9 kB] Get: 74 http://deb.debian.org/debian trixie/main armhf python3-pytest all 8.3.3-1 [249 kB] Get: 75 http://deb.debian.org/debian trixie/main armhf python3-pytest-asyncio all 0.20.3-1.3 [13.5 kB] -Fetched 27.3 MB in 3s (9032 kB/s) +Fetched 27.3 MB in 3s (8738 kB/s) debconf: delaying package configuration, since apt-utils is not installed Selecting previously unselected package libpython3.12-minimal:armhf. (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 ... 19683 files and directories currently installed.) @@ -452,8 +484,8 @@ Setting up tzdata (2024b-3) ... Current default time zone: 'Etc/UTC' -Local time is now: Sun Dec 1 01:09:42 UTC 2024. -Universal Time is now: Sun Dec 1 01:09:42 UTC 2024. +Local time is now: Sun Dec 1 01:16:13 UTC 2024. +Universal Time is now: Sun Dec 1 01:16:13 UTC 2024. Run 'dpkg-reconfigure tzdata' if you wish to change it. Setting up autotools-dev (20220109.1) ... @@ -522,7 +554,11 @@ Building tag database... -> Finished parsing the build-deps I: Building the package -I: Running cd /build/reproducible-path/python-asyncinject-0.6/ && 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-asyncinject_0.6-2_source.changes +I: user script /srv/workspace/pbuilder/30750/tmp/hooks/A99_set_merged_usr starting +Not re-configuring usrmerge for trixie +I: user script /srv/workspace/pbuilder/30750/tmp/hooks/A99_set_merged_usr finished +hostname: Name or service not known +I: Running cd /build/reproducible-path/python-asyncinject-0.6/ && 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-asyncinject_0.6-2_source.changes dpkg-buildpackage: info: source package python-asyncinject dpkg-buildpackage: info: source version 0.6-2 dpkg-buildpackage: info: source distribution unstable @@ -577,7 +613,7 @@ Copying asyncinject.egg-info to build/bdist.linux-armv7l/wheel/./asyncinject-0.6.egg-info running install_scripts creating build/bdist.linux-armv7l/wheel/asyncinject-0.6.dist-info/WHEEL -creating '/build/reproducible-path/python-asyncinject-0.6/.pybuild/cpython3_3.12_asyncinject/.tmp-0wdxqxct/asyncinject-0.6-py3-none-any.whl' and adding 'build/bdist.linux-armv7l/wheel' to it +creating '/build/reproducible-path/python-asyncinject-0.6/.pybuild/cpython3_3.12_asyncinject/.tmp-7khw35xq/asyncinject-0.6-py3-none-any.whl' and adding 'build/bdist.linux-armv7l/wheel' to it adding 'asyncinject/__init__.py' adding 'asyncinject/vendored_graphlib.py' adding 'asyncinject-0.6.dist-info/LICENSE' @@ -594,46 +630,58 @@ platform linux -- Python 3.12.7, pytest-8.3.3, pluggy-1.5.0 rootdir: /build/reproducible-path/python-asyncinject-0.6/.pybuild/cpython3_3.12_asyncinject/build configfile: pytest.ini -plugins: asyncio-0.20.3, typeguard-4.4.1 +plugins: typeguard-4.4.1, asyncio-0.20.3 asyncio: mode=Mode.STRICT collected 14 items -tests/test_asyncinject.py .............. [100%] +tests/test_asyncinject.py ......F....... [100%] -============================== 14 passed in 2.33s ============================== - create-stamp debian/debhelper-build-stamp - dh_testroot -O--buildsystem=pybuild - dh_prep -O--buildsystem=pybuild - dh_auto_install --destdir=debian/python3-asyncinject/ -O--buildsystem=pybuild -I: pybuild plugin_pyproject:178: Copying package built for python3.12 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-asyncinject' in '../python3-asyncinject_0.6-2_all.deb'. - dpkg-genbuildinfo --build=binary -O../python-asyncinject_0.6-2_armhf.buildinfo - dpkg-genchanges --build=binary -O../python-asyncinject_0.6-2_armhf.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: not including original source code in upload +=================================== FAILURES =================================== +___________________________ test_optimal_concurrency ___________________________ + + @pytest.mark.asyncio + async def test_optimal_concurrency(): + # https://github.com/simonw/asyncinject/issues/10 + async def a(): + await asyncio.sleep(0.1) + + async def b(): + await asyncio.sleep(0.2) + + async def c(a): + await asyncio.sleep(0.1) + + async def d(b, c): + pass + + registry = Registry(a, b, c, d) + start = time.perf_counter() + await registry.resolve(d) + end = time.perf_counter() + # Should have taken ~0.2s +> assert 0.18 < (end - start) < 0.22 +E assert (529047.22898783 - 529047.007677406) < 0.22 + +tests/test_asyncinject.py:156: AssertionError +=========================== short test summary info ============================ +FAILED tests/test_asyncinject.py::test_optimal_concurrency - assert (529047.2... +========================= 1 failed, 13 passed in 4.42s ========================= +E: pybuild pybuild:389: test: plugin pyproject failed with: exit code=1: cd /build/reproducible-path/python-asyncinject-0.6/.pybuild/cpython3_3.12_asyncinject/build; python3.12 -m pytest tests +dh_auto_test: error: pybuild --test -i python{version} -p 3.12 returned exit code 13 +make: *** [debian/rules:6: 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/30750/tmp/hooks/C01_cleanup starting +debug output: disk usage on i-capture-the-hostname at Sun Dec 1 01:21:34 UTC 2024 +Filesystem Size Used Avail Use% Mounted on +tmpfs 1.9G 0 1.9G 0% /dev/shm + +I: user script /srv/workspace/pbuilder/30750/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/20638 and its subdirectories -I: Current time: Sat Nov 30 13:11:38 -12 2024 -I: pbuilder-time-stamp: 1733015498 +I: removing directory /srv/workspace/pbuilder/30750 and its subdirectories