Diff of the two buildlogs: -- --- b1/build.log 2025-09-02 05:46:47.139167142 +0000 +++ b2/build.log 2025-09-02 05:49:08.851343634 +0000 @@ -1,6 +1,6 @@ I: pbuilder: network access will be disabled during build -I: Current time: Mon Sep 1 17:45:01 -12 2025 -I: pbuilder-time-stamp: 1756791901 +I: Current time: Tue Oct 6 02:09:48 +14 2026 +I: pbuilder-time-stamp: 1791202188 I: Building the build Environment I: extracting base tarball [/var/cache/pbuilder/unstable-reproducible-base.tgz] I: copying local configuration @@ -24,53 +24,85 @@ dpkg-source: info: applying 0001-remove-README-badges.patch I: Not using root during the build. I: Installing the build-deps -I: user script /srv/workspace/pbuilder/4064614/tmp/hooks/D02_print_environment starting +I: user script /srv/workspace/pbuilder/3886932/tmp/hooks/D01_modify_environment starting +debug: Running on ionos15-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 5 12:10 /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/3886932/tmp/hooks/D01_modify_environment finished +I: user script /srv/workspace/pbuilder/3886932/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]="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='54389d7b26144ecca4bf0395a76c8234' - 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='4064614' - PS1='# ' - PS2='> ' + INVOCATION_ID=8e17db821e7c4184bcefd3eb130f7d9a + 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=3886932 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.IPLgEJbJ/pbuilderrc_352b --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.IPLgEJbJ/b1 --logfile b1/build.log inkbird-ble_1.1.0-1.dsc' - SUDO_GID='111' - SUDO_HOME='/var/lib/jenkins' - 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.IPLgEJbJ/pbuilderrc_TUOt --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.IPLgEJbJ/b2 --logfile b2/build.log inkbird-ble_1.1.0-1.dsc' + SUDO_GID=111 + SUDO_HOME=/var/lib/jenkins + SUDO_UID=106 + 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.12.41+deb13-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.12.41-1 (2025-08-12) x86_64 GNU/Linux + Linux i-capture-the-hostname 6.12.41+deb13-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.12.41-1 (2025-08-12) 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/4064614/tmp/hooks/D02_print_environment finished + lrwxrwxrwx 1 root root 7 Aug 10 2025 /bin -> usr/bin +I: user script /srv/workspace/pbuilder/3886932/tmp/hooks/D02_print_environment finished -> Attempting to satisfy build-dependencies -> Creating pbuilder-satisfydepends-dummy package Package: pbuilder-satisfydepends-dummy @@ -282,7 +314,7 @@ Get: 146 http://deb.debian.org/debian unstable/main amd64 python3-pytest-cov all 5.0.0-1 [26.8 kB] Get: 147 http://deb.debian.org/debian unstable/main amd64 python3-sphinxcontrib.jquery all 4.1-5 [7348 B] Get: 148 http://deb.debian.org/debian unstable/main amd64 python3-sphinx-rtd-theme all 3.0.2+dfsg-3 [29.7 kB] -Fetched 54.8 MB in 6s (8658 kB/s) +Fetched 54.8 MB in 3s (18.0 MB/s) Preconfiguring packages ... Selecting previously unselected package libsystemd-shared: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 ... 19897 files and directories currently installed.) @@ -770,8 +802,8 @@ Setting up tzdata (2025b-5) ... Current default time zone: 'Etc/UTC' -Local time is now: Tue Sep 2 05:46:15 UTC 2025. -Universal Time is now: Tue Sep 2 05:46:15 UTC 2025. +Local time is now: Mon Oct 5 12:11:20 UTC 2026. +Universal Time is now: Mon Oct 5 12:11:20 UTC 2026. Run 'dpkg-reconfigure tzdata' if you wish to change it. Setting up libasound2-data (1.2.14-1) ... @@ -937,7 +969,11 @@ Building tag database... -> Finished parsing the build-deps I: Building the package -I: Running cd /build/reproducible-path/inkbird-ble-1.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 > ../inkbird-ble_1.1.0-1_source.changes +I: user script /srv/workspace/pbuilder/3886932/tmp/hooks/A99_set_merged_usr starting +Not re-configuring usrmerge for unstable +I: user script /srv/workspace/pbuilder/3886932/tmp/hooks/A99_set_merged_usr finished +hostname: Name or service not known +I: Running cd /build/reproducible-path/inkbird-ble-1.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 > ../inkbird-ble_1.1.0-1_source.changes dpkg-buildpackage: info: source package inkbird-ble dpkg-buildpackage: info: source version 1.1.0-1 dpkg-buildpackage: info: source distribution unstable @@ -984,9 +1020,9 @@ preparing documents... done copying assets... copying static files... +Writing evaluated template result to /build/reproducible-path/inkbird-ble-1.1.0/docs/_build/html/_static/documentation_options.js Writing evaluated template result to /build/reproducible-path/inkbird-ble-1.1.0/docs/_build/html/_static/language_data.js Writing evaluated template result to /build/reproducible-path/inkbird-ble-1.1.0/docs/_build/html/_static/basic.css -Writing evaluated template result to /build/reproducible-path/inkbird-ble-1.1.0/docs/_build/html/_static/documentation_options.js Writing evaluated template result to /build/reproducible-path/inkbird-ble-1.1.0/docs/_build/html/_static/js/versions.js copying static files: done copying extra files... @@ -1013,7 +1049,7 @@ cachedir: .pytest_cache rootdir: /build/reproducible-path/inkbird-ble-1.1.0/.pybuild/cpython3_3.13/build configfile: pyproject.toml -plugins: asyncio-0.25.1, cov-5.0.0 +plugins: cov-5.0.0, asyncio-0.25.1 asyncio: mode=Mode.STRICT, asyncio_default_fixture_loop_scope=None collecting ... collected 43 items @@ -1049,7 +1085,7 @@ tests/test_parser.py::test_notify_callbacks_iam_t1_f PASSED [ 69%] tests/test_parser.py::test_notify_iam_t1_c PASSED [ 72%] tests/test_parser.py::test_retry_iam_t1_f PASSED [ 74%] -tests/test_parser.py::test_reconnect_iam_t1_f PASSED [ 76%] +tests/test_parser.py::test_reconnect_iam_t1_f FAILED [ 76%] tests/test_parser.py::test_IBS_P02B PASSED [ 79%] tests/test_parser.py::test_IBS_P02B_real_data PASSED [ 81%] tests/test_parser.py::test_IBS_P02B_passive_detection PASSED [ 83%] @@ -1059,8 +1095,84 @@ tests/test_parser.py::test_iam_t2_fahrenheit_mode PASSED [ 93%] tests/test_parser.py::test_iam_t2_celsius_mode PASSED [ 95%] tests/test_parser.py::test_iam_t2_fahrenheit_mode_82f PASSED [ 97%] -tests/test_parser.py::test_iam_t2_detection_without_name PASSED [100%] +tests/test_parser.py::test_iam_t2_detection_without_name PASSED [100%]Task was destroyed but it is pending! +task: wait_for=> + +=================================== FAILURES =================================== +___________________________ test_reconnect_iam_t1_f ____________________________ + + @pytest.mark.asyncio + async def test_reconnect_iam_t1_f() -> None: + """Test reconnect with notify with passing data in F.""" + + last_update: SensorUpdate | None = None + + def _update_callback(update: SensorUpdate) -> None: + nonlocal last_update + last_update = update + + def _data_callback(data: dict[str, Any]) -> None: + """ + Callback for data updates. + """ + + parser = INKBIRDBluetoothDeviceData( + Model.IAM_T1, {}, _update_callback, _data_callback + ) + assert parser.device_type == Model.IAM_T1 + service_info = make_bluetooth_service_info( + name="Ink@IAM-T1", + manufacturer_data={12628: b"AC-6200a13cae\x00\x00"}, + service_uuids=["0000fff0-0000-1000-8000-00805f9b34fb"], + address="62:00:A1:3C:AE:7B", + rssi=-44, + service_data={}, + source="local", + ) + parser.update(service_info) + assert parser.supported(service_info) is True + assert parser.poll_needed(service_info, None) is False + assert parser.uses_notify + disconnect_mock = AsyncMock() + start_notify_calls = 0 + + async def start_notify_mock( + uuid: UUID, callback: Callable[[UUID, bytes], None] + ) -> None: + nonlocal start_notify_calls + start_notify_calls += 1 + callback(uuid, b"U") + callback(uuid, b"U\xaa\x05\x0c\x00\x00\x00\x00\x00\x00\x01\x11") + callback(uuid, b"U\xaa\x01\x10\x10\x03\x0b\x01\xd6\x02\xe3\x03\xf1\x01\x00\xcf") + + set_disconnected_callback_mock = MagicMock() + mock_client = MagicMock( + start_notify=start_notify_mock, + disconnect=disconnect_mock, + set_disconnected_callback=set_disconnected_callback_mock, + ) + with patch("inkbird_ble.parser.establish_connection", return_value=mock_client): + await parser.async_start( + service_info, + BLEDevice( + address="62:00:A1:3C:AE:7B", + name="Ink@IAM-T1", + details={}, + rssi=-60, + ), + ) + await asyncio.sleep(0) + assert set_disconnected_callback_mock.called + set_disconnected_callback_mock.call_args[0][0](mock_client) + await asyncio.sleep(0) + assert start_notify_calls == 1 + async_fire_time_changed(datetime.utcnow() + timedelta(seconds=5)) + await asyncio.sleep(0) +> assert start_notify_calls == 2 +E assert 1 == 2 + +tests/test_parser.py:2115: AssertionError =============================== warnings summary =============================== tests/test_parser.py: 42 warnings /build/reproducible-path/inkbird-ble-1.1.0/.pybuild/cpython3_3.13/build/tests/test_parser.py:56: DeprecationWarning: Passing additional arguments for BLEDevice is deprecated and has no effect. @@ -1107,42 +1219,25 @@ async_fire_time_changed(datetime.utcnow() + timedelta(seconds=5)) -- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html -======================= 43 passed, 52 warnings in 0.48s ======================== - create-stamp debian/debhelper-build-stamp - dh_testroot -O--buildsystem=pybuild - dh_prep -O--buildsystem=pybuild - dh_auto_install --destdir=debian/python3-inkbird-ble/ -O--buildsystem=pybuild -I: pybuild plugin_pyproject:178: Copying package built for python3.13 to destdir - dh_installdocs -O--buildsystem=pybuild - dh_sphinxdoc -i -O--buildsystem=pybuild - dh_installchangelogs -O--buildsystem=pybuild - dh_python3 -O--buildsystem=pybuild -I: dh_python3 pydist:339: Ignoring complex environment marker: habluetooth (>=3.42.0) ; python_version >= "3.11" and python_version < "3.14" - 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-inkbird-ble' in '../python3-inkbird-ble_1.1.0-1_all.deb'. - dpkg-genbuildinfo --build=binary -O../inkbird-ble_1.1.0-1_amd64.buildinfo - dpkg-genchanges --build=binary -O../inkbird-ble_1.1.0-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 +=========================== short test summary info ============================ +FAILED tests/test_parser.py::test_reconnect_iam_t1_f - assert 1 == 2 +================== 1 failed, 42 passed, 52 warnings in 0.39s =================== +E: pybuild pybuild:389: test: plugin pyproject failed with: exit code=1: cd /build/reproducible-path/inkbird-ble-1.1.0/.pybuild/cpython3_3.13/build; python3.13 -m pytest --no-cov +dh_auto_test: error: pybuild --test --test-pytest -i python{version} -p 3.13 returned exit code 13 +make: *** [debian/rules:5: 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/3886932/tmp/hooks/C01_cleanup starting +debug output: disk usage on i-capture-the-hostname at Mon Oct 5 12:12:04 UTC 2026 +Filesystem Size Used Avail Use% Mounted on +tmpfs 40G 0 40G 0% /dev/shm + +I: user script /srv/workspace/pbuilder/3886932/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/4064614 and its subdirectories -I: Current time: Mon Sep 1 17:46:46 -12 2025 -I: pbuilder-time-stamp: 1756792006 +I: removing directory /srv/workspace/pbuilder/3886932 and its subdirectories