Diff of the two buildlogs: -- --- b1/build.log 2025-08-22 09:18:33.665043044 +0000 +++ b2/build.log 2025-08-22 09:21:50.613280850 +0000 @@ -1,6 +1,6 @@ I: pbuilder: network access will be disabled during build -I: Current time: Thu Aug 21 21:16:24 -12 2025 -I: pbuilder-time-stamp: 1755854184 +I: Current time: Fri Sep 25 05:41:35 +14 2026 +I: pbuilder-time-stamp: 1790264495 I: Building the build Environment I: extracting base tarball [/var/cache/pbuilder/forky-reproducible-base.tgz] I: copying local configuration @@ -22,53 +22,85 @@ dpkg-source: info: unpacking zigpy_0.82.2-1.debian.tar.xz I: Not using root during the build. I: Installing the build-deps -I: user script /srv/workspace/pbuilder/4147495/tmp/hooks/D02_print_environment starting +I: user script /srv/workspace/pbuilder/2814632/tmp/hooks/D01_modify_environment starting +debug: Running on codethink03-arm64. +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 Sep 24 15:41 /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/2814632/tmp/hooks/D01_modify_environment finished +I: user script /srv/workspace/pbuilder/2814632/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='arm64' - DEBIAN_FRONTEND='noninteractive' + 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]="aarch64-unknown-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=arm64 + DEBIAN_FRONTEND=noninteractive DEB_BUILD_OPTIONS='buildinfo=+all reproducible=+all parallel=12 ' - DISTRIBUTION='forky' - HOME='/root' - HOST_ARCH='arm64' + DIRSTACK=() + DISTRIBUTION=forky + EUID=0 + FUNCNAME=([0]="Echo" [1]="main") + GROUPS=() + HOME=/root + HOSTNAME=i-capture-the-hostname + HOSTTYPE=aarch64 + HOST_ARCH=arm64 IFS=' ' - INVOCATION_ID='b1e96207a05840258107f99661e9f908' - 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='4147495' - PS1='# ' - PS2='> ' + INVOCATION_ID=0c7285d0eea341f2a66e88d852008ff4 + LANG=C + LANGUAGE=nl_BE:nl + LC_ALL=C + MACHTYPE=aarch64-unknown-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=2814632 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.yogGWCFY/pbuilderrc_vLPc --distribution forky --hookdir /etc/pbuilder/first-build-hooks --debbuildopts -b --basetgz /var/cache/pbuilder/forky-reproducible-base.tgz --buildresult /srv/reproducible-results/rbuild-debian/r-b-build.yogGWCFY/b1 --logfile b1/build.log zigpy_0.82.2-1.dsc' - SUDO_GID='109' - SUDO_HOME='/var/lib/jenkins' - SUDO_UID='104' - SUDO_USER='jenkins' - TERM='unknown' - TZ='/usr/share/zoneinfo/Etc/GMT+12' - USER='root' - _='/usr/bin/systemd-run' - http_proxy='http://192.168.101.4: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.yogGWCFY/pbuilderrc_BCFR --distribution forky --hookdir /etc/pbuilder/rebuild-hooks --debbuildopts -b --basetgz /var/cache/pbuilder/forky-reproducible-base.tgz --buildresult /srv/reproducible-results/rbuild-debian/r-b-build.yogGWCFY/b2 --logfile b2/build.log zigpy_0.82.2-1.dsc' + SUDO_GID=109 + SUDO_HOME=/var/lib/jenkins + SUDO_UID=104 + SUDO_USER=jenkins + TERM=unknown + TZ=/usr/share/zoneinfo/Etc/GMT-14 + UID=0 + USER=root + _='I: set' + http_proxy=http://192.168.101.4:3128 I: uname -a - Linux codethink04-arm64 6.12.41+deb13-cloud-arm64 #1 SMP Debian 6.12.41-1 (2025-08-12) aarch64 GNU/Linux + Linux i-capture-the-hostname 6.12.41+deb13-cloud-arm64 #1 SMP Debian 6.12.41-1 (2025-08-12) aarch64 GNU/Linux I: ls -l /bin - lrwxrwxrwx 1 root root 7 Aug 10 12:30 /bin -> usr/bin -I: user script /srv/workspace/pbuilder/4147495/tmp/hooks/D02_print_environment finished + lrwxrwxrwx 1 root root 7 Aug 10 2025 /bin -> usr/bin +I: user script /srv/workspace/pbuilder/2814632/tmp/hooks/D02_print_environment finished -> Attempting to satisfy build-dependencies -> Creating pbuilder-satisfydepends-dummy package Package: pbuilder-satisfydepends-dummy @@ -235,7 +267,7 @@ Get: 91 http://deb.debian.org/debian forky/main arm64 python3-serial all 3.5-2 [88.2 kB] Get: 92 http://deb.debian.org/debian forky/main arm64 python3-serial-asyncio all 0.6-4 [8360 B] Get: 93 http://deb.debian.org/debian forky/main arm64 python3-voluptuous all 0.14.2-1 [45.8 kB] -Fetched 21.5 MB in 0s (78.6 MB/s) +Fetched 21.5 MB in 1s (42.2 MB/s) Preconfiguring packages ... Selecting previously unselected package libexpat1:arm64. (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 ... 20003 files and directories currently installed.) @@ -542,8 +574,8 @@ Setting up tzdata (2025b-5) ... Current default time zone: 'Etc/UTC' -Local time is now: Fri Aug 22 09:16:49 UTC 2025. -Universal Time is now: Fri Aug 22 09:16:49 UTC 2025. +Local time is now: Thu Sep 24 15:42:18 UTC 2026. +Universal Time is now: Thu Sep 24 15:42:18 UTC 2026. Run 'dpkg-reconfigure tzdata' if you wish to change it. Setting up autotools-dev (20240727.1) ... @@ -634,7 +666,11 @@ Building tag database... -> Finished parsing the build-deps I: Building the package -I: Running cd /build/reproducible-path/zigpy-0.82.2/ && 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 > ../zigpy_0.82.2-1_source.changes +I: user script /srv/workspace/pbuilder/2814632/tmp/hooks/A99_set_merged_usr starting +Not re-configuring usrmerge for forky +I: user script /srv/workspace/pbuilder/2814632/tmp/hooks/A99_set_merged_usr finished +hostname: Name or service not known +I: Running cd /build/reproducible-path/zigpy-0.82.2/ && 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 > ../zigpy_0.82.2-1_source.changes dpkg-buildpackage: info: source package zigpy dpkg-buildpackage: info: source version 0.82.2-1 dpkg-buildpackage: info: source distribution unstable @@ -661,8 +697,8 @@ ******************************************************************************** Please use a simple string containing a SPDX expression for `project.license`. You can also use `project.license-files`. (Both options available on setuptools>=77.0.0). - By 2026-Feb-18, you need to update your project and remove deprecated calls - or your builds will no longer be supported. + This deprecation is overdue, please update your project and remove deprecated + calls to avoid build errors in the future. See https://packaging.python.org/en/latest/guides/writing-pyproject-toml/#license for details. ******************************************************************************** @@ -867,7 +903,7 @@ Copying zigpy.egg-info to build/bdist.linux-aarch64/wheel/./zigpy-0.0.0.egg-info running install_scripts creating build/bdist.linux-aarch64/wheel/zigpy-0.0.0.dist-info/WHEEL -creating '/build/reproducible-path/zigpy-0.82.2/.pybuild/cpython3_3.13/.tmp-zp_nlj_u/zigpy-0.0.0-py3-none-any.whl' and adding 'build/bdist.linux-aarch64/wheel' to it +creating '/build/reproducible-path/zigpy-0.82.2/.pybuild/cpython3_3.13/.tmp-nt6ru2el/zigpy-0.0.0-py3-none-any.whl' and adding 'build/bdist.linux-aarch64/wheel' to it adding 'zigpy/__init__.py' adding 'zigpy/appdb.py' adding 'zigpy/application.py' @@ -986,7 +1022,7 @@ tests/test_quirks_registry.py ..... [ 52%] tests/test_serial.py ............. [ 54%] tests/test_struct.py ........................................... [ 59%] -tests/test_topology.py ................ [ 61%] +tests/test_topology.py ...............F [ 61%] tests/test_types.py .................................................... [ 67%] ................. [ 69%] tests/test_zcl.py ...................................................... [ 76%] @@ -998,41 +1034,74 @@ tests/test_zdo_types.py ....................... [ 95%] tests/test_zigbee_util.py .................................. [100%] -================ 833 passed, 47 deselected in 67.75s (0:01:07) ================= - create-stamp debian/debhelper-build-stamp - dh_testroot -O--buildsystem=pybuild - dh_prep -O--buildsystem=pybuild - dh_auto_install --destdir=debian/python3-zigpy/ -O--buildsystem=pybuild -I: pybuild plugin_pyproject:178: Copying package built for python3.13 to destdir -I: pybuild pybuild:334: rm -rf /build/reproducible-path/zigpy-0.82.2/debian/python3-zigpy/usr/lib/python3*/dist-packages/build /build/reproducible-path/zigpy-0.82.2/debian/python3-zigpy/usr/lib/python3*/dist-packages/debian /build/reproducible-path/zigpy-0.82.2/debian/python3-zigpy/usr/lib/python3*/dist-packages/*.dist-info - 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 - dh_md5sums -O--buildsystem=pybuild - dh_builddeb -O--buildsystem=pybuild -dpkg-deb: building package 'python3-zigpy' in '../python3-zigpy_0.82.2-1_all.deb'. - dpkg-genbuildinfo --build=binary -O../zigpy_0.82.2-1_arm64.buildinfo - dpkg-genchanges --build=binary -O../zigpy_0.82.2-1_arm64.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 +=================================== FAILURES =================================== +_________________________ test_periodic_scan_priority __________________________ + +topology = + + async def test_periodic_scan_priority(topology): + async def _scan(_): + await asyncio.sleep(0.5) + + with mock.patch.object(topology, "_scan", side_effect=_scan) as mock_scan: + scan_task = asyncio.create_task(topology.scan()) + await asyncio.sleep(0.1) + + # Start a periodic scan. It won't have time to run yet, the old scan is running + topology.start_periodic_scans(0.05) + + # Wait for the original scan to finish + await scan_task + + # Start another scan, interrupting the periodic scan + await asyncio.sleep(0.15) + await topology.scan() + + # Now we can cancel the periodic scan + topology.stop_periodic_scans() + await asyncio.sleep(0) + + # Our two manual scans succeeded and the periodic one was attempted +> assert len(mock_scan.mock_calls) == 3 +E AssertionError: assert 4 == 3 +E + where 4 = len([call(None), call(None), call(None), call(None)]) +E + where [call(None), call(None), call(None), call(None)] = .mock_calls + +tests/test_topology.py:419: AssertionError +------------------------------ Captured log setup ------------------------------ +DEBUG asyncio:selector_events.py:64 Using selector: EpollSelector +DEBUG zigpy.ota:__init__.py:368 Registering new OTA provider: Ledvance(url='https://api.update.ledvance.com/v1/zigbee/firmwares', manufacturer_ids=(4489, 4364)) +DEBUG zigpy.ota:__init__.py:368 Registering new OTA provider: Sonoff(url=None, manufacturer_ids=(4742,)) +DEBUG zigpy.ota:__init__.py:368 Registering new OTA provider: Inovelli(url=None, manufacturer_ids=(4655,)) +DEBUG zigpy.ota:__init__.py:368 Registering new OTA provider: ThirdReality(url=None, manufacturer_ids=(4659, 4877, 5127)) +------------------------------ Captured log call ------------------------------- +DEBUG zigpy.topology:topology.py:75 Starting scheduled neighbor scan +DEBUG zigpy.topology:topology.py:92 Cancelling old scanning task +DEBUG zigpy.topology:topology.py:82 Topology scan cancelled +DEBUG zigpy.topology:topology.py:75 Starting scheduled neighbor scan +DEBUG zigpy.topology:topology.py:82 Topology scan cancelled +---------------------------- Captured log teardown ----------------------------- +WARNING tests.conftest:conftest.py:302 Linger task after test wait_for=> +DEBUG asyncio:selector_events.py:64 Using selector: EpollSelector +=========================== short test summary info ============================ +FAILED tests/test_topology.py::test_periodic_scan_priority - AssertionError: ... +=========== 1 failed, 832 passed, 47 deselected in 96.12s (0:01:36) ============ +E: pybuild pybuild:389: test: plugin pyproject failed with: exit code=1: cd /build/reproducible-path/zigpy-0.82.2/.pybuild/cpython3_3.13/build; python3.13 -m pytest -k "not test_quirks_v2" --ignore=tests/ota/test_ota_providers.py +dh_auto_test: error: pybuild --test --test-pytest -i python{version} -p 3.13 returned exit code 13 +make: *** [debian/rules:10: 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/2814632/tmp/hooks/C01_cleanup starting +debug output: disk usage on i-capture-the-hostname at Thu Sep 24 15:44:49 UTC 2026 +Filesystem Size Used Avail Use% Mounted on +tmpfs 16G 0 16G 0% /dev/shm + +I: user script /srv/workspace/pbuilder/2814632/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/4147495 and its subdirectories -I: Current time: Thu Aug 21 21:18:32 -12 2025 -I: pbuilder-time-stamp: 1755854312 +I: removing directory /srv/workspace/pbuilder/2814632 and its subdirectories