Diff of the two buildlogs: -- --- b1/build.log 2024-01-06 10:28:05.935934708 +0000 +++ b2/build.log 2024-01-06 10:30:18.314779613 +0000 @@ -1,6 +1,6 @@ I: pbuilder: network access will be disabled during build -I: Current time: Fri Feb 7 04:50:28 -12 2025 -I: pbuilder-time-stamp: 1738947028 +I: Current time: Sun Jan 7 00:28:09 +14 2024 +I: pbuilder-time-stamp: 1704536889 I: Building the build Environment I: extracting base tarball [/var/cache/pbuilder/bookworm-reproducible-base.tgz] I: copying local configuration @@ -27,49 +27,81 @@ dpkg-source: info: applying fix-asyncio-warnings.patch I: Not using root during the build. I: Installing the build-deps -I: user script /srv/workspace/pbuilder/2908669/tmp/hooks/D02_print_environment starting +I: user script /srv/workspace/pbuilder/1570164/tmp/hooks/D01_modify_environment starting +debug: Running on ionos11-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 6 10:28 /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/1570164/tmp/hooks/D01_modify_environment finished +I: user script /srv/workspace/pbuilder/1570164/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=16 ' - DISTRIBUTION='bookworm' - 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]="15" [3]="1" [4]="release" [5]="x86_64-pc-linux-gnu") + BASH_VERSION='5.2.15(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=15 ' + DIRSTACK=() + DISTRIBUTION=bookworm + EUID=0 + FUNCNAME=([0]="Echo" [1]="main") + GROUPS=() + HOME=/root + HOSTNAME=i-capture-the-hostname + HOSTTYPE=x86_64 + HOST_ARCH=amd64 IFS=' ' - INVOCATION_ID='8f60aad4576a4800bc0b6b200c1da334' - 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='2908669' - PS1='# ' - PS2='> ' + INVOCATION_ID=d76e775a0d51499393546393e3f922a3 + 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=1570164 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.vg6CLXjK/pbuilderrc_522w --distribution bookworm --hookdir /etc/pbuilder/first-build-hooks --debbuildopts -b --basetgz /var/cache/pbuilder/bookworm-reproducible-base.tgz --buildresult /srv/reproducible-results/rbuild-debian/r-b-build.vg6CLXjK/b1 --logfile b1/build.log python-watchgod_0.8.2-2.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://85.184.249.68: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.vg6CLXjK/pbuilderrc_Zw4p --distribution bookworm --hookdir /etc/pbuilder/rebuild-hooks --debbuildopts -b --basetgz /var/cache/pbuilder/bookworm-reproducible-base.tgz --buildresult /srv/reproducible-results/rbuild-debian/r-b-build.vg6CLXjK/b2 --logfile b2/build.log python-watchgod_0.8.2-2.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://78.137.99.97:3128 I: uname -a - Linux ionos15-amd64 6.5.0-0.deb12.4-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.5.10-1~bpo12+1 (2023-11-23) x86_64 GNU/Linux + Linux i-capture-the-hostname 6.1.0-17-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.1.69-1 (2023-12-30) x86_64 GNU/Linux I: ls -l /bin total 5632 -rwxr-xr-x 1 root root 1265648 Apr 23 2023 bash @@ -127,15 +159,15 @@ -rwxr-xr-x 1 root root 52112 Sep 20 2022 readlink -rwxr-xr-x 1 root root 72752 Sep 20 2022 rm -rwxr-xr-x 1 root root 56240 Sep 20 2022 rmdir - -rwxr-xr-x 1 root root 27560 Jul 28 2023 run-parts + -rwxr-xr-x 1 root root 27560 Jul 28 23:46 run-parts -rwxr-xr-x 1 root root 126424 Jan 5 2023 sed - lrwxrwxrwx 1 root root 4 Jan 5 2023 sh -> dash + lrwxrwxrwx 1 root root 9 Jan 6 10:28 sh -> /bin/bash -rwxr-xr-x 1 root root 43888 Sep 20 2022 sleep -rwxr-xr-x 1 root root 85008 Sep 20 2022 stty -rwsr-xr-x 1 root root 72000 Mar 23 2023 su -rwxr-xr-x 1 root root 39824 Sep 20 2022 sync -rwxr-xr-x 1 root root 531984 Apr 6 2023 tar - -rwxr-xr-x 1 root root 14520 Jul 28 2023 tempfile + -rwxr-xr-x 1 root root 14520 Jul 28 23:46 tempfile -rwxr-xr-x 1 root root 109616 Sep 20 2022 touch -rwxr-xr-x 1 root root 35664 Sep 20 2022 true -rwxr-xr-x 1 root root 14568 Mar 23 2023 ulockmgr_server @@ -155,7 +187,7 @@ -rwxr-xr-x 1 root root 2206 Apr 10 2022 zless -rwxr-xr-x 1 root root 1842 Apr 10 2022 zmore -rwxr-xr-x 1 root root 4577 Apr 10 2022 znew -I: user script /srv/workspace/pbuilder/2908669/tmp/hooks/D02_print_environment finished +I: user script /srv/workspace/pbuilder/1570164/tmp/hooks/D02_print_environment finished -> Attempting to satisfy build-dependencies -> Creating pbuilder-satisfydepends-dummy package Package: pbuilder-satisfydepends-dummy @@ -287,7 +319,7 @@ Get: 72 http://deb.debian.org/debian bookworm/main amd64 python3-setuptools all 66.1.1-1 [521 kB] Get: 73 http://deb.debian.org/debian bookworm/main amd64 python3-sortedcontainers all 2.4.0-2 [31.9 kB] Get: 74 http://deb.debian.org/debian bookworm/main amd64 python3-trio all 0.22.0-0.2 [255 kB] -Fetched 28.3 MB in 0s (75.1 MB/s) +Fetched 28.3 MB in 1s (24.6 MB/s) debconf: delaying package configuration, since apt-utils is not installed Selecting previously unselected package libpython3.11-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 ... 18148 files and directories currently installed.) @@ -603,7 +635,11 @@ Building tag database... -> Finished parsing the build-deps I: Building the package -I: Running cd /build/reproducible-path/python-watchgod-0.8.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 > ../python-watchgod_0.8.2-2_source.changes +I: user script /srv/workspace/pbuilder/1570164/tmp/hooks/A99_set_merged_usr starting +Not re-configuring usrmerge for bookworm +I: user script /srv/workspace/pbuilder/1570164/tmp/hooks/A99_set_merged_usr finished +hostname: Name or service not known +I: Running cd /build/reproducible-path/python-watchgod-0.8.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 > ../python-watchgod_0.8.2-2_source.changes dpkg-buildpackage: info: source package python-watchgod dpkg-buildpackage: info: source version 0.8.2-2 dpkg-buildpackage: info: source distribution unstable @@ -652,94 +688,138 @@ ............... [ 42%] tests/test_run_process.py ............... [ 51%] tests/test_watch.py .................................................... [ 83%] -.......................... [100%] +.......................FFF [100%] -============================= 162 passed in 2.14s ============================== - create-stamp debian/debhelper-build-stamp - dh_testroot -O--buildsystem=pybuild - dh_prep -O--buildsystem=pybuild - dh_auto_install --destdir=debian/python3-watchgod/ -O--buildsystem=pybuild -I: pybuild base:240: /usr/bin/python3 setup.py install --root /build/reproducible-path/python-watchgod-0.8.2/debian/python3-watchgod -running install -/usr/lib/python3/dist-packages/setuptools/command/install.py:34: SetuptoolsDeprecationWarning: setup.py install is deprecated. Use build and pip and other standards-based tools. - warnings.warn( -running build -running build_py -running install_lib -creating /build/reproducible-path/python-watchgod-0.8.2/debian/python3-watchgod/usr -creating /build/reproducible-path/python-watchgod-0.8.2/debian/python3-watchgod/usr/lib -creating /build/reproducible-path/python-watchgod-0.8.2/debian/python3-watchgod/usr/lib/python3.11 -creating /build/reproducible-path/python-watchgod-0.8.2/debian/python3-watchgod/usr/lib/python3.11/dist-packages -creating /build/reproducible-path/python-watchgod-0.8.2/debian/python3-watchgod/usr/lib/python3.11/dist-packages/watchgod -creating /build/reproducible-path/python-watchgod-0.8.2/debian/python3-watchgod/usr/lib/python3.11/dist-packages/watchgod/__pycache__ -copying /build/reproducible-path/python-watchgod-0.8.2/.pybuild/cpython3_3.11_watchgod/build/watchgod/__pycache__/cli.cpython-311.pyc -> /build/reproducible-path/python-watchgod-0.8.2/debian/python3-watchgod/usr/lib/python3.11/dist-packages/watchgod/__pycache__ -copying /build/reproducible-path/python-watchgod-0.8.2/.pybuild/cpython3_3.11_watchgod/build/watchgod/__pycache__/version.cpython-311.pyc -> /build/reproducible-path/python-watchgod-0.8.2/debian/python3-watchgod/usr/lib/python3.11/dist-packages/watchgod/__pycache__ -copying /build/reproducible-path/python-watchgod-0.8.2/.pybuild/cpython3_3.11_watchgod/build/watchgod/__pycache__/watcher.cpython-311.pyc -> /build/reproducible-path/python-watchgod-0.8.2/debian/python3-watchgod/usr/lib/python3.11/dist-packages/watchgod/__pycache__ -copying /build/reproducible-path/python-watchgod-0.8.2/.pybuild/cpython3_3.11_watchgod/build/watchgod/__pycache__/main.cpython-311.pyc -> /build/reproducible-path/python-watchgod-0.8.2/debian/python3-watchgod/usr/lib/python3.11/dist-packages/watchgod/__pycache__ -copying /build/reproducible-path/python-watchgod-0.8.2/.pybuild/cpython3_3.11_watchgod/build/watchgod/__pycache__/__init__.cpython-311.pyc -> /build/reproducible-path/python-watchgod-0.8.2/debian/python3-watchgod/usr/lib/python3.11/dist-packages/watchgod/__pycache__ -copying /build/reproducible-path/python-watchgod-0.8.2/.pybuild/cpython3_3.11_watchgod/build/watchgod/py.typed -> /build/reproducible-path/python-watchgod-0.8.2/debian/python3-watchgod/usr/lib/python3.11/dist-packages/watchgod -copying /build/reproducible-path/python-watchgod-0.8.2/.pybuild/cpython3_3.11_watchgod/build/watchgod/__init__.py -> /build/reproducible-path/python-watchgod-0.8.2/debian/python3-watchgod/usr/lib/python3.11/dist-packages/watchgod -copying /build/reproducible-path/python-watchgod-0.8.2/.pybuild/cpython3_3.11_watchgod/build/watchgod/__main__.py -> /build/reproducible-path/python-watchgod-0.8.2/debian/python3-watchgod/usr/lib/python3.11/dist-packages/watchgod -copying /build/reproducible-path/python-watchgod-0.8.2/.pybuild/cpython3_3.11_watchgod/build/watchgod/cli.py -> /build/reproducible-path/python-watchgod-0.8.2/debian/python3-watchgod/usr/lib/python3.11/dist-packages/watchgod -copying /build/reproducible-path/python-watchgod-0.8.2/.pybuild/cpython3_3.11_watchgod/build/watchgod/main.py -> /build/reproducible-path/python-watchgod-0.8.2/debian/python3-watchgod/usr/lib/python3.11/dist-packages/watchgod -copying /build/reproducible-path/python-watchgod-0.8.2/.pybuild/cpython3_3.11_watchgod/build/watchgod/version.py -> /build/reproducible-path/python-watchgod-0.8.2/debian/python3-watchgod/usr/lib/python3.11/dist-packages/watchgod -copying /build/reproducible-path/python-watchgod-0.8.2/.pybuild/cpython3_3.11_watchgod/build/watchgod/watcher.py -> /build/reproducible-path/python-watchgod-0.8.2/debian/python3-watchgod/usr/lib/python3.11/dist-packages/watchgod -byte-compiling /build/reproducible-path/python-watchgod-0.8.2/debian/python3-watchgod/usr/lib/python3.11/dist-packages/watchgod/__init__.py to __init__.cpython-311.pyc -byte-compiling /build/reproducible-path/python-watchgod-0.8.2/debian/python3-watchgod/usr/lib/python3.11/dist-packages/watchgod/__main__.py to __main__.cpython-311.pyc -byte-compiling /build/reproducible-path/python-watchgod-0.8.2/debian/python3-watchgod/usr/lib/python3.11/dist-packages/watchgod/cli.py to cli.cpython-311.pyc -byte-compiling /build/reproducible-path/python-watchgod-0.8.2/debian/python3-watchgod/usr/lib/python3.11/dist-packages/watchgod/main.py to main.cpython-311.pyc -byte-compiling /build/reproducible-path/python-watchgod-0.8.2/debian/python3-watchgod/usr/lib/python3.11/dist-packages/watchgod/version.py to version.cpython-311.pyc -byte-compiling /build/reproducible-path/python-watchgod-0.8.2/debian/python3-watchgod/usr/lib/python3.11/dist-packages/watchgod/watcher.py to watcher.cpython-311.pyc -running install_egg_info -running egg_info -creating watchgod.egg-info -writing watchgod.egg-info/PKG-INFO -writing dependency_links to watchgod.egg-info/dependency_links.txt -writing entry points to watchgod.egg-info/entry_points.txt -writing requirements to watchgod.egg-info/requires.txt -writing top-level names to watchgod.egg-info/top_level.txt -writing manifest file 'watchgod.egg-info/SOURCES.txt' -reading manifest file 'watchgod.egg-info/SOURCES.txt' -reading manifest template 'MANIFEST.in' -adding license file 'LICENSE' -writing manifest file 'watchgod.egg-info/SOURCES.txt' -Copying watchgod.egg-info to /build/reproducible-path/python-watchgod-0.8.2/debian/python3-watchgod/usr/lib/python3.11/dist-packages/watchgod-0.0.dev0.egg-info -Skipping SOURCES.txt -running install_scripts -Installing watchgod script to /build/reproducible-path/python-watchgod-0.8.2/debian/python3-watchgod/usr/bin - dh_installdocs -O--buildsystem=pybuild - dh_installchangelogs -O--buildsystem=pybuild - debian/rules override_dh_installman -make[1]: Entering directory '/build/reproducible-path/python-watchgod-0.8.2' -docbook-to-man debian/manpage.watchgod.sgml > watchgod.1 -dh_installman -make[1]: Leaving directory '/build/reproducible-path/python-watchgod-0.8.2' - 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-watchgod' in '../python3-watchgod_0.8.2-2_all.deb'. - dpkg-genbuildinfo --build=binary -O../python-watchgod_0.8.2-2_amd64.buildinfo - dpkg-genchanges --build=binary -O../python-watchgod_0.8.2-2_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_awatch_log[asyncio+uvloop] ________________________ + +mocker = +caplog = <_pytest.logging.LogCaptureFixture object at 0x7f5663f06490> + + @skip_unless_linux + async def test_awatch_log(mocker, caplog): + mock_log_enabled = mocker.patch('watchgod.main.logger.isEnabledFor') + mock_log_enabled.return_value = True + + class FakeWatcher: + def __init__(self, path): + self.files = [1, 2, 3] + + def check(self): + return {'r1'} + + async for v in awatch('xxx', watcher_cls=FakeWatcher, debounce=5, min_sleep=1): + assert v == {'r1'} + break + + print(caplog.text) +> assert caplog.text.count('DEBUG') > 3 +E AssertionError: assert 2 > 3 +E + where 2 = ('DEBUG') +E + where = 'DEBUG watchgod.main:main.py:130 xxx time=8ms debounced=8ms files=3 changes=1 (1)\nDEBUG watchgod.main:main.py:141 xxx changes released debounced=8ms\n'.count +E + where 'DEBUG watchgod.main:main.py:130 xxx time=8ms debounced=8ms files=3 changes=1 (1)\nDEBUG watchgod.main:main.py:141 xxx changes released debounced=8ms\n' = <_pytest.logging.LogCaptureFixture object at 0x7f5663f06490>.text + +tests/test_watch.py:451: AssertionError +----------------------------- Captured stdout call ----------------------------- +DEBUG watchgod.main:main.py:130 xxx time=8ms debounced=8ms files=3 changes=1 (1) +DEBUG watchgod.main:main.py:141 xxx changes released debounced=8ms + +------------------------------ Captured log call ------------------------------- +DEBUG watchgod.main:main.py:130 xxx time=8ms debounced=8ms files=3 changes=1 (1) +DEBUG watchgod.main:main.py:141 xxx changes released debounced=8ms +___________________________ test_awatch_log[asyncio] ___________________________ + +mocker = +caplog = <_pytest.logging.LogCaptureFixture object at 0x7f5663f07550> + + @skip_unless_linux + async def test_awatch_log(mocker, caplog): + mock_log_enabled = mocker.patch('watchgod.main.logger.isEnabledFor') + mock_log_enabled.return_value = True + + class FakeWatcher: + def __init__(self, path): + self.files = [1, 2, 3] + + def check(self): + return {'r1'} + + async for v in awatch('xxx', watcher_cls=FakeWatcher, debounce=5, min_sleep=1): + assert v == {'r1'} + break + + print(caplog.text) +> assert caplog.text.count('DEBUG') > 3 +E AssertionError: assert 2 > 3 +E + where 2 = ('DEBUG') +E + where = 'DEBUG watchgod.main:main.py:130 xxx time=12ms debounced=12ms files=3 changes=1 (1)\nDEBUG watchgod.main:main.py:141 xxx changes released debounced=12ms\n'.count +E + where 'DEBUG watchgod.main:main.py:130 xxx time=12ms debounced=12ms files=3 changes=1 (1)\nDEBUG watchgod.main:main.py:141 xxx changes released debounced=12ms\n' = <_pytest.logging.LogCaptureFixture object at 0x7f5663f07550>.text + +tests/test_watch.py:451: AssertionError +----------------------------- Captured stdout call ----------------------------- +DEBUG watchgod.main:main.py:130 xxx time=12ms debounced=12ms files=3 changes=1 (1) +DEBUG watchgod.main:main.py:141 xxx changes released debounced=12ms + +------------------------------ Captured log call ------------------------------- +DEBUG watchgod.main:main.py:130 xxx time=12ms debounced=12ms files=3 changes=1 (1) +DEBUG watchgod.main:main.py:141 xxx changes released debounced=12ms +____________________________ test_awatch_log[trio] _____________________________ + +mocker = +caplog = <_pytest.logging.LogCaptureFixture object at 0x7f5663ed2990> + + @skip_unless_linux + async def test_awatch_log(mocker, caplog): + mock_log_enabled = mocker.patch('watchgod.main.logger.isEnabledFor') + mock_log_enabled.return_value = True + + class FakeWatcher: + def __init__(self, path): + self.files = [1, 2, 3] + + def check(self): + return {'r1'} + + async for v in awatch('xxx', watcher_cls=FakeWatcher, debounce=5, min_sleep=1): + assert v == {'r1'} + break + + print(caplog.text) +> assert caplog.text.count('DEBUG') > 3 +E AssertionError: assert 2 > 3 +E + where 2 = ('DEBUG') +E + where = 'DEBUG watchgod.main:main.py:130 xxx time=7ms debounced=7ms files=3 changes=1 (1)\nDEBUG watchgod.main:main.py:141 xxx changes released debounced=7ms\n'.count +E + where 'DEBUG watchgod.main:main.py:130 xxx time=7ms debounced=7ms files=3 changes=1 (1)\nDEBUG watchgod.main:main.py:141 xxx changes released debounced=7ms\n' = <_pytest.logging.LogCaptureFixture object at 0x7f5663ed2990>.text + +tests/test_watch.py:451: AssertionError +----------------------------- Captured stdout call ----------------------------- +DEBUG watchgod.main:main.py:130 xxx time=7ms debounced=7ms files=3 changes=1 (1) +DEBUG watchgod.main:main.py:141 xxx changes released debounced=7ms + +------------------------------ Captured log call ------------------------------- +DEBUG watchgod.main:main.py:130 xxx time=7ms debounced=7ms files=3 changes=1 (1) +DEBUG watchgod.main:main.py:141 xxx changes released debounced=7ms +=========================== short test summary info ============================ +FAILED tests/test_watch.py::test_awatch_log[asyncio+uvloop] - AssertionError:... +FAILED tests/test_watch.py::test_awatch_log[asyncio] - AssertionError: assert... +FAILED tests/test_watch.py::test_awatch_log[trio] - AssertionError: assert 2 > 3 +======================== 3 failed, 159 passed in 9.32s ========================= +E: pybuild pybuild:388: test: plugin distutils failed with: exit code=1: cd /build/reproducible-path/python-watchgod-0.8.2/.pybuild/cpython3_3.11_watchgod/build; python3.11 -m pytest -W ignore::trio.TrioDeprecationWarning +dh_auto_test: error: pybuild --test --test-pytest -i python{version} -p 3.11 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/1570164/tmp/hooks/C01_cleanup starting +debug output: disk usage on i-capture-the-hostname at Sat Jan 6 10:30:16 UTC 2024 +Filesystem Size Used Avail Use% Mounted on +tmpfs 32G 0 32G 0% /dev/shm + +I: user script /srv/workspace/pbuilder/1570164/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/2908669 and its subdirectories -I: Current time: Fri Feb 7 04:51:05 -12 2025 -I: pbuilder-time-stamp: 1738947065 +I: removing directory /srv/workspace/pbuilder/1570164 and its subdirectories