Diff of the two buildlogs: -- --- b1/build.log 2024-12-22 05:08:05.590727192 +0000 +++ b2/build.log 2024-12-22 05:15:25.758764897 +0000 @@ -1,6 +1,6 @@ I: pbuilder: network access will be disabled during build -I: Current time: Sat Dec 21 17:05:33 -12 2024 -I: pbuilder-time-stamp: 1734843933 +I: Current time: Sun Dec 22 19:08:17 +14 2024 +I: pbuilder-time-stamp: 1734844097 I: Building the build Environment I: extracting base tarball [/var/cache/pbuilder/unstable-reproducible-base.tgz] I: copying local configuration @@ -26,52 +26,84 @@ dpkg-source: info: unpacking python-pytest-retry_1.6.3-1.debian.tar.xz I: Not using root during the build. I: Installing the build-deps -I: user script /srv/workspace/pbuilder/8154/tmp/hooks/D02_print_environment starting +I: user script /srv/workspace/pbuilder/10059/tmp/hooks/D01_modify_environment starting +debug: Running on cbxi4a. +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 Dec 22 05:09 /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/10059/tmp/hooks/D01_modify_environment finished +I: user script /srv/workspace/pbuilder/10059/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='armhf' - DEBIAN_FRONTEND='noninteractive' - DEB_BUILD_OPTIONS='buildinfo=+all reproducible=+all parallel=3 ' - DISTRIBUTION='unstable' - HOME='/root' - HOST_ARCH='armhf' + 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]="arm-unknown-linux-gnueabihf") + 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=armhf + DEBIAN_FRONTEND=noninteractive + DEB_BUILD_OPTIONS='buildinfo=+all reproducible=+all parallel=4 ' + DIRSTACK=() + DISTRIBUTION=unstable + EUID=0 + FUNCNAME=([0]="Echo" [1]="main") + GROUPS=() + HOME=/root + HOSTNAME=i-capture-the-hostname + HOSTTYPE=arm + HOST_ARCH=armhf IFS=' ' - INVOCATION_ID='4efd87cfcd9f4d45ad2ab1dac9800ea6' - 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='8154' - PS1='# ' - PS2='> ' + INVOCATION_ID=97f4f6ac2d4a4cffaa8c22ccf6a76eb1 + LANG=C + LANGUAGE=it_CH:it + LC_ALL=C + MACHTYPE=arm-unknown-linux-gnueabihf + MAIL=/var/mail/root + OPTERR=1 + OPTIND=1 + OSTYPE=linux-gnueabihf + 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=10059 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.Oi5dZc8e/pbuilderrc_Ud0J --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.Oi5dZc8e/b1 --logfile b1/build.log python-pytest-retry_1.6.3-1.dsc' - SUDO_GID='113' - SUDO_UID='107' - SUDO_USER='jenkins' - TERM='unknown' - TZ='/usr/share/zoneinfo/Etc/GMT+12' - USER='root' - _='/usr/bin/systemd-run' - http_proxy='http://10.0.0.15:3142/' + 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.Oi5dZc8e/pbuilderrc_sX4g --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.Oi5dZc8e/b2 --logfile b2/build.log python-pytest-retry_1.6.3-1.dsc' + SUDO_GID=113 + SUDO_UID=107 + SUDO_USER=jenkins + TERM=unknown + TZ=/usr/share/zoneinfo/Etc/GMT-14 + UID=0 + USER=root + _='I: set' + http_proxy=http://10.0.0.15:3142/ I: uname -a - Linux virt64c 6.1.0-28-arm64 #1 SMP Debian 6.1.119-1 (2024-11-22) aarch64 GNU/Linux + Linux i-capture-the-hostname 6.1.0-23-armmp #1 SMP Debian 6.1.99-1 (2024-07-15) armv7l GNU/Linux I: ls -l /bin lrwxrwxrwx 1 root root 7 Nov 22 14:40 /bin -> usr/bin -I: user script /srv/workspace/pbuilder/8154/tmp/hooks/D02_print_environment finished +I: user script /srv/workspace/pbuilder/10059/tmp/hooks/D02_print_environment finished -> Attempting to satisfy build-dependencies -> Creating pbuilder-satisfydepends-dummy package Package: pbuilder-satisfydepends-dummy @@ -195,7 +227,7 @@ Get: 76 http://deb.debian.org/debian unstable/main armhf python3-iniconfig all 1.1.1-2 [6396 B] Get: 77 http://deb.debian.org/debian unstable/main armhf python3-pluggy all 1.5.0-1 [26.9 kB] Get: 78 http://deb.debian.org/debian unstable/main armhf python3-pytest all 8.3.4-1 [250 kB] -Fetched 32.6 MB in 1s (44.7 MB/s) +Fetched 32.6 MB in 3s (10.3 MB/s) debconf: delaying package configuration, since apt-utils is not installed Selecting previously unselected package libpython3.12-minimal:armhf. (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 ... 19681 files and directories currently installed.) @@ -463,8 +495,8 @@ Setting up tzdata (2024b-4) ... Current default time zone: 'Etc/UTC' -Local time is now: Sun Dec 22 05:06:21 UTC 2024. -Universal Time is now: Sun Dec 22 05:06:21 UTC 2024. +Local time is now: Sun Dec 22 05:10:33 UTC 2024. +Universal Time is now: Sun Dec 22 05:10:33 UTC 2024. Run 'dpkg-reconfigure tzdata' if you wish to change it. Setting up libpython3.13-minimal:armhf (3.13.1-2) ... @@ -536,7 +568,11 @@ Building tag database... -> Finished parsing the build-deps I: Building the package -I: Running cd /build/reproducible-path/python-pytest-retry-1.6.3/ && 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-pytest-retry_1.6.3-1_source.changes +I: user script /srv/workspace/pbuilder/10059/tmp/hooks/A99_set_merged_usr starting +Not re-configuring usrmerge for unstable +I: user script /srv/workspace/pbuilder/10059/tmp/hooks/A99_set_merged_usr finished +hostname: Name or service not known +I: Running cd /build/reproducible-path/python-pytest-retry-1.6.3/ && 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-pytest-retry_1.6.3-1_source.changes dpkg-buildpackage: info: source package python-pytest-retry dpkg-buildpackage: info: source version 1.6.3-1 dpkg-buildpackage: info: source distribution unstable @@ -562,10 +598,10 @@ running build running build_py creating build/lib/pytest_retry -copying pytest_retry/retry_plugin.py -> build/lib/pytest_retry -copying pytest_retry/configs.py -> build/lib/pytest_retry copying pytest_retry/__init__.py -> build/lib/pytest_retry +copying pytest_retry/configs.py -> build/lib/pytest_retry copying pytest_retry/hooks.py -> build/lib/pytest_retry +copying pytest_retry/retry_plugin.py -> build/lib/pytest_retry copying pytest_retry/server.py -> build/lib/pytest_retry running egg_info creating pytest_retry.egg-info @@ -585,17 +621,17 @@ running install_lib creating build/bdist.linux-armv7l/wheel creating build/bdist.linux-armv7l/wheel/pytest_retry -copying build/lib/pytest_retry/retry_plugin.py -> build/bdist.linux-armv7l/wheel/./pytest_retry -copying build/lib/pytest_retry/configs.py -> build/bdist.linux-armv7l/wheel/./pytest_retry -copying build/lib/pytest_retry/__init__.py -> build/bdist.linux-armv7l/wheel/./pytest_retry copying build/lib/pytest_retry/py.typed -> build/bdist.linux-armv7l/wheel/./pytest_retry +copying build/lib/pytest_retry/__init__.py -> build/bdist.linux-armv7l/wheel/./pytest_retry +copying build/lib/pytest_retry/configs.py -> build/bdist.linux-armv7l/wheel/./pytest_retry copying build/lib/pytest_retry/hooks.py -> build/bdist.linux-armv7l/wheel/./pytest_retry +copying build/lib/pytest_retry/retry_plugin.py -> build/bdist.linux-armv7l/wheel/./pytest_retry copying build/lib/pytest_retry/server.py -> build/bdist.linux-armv7l/wheel/./pytest_retry running install_egg_info Copying pytest_retry.egg-info to build/bdist.linux-armv7l/wheel/./pytest_retry-1.6.3.egg-info running install_scripts creating build/bdist.linux-armv7l/wheel/pytest_retry-1.6.3.dist-info/WHEEL -creating '/build/reproducible-path/python-pytest-retry-1.6.3/.pybuild/cpython3_3.13_pytest-retry/.tmp-prh_5scj/pytest_retry-1.6.3-py3-none-any.whl' and adding 'build/bdist.linux-armv7l/wheel' to it +creating '/build/reproducible-path/python-pytest-retry-1.6.3/.pybuild/cpython3_3.13_pytest-retry/.tmp-52z8136z/pytest_retry-1.6.3-py3-none-any.whl' and adding 'build/bdist.linux-armv7l/wheel' to it adding 'pytest_retry/__init__.py' adding 'pytest_retry/configs.py' adding 'pytest_retry/hooks.py' @@ -632,17 +668,17 @@ running install_lib creating build/bdist.linux-armv7l/wheel creating build/bdist.linux-armv7l/wheel/pytest_retry -copying build/lib/pytest_retry/retry_plugin.py -> build/bdist.linux-armv7l/wheel/./pytest_retry -copying build/lib/pytest_retry/configs.py -> build/bdist.linux-armv7l/wheel/./pytest_retry -copying build/lib/pytest_retry/__init__.py -> build/bdist.linux-armv7l/wheel/./pytest_retry copying build/lib/pytest_retry/py.typed -> build/bdist.linux-armv7l/wheel/./pytest_retry +copying build/lib/pytest_retry/__init__.py -> build/bdist.linux-armv7l/wheel/./pytest_retry +copying build/lib/pytest_retry/configs.py -> build/bdist.linux-armv7l/wheel/./pytest_retry copying build/lib/pytest_retry/hooks.py -> build/bdist.linux-armv7l/wheel/./pytest_retry +copying build/lib/pytest_retry/retry_plugin.py -> build/bdist.linux-armv7l/wheel/./pytest_retry copying build/lib/pytest_retry/server.py -> build/bdist.linux-armv7l/wheel/./pytest_retry running install_egg_info Copying pytest_retry.egg-info to build/bdist.linux-armv7l/wheel/./pytest_retry-1.6.3.egg-info running install_scripts creating build/bdist.linux-armv7l/wheel/pytest_retry-1.6.3.dist-info/WHEEL -creating '/build/reproducible-path/python-pytest-retry-1.6.3/.pybuild/cpython3_3.12_pytest-retry/.tmp-7zaxf33p/pytest_retry-1.6.3-py3-none-any.whl' and adding 'build/bdist.linux-armv7l/wheel' to it +creating '/build/reproducible-path/python-pytest-retry-1.6.3/.pybuild/cpython3_3.12_pytest-retry/.tmp-doz3qg41/pytest_retry-1.6.3-py3-none-any.whl' and adding 'build/bdist.linux-armv7l/wheel' to it adding 'pytest_retry/__init__.py' adding 'pytest_retry/configs.py' adding 'pytest_retry/hooks.py' @@ -667,10 +703,139 @@ plugins: typeguard-4.4.1 collected 46 items -tests/test_retry_plugin.py ........s.................................... [ 97%] +tests/test_retry_plugin.py ........s..........F..................F...... [ 97%] s [100%] -======================== 44 passed, 2 skipped in 23.27s ======================== +=================================== FAILURES =================================== +_____________ test_retry_delay_from_command_line_between_attempts ______________ + +testdir = <Testdir local('/tmp/pytest-of-pbuilder2/pytest-0/test_retry_delay_from_command_line_between_attempts0')> + + def test_retry_delay_from_command_line_between_attempts(testdir): + testdir.makepyfile( + """ + import pytest + + a = [] + + def test_eventually_passes(): + a.append(1) + assert len(a) > 2 + """ + ) + result = testdir.runpytest("--retries", "2", "--retry-delay", "0.2") + + assert_outcomes(result, passed=1, retried=1) + assert result.duration > 0.4 +> assert result.duration < 0.8 +E assert 0.9462900161743164 < 0.8 +E + where 0.9462900161743164 = <RunResult ret=0 len(stdout.lines)=32 len(stderr.lines)=0 duration=0.95s>.duration + +/build/reproducible-path/python-pytest-retry-1.6.3/.pybuild/cpython3_3.13_pytest-retry/build/tests/test_retry_plugin.py:376: AssertionError +----------------------------- Captured stdout call ----------------------------- +============================= test session starts ============================== +platform linux -- Python 3.13.1, pytest-8.3.4, pluggy-1.5.0 +rootdir: /tmp/pytest-of-pbuilder2/pytest-0/test_retry_delay_from_command_line_between_attempts0 +plugins: retry-1.6.3, typeguard-4.4.1 +collected 1 item + +test_retry_delay_from_command_line_between_attempts.py R. [100%] + +======================= the following tests were retried ======================= + test_eventually_passes failed on attempt 1! Retrying! + Traceback (most recent call last): + File "/usr/lib/python3/dist-packages/_pytest/runner.py", line 341, in from_call + result: TResult | None = func() + ~~~~^^ + AssertionError: assert 1 > 2 + + where 1 = len([1]) + + test_eventually_passes failed on attempt 2! Retrying! + Traceback (most recent call last): + File "/usr/lib/python3/dist-packages/_pytest/runner.py", line 341, in from_call + result: TResult | None = func() + ~~~~^^ + AssertionError: assert 2 > 2 + + where 2 = len([1, 1]) + + test_eventually_passes passed on attempt 3! + + +=========================== end of test retry report =========================== + + +========================= 1 passed, 1 retried in 0.55s ========================= +__________________ test_configuration_by_pyproject_toml_file ___________________ + +testdir = <Testdir local('/tmp/pytest-of-pbuilder2/pytest-0/test_configuration_by_pyproject_toml_file0')> + + def test_configuration_by_pyproject_toml_file(testdir): + testdir.makepyprojecttoml( + """ + [tool.pytest.ini_options] + retries = 1 + retry_delay = 0.3 + """ + ) + testdir.makepyfile( + """ + def test_toml_settings(): + assert False + """ + ) + result = testdir.runpytest() + + assert_outcomes(result, passed=0, failed=1, retried=1) + assert result.duration > 0.3 +> assert result.duration < 0.7 +E assert 0.8728930950164795 < 0.7 +E + where 0.8728930950164795 = <RunResult ret=1 len(stdout.lines)=38 len(stderr.lines)=0 duration=0.87s>.duration + +/build/reproducible-path/python-pytest-retry-1.6.3/.pybuild/cpython3_3.13_pytest-retry/build/tests/test_retry_plugin.py:836: AssertionError +----------------------------- Captured stdout call ----------------------------- +============================= test session starts ============================== +platform linux -- Python 3.13.1, pytest-8.3.4, pluggy-1.5.0 +rootdir: /tmp/pytest-of-pbuilder2/pytest-0/test_configuration_by_pyproject_toml_file0 +configfile: pyproject.toml +plugins: retry-1.6.3, typeguard-4.4.1 +collected 1 item + +test_configuration_by_pyproject_toml_file.py RF [100%] + +=================================== FAILURES =================================== +______________________________ test_toml_settings ______________________________ + + def test_toml_settings(): +> assert False +E assert False + +test_configuration_by_pyproject_toml_file.py:2: AssertionError + +======================= the following tests were retried ======================= + test_toml_settings failed on attempt 1! Retrying! + Traceback (most recent call last): + File "/usr/lib/python3/dist-packages/_pytest/runner.py", line 341, in from_call + result: TResult | None = func() + ~~~~^^ + AssertionError: assert False + + test_toml_settings failed after 2 attempts! + Traceback (most recent call last): + File "/usr/lib/python3/dist-packages/_pytest/runner.py", line 341, in from_call + result: TResult | None = func() + ~~~~^^ + AssertionError: assert False + +=========================== end of test retry report =========================== + +=========================== short test summary info ============================ +FAILED test_configuration_by_pyproject_toml_file.py::test_toml_settings - ass... +========================= 1 failed, 1 retried in 0.42s ========================= +=========================== short test summary info ============================ +FAILED tests/test_retry_plugin.py::test_retry_delay_from_command_line_between_attempts +FAILED tests/test_retry_plugin.py::test_configuration_by_pyproject_toml_file +=================== 2 failed, 42 passed, 2 skipped in 48.38s =================== +E: pybuild pybuild:389: test: plugin pyproject failed with: exit code=1: cd /build/reproducible-path/python-pytest-retry-1.6.3/.pybuild/cpython3_3.13_pytest-retry/build; python3.13 -m pytest tests I: pybuild base:311: cd /build/reproducible-path/python-pytest-retry-1.6.3/.pybuild/cpython3_3.12_pytest-retry/build; python3.12 -m pytest tests ============================= test session starts ============================== platform linux -- Python 3.12.8, pytest-8.3.4, pluggy-1.5.0 @@ -679,45 +844,276 @@ plugins: typeguard-4.4.1 collected 46 items -tests/test_retry_plugin.py ........s.................................... [ 97%] +tests/test_retry_plugin.py ........s..........F................F.F...... [ 97%] s [100%] -======================== 44 passed, 2 skipped in 23.53s ======================== - create-stamp debian/debhelper-build-stamp - dh_testroot -O--buildsystem=pybuild - dh_prep -O--buildsystem=pybuild - dh_auto_install --destdir=debian/python3-pytest-retry/ -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 - 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-pytest-retry' in '../python3-pytest-retry_1.6.3-1_all.deb'. - dpkg-genbuildinfo --build=binary -O../python-pytest-retry_1.6.3-1_armhf.buildinfo - dpkg-genchanges --build=binary -O../python-pytest-retry_1.6.3-1_armhf.changes -dpkg-genchanges: info: binary-only upload (no source code included) - dpkg-source --after-build . -dpkg-source: info: using options from python-pytest-retry-1.6.3/debian/source/options: --extend-diff-ignore=^[^/]+.(egg-info|dist-info)/ -dpkg-buildpackage: info: binary-only upload (no source included) -dpkg-genchanges: info: including full source code in upload +=================================== FAILURES =================================== +_____________ test_retry_delay_from_command_line_between_attempts ______________ + +testdir = <Testdir local('/tmp/pytest-of-pbuilder2/pytest-1/test_retry_delay_from_command_line_between_attempts0')> + + def test_retry_delay_from_command_line_between_attempts(testdir): + testdir.makepyfile( + """ + import pytest + + a = [] + + def test_eventually_passes(): + a.append(1) + assert len(a) > 2 + """ + ) + result = testdir.runpytest("--retries", "2", "--retry-delay", "0.2") + + assert_outcomes(result, passed=1, retried=1) + assert result.duration > 0.4 +> assert result.duration < 0.8 +E assert 0.9942238330841064 < 0.8 +E + where 0.9942238330841064 = <RunResult ret=0 len(stdout.lines)=32 len(stderr.lines)=0 duration=0.99s>.duration + +/build/reproducible-path/python-pytest-retry-1.6.3/.pybuild/cpython3_3.12_pytest-retry/build/tests/test_retry_plugin.py:376: AssertionError +----------------------------- Captured stdout call ----------------------------- +============================= test session starts ============================== +platform linux -- Python 3.12.8, pytest-8.3.4, pluggy-1.5.0 +rootdir: /tmp/pytest-of-pbuilder2/pytest-1/test_retry_delay_from_command_line_between_attempts0 +plugins: retry-1.6.3, typeguard-4.4.1 +collected 1 item + +test_retry_delay_from_command_line_between_attempts.py R. [100%] + +======================= the following tests were retried ======================= + test_eventually_passes failed on attempt 1! Retrying! + Traceback (most recent call last): + File "/usr/lib/python3/dist-packages/_pytest/runner.py", line 341, in from_call + result: TResult | None = func() + ^^^^^^ + AssertionError: assert 1 > 2 + + where 1 = len([1]) + + test_eventually_passes failed on attempt 2! Retrying! + Traceback (most recent call last): + File "/usr/lib/python3/dist-packages/_pytest/runner.py", line 341, in from_call + result: TResult | None = func() + ^^^^^^ + AssertionError: assert 2 > 2 + + where 2 = len([1, 1]) + + test_eventually_passes passed on attempt 3! + + +=========================== end of test retry report =========================== + + +========================= 1 passed, 1 retried in 0.55s ========================= +________________ test_flaky_mark_overrides_command_line_options ________________ + +testdir = <Testdir local('/tmp/pytest-of-pbuilder2/pytest-1/test_flaky_mark_overrides_command_line_options0')> + + def test_flaky_mark_overrides_command_line_options(testdir): + testdir.makepyfile( + """ + import pytest + + a = [] + b = [] + + @pytest.mark.flaky(retries=3, delay=0) + def test_flaky_mark_options(): + a.append(1) + assert len(a) > 3 + + def test_default_commandline_options(): + b.append(1) + assert len(b) > 3 + """ + ) + testdir.makeconftest( + """ + import pytest + from pytest_retry import attempts_key + + def pytest_sessionfinish(session: pytest.Session) -> None: + for item in session.items: + if item.name == "test_flaky_mark_options": + assert item.stash[attempts_key] == 4 + if item.name == "test_default_commandline_options": + assert item.stash[attempts_key] == 3 + """ + ) + result = testdir.runpytest("--retries", "2", "--retry-delay", "1") + + assert_outcomes(result, passed=1, failed=1, retried=2) + assert result.duration > 2 +> assert result.duration < 3 +E assert 3.0059452056884766 < 3 +E + where 3.0059452056884766 = <RunResult ret=1 len(stdout.lines)=76 len(stderr.lines)=0 duration=3.01s>.duration + +/build/reproducible-path/python-pytest-retry-1.6.3/.pybuild/cpython3_3.12_pytest-retry/build/tests/test_retry_plugin.py:775: AssertionError +----------------------------- Captured stdout call ----------------------------- +============================= test session starts ============================== +platform linux -- Python 3.12.8, pytest-8.3.4, pluggy-1.5.0 +rootdir: /tmp/pytest-of-pbuilder2/pytest-1/test_flaky_mark_overrides_command_line_options0 +plugins: retry-1.6.3, typeguard-4.4.1 +collected 2 items + +test_flaky_mark_overrides_command_line_options.py R.RF [100%] + +=================================== FAILURES =================================== +_______________________ test_default_commandline_options _______________________ + + def test_default_commandline_options(): + b.append(1) +> assert len(b) > 3 +E assert 3 > 3 +E + where 3 = len([1, 1, 1]) + +test_flaky_mark_overrides_command_line_options.py:13: AssertionError + +======================= the following tests were retried ======================= + test_flaky_mark_options failed on attempt 1! Retrying! + Traceback (most recent call last): + File "/usr/lib/python3/dist-packages/_pytest/runner.py", line 341, in from_call + result: TResult | None = func() + ^^^^^^ + AssertionError: assert 1 > 3 + + where 1 = len([1]) + + test_flaky_mark_options failed on attempt 2! Retrying! + Traceback (most recent call last): + File "/usr/lib/python3/dist-packages/_pytest/runner.py", line 341, in from_call + result: TResult | None = func() + ^^^^^^ + AssertionError: assert 2 > 3 + + where 2 = len([1, 1]) + + test_flaky_mark_options failed on attempt 3! Retrying! + Traceback (most recent call last): + File "/usr/lib/python3/dist-packages/_pytest/runner.py", line 341, in from_call + result: TResult | None = func() + ^^^^^^ + AssertionError: assert 3 > 3 + + where 3 = len([1, 1, 1]) + + test_flaky_mark_options passed on attempt 4! + + + test_default_commandline_options failed on attempt 1! Retrying! + Traceback (most recent call last): + File "/usr/lib/python3/dist-packages/_pytest/runner.py", line 341, in from_call + result: TResult | None = func() + ^^^^^^ + AssertionError: assert 1 > 3 + + where 1 = len([1]) + + test_default_commandline_options failed on attempt 2! Retrying! + Traceback (most recent call last): + File "/usr/lib/python3/dist-packages/_pytest/runner.py", line 341, in from_call + result: TResult | None = func() + ^^^^^^ + AssertionError: assert 2 > 3 + + where 2 = len([1, 1]) + + test_default_commandline_options failed after 3 attempts! + Traceback (most recent call last): + File "/usr/lib/python3/dist-packages/_pytest/runner.py", line 341, in from_call + result: TResult | None = func() + ^^^^^^ + AssertionError: assert 3 > 3 + + where 3 = len([1, 1, 1]) + +=========================== end of test retry report =========================== + +=========================== short test summary info ============================ +FAILED test_flaky_mark_overrides_command_line_options.py::test_default_commandline_options +==================== 1 failed, 1 passed, 2 retried in 2.38s ==================== +__________________ test_configuration_by_pyproject_toml_file ___________________ + +testdir = <Testdir local('/tmp/pytest-of-pbuilder2/pytest-1/test_configuration_by_pyproject_toml_file0')> + + def test_configuration_by_pyproject_toml_file(testdir): + testdir.makepyprojecttoml( + """ + [tool.pytest.ini_options] + retries = 1 + retry_delay = 0.3 + """ + ) + testdir.makepyfile( + """ + def test_toml_settings(): + assert False + """ + ) + result = testdir.runpytest() + + assert_outcomes(result, passed=0, failed=1, retried=1) + assert result.duration > 0.3 +> assert result.duration < 0.7 +E assert 0.9548735618591309 < 0.7 +E + where 0.9548735618591309 = <RunResult ret=1 len(stdout.lines)=38 len(stderr.lines)=0 duration=0.95s>.duration + +/build/reproducible-path/python-pytest-retry-1.6.3/.pybuild/cpython3_3.12_pytest-retry/build/tests/test_retry_plugin.py:836: AssertionError +----------------------------- Captured stdout call ----------------------------- +============================= test session starts ============================== +platform linux -- Python 3.12.8, pytest-8.3.4, pluggy-1.5.0 +rootdir: /tmp/pytest-of-pbuilder2/pytest-1/test_configuration_by_pyproject_toml_file0 +configfile: pyproject.toml +plugins: retry-1.6.3, typeguard-4.4.1 +collected 1 item + +test_configuration_by_pyproject_toml_file.py RF [100%] + +=================================== FAILURES =================================== +______________________________ test_toml_settings ______________________________ + + def test_toml_settings(): +> assert False +E assert False + +test_configuration_by_pyproject_toml_file.py:2: AssertionError + +======================= the following tests were retried ======================= + test_toml_settings failed on attempt 1! Retrying! + Traceback (most recent call last): + File "/usr/lib/python3/dist-packages/_pytest/runner.py", line 341, in from_call + result: TResult | None = func() + ^^^^^^ + AssertionError: assert False + + test_toml_settings failed after 2 attempts! + Traceback (most recent call last): + File "/usr/lib/python3/dist-packages/_pytest/runner.py", line 341, in from_call + result: TResult | None = func() + ^^^^^^ + AssertionError: assert False + +=========================== end of test retry report =========================== + +=========================== short test summary info ============================ +FAILED test_configuration_by_pyproject_toml_file.py::test_toml_settings - ass... +========================= 1 failed, 1 retried in 0.46s ========================= +=========================== short test summary info ============================ +FAILED tests/test_retry_plugin.py::test_retry_delay_from_command_line_between_attempts +FAILED tests/test_retry_plugin.py::test_flaky_mark_overrides_command_line_options +FAILED tests/test_retry_plugin.py::test_configuration_by_pyproject_toml_file +=================== 3 failed, 41 passed, 2 skipped in 51.23s =================== +E: pybuild pybuild:389: test: plugin pyproject failed with: exit code=1: cd /build/reproducible-path/python-pytest-retry-1.6.3/.pybuild/cpython3_3.12_pytest-retry/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: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/10059/tmp/hooks/C01_cleanup starting +debug output: disk usage on i-capture-the-hostname at Sun Dec 22 05:15:07 UTC 2024 +Filesystem Size Used Avail Use% Mounted on +tmpfs 1.9G 0 1.9G 0% /dev/shm + +I: user script /srv/workspace/pbuilder/10059/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/8154 and its subdirectories -I: Current time: Sat Dec 21 17:08:01 -12 2024 -I: pbuilder-time-stamp: 1734844081 +I: removing directory /srv/workspace/pbuilder/10059 and its subdirectories