Diff of the two buildlogs: -- --- b1/build.log 2025-07-19 20:36:41.687629873 +0000 +++ b2/build.log 2025-07-19 20:45:40.888309814 +0000 @@ -1,6 +1,6 @@ I: pbuilder: network access will be disabled during build -I: Current time: Sat Jul 19 08:35:41 -12 2025 -I: pbuilder-time-stamp: 1752957341 +I: Current time: Sat Aug 22 17:00:01 +14 2026 +I: pbuilder-time-stamp: 1787367601 I: Building the build Environment I: extracting base tarball [/var/cache/pbuilder/unstable-reproducible-base.tgz] I: copying local configuration @@ -24,52 +24,84 @@ 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/877869/tmp/hooks/D02_print_environment starting +I: user script /srv/workspace/pbuilder/1106558/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 Aug 22 03:00 /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/1106558/tmp/hooks/D01_modify_environment finished +I: user script /srv/workspace/pbuilder/1106558/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='340c30c896594d09a2178f477d148cf5' - 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='877869' - PS1='# ' - PS2='> ' + INVOCATION_ID=4a7e629863894a1c886da555837e4436 + 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=1106558 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.zLTZkzW4/pbuilderrc_YYP6 --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.zLTZkzW4/b1 --logfile b1/build.log inkbird-ble_1.0.0-1.dsc' - SUDO_GID='110' - 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.zLTZkzW4/pbuilderrc_IXuN --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.zLTZkzW4/b2 --logfile b2/build.log inkbird-ble_1.0.0-1.dsc' + SUDO_GID=111 + 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 ionos1-amd64 6.1.0-37-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.1.140-1 (2025-05-22) x86_64 GNU/Linux + Linux i-capture-the-hostname 6.12.32+bpo-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.12.32-1~bpo12+1 (2025-06-21) x86_64 GNU/Linux I: ls -l /bin - lrwxrwxrwx 1 root root 7 May 12 19:25 /bin -> usr/bin -I: user script /srv/workspace/pbuilder/877869/tmp/hooks/D02_print_environment finished + lrwxrwxrwx 1 root root 7 May 12 2025 /bin -> usr/bin +I: user script /srv/workspace/pbuilder/1106558/tmp/hooks/D02_print_environment finished -> Attempting to satisfy build-dependencies -> Creating pbuilder-satisfydepends-dummy package Package: pbuilder-satisfydepends-dummy @@ -280,7 +312,7 @@ Get: 145 http://deb.debian.org/debian unstable/main amd64 python3-pytest-cov all 5.0.0-1 [26.8 kB] Get: 146 http://deb.debian.org/debian unstable/main amd64 python3-sphinxcontrib.jquery all 4.1-5 [7348 B] Get: 147 http://deb.debian.org/debian unstable/main amd64 python3-sphinx-rtd-theme all 3.0.2+dfsg-3 [29.7 kB] -Fetched 54.4 MB in 1s (81.0 MB/s) +Fetched 54.4 MB in 4s (15.1 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 ... 19849 files and directories currently installed.) @@ -765,8 +797,8 @@ Setting up tzdata (2025b-4) ... Current default time zone: 'Etc/UTC' -Local time is now: Sat Jul 19 20:36:12 UTC 2025. -Universal Time is now: Sat Jul 19 20:36:12 UTC 2025. +Local time is now: Sat Aug 22 03:02:29 UTC 2026. +Universal Time is now: Sat Aug 22 03:02:29 UTC 2026. Run 'dpkg-reconfigure tzdata' if you wish to change it. Setting up libasound2-data (1.2.14-1) ... @@ -932,7 +964,11 @@ Building tag database... -> Finished parsing the build-deps I: Building the package -I: Running cd /build/reproducible-path/inkbird-ble-1.0.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.0.0-1_source.changes +I: user script /srv/workspace/pbuilder/1106558/tmp/hooks/A99_set_merged_usr starting +Not re-configuring usrmerge for unstable +I: user script /srv/workspace/pbuilder/1106558/tmp/hooks/A99_set_merged_usr finished +hostname: Name or service not known +I: Running cd /build/reproducible-path/inkbird-ble-1.0.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.0.0-1_source.changes dpkg-buildpackage: info: source package inkbird-ble dpkg-buildpackage: info: source version 1.0.0-1 dpkg-buildpackage: info: source distribution unstable @@ -979,9 +1015,9 @@ preparing documents... done copying assets... copying static files... +Writing evaluated template result to /build/reproducible-path/inkbird-ble-1.0.0/docs/_build/html/_static/documentation_options.js Writing evaluated template result to /build/reproducible-path/inkbird-ble-1.0.0/docs/_build/html/_static/language_data.js Writing evaluated template result to /build/reproducible-path/inkbird-ble-1.0.0/docs/_build/html/_static/basic.css -Writing evaluated template result to /build/reproducible-path/inkbird-ble-1.0.0/docs/_build/html/_static/documentation_options.js Writing evaluated template result to /build/reproducible-path/inkbird-ble-1.0.0/docs/_build/html/_static/js/versions.js copying static files: done copying extra files... @@ -1012,7 +1048,7 @@ cachedir: .pytest_cache rootdir: /build/reproducible-path/inkbird-ble-1.0.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 37 items @@ -1048,12 +1084,86 @@ tests/test_parser.py::test_notify_callbacks_iam_t1_f PASSED [ 81%] tests/test_parser.py::test_notify_iam_t1_c PASSED [ 83%] tests/test_parser.py::test_retry_iam_t1_f PASSED [ 86%] -tests/test_parser.py::test_reconnect_iam_t1_f PASSED [ 89%] +tests/test_parser.py::test_reconnect_iam_t1_f FAILED [ 89%] tests/test_parser.py::test_IBS_P02B PASSED [ 91%] tests/test_parser.py::test_IBS_P02B_real_data PASSED [ 94%] tests/test_parser.py::test_IBS_P02B_passive_detection PASSED [ 97%] tests/test_parser.py::test_IBS_P02B_multiple_updates PASSED [100%] +=================================== 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: 36 warnings /build/reproducible-path/inkbird-ble-1.0.0/.pybuild/cpython3_3.13/build/tests/test_parser.py:56: DeprecationWarning: Passing additional arguments for BLEDevice is deprecated and has no effect. @@ -1100,42 +1210,27 @@ async_fire_time_changed(datetime.utcnow() + timedelta(seconds=5)) -- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html -======================= 37 passed, 46 warnings in 0.31s ======================== - 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.0.0-1_all.deb'. - dpkg-genbuildinfo --build=binary -O../inkbird-ble_1.0.0-1_amd64.buildinfo - dpkg-genchanges --build=binary -O../inkbird-ble_1.0.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, 36 passed, 46 warnings in 1.14s =================== +Task was destroyed but it is pending! +task: wait_for=> +E: pybuild pybuild:389: test: plugin pyproject failed with: exit code=1: cd /build/reproducible-path/inkbird-ble-1.0.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/1106558/tmp/hooks/C01_cleanup starting +debug output: disk usage on i-capture-the-hostname at Sat Aug 22 03:08:12 UTC 2026 +Filesystem Size Used Avail Use% Mounted on +tmpfs 40G 0 40G 0% /dev/shm + +I: user script /srv/workspace/pbuilder/1106558/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/877869 and its subdirectories -I: Current time: Sat Jul 19 08:36:41 -12 2025 -I: pbuilder-time-stamp: 1752957401 +I: removing directory /srv/workspace/pbuilder/1106558 and its subdirectories