Diff of the two buildlogs: -- --- b1/build.log 2025-09-09 09:16:38.945876996 +0000 +++ b2/build.log 2025-09-09 09:22:58.242307210 +0000 @@ -1,6 +1,6 @@ I: pbuilder: network access will be disabled during build -I: Current time: Mon Sep 8 21:11:02 -12 2025 -I: pbuilder-time-stamp: 1757409062 +I: Current time: Tue Oct 13 05:39:39 +14 2026 +I: pbuilder-time-stamp: 1791819579 I: Building the build Environment I: extracting base tarball [/var/cache/pbuilder/unstable-reproducible-base.tgz] I: copying local configuration @@ -25,53 +25,85 @@ dpkg-source: info: applying 0002-Use-python3-instead-of-python-in-test.patch I: Not using root during the build. I: Installing the build-deps -I: user script /srv/workspace/pbuilder/2184618/tmp/hooks/D02_print_environment starting +I: user script /srv/workspace/pbuilder/295359/tmp/hooks/D01_modify_environment starting +debug: Running on ionos5-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 12 15:40 /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/295359/tmp/hooks/D01_modify_environment finished +I: user script /srv/workspace/pbuilder/295359/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=40 ' - DISTRIBUTION='unstable' - 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=42 ' + DIRSTACK=() + DISTRIBUTION=unstable + EUID=0 + FUNCNAME=([0]="Echo" [1]="main") + GROUPS=() + HOME=/root + HOSTNAME=i-capture-the-hostname + HOSTTYPE=x86_64 + HOST_ARCH=amd64 IFS=' ' - INVOCATION_ID='b4ffc7d09110447782eed4c10a0418c2' - 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='2184618' - PS1='# ' - PS2='> ' + INVOCATION_ID=c29971b6d4094724a4e7e124ef50a5db + 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=295359 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.YGYcAoRf/pbuilderrc_WJys --distribution unstable --hookdir /etc/pbuilder/first-build-hooks --debbuildopts -b --basetgz /var/cache/pbuilder/unstable-reproducible-base.tgz --buildresult /srv/reproducible-results/rbuild-debian/r-b-build.YGYcAoRf/b1 --logfile b1/build.log con-duct_0.15.0-1.dsc' - SUDO_GID='110' - SUDO_HOME='/var/lib/jenkins' - SUDO_UID='105' - SUDO_USER='jenkins' - TERM='unknown' - TZ='/usr/share/zoneinfo/Etc/GMT+12' - USER='root' - _='/usr/bin/systemd-run' - http_proxy='http://46.16.76.132: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.YGYcAoRf/pbuilderrc_LLF1 --distribution unstable --hookdir /etc/pbuilder/rebuild-hooks --debbuildopts -b --basetgz /var/cache/pbuilder/unstable-reproducible-base.tgz --buildresult /srv/reproducible-results/rbuild-debian/r-b-build.YGYcAoRf/b2 --logfile b2/build.log con-duct_0.15.0-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://213.165.73.152:3128 I: uname -a - Linux ionos1-amd64 6.12.43+deb13-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.12.43-1 (2025-08-27) x86_64 GNU/Linux + Linux i-capture-the-hostname 6.12.43+deb13-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.12.43-1 (2025-08-27) x86_64 GNU/Linux I: ls -l /bin - lrwxrwxrwx 1 root root 7 Aug 10 12:30 /bin -> usr/bin -I: user script /srv/workspace/pbuilder/2184618/tmp/hooks/D02_print_environment finished + lrwxrwxrwx 1 root root 7 Aug 10 2025 /bin -> usr/bin +I: user script /srv/workspace/pbuilder/295359/tmp/hooks/D02_print_environment finished -> Attempting to satisfy build-dependencies -> Creating pbuilder-satisfydepends-dummy package Package: pbuilder-satisfydepends-dummy @@ -299,7 +331,7 @@ Get: 168 http://deb.debian.org/debian unstable/main amd64 python3-pytest-cov all 5.0.0-1 [26.8 kB] Get: 169 http://deb.debian.org/debian unstable/main amd64 python3-pytest-rerunfailures all 15.1-1 [17.2 kB] Get: 170 http://deb.debian.org/debian unstable/main amd64 python3-yaml amd64 6.0.2-2 [137 kB] -Fetched 115 MB in 32s (3567 kB/s) +Fetched 115 MB in 29s (3995 kB/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 ... 19917 files and directories currently installed.) @@ -858,8 +890,8 @@ Setting up tzdata (2025b-5) ... Current default time zone: 'Etc/UTC' -Local time is now: Tue Sep 9 09:14:47 UTC 2025. -Universal Time is now: Tue Sep 9 09:14:47 UTC 2025. +Local time is now: Mon Oct 12 15:42:59 UTC 2026. +Universal Time is now: Mon Oct 12 15:42:59 UTC 2026. Run 'dpkg-reconfigure tzdata' if you wish to change it. Setting up unicode-data (16.0.0-1) ... @@ -1011,7 +1043,11 @@ Building tag database... -> Finished parsing the build-deps I: Building the package -I: Running cd /build/reproducible-path/con-duct-0.15.0/ && 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 > ../con-duct_0.15.0-1_source.changes +I: user script /srv/workspace/pbuilder/295359/tmp/hooks/A99_set_merged_usr starting +Not re-configuring usrmerge for unstable +I: user script /srv/workspace/pbuilder/295359/tmp/hooks/A99_set_merged_usr finished +hostname: Name or service not known +I: Running cd /build/reproducible-path/con-duct-0.15.0/ && 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 > ../con-duct_0.15.0-1_source.changes dpkg-buildpackage: info: source package con-duct dpkg-buildpackage: info: source version 0.15.0-1 dpkg-buildpackage: info: source distribution unstable @@ -1050,15 +1086,15 @@ running build running build_py creating build/lib/con_duct +copying src/con_duct/_version.py -> build/lib/con_duct copying src/con_duct/__init__.py -> build/lib/con_duct -copying src/con_duct/__main__.py -> build/lib/con_duct copying src/con_duct/utils.py -> build/lib/con_duct -copying src/con_duct/_version.py -> build/lib/con_duct +copying src/con_duct/__main__.py -> build/lib/con_duct creating build/lib/con_duct/suite copying src/con_duct/suite/pprint_json.py -> build/lib/con_duct/suite -copying src/con_duct/suite/plot.py -> build/lib/con_duct/suite -copying src/con_duct/suite/main.py -> build/lib/con_duct/suite copying src/con_duct/suite/ls.py -> build/lib/con_duct/suite +copying src/con_duct/suite/main.py -> build/lib/con_duct/suite +copying src/con_duct/suite/plot.py -> build/lib/con_duct/suite running egg_info creating src/con_duct.egg-info writing src/con_duct.egg-info/PKG-INFO @@ -1079,21 +1115,21 @@ running install_lib creating build/bdist.linux-x86_64/wheel creating build/bdist.linux-x86_64/wheel/con_duct +copying build/lib/con_duct/_version.py -> build/bdist.linux-x86_64/wheel/./con_duct copying build/lib/con_duct/__init__.py -> build/bdist.linux-x86_64/wheel/./con_duct -copying build/lib/con_duct/py.typed -> build/bdist.linux-x86_64/wheel/./con_duct -copying build/lib/con_duct/__main__.py -> build/bdist.linux-x86_64/wheel/./con_duct copying build/lib/con_duct/utils.py -> build/bdist.linux-x86_64/wheel/./con_duct +copying build/lib/con_duct/py.typed -> build/bdist.linux-x86_64/wheel/./con_duct creating build/bdist.linux-x86_64/wheel/con_duct/suite copying build/lib/con_duct/suite/pprint_json.py -> build/bdist.linux-x86_64/wheel/./con_duct/suite -copying build/lib/con_duct/suite/plot.py -> build/bdist.linux-x86_64/wheel/./con_duct/suite -copying build/lib/con_duct/suite/main.py -> build/bdist.linux-x86_64/wheel/./con_duct/suite copying build/lib/con_duct/suite/ls.py -> build/bdist.linux-x86_64/wheel/./con_duct/suite -copying build/lib/con_duct/_version.py -> build/bdist.linux-x86_64/wheel/./con_duct +copying build/lib/con_duct/suite/main.py -> build/bdist.linux-x86_64/wheel/./con_duct/suite +copying build/lib/con_duct/suite/plot.py -> build/bdist.linux-x86_64/wheel/./con_duct/suite +copying build/lib/con_duct/__main__.py -> build/bdist.linux-x86_64/wheel/./con_duct running install_egg_info Copying src/con_duct.egg-info to build/bdist.linux-x86_64/wheel/./con_duct-0.15.0.egg-info running install_scripts creating build/bdist.linux-x86_64/wheel/con_duct-0.15.0.dist-info/WHEEL -creating '/build/reproducible-path/con-duct-0.15.0/.pybuild/cpython3_3.13_con-duct/.tmp-inal_a8u/con_duct-0.15.0-py3-none-any.whl' and adding 'build/bdist.linux-x86_64/wheel' to it +creating '/build/reproducible-path/con-duct-0.15.0/.pybuild/cpython3_3.13_con-duct/.tmp-l001enkk/con_duct-0.15.0-py3-none-any.whl' and adding 'build/bdist.linux-x86_64/wheel' to it adding 'con_duct/__init__.py' adding 'con_duct/__main__.py' adding 'con_duct/_version.py' @@ -1119,13 +1155,13 @@ platform linux -- Python 3.13.7, pytest-8.4.2, pluggy-1.6.0 rootdir: /build/reproducible-path/con-duct-0.15.0 configfile: tox.ini -plugins: rerunfailures-15.1, typeguard-4.4.4, cov-5.0.0 +plugins: typeguard-4.4.4, rerunfailures-15.1, cov-5.0.0 collected 260 items test/test_aggregation.py .............. [ 5%] test/test_arg_parsing.py .............. [ 10%] -test/test_e2e.py ................ [ 16%] -test/test_execution.py .......................... [ 26%] +test/test_e2e.py ..R.R....R....RR..... [ 16%] +test/test_execution.py ..................F....... [ 26%] test/test_formatter.py ................................................. [ 45%] ......... [ 49%] test/test_log_paths.py .............. [ 54%] @@ -1138,71 +1174,78 @@ test/test_utils.py ........... [ 95%] test/test_validation.py ............. [100%] ----------- coverage: platform linux, python 3.13.7-final-0 ----------- -Name Stmts Miss Cover ---------------------------------------------------- -con_duct/__init__.py 2 0 100% -con_duct/__main__.py 621 26 96% -con_duct/_version.py 1 1 0% -con_duct/suite/ls.py 127 14 89% -con_duct/suite/main.py 43 2 95% -con_duct/suite/plot.py 40 1 98% -con_duct/suite/pprint_json.py 36 0 100% -con_duct/utils.py 6 0 100% ---------------------------------------------------- -TOTAL 876 44 95% +=================================== FAILURES =================================== +____________________________ test_signal_kill[None] ____________________________ +temp_output_dir = '/tmp/pytest-of-pbuilder2/pytest-0/test_signal_kill_None_0/' +fail_time = None -============================= 260 passed in 45.85s ============================= - create-stamp debian/debhelper-build-stamp - dh_testroot -O--buildsystem=pybuild - dh_prep -O--buildsystem=pybuild - dh_auto_install --destdir=debian/con-duct/ -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 - debian/rules override_dh_installman -make[1]: Entering directory '/build/reproducible-path/con-duct-0.15.0' -: # Generate a manpage using help2man -mkdir -p build -cp -p src/con_duct/__main__.py build/duct -help2man --no-info --no-discard-stderr \ - -n "lightweight wrapper that collects execution data for a command" \ - ./build/duct >| build/duct.1 -rm -f build/duct -: # Verify that manpage generated nicely -- no Errors reported -grep -q 'ImportError:' build/duct.1 && exit 1 || : -dh_installman -make[1]: Leaving directory '/build/reproducible-path/con-duct-0.15.0' - dh_python3 -O--buildsystem=pybuild -I: dh_python3 tools:114: replacing shebang in debian/con-duct/usr/bin/con-duct -I: dh_python3 tools:114: replacing shebang in debian/con-duct/usr/bin/duct - 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 'con-duct' in '../con-duct_0.15.0-1_all.deb'. - dpkg-genbuildinfo --build=binary -O../con-duct_0.15.0-1_amd64.buildinfo - dpkg-genchanges --build=binary -O../con-duct_0.15.0-1_amd64.changes -dpkg-genchanges: info: binary-only upload (no source code included) - dpkg-source --after-build . -dpkg-source: info: using options from con-duct-0.15.0/debian/source/options: --extend-diff-ignore=^[^/]+.(egg-info|dist-info)/ -dpkg-buildpackage: info: binary-only upload (no source included) -dpkg-genchanges: info: including full source code in upload + @pytest.mark.parametrize("fail_time", [None, 0, 10, -1, -3.14]) + def test_signal_kill(temp_output_dir: str, fail_time: float | None) -> None: + + def runner() -> int: + script_path = str(TEST_SCRIPT_DIR / "signal_ignorer.py") + kws = {} + if fail_time is not None: + kws["fail_time"] = fail_time + args = Arguments.from_argv([script_path], output_prefix=temp_output_dir, **kws) + return execute(args) + + wait_time = 0.6 + proc = multiprocessing.Process(target=runner) + proc.start() + sleep(wait_time) + assert proc.pid is not None, "Process PID should not be None" # for mypy + os.kill(proc.pid, signal.SIGINT) + sleep(wait_time) + os.kill(proc.pid, signal.SIGINT) + sleep(wait_time) + os.kill(proc.pid, signal.SIGINT) + proc.join() + + # Once the command has been killed, duct should exit gracefully with exit code 0 +> assert proc.exitcode == 0 +E AssertionError: assert 1 == 0 +E + where 1 = .exitcode + +test/test_execution.py:271: AssertionError +----------------------------- Captured stderr call ----------------------------- +Process Process-6: +Traceback (most recent call last): + File "/usr/lib/python3.13/multiprocessing/process.py", line 313, in _bootstrap + self.run() + ~~~~~~~~^^ + File "/usr/lib/python3.13/multiprocessing/process.py", line 108, in run + self._target(*self._args, **self._kwargs) + ~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/build/reproducible-path/con-duct-0.15.0/.pybuild/cpython3_3.13_con-duct/build/test/test_execution.py", line 256, in runner + return execute(args) + File "/build/reproducible-path/con-duct-0.15.0/.pybuild/cpython3_3.13_con-duct/build/con_duct/__main__.py", line 1214, in execute + with open(log_paths.info, "w") as system_logs: + ~~~~^^^^^^^^^^^^^^^^^^^^^ + File "/build/reproducible-path/con-duct-0.15.0/.pybuild/cpython3_3.13_con-duct/build/con_duct/__main__.py", line 1082, in handle_signal + os.kill(self.pid, signal.SIGINT) + ~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^ +ProcessLookupError: [Errno 3] No such process +=========================== short test summary info ============================ +FAILED test/test_execution.py::test_signal_kill[None] - AssertionError: asser... +============== 1 failed, 259 passed, 5 rerun in 121.73s (0:02:01) ============== +E: pybuild pybuild:389: test: plugin pyproject failed with: exit code=1: cd /build/reproducible-path/con-duct-0.15.0/.pybuild/cpython3_3.13_con-duct/build; python3.13 -m pytest test +dh_auto_test: error: pybuild --test --test-pytest -i python{version} -p 3.13 returned exit code 13 +make: *** [debian/rules:7: 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/295359/tmp/hooks/C01_cleanup starting +debug output: disk usage on i-capture-the-hostname at Mon Oct 12 15:45:51 UTC 2026 +Filesystem Size Used Avail Use% Mounted on +tmpfs 40G 0 40G 0% /dev/shm + +I: user script /srv/workspace/pbuilder/295359/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/2184618 and its subdirectories -I: Current time: Mon Sep 8 21:16:38 -12 2025 -I: pbuilder-time-stamp: 1757409398 +I: removing directory /srv/workspace/pbuilder/295359 and its subdirectories