Diff of the two buildlogs: -- --- b1/build.log 2024-12-07 15:48:24.352833872 +0000 +++ b2/build.log 2024-12-07 15:50:11.891951943 +0000 @@ -1,6 +1,6 @@ I: pbuilder: network access will be disabled during build -I: Current time: Fri Jan 9 10:10:50 -12 2026 -I: pbuilder-time-stamp: 1767996650 +I: Current time: Sun Dec 8 05:48:28 +14 2024 +I: pbuilder-time-stamp: 1733586508 I: Building the build Environment I: extracting base tarball [/var/cache/pbuilder/trixie-reproducible-base.tgz] I: copying local configuration @@ -27,53 +27,85 @@ dpkg-source: info: unpacking python-ftputil_5.1.0-1.debian.tar.xz I: Not using root during the build. I: Installing the build-deps -I: user script /srv/workspace/pbuilder/1739/tmp/hooks/D02_print_environment starting +I: user script /srv/workspace/pbuilder/20040/tmp/hooks/D01_modify_environment starting +debug: Running on infom07-i386. +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 7 15:48 /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/20040/tmp/hooks/D01_modify_environment finished +I: user script /srv/workspace/pbuilder/20040/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='i386' - DEBIAN_FRONTEND='noninteractive' - DEB_BUILD_OPTIONS='buildinfo=+all reproducible=+all parallel=6 ' - DISTRIBUTION='trixie' - HOME='/root' - HOST_ARCH='i386' + 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]="i686-pc-linux-gnu") + 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=i386 + DEBIAN_FRONTEND=noninteractive + DEB_BUILD_OPTIONS='buildinfo=+all reproducible=+all parallel=5 ' + DIRSTACK=() + DISTRIBUTION=trixie + EUID=0 + FUNCNAME=([0]="Echo" [1]="main") + GROUPS=() + HOME=/root + HOSTNAME=i-capture-the-hostname + HOSTTYPE=i686 + HOST_ARCH=i386 IFS=' ' - INVOCATION_ID='e39e5424ae4e4db482f14f27d07052ce' - LANG='C' - LANGUAGE='en_US:en' - LC_ALL='C' - LD_LIBRARY_PATH='/usr/lib/libeatmydata' - LD_PRELOAD='libeatmydata.so' - 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='1739' - PS1='# ' - PS2='> ' + INVOCATION_ID=dfb77bdbeb27424795e28dae389e31d7 + LANG=C + LANGUAGE=de_CH:de + LC_ALL=C + LD_LIBRARY_PATH=/usr/lib/libeatmydata + LD_PRELOAD=libeatmydata.so + MACHTYPE=i686-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=20040 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.277cSPaj/pbuilderrc_VhiD --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.277cSPaj/b1 --logfile b1/build.log python-ftputil_5.1.0-1.dsc' - SUDO_GID='111' - 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.277cSPaj/pbuilderrc_Yans --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.277cSPaj/b2 --logfile b2/build.log python-ftputil_5.1.0-1.dsc' + SUDO_GID=111 + 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 infom08-i386 6.11.5+bpo-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.11.5-1~bpo12+1 (2024-11-11) x86_64 GNU/Linux + Linux i-capture-the-hostname 6.1.0-28-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.1.119-1 (2024-11-22) x86_64 GNU/Linux I: ls -l /bin - lrwxrwxrwx 1 root root 7 Nov 22 2024 /bin -> usr/bin -I: user script /srv/workspace/pbuilder/1739/tmp/hooks/D02_print_environment finished + lrwxrwxrwx 1 root root 7 Nov 22 14:40 /bin -> usr/bin +I: user script /srv/workspace/pbuilder/20040/tmp/hooks/D02_print_environment finished -> Attempting to satisfy build-dependencies -> Creating pbuilder-satisfydepends-dummy package Package: pbuilder-satisfydepends-dummy @@ -189,7 +221,7 @@ Get: 68 http://deb.debian.org/debian trixie/main i386 python3-packaging all 24.2-1 [55.3 kB] Get: 69 http://deb.debian.org/debian trixie/main i386 python3-pluggy all 1.5.0-1 [26.9 kB] Get: 70 http://deb.debian.org/debian trixie/main i386 python3-pytest all 8.3.3-1 [249 kB] -Fetched 29.1 MB in 0s (83.4 MB/s) +Fetched 29.1 MB in 0s (64.1 MB/s) debconf: delaying package configuration, since apt-utils is not installed Selecting previously unselected package libpython3.12-minimal:i386. (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 ... 19957 files and directories currently installed.) @@ -433,8 +465,8 @@ Setting up tzdata (2024b-4) ... Current default time zone: 'Etc/UTC' -Local time is now: Fri Jan 9 22:11:08 UTC 2026. -Universal Time is now: Fri Jan 9 22:11:08 UTC 2026. +Local time is now: Sat Dec 7 15:49:32 UTC 2024. +Universal Time is now: Sat Dec 7 15:49:32 UTC 2024. Run 'dpkg-reconfigure tzdata' if you wish to change it. Setting up autotools-dev (20220109.1) ... @@ -498,7 +530,11 @@ Building tag database... -> Finished parsing the build-deps I: Building the package -I: Running cd /build/reproducible-path/python-ftputil-5.1.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 > ../python-ftputil_5.1.0-1_source.changes +I: user script /srv/workspace/pbuilder/20040/tmp/hooks/A99_set_merged_usr starting +Not re-configuring usrmerge for trixie +I: user script /srv/workspace/pbuilder/20040/tmp/hooks/A99_set_merged_usr finished +hostname: Name or service not known +I: Running cd /build/reproducible-path/python-ftputil-5.1.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 > ../python-ftputil_5.1.0-1_source.changes dpkg-buildpackage: info: source package python-ftputil dpkg-buildpackage: info: source version 5.1.0-1 dpkg-buildpackage: info: source distribution unstable @@ -532,7 +568,7 @@ test/test_error.py ..... [ 3%] test/test_file.py .................... [ 18%] test/test_file_transfer.py ..... [ 22%] -test/test_host.py ........................... [ 42%] +test/test_host.py .......................F... [ 42%] test/test_path.py ................ [ 54%] test/test_session.py ........... [ 62%] test/test_stat.py ....................... [ 79%] @@ -541,55 +577,134 @@ test/test_tool.py ......... [ 95%] test/test_with_statement.py ...... [100%] -====================== 135 passed, 14 deselected in 2.62s ====================== - create-stamp debian/debhelper-build-stamp - dh_testroot -O--buildsystem=pybuild - dh_prep -O--buildsystem=pybuild - dh_auto_install --destdir=debian/python3-ftputil/ -O--buildsystem=pybuild -I: pybuild base:311: /usr/bin/python3 setup.py install --root /build/reproducible-path/python-ftputil-5.1.0/debian/python3-ftputil -/usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. -!! +=================================== FAILURES =================================== +______ TestUploadAndDownload.test_conditional_download_with_newer_target _______ - ******************************************************************************** - Please avoid running ``setup.py`` directly. - Instead, use pypa/build, pypa/installer or other - standards-based tools. +self = +tmp_path = PosixPath('/tmp/pytest-of-pbuilder2/pytest-0/test_conditional_download_with2') - See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. - ******************************************************************************** + def test_conditional_download_with_newer_target(self, tmp_path): + """ + Test conditional binary mode download with older source file. + """ + local_target = tmp_path / "test_target" + # Make sure file exists for timestamp comparison. + local_target.touch() + data = binary_data() + # Use date in the past, so the target file is newer and no download + # happens. + dir_result = test_base.dir_line( + mode_string="-rw-r--r--", + date_=datetime.date.today() - datetime.timedelta(days=1), + name="newer", + ) + host_script = [ + Call("__init__"), + Call("pwd", result="/"), + Call("cwd", args=("/",)), + Call("cwd", args=("/",)), + Call("dir", args=("",), result=dir_result), + Call("cwd", args=("/",)), + Call("close"), + ] + file_script = [ + Call("__init__"), + Call("pwd", result="/"), + Call("cwd", args=("/",)), + Call("voidcmd", args=("TYPE I",)), + Call("transfercmd", args=("RETR newer", None), result=io.BytesIO(data)), + Call("voidresp"), + Call("close"), + ] + multisession_factory = scripted_session.factory(host_script, file_script) + with test_base.ftp_host_factory(multisession_factory) as host: + flag = host.download_if_newer("/newer", str(local_target)) +> assert flag is False +E assert True is False -!! - self.initialize_options() - 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 -dpkg-gencontrol: warning: Recommends field of package python3-ftputil: substitution variable ${python3:Recommends} used, but is not defined -dpkg-gencontrol: warning: Suggests field of package python3-ftputil: substitution variable ${python3:Suggests} used, but is not defined - dh_md5sums -O--buildsystem=pybuild - dh_builddeb -O--buildsystem=pybuild -dpkg-deb: building package 'python3-ftputil' in '../python3-ftputil_5.1.0-1_all.deb'. - dpkg-genbuildinfo --build=binary -O../python-ftputil_5.1.0-1_i386.buildinfo - dpkg-genchanges --build=binary -O../python-ftputil_5.1.0-1_i386.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 +test/test_host.py:774: AssertionError +----------------------------- Captured stdout call ----------------------------- +ScriptedSession 1 in `_next_script_call` +ScriptedSession 1 next call: Call(method_name='__init__', result=None, args=None, kwargs=None) +ScriptedSession 1 in `_next_script_call` +ScriptedSession 1 next call: Call(method_name='pwd', result='/', args=None, kwargs=None) +ScriptedSession 1 in `__getattr__` + Call from session script: pwd | None | None + Call from system under test: pwd | () | {} +ScriptedSession 1 in `_next_script_call` +ScriptedSession 1 next call: Call(method_name='cwd', result=None, args=('/',), kwargs=None) +ScriptedSession 1 in `__getattr__` + Call from session script: cwd | ('/',) | None + Call from system under test: cwd | ('/',) | {} +ScriptedSession 1 in `_next_script_call` +ScriptedSession 1 next call: Call(method_name='cwd', result=None, args=('/',), kwargs=None) +ScriptedSession 1 in `__getattr__` + Call from session script: cwd | ('/',) | None + Call from system under test: cwd | ('/',) | {} +ScriptedSession 1 in `_next_script_call` +ScriptedSession 1 next call: Call(method_name='dir', result='-rw-r--r-- 1 dummy_user dummy_group 512 Dec 07 2024 newer', args=('',), kwargs=None) + Call from session script: dir | ('',) | None + Call from system under test: dir | ('',) | None +ScriptedSession 1 in `_next_script_call` +ScriptedSession 1 next call: Call(method_name='cwd', result=None, args=('/',), kwargs=None) +ScriptedSession 1 in `__getattr__` + Call from session script: cwd | ('/',) | None + Call from system under test: cwd | ('/',) | {} +ScriptedSession 2 in `_next_script_call` +ScriptedSession 2 next call: Call(method_name='__init__', result=None, args=None, kwargs=None) +ScriptedSession 2 in `_next_script_call` +ScriptedSession 2 next call: Call(method_name='pwd', result='/', args=None, kwargs=None) +ScriptedSession 2 in `__getattr__` + Call from session script: pwd | None | None + Call from system under test: pwd | () | {} +ScriptedSession 2 in `_next_script_call` +ScriptedSession 2 next call: Call(method_name='cwd', result=None, args=('/',), kwargs=None) +ScriptedSession 2 in `__getattr__` + Call from session script: cwd | ('/',) | None + Call from system under test: cwd | ('/',) | {} +ScriptedSession 2 in `_next_script_call` +ScriptedSession 2 next call: Call(method_name='voidcmd', result=None, args=('TYPE I',), kwargs=None) +ScriptedSession 2 in `__getattr__` + Call from session script: voidcmd | ('TYPE I',) | None + Call from system under test: voidcmd | ('TYPE I',) | {} +ScriptedSession 2 in `_next_script_call` +ScriptedSession 2 next call: Call(method_name='transfercmd', result=<_io.BytesIO object at 0xf6a89078>, args=('RETR newer', None), kwargs=None) + Call from session script: transfercmd | ('RETR newer', None) | None + Call from system under test: transfercmd | ('RETR newer', None) | None +ScriptedSession 2 in `_next_script_call` +ScriptedSession 2 next call: Call(method_name='voidresp', result=None, args=None, kwargs=None) +ScriptedSession 2 in `__getattr__` + Call from session script: voidresp | None | None + Call from system under test: voidresp | () | {} +ScriptedSession 2 in `_next_script_call` +ScriptedSession 2 next call: Call(method_name='close', result=None, args=None, kwargs=None) +ScriptedSession 2 in `__getattr__` + Call from session script: close | None | None + Call from system under test: close | () | {} +ScriptedSession 1 in `_next_script_call` +ScriptedSession 1 next call: Call(method_name='close', result=None, args=None, kwargs=None) +ScriptedSession 1 in `__getattr__` + Call from session script: close | None | None + Call from system under test: close | () | {} +=========================== short test summary info ============================ +FAILED test/test_host.py::TestUploadAndDownload::test_conditional_download_with_newer_target +================= 1 failed, 134 passed, 14 deselected in 3.67s ================= +E: pybuild pybuild:389: test: plugin distutils failed with: exit code=1: cd /build/reproducible-path/python-ftputil-5.1.0/.pybuild/cpython3_3.12_ftputil/build; python3.12 -m pytest --ignore=test/test_real_ftp.py --ignore=test/test_public_servers.py -k 'not TestAcceptEitherUnicodeOrBytes' +dh_auto_test: error: pybuild --test --test-pytest -i python{version} -p 3.12 returned exit code 13 +make: *** [debian/rules:9: 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/20040/tmp/hooks/C01_cleanup starting +debug output: disk usage on i-capture-the-hostname at Sat Dec 7 15:50:08 UTC 2024 +Filesystem Size Used Avail Use% Mounted on +tmpfs 7.9G 0 7.9G 0% /dev/shm + +I: user script /srv/workspace/pbuilder/20040/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/1739 and its subdirectories -I: Current time: Fri Jan 9 10:11:22 -12 2026 -I: pbuilder-time-stamp: 1767996682 +I: removing directory /srv/workspace/pbuilder/20040 and its subdirectories