Diff of the two buildlogs: -- --- b1/build.log 2025-03-18 23:08:38.624974280 +0000 +++ b2/build.log 2025-03-18 23:10:17.604488930 +0000 @@ -1,6 +1,6 @@ I: pbuilder: network access will be disabled during build -I: Current time: Tue Mar 18 11:02:39 -12 2025 -I: pbuilder-time-stamp: 1742338959 +I: Current time: Tue Apr 21 19:31:40 +14 2026 +I: pbuilder-time-stamp: 1776749500 I: Building the build Environment I: extracting base tarball [/var/cache/pbuilder/unstable-reproducible-base.tgz] I: copying local configuration @@ -22,52 +22,84 @@ dpkg-source: info: unpacking python-dlt_2.18.10.0-2.1.debian.tar.xz I: using fakeroot in build. I: Installing the build-deps -I: user script /srv/workspace/pbuilder/3559073/tmp/hooks/D02_print_environment starting +I: user script /srv/workspace/pbuilder/972366/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 Apr 21 05:31 /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/972366/tmp/hooks/D01_modify_environment finished +I: user script /srv/workspace/pbuilder/972366/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=20 ' - 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]="2" [2]="37" [3]="1" [4]="release" [5]="x86_64-pc-linux-gnu") + BASH_VERSION='5.2.37(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='6004137e6bc5400c990786e0a34aad44' - 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='3559073' - PS1='# ' - PS2='> ' + INVOCATION_ID=67ed3b65773a43b9a66dbff75775fe7b + 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=972366 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.Y7aGdu3M/pbuilderrc_ytzR --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.Y7aGdu3M/b1 --logfile b1/build.log python-dlt_2.18.10.0-2.1.dsc' - SUDO_GID='111' - SUDO_UID='106' - 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.Y7aGdu3M/pbuilderrc_SSJc --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.Y7aGdu3M/b2 --logfile b2/build.log python-dlt_2.18.10.0-2.1.dsc' + SUDO_GID=110 + 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 ionos11-amd64 6.1.0-32-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.1.129-1 (2025-03-06) x86_64 GNU/Linux + Linux i-capture-the-hostname 6.12.12+bpo-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.12.12-1~bpo12+1 (2025-02-23) x86_64 GNU/Linux I: ls -l /bin - lrwxrwxrwx 1 root root 7 Mar 4 11:20 /bin -> usr/bin -I: user script /srv/workspace/pbuilder/3559073/tmp/hooks/D02_print_environment finished + lrwxrwxrwx 1 root root 7 Mar 4 2025 /bin -> usr/bin +I: user script /srv/workspace/pbuilder/972366/tmp/hooks/D02_print_environment finished -> Attempting to satisfy build-dependencies -> Creating pbuilder-satisfydepends-dummy package Package: pbuilder-satisfydepends-dummy @@ -206,7 +238,7 @@ Get: 79 http://deb.debian.org/debian unstable/main amd64 python3-pluggy all 1.5.0-1 [26.9 kB] Get: 80 http://deb.debian.org/debian unstable/main amd64 python3-pytest all 8.3.5-1 [250 kB] Get: 81 http://deb.debian.org/debian unstable/main amd64 python3-setuptools-scm all 8.2.0-1 [41.0 kB] -Fetched 30.3 MB in 16s (1857 kB/s) +Fetched 30.3 MB in 6s (4713 kB/s) Preconfiguring packages ... Selecting previously unselected package libpython3.13-minimal: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 ... 19784 files and directories currently installed.) @@ -476,8 +508,8 @@ Setting up tzdata (2025a-2) ... Current default time zone: 'Etc/UTC' -Local time is now: Tue Mar 18 23:06:20 UTC 2025. -Universal Time is now: Tue Mar 18 23:06:20 UTC 2025. +Local time is now: Tue Apr 21 05:32:10 UTC 2026. +Universal Time is now: Tue Apr 21 05:32:10 UTC 2026. Run 'dpkg-reconfigure tzdata' if you wish to change it. Setting up autotools-dev (20220109.1) ... @@ -562,7 +594,11 @@ fakeroot is already the newest version (1.37.1-1). 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. I: Building the package -I: Running cd /build/reproducible-path/python-dlt-2.18.10.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-dlt_2.18.10.0-2.1_source.changes +I: user script /srv/workspace/pbuilder/972366/tmp/hooks/A99_set_merged_usr starting +Not re-configuring usrmerge for unstable +I: user script /srv/workspace/pbuilder/972366/tmp/hooks/A99_set_merged_usr finished +hostname: Name or service not known +I: Running cd /build/reproducible-path/python-dlt-2.18.10.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-dlt_2.18.10.0-2.1_source.changes dpkg-buildpackage: info: source package python-dlt dpkg-buildpackage: info: source version 2.18.10.0-2.1 dpkg-buildpackage: info: source distribution unstable @@ -588,17 +624,17 @@ running build running build_py creating build/lib/dlt -copying dlt/__init__.py -> build/lib/dlt -copying dlt/dlt_broker.py -> build/lib/dlt -copying dlt/dlt.py -> build/lib/dlt -copying dlt/py_dlt_receive.py -> build/lib/dlt copying dlt/helpers.py -> build/lib/dlt +copying dlt/py_dlt_receive.py -> build/lib/dlt copying dlt/dlt_broker_handlers.py -> build/lib/dlt +copying dlt/__init__.py -> build/lib/dlt +copying dlt/dlt.py -> build/lib/dlt +copying dlt/dlt_broker.py -> build/lib/dlt creating build/lib/dlt/core -copying dlt/core/__init__.py -> build/lib/dlt/core +copying dlt/core/core_base.py -> build/lib/dlt/core copying dlt/core/core_21810.py -> build/lib/dlt/core +copying dlt/core/__init__.py -> build/lib/dlt/core copying dlt/core/core_2188.py -> build/lib/dlt/core -copying dlt/core/core_base.py -> build/lib/dlt/core copying dlt/core/core_2185.py -> build/lib/dlt/core running egg_info creating dlt.egg-info @@ -617,23 +653,23 @@ running install_lib creating build/bdist.linux-x86_64/wheel creating build/bdist.linux-x86_64/wheel/dlt +copying build/lib/dlt/helpers.py -> build/bdist.linux-x86_64/wheel/./dlt +copying build/lib/dlt/py_dlt_receive.py -> build/bdist.linux-x86_64/wheel/./dlt +copying build/lib/dlt/dlt_broker_handlers.py -> build/bdist.linux-x86_64/wheel/./dlt copying build/lib/dlt/__init__.py -> build/bdist.linux-x86_64/wheel/./dlt creating build/bdist.linux-x86_64/wheel/dlt/core -copying build/lib/dlt/core/__init__.py -> build/bdist.linux-x86_64/wheel/./dlt/core +copying build/lib/dlt/core/core_base.py -> build/bdist.linux-x86_64/wheel/./dlt/core copying build/lib/dlt/core/core_21810.py -> build/bdist.linux-x86_64/wheel/./dlt/core +copying build/lib/dlt/core/__init__.py -> build/bdist.linux-x86_64/wheel/./dlt/core copying build/lib/dlt/core/core_2188.py -> build/bdist.linux-x86_64/wheel/./dlt/core -copying build/lib/dlt/core/core_base.py -> build/bdist.linux-x86_64/wheel/./dlt/core copying build/lib/dlt/core/core_2185.py -> build/bdist.linux-x86_64/wheel/./dlt/core -copying build/lib/dlt/dlt_broker.py -> build/bdist.linux-x86_64/wheel/./dlt copying build/lib/dlt/dlt.py -> build/bdist.linux-x86_64/wheel/./dlt -copying build/lib/dlt/py_dlt_receive.py -> build/bdist.linux-x86_64/wheel/./dlt -copying build/lib/dlt/helpers.py -> build/bdist.linux-x86_64/wheel/./dlt -copying build/lib/dlt/dlt_broker_handlers.py -> build/bdist.linux-x86_64/wheel/./dlt +copying build/lib/dlt/dlt_broker.py -> build/bdist.linux-x86_64/wheel/./dlt running install_egg_info Copying dlt.egg-info to build/bdist.linux-x86_64/wheel/./dlt-0.0.0.egg-info running install_scripts creating build/bdist.linux-x86_64/wheel/dlt-0.0.0.dist-info/WHEEL -creating '/build/reproducible-path/python-dlt-2.18.10.0/.pybuild/cpython3_3.13_dlt/.tmp-whakmode/dlt-0.0.0-py3-none-any.whl' and adding 'build/bdist.linux-x86_64/wheel' to it +creating '/build/reproducible-path/python-dlt-2.18.10.0/.pybuild/cpython3_3.13_dlt/.tmp-a56424rb/dlt-0.0.0-py3-none-any.whl' and adding 'build/bdist.linux-x86_64/wheel' to it adding 'dlt/__init__.py' adding 'dlt/dlt.py' adding 'dlt/dlt_broker.py' @@ -665,7 +701,7 @@ tests/condition_test.py .. [ 1%] tests/continuousness_helper_test.py ....... [ 7%] -tests/dlt_broker_from_file_spinner_test.py ..... [ 12%] +tests/dlt_broker_from_file_spinner_test.py ...F. [ 12%] tests/dlt_broker_time_test.py .......................... [ 34%] tests/dlt_client_unit_test.py .. [ 36%] tests/dlt_context_handler_unit_test.py ......... [ 44%] @@ -678,42 +714,98 @@ tests/dlt_message_performance_test.py ... [ 81%] tests/dlt_message_unit_test.py ..................... [100%] -============================= 115 passed in 57.68s ============================= - create-stamp debian/debhelper-build-stamp - dh_testroot -O--buildsystem=pybuild - dh_prep -O--buildsystem=pybuild - dh_auto_install --destdir=debian/python3-dlt/ -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_installman -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-dlt' in '../python3-dlt_2.18.10.0-2.1_all.deb'. - dpkg-genbuildinfo --build=binary -O../python-dlt_2.18.10.0-2.1_amd64.buildinfo - dpkg-genchanges --build=binary -O../python-dlt_2.18.10.0-2.1_amd64.changes -dpkg-genchanges: info: binary-only upload (no source code included) - dpkg-source --after-build . -dpkg-source: info: using options from python-dlt-2.18.10.0/debian/source/options: --extend-diff-ignore=^[^/]*[.]egg-info/ -dpkg-buildpackage: info: binary-only upload (no source included) -dpkg-genchanges: info: not including original source code in upload +=================================== FAILURES =================================== +_____ TestDLTBrokerFromDLTFileSpinner.test_002_dispatch_from_real_dlt_file _____ + +self = + + def test_002_dispatch_from_real_dlt_file(self): + """ + Test DltBroker dispatches from a run-time written dlt file + + With a running dlt broker: + 1. Write 2 sample messages to dlt file + 2. These two messages could be dispatched with the running dlt broker + With another try to dispatch, Queue.Empty is thrown, because no more logs could be read from dlt log; + dlt_time from dlt_broker is equal to the timestamp of 2nd message + 3. Append another 1 message to the same dlt file + 4. Total 3 messages could be dispatched with the dlt broker + With another try to dispatch, Queue.Empty is thrown, because no more logs could be read from dlt log; + dlt_time from dlt_broker is equal to the timestamp of 3rd message + """ + # 1. Write 2 sample messages to dlt file + append_stream_to_file(stream_multiple, self.dlt_file_name) + # 2. Dispatch 2 messages from dlt broker + time.sleep(0.1) + message_1 = self.dispatched_message_queue.get_nowait() + time.sleep(0.1) + message_2 = self.dispatched_message_queue.get_nowait() + self.assertNotEqual(message_1, message_2) + # If we try to dispatch for another time, exception Queue.Empty is thrown, + # because there is no new log from dlt file + with pytest.raises(Empty): + self.dispatched_message_queue.get_nowait() + # Validate dlt time from broker + self.assertEqual(self.broker.dlt_time(), message_2.storage_timestamp) + # 3. Append another 1 message to the same dlt file + append_stream_to_file(stream_with_params, self.dlt_file_name) + # 4. Total 3 messages could be dispatched with the dlt broker + time.sleep(0.1) +> message_3 = self.dispatched_message_queue.get_nowait() + +tests/dlt_broker_from_file_spinner_test.py:158: +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ +/usr/lib/python3.13/queue.py:234: in get_nowait + return self.get(block=False) +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , block = False, timeout = None + + def get(self, block=True, timeout=None): + '''Remove and return an item from the queue. + + If optional args 'block' is true and 'timeout' is None (the default), + block if necessary until an item is available. If 'timeout' is + a non-negative number, it blocks at most 'timeout' seconds and raises + the Empty exception if no item was available within that time. + Otherwise ('block' is false), return an item if one is immediately + available, else raise the Empty exception ('timeout' is ignored + in that case). + + Raises ShutDown if the queue has been shut down and is empty, + or if the queue has been shut down immediately. + ''' + with self.not_empty: + if self.is_shutdown and not self._qsize(): + raise ShutDown + if not block: + if not self._qsize(): +> raise Empty +E _queue.Empty + +/usr/lib/python3.13/queue.py:199: Empty +------------------------------ Captured log call ------------------------------- +WARNING dlt.dlt_broker:dlt_broker.py:210 Could not receive filter-setting message ack. It's possible that dlt file b'/tmp/tmpgjih82by.dlt' is empty now. No big issue, filters would be added once after new message is available in dlt file. For now, Run it anyway. filters: [(None, None)], queue_id: 140493144646224 +WARNING dlt.dlt_broker_handlers:dlt_broker_handlers.py:118 Could not send an ack to the queue: 140493144642144 +=========================== short test summary info ============================ +FAILED tests/dlt_broker_from_file_spinner_test.py::TestDLTBrokerFromDLTFileSpinner::test_002_dispatch_from_real_dlt_file +======================== 1 failed, 114 passed in 46.89s ======================== +E: pybuild pybuild:389: test: plugin pyproject failed with: exit code=1: cd /build/reproducible-path/python-dlt-2.18.10.0/.pybuild/cpython3_3.13_dlt/build; python3.13 -m pytest tests +dh_auto_test: error: pybuild --test --test-pytest -i python{version} -p 3.13 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/972366/tmp/hooks/C01_cleanup starting +debug output: disk usage on i-capture-the-hostname at Tue Apr 21 05:33:14 UTC 2026 +Filesystem Size Used Avail Use% Mounted on +tmpfs 40G 0 40G 0% /dev/shm + +I: user script /srv/workspace/pbuilder/972366/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/3559073 and its subdirectories -I: Current time: Tue Mar 18 11:08:37 -12 2025 -I: pbuilder-time-stamp: 1742339317 +I: removing directory /srv/workspace/pbuilder/972366 and its subdirectories