Diff of the two buildlogs: -- --- b1/build.log 2024-12-07 20:19:03.362290882 +0000 +++ b2/build.log 2024-12-07 20:22:17.489484889 +0000 @@ -1,6 +1,6 @@ I: pbuilder: network access will be disabled during build -I: Current time: Sat Dec 7 08:16:34 -12 2024 -I: pbuilder-time-stamp: 1733602594 +I: Current time: Sat Jan 10 16:42:06 +14 2026 +I: pbuilder-time-stamp: 1768012926 I: Building the build Environment I: extracting base tarball [/var/cache/pbuilder/unstable-reproducible-base.tgz] I: copying local configuration @@ -25,52 +25,84 @@ dpkg-source: info: unpacking python-nexusformat_1.0.6-4.debian.tar.xz I: using fakeroot in build. I: Installing the build-deps -I: user script /srv/workspace/pbuilder/226104/tmp/hooks/D02_print_environment starting +I: user script /srv/workspace/pbuilder/2301287/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 Jan 10 02:42 /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/2301287/tmp/hooks/D01_modify_environment finished +I: user script /srv/workspace/pbuilder/2301287/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='265f28c469e6475c96ea9c8850b57c8c' - 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='226104' - PS1='# ' - PS2='> ' + INVOCATION_ID=2003adaa8fa043969ef2e85953bcd562 + 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=2301287 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.wUvIItHb/pbuilderrc_dkal --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.wUvIItHb/b1 --logfile b1/build.log python-nexusformat_1.0.6-4.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.wUvIItHb/pbuilderrc_dOu0 --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.wUvIItHb/b2 --logfile b2/build.log python-nexusformat_1.0.6-4.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-28-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.1.119-1 (2024-11-22) x86_64 GNU/Linux + Linux i-capture-the-hostname 6.11.5+bpo-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.11.5-1~bpo12+1 (2024-11-11) x86_64 GNU/Linux I: ls -l /bin - lrwxrwxrwx 1 root root 7 Nov 22 14:40 /bin -> usr/bin -I: user script /srv/workspace/pbuilder/226104/tmp/hooks/D02_print_environment finished + lrwxrwxrwx 1 root root 7 Nov 22 2024 /bin -> usr/bin +I: user script /srv/workspace/pbuilder/2301287/tmp/hooks/D02_print_environment finished -> Attempting to satisfy build-dependencies -> Creating pbuilder-satisfydepends-dummy package Package: pbuilder-satisfydepends-dummy @@ -227,7 +259,7 @@ Get: 101 http://deb.debian.org/debian unstable/main amd64 python3-pytest all 8.3.4-1 [250 kB] Get: 102 http://deb.debian.org/debian unstable/main amd64 python3-scipy amd64 1.14.1-3 [20.5 MB] Get: 103 http://deb.debian.org/debian unstable/main amd64 python3-setuptools-scm all 8.1.0-1 [40.5 kB] -Fetched 67.5 MB in 3s (26.0 MB/s) +Fetched 67.5 MB in 2s (41.5 MB/s) debconf: delaying package configuration, since apt-utils is not installed Selecting previously unselected package libpython3.12-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 ... 19972 files and directories currently installed.) @@ -575,8 +607,8 @@ Setting up tzdata (2024b-4) ... Current default time zone: 'Etc/UTC' -Local time is now: Sat Dec 7 20:17:25 UTC 2024. -Universal Time is now: Sat Dec 7 20:17:25 UTC 2024. +Local time is now: Sat Jan 10 02:44:04 UTC 2026. +Universal Time is now: Sat Jan 10 02:44:04 UTC 2026. Run 'dpkg-reconfigure tzdata' if you wish to change it. Setting up libpython3.13-minimal:amd64 (3.13.1-1) ... @@ -675,7 +707,11 @@ fakeroot is already the newest version (1.36-1). 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. I: Building the package -I: Running cd /build/reproducible-path/python-nexusformat-1.0.6/ && 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-nexusformat_1.0.6-4_source.changes +I: user script /srv/workspace/pbuilder/2301287/tmp/hooks/A99_set_merged_usr starting +Not re-configuring usrmerge for unstable +I: user script /srv/workspace/pbuilder/2301287/tmp/hooks/A99_set_merged_usr finished +hostname: Name or service not known +I: Running cd /build/reproducible-path/python-nexusformat-1.0.6/ && 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-nexusformat_1.0.6-4_source.changes dpkg-buildpackage: info: source package python-nexusformat dpkg-buildpackage: info: source version 1.0.6-4 dpkg-buildpackage: info: source distribution unstable @@ -700,21 +736,21 @@ running build running build_py creating build/lib/nexusformat -copying src/nexusformat/__init__.py -> build/lib/nexusformat copying src/nexusformat/_version.py -> build/lib/nexusformat +copying src/nexusformat/__init__.py -> build/lib/nexusformat creating build/lib/nexusformat/nexus -copying src/nexusformat/nexus/tree.py -> build/lib/nexusformat/nexus copying src/nexusformat/nexus/completer.py -> build/lib/nexusformat/nexus +copying src/nexusformat/nexus/plot.py -> build/lib/nexusformat/nexus copying src/nexusformat/nexus/lock.py -> build/lib/nexusformat/nexus copying src/nexusformat/nexus/__init__.py -> build/lib/nexusformat/nexus -copying src/nexusformat/nexus/plot.py -> build/lib/nexusformat/nexus +copying src/nexusformat/nexus/tree.py -> build/lib/nexusformat/nexus creating build/lib/nexusformat/scripts -copying src/nexusformat/scripts/nxduplicate.py -> build/lib/nexusformat/scripts -copying src/nexusformat/scripts/nxconsolidate.py -> build/lib/nexusformat/scripts -copying src/nexusformat/scripts/nxdir.py -> build/lib/nexusformat/scripts copying src/nexusformat/scripts/nexusformat.py -> build/lib/nexusformat/scripts -copying src/nexusformat/scripts/__init__.py -> build/lib/nexusformat/scripts +copying src/nexusformat/scripts/nxdir.py -> build/lib/nexusformat/scripts copying src/nexusformat/scripts/nxstack.py -> build/lib/nexusformat/scripts +copying src/nexusformat/scripts/__init__.py -> build/lib/nexusformat/scripts +copying src/nexusformat/scripts/nxduplicate.py -> build/lib/nexusformat/scripts +copying src/nexusformat/scripts/nxconsolidate.py -> build/lib/nexusformat/scripts creating build/lib/nexusformat/notebooks copying src/nexusformat/notebooks/nexusformat.ipynb -> build/lib/nexusformat/notebooks installing to build/bdist.linux-x86_64/wheel @@ -722,23 +758,23 @@ running install_lib creating build/bdist.linux-x86_64/wheel creating build/bdist.linux-x86_64/wheel/nexusformat -creating build/bdist.linux-x86_64/wheel/nexusformat/notebooks -copying build/lib/nexusformat/notebooks/nexusformat.ipynb -> build/bdist.linux-x86_64/wheel/./nexusformat/notebooks creating build/bdist.linux-x86_64/wheel/nexusformat/nexus -copying build/lib/nexusformat/nexus/tree.py -> build/bdist.linux-x86_64/wheel/./nexusformat/nexus copying build/lib/nexusformat/nexus/completer.py -> build/bdist.linux-x86_64/wheel/./nexusformat/nexus +copying build/lib/nexusformat/nexus/plot.py -> build/bdist.linux-x86_64/wheel/./nexusformat/nexus copying build/lib/nexusformat/nexus/lock.py -> build/bdist.linux-x86_64/wheel/./nexusformat/nexus copying build/lib/nexusformat/nexus/__init__.py -> build/bdist.linux-x86_64/wheel/./nexusformat/nexus -copying build/lib/nexusformat/nexus/plot.py -> build/bdist.linux-x86_64/wheel/./nexusformat/nexus -copying build/lib/nexusformat/__init__.py -> build/bdist.linux-x86_64/wheel/./nexusformat +copying build/lib/nexusformat/nexus/tree.py -> build/bdist.linux-x86_64/wheel/./nexusformat/nexus +creating build/bdist.linux-x86_64/wheel/nexusformat/notebooks +copying build/lib/nexusformat/notebooks/nexusformat.ipynb -> build/bdist.linux-x86_64/wheel/./nexusformat/notebooks creating build/bdist.linux-x86_64/wheel/nexusformat/scripts -copying build/lib/nexusformat/scripts/nxduplicate.py -> build/bdist.linux-x86_64/wheel/./nexusformat/scripts -copying build/lib/nexusformat/scripts/nxconsolidate.py -> build/bdist.linux-x86_64/wheel/./nexusformat/scripts -copying build/lib/nexusformat/scripts/nxdir.py -> build/bdist.linux-x86_64/wheel/./nexusformat/scripts copying build/lib/nexusformat/scripts/nexusformat.py -> build/bdist.linux-x86_64/wheel/./nexusformat/scripts -copying build/lib/nexusformat/scripts/__init__.py -> build/bdist.linux-x86_64/wheel/./nexusformat/scripts +copying build/lib/nexusformat/scripts/nxdir.py -> build/bdist.linux-x86_64/wheel/./nexusformat/scripts copying build/lib/nexusformat/scripts/nxstack.py -> build/bdist.linux-x86_64/wheel/./nexusformat/scripts +copying build/lib/nexusformat/scripts/__init__.py -> build/bdist.linux-x86_64/wheel/./nexusformat/scripts +copying build/lib/nexusformat/scripts/nxduplicate.py -> build/bdist.linux-x86_64/wheel/./nexusformat/scripts +copying build/lib/nexusformat/scripts/nxconsolidate.py -> build/bdist.linux-x86_64/wheel/./nexusformat/scripts copying build/lib/nexusformat/_version.py -> build/bdist.linux-x86_64/wheel/./nexusformat +copying build/lib/nexusformat/__init__.py -> build/bdist.linux-x86_64/wheel/./nexusformat running install_egg_info running egg_info creating src/nexusformat.egg-info @@ -754,7 +790,7 @@ Copying src/nexusformat.egg-info to build/bdist.linux-x86_64/wheel/./nexusformat-1.0.6.egg-info running install_scripts creating build/bdist.linux-x86_64/wheel/nexusformat-1.0.6.dist-info/WHEEL -creating '/build/reproducible-path/python-nexusformat-1.0.6/.pybuild/cpython3_3.13_nexusformat/.tmp-8flwoqm_/nexusformat-1.0.6-py3-none-any.whl' and adding 'build/bdist.linux-x86_64/wheel' to it +creating '/build/reproducible-path/python-nexusformat-1.0.6/.pybuild/cpython3_3.13_nexusformat/.tmp-gvy8y7xu/nexusformat-1.0.6-py3-none-any.whl' and adding 'build/bdist.linux-x86_64/wheel' to it adding 'nexusformat/__init__.py' adding 'nexusformat/_version.py' adding 'nexusformat/nexus/__init__.py' @@ -790,23 +826,23 @@ running install_lib creating build/bdist.linux-x86_64/wheel creating build/bdist.linux-x86_64/wheel/nexusformat -creating build/bdist.linux-x86_64/wheel/nexusformat/notebooks -copying build/lib/nexusformat/notebooks/nexusformat.ipynb -> build/bdist.linux-x86_64/wheel/./nexusformat/notebooks creating build/bdist.linux-x86_64/wheel/nexusformat/nexus -copying build/lib/nexusformat/nexus/tree.py -> build/bdist.linux-x86_64/wheel/./nexusformat/nexus copying build/lib/nexusformat/nexus/completer.py -> build/bdist.linux-x86_64/wheel/./nexusformat/nexus +copying build/lib/nexusformat/nexus/plot.py -> build/bdist.linux-x86_64/wheel/./nexusformat/nexus copying build/lib/nexusformat/nexus/lock.py -> build/bdist.linux-x86_64/wheel/./nexusformat/nexus copying build/lib/nexusformat/nexus/__init__.py -> build/bdist.linux-x86_64/wheel/./nexusformat/nexus -copying build/lib/nexusformat/nexus/plot.py -> build/bdist.linux-x86_64/wheel/./nexusformat/nexus -copying build/lib/nexusformat/__init__.py -> build/bdist.linux-x86_64/wheel/./nexusformat +copying build/lib/nexusformat/nexus/tree.py -> build/bdist.linux-x86_64/wheel/./nexusformat/nexus +creating build/bdist.linux-x86_64/wheel/nexusformat/notebooks +copying build/lib/nexusformat/notebooks/nexusformat.ipynb -> build/bdist.linux-x86_64/wheel/./nexusformat/notebooks creating build/bdist.linux-x86_64/wheel/nexusformat/scripts -copying build/lib/nexusformat/scripts/nxduplicate.py -> build/bdist.linux-x86_64/wheel/./nexusformat/scripts -copying build/lib/nexusformat/scripts/nxconsolidate.py -> build/bdist.linux-x86_64/wheel/./nexusformat/scripts -copying build/lib/nexusformat/scripts/nxdir.py -> build/bdist.linux-x86_64/wheel/./nexusformat/scripts copying build/lib/nexusformat/scripts/nexusformat.py -> build/bdist.linux-x86_64/wheel/./nexusformat/scripts -copying build/lib/nexusformat/scripts/__init__.py -> build/bdist.linux-x86_64/wheel/./nexusformat/scripts +copying build/lib/nexusformat/scripts/nxdir.py -> build/bdist.linux-x86_64/wheel/./nexusformat/scripts copying build/lib/nexusformat/scripts/nxstack.py -> build/bdist.linux-x86_64/wheel/./nexusformat/scripts +copying build/lib/nexusformat/scripts/__init__.py -> build/bdist.linux-x86_64/wheel/./nexusformat/scripts +copying build/lib/nexusformat/scripts/nxduplicate.py -> build/bdist.linux-x86_64/wheel/./nexusformat/scripts +copying build/lib/nexusformat/scripts/nxconsolidate.py -> build/bdist.linux-x86_64/wheel/./nexusformat/scripts copying build/lib/nexusformat/_version.py -> build/bdist.linux-x86_64/wheel/./nexusformat +copying build/lib/nexusformat/__init__.py -> build/bdist.linux-x86_64/wheel/./nexusformat running install_egg_info running egg_info writing src/nexusformat.egg-info/PKG-INFO @@ -820,7 +856,7 @@ Copying src/nexusformat.egg-info to build/bdist.linux-x86_64/wheel/./nexusformat-1.0.6.egg-info running install_scripts creating build/bdist.linux-x86_64/wheel/nexusformat-1.0.6.dist-info/WHEEL -creating '/build/reproducible-path/python-nexusformat-1.0.6/.pybuild/cpython3_3.12_nexusformat/.tmp-5gth1mpk/nexusformat-1.0.6-py3-none-any.whl' and adding 'build/bdist.linux-x86_64/wheel' to it +creating '/build/reproducible-path/python-nexusformat-1.0.6/.pybuild/cpython3_3.12_nexusformat/.tmp-eblmr016/nexusformat-1.0.6-py3-none-any.whl' and adding 'build/bdist.linux-x86_64/wheel' to it adding 'nexusformat/__init__.py' adding 'nexusformat/_version.py' adding 'nexusformat/nexus/__init__.py' @@ -863,7 +899,7 @@ tests/test_masks.py ... [ 96%] tests/test_paths.py ... [100%] -============================== 94 passed in 5.19s ============================== +============================== 94 passed in 8.86s ============================== I: pybuild base:311: cd /build/reproducible-path/python-nexusformat-1.0.6/.pybuild/cpython3_3.12_nexusformat/build; python3.12 -m pytest tests ============================= test session starts ============================== platform linux -- Python 3.12.8, pytest-8.3.4, pluggy-1.5.0 @@ -878,51 +914,194 @@ tests/test_files.py ..... [ 59%] tests/test_groups.py ............ [ 72%] tests/test_links.py .............. [ 87%] -tests/test_locks.py ...... [ 93%] +tests/test_locks.py .....F [ 93%] tests/test_masks.py ... [ 96%] tests/test_paths.py ... [100%] -============================== 94 passed in 7.12s ============================== - create-stamp debian/debhelper-build-stamp - fakeroot debian/rules binary -dh binary --with python3 --buildsystem=pybuild - dh_testroot -O--buildsystem=pybuild - dh_prep -O--buildsystem=pybuild - dh_auto_install --destdir=debian/python3-nexusformat/ -O--buildsystem=pybuild -I: pybuild plugin_pyproject:178: Copying package built for python3.13 to destdir -I: pybuild plugin_pyproject:178: Copying package built for python3.12 to destdir - debian/rules execute_after_dh_auto_install -make[1]: Entering directory '/build/reproducible-path/python-nexusformat-1.0.6' -mv debian/python3-nexusformat/usr/bin/nxdir debian/python3-nexusformat/usr/bin/nxdir-python -make[1]: Leaving directory '/build/reproducible-path/python-nexusformat-1.0.6' - 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-nexusformat' in '../python3-nexusformat_1.0.6-4_all.deb'. - dpkg-genbuildinfo --build=binary -O../python-nexusformat_1.0.6-4_amd64.buildinfo - dpkg-genchanges --build=binary -O../python-nexusformat_1.0.6-4_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: not including original source code in upload +=================================== FAILURES =================================== +_______________________________ test_stale_locks _______________________________ + +self = , timeout = None + + def acquire_lock(self, timeout=None): + """Acquire the file lock. + + This uses the NXLock instance returned by `self.lock`. + + Parameters + ---------- + timeout : int, optional + Timeout for attempts to acquire the lock, by default None. + """ + if self.locked: + return + if self._lock is None: + if timeout is not None: + self.lock = timeout + elif NX_CONFIG['lock']: + self.lock = NX_CONFIG['lock'] + elif self.is_locked(): + self.lock = True + if self._lock is None: + return + try: +> self._lock.acquire() + +nexusformat/nexus/tree.py:629: +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = NXLock('file1.nxs', pid=2351002@) +timeout = 2, check_interval = 1, expiry = 3600 + + def acquire(self, timeout=None, check_interval=None, expiry=None): + """Acquire the lock. + + Parameters + ---------- + timeout : int, optional + Number of seconds to wait for a prior lock to clear before + raising a NXLockException, by default `self.timeout`. + check_interval : int, optional + Number of seconds between attempts to acquire the lock, + by default `self.check_interval`. + expiry : int, optional + Number of seconds after which a lock expires, by default + `self.expiry`. + + Raises + ------ + NXLockException + If lock not acquired before `timeout`. + """ + if timeout is None: + timeout = self.timeout + + if timeout == 0: + return + + if check_interval is None: + check_interval = self.check_interval + + if expiry is None: + expiry = self.expiry + + timeoutend = timeit.default_timer() + timeout + initial_attempt = True + while timeoutend > timeit.default_timer(): + try: + # Attempt to create the lockfile. If it already exists, + # then someone else has the lock and we need to wait + self.fd = os.open(self.lock_file, + os.O_CREAT | os.O_EXCL | os.O_RDWR) + open(self.lock_file, 'w').write(self.addr) + os.chmod(self.lock_file, 0o777) + break + except OSError as e: + # Only catch if the lockfile already exists + if e.errno != errno.EEXIST: + raise + # Remove the lockfile if it is older than one day + elif initial_attempt and expiry: + if self.is_stale(expiry=expiry): + self.clear() + initial_attempt = False + time.sleep(check_interval) + # Raise an error if we had to wait for too long + else: + self.fd = None +> raise NXLockException( + f"'{self.filename}' is currently locked by an external process" + ) +E nexusformat.nexus.lock.NXLockException: '/tmp/pytest-of-pbuilder2/pytest-1/test_stale_locks0/file1.nxs' is currently locked by an external process + +nexusformat/nexus/lock.py:148: NXLockException + +During handling of the above exception, another exception occurred: + +tmpdir = local('/tmp/pytest-of-pbuilder2/pytest-1/test_stale_locks0') + + def test_stale_locks(tmpdir): + + nxsetconfig(lock=2, lockexpiry=3600) + filename = os.path.join(tmpdir, "file1.nxs") + root = NXroot(NXentry()) + root.save(filename, "w") + + with open(root.nxfile.lock_file, 'w'): + os.utime(root.nxfile.lock_file, None) + + assert os.path.exists(root.nxfile.lock_file) + + with pytest.raises(NeXusError): + root.nxfile.acquire_lock() + + assert not root.nxfile.locked + assert root.nxfile.is_locked() + + stat = os.stat(root.nxfile.lock_file) + os.utime(root.nxfile.lock_file, (stat.st_atime, stat.st_mtime - 10000)) + +> with root.nxfile: + +tests/test_locks.py:172: +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ +nexusformat/nexus/tree.py:527: in __enter__ + self.open() +nexusformat/nexus/tree.py:690: in open + self.acquire_lock() +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = , timeout = None + + def acquire_lock(self, timeout=None): + """Acquire the file lock. + + This uses the NXLock instance returned by `self.lock`. + + Parameters + ---------- + timeout : int, optional + Timeout for attempts to acquire the lock, by default None. + """ + if self.locked: + return + if self._lock is None: + if timeout is not None: + self.lock = timeout + elif NX_CONFIG['lock']: + self.lock = NX_CONFIG['lock'] + elif self.is_locked(): + self.lock = True + if self._lock is None: + return + try: + self._lock.acquire() + except PermissionError: + raise NeXusError("Denied permission to create the lock file") + except NXLockException as error: +> raise NeXusError(str(error)) +E nexusformat.nexus.tree.NeXusError: '/tmp/pytest-of-pbuilder2/pytest-1/test_stale_locks0/file1.nxs' is currently locked by an external process + +nexusformat/nexus/tree.py:633: NeXusError +=========================== short test summary info ============================ +FAILED tests/test_locks.py::test_stale_locks - nexusformat.nexus.tree.NeXusEr... +========================= 1 failed, 93 passed in 7.96s ========================= +E: pybuild pybuild:389: test: plugin pyproject failed with: exit code=1: cd /build/reproducible-path/python-nexusformat-1.0.6/.pybuild/cpython3_3.12_nexusformat/build; python3.12 -m pytest tests +dh_auto_test: error: pybuild --test --test-pytest -i python{version} -p "3.13 3.12" returned exit code 13 +make: *** [debian/rules:7: build] Error 25 +dpkg-buildpackage: error: debian/rules build subprocess returned exit status 2 I: copying local configuration +E: Failed autobuilding of package +I: user script /srv/workspace/pbuilder/2301287/tmp/hooks/C01_cleanup starting +debug output: disk usage on i-capture-the-hostname at Sat Jan 10 02:45:14 UTC 2026 +Filesystem Size Used Avail Use% Mounted on +tmpfs 40G 0 40G 0% /dev/shm + +I: user script /srv/workspace/pbuilder/2301287/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/226104 and its subdirectories -I: Current time: Sat Dec 7 08:19:02 -12 2024 -I: pbuilder-time-stamp: 1733602742 +I: removing directory /srv/workspace/pbuilder/2301287 and its subdirectories