Diff of the two buildlogs: -- --- b1/build.log 2024-05-08 00:21:56.627172536 +0000 +++ b2/build.log 2024-05-08 00:27:56.703846015 +0000 @@ -1,6 +1,6 @@ I: pbuilder: network access will be disabled during build -I: Current time: Tue May 7 12:18:30 -12 2024 -I: pbuilder-time-stamp: 1715127510 +I: Current time: Wed May 8 14:22:08 +14 2024 +I: pbuilder-time-stamp: 1715127728 I: Building the build Environment I: extracting base tarball [/var/cache/pbuilder/trixie-reproducible-base.tgz] I: copying local configuration @@ -28,52 +28,84 @@ dpkg-source: info: applying 0002-Don-t-use-bundled-libdatrie.patch I: Not using root during the build. I: Installing the build-deps -I: user script /srv/workspace/pbuilder/16942/tmp/hooks/D02_print_environment starting +I: user script /srv/workspace/pbuilder/19294/tmp/hooks/D01_modify_environment starting +debug: Running on virt64a. +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 May 8 00:22 /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/19294/tmp/hooks/D01_modify_environment finished +I: user script /srv/workspace/pbuilder/19294/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='trixie' - 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]="21" [3]="1" [4]="release" [5]="arm-unknown-linux-gnueabihf") + BASH_VERSION='5.2.21(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=trixie + EUID=0 + FUNCNAME=([0]="Echo" [1]="main") + GROUPS=() + HOME=/root + HOSTNAME=i-capture-the-hostname + HOSTTYPE=arm + HOST_ARCH=armhf IFS=' ' - INVOCATION_ID='da0929fbdb9944d481f327bf6f2691ae' - 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='16942' - PS1='# ' - PS2='> ' + INVOCATION_ID=2bb49618f11d445c83eb4f39e8ae45af + 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=19294 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.kh7FMX9C/pbuilderrc_uL1G --distribution trixie --hookdir /etc/pbuilder/first-build-hooks --debbuildopts -b --basetgz /var/cache/pbuilder/trixie-reproducible-base.tgz --buildresult /srv/reproducible-results/rbuild-debian/r-b-build.kh7FMX9C/b1 --logfile b1/build.log python-datrie_0.8.2-4.dsc' - SUDO_GID='110' - SUDO_UID='103' - 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.kh7FMX9C/pbuilderrc_kvpF --distribution trixie --hookdir /etc/pbuilder/rebuild-hooks --debbuildopts -b --basetgz /var/cache/pbuilder/trixie-reproducible-base.tgz --buildresult /srv/reproducible-results/rbuild-debian/r-b-build.kh7FMX9C/b2 --logfile b2/build.log python-datrie_0.8.2-4.dsc' + SUDO_GID=114 + SUDO_UID=108 + 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 virt32z 6.1.0-21-armmp-lpae #1 SMP Debian 6.1.90-1 (2024-05-03) armv7l GNU/Linux + Linux i-capture-the-hostname 6.1.0-21-arm64 #1 SMP Debian 6.1.90-1 (2024-05-03) aarch64 GNU/Linux I: ls -l /bin - lrwxrwxrwx 1 root root 7 May 7 11:24 /bin -> usr/bin -I: user script /srv/workspace/pbuilder/16942/tmp/hooks/D02_print_environment finished + lrwxrwxrwx 1 root root 7 May 5 11:24 /bin -> usr/bin +I: user script /srv/workspace/pbuilder/19294/tmp/hooks/D02_print_environment finished -> Attempting to satisfy build-dependencies -> Creating pbuilder-satisfydepends-dummy package Package: pbuilder-satisfydepends-dummy @@ -209,7 +241,7 @@ Get: 82 http://deb.debian.org/debian trixie/main armhf python3-pluggy all 1.5.0-1 [26.9 kB] Get: 83 http://deb.debian.org/debian trixie/main armhf python3-pytest all 7.4.4-3 [239 kB] Get: 84 http://deb.debian.org/debian trixie/main armhf python3-pytest-runner all 2.11.1-4 [8432 B] -Fetched 47.0 MB in 1s (54.4 MB/s) +Fetched 47.0 MB in 3s (18.4 MB/s) debconf: delaying package configuration, since apt-utils is not installed Selecting previously unselected package libpython3.11-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 ... 19444 files and directories currently installed.) @@ -491,8 +523,8 @@ Setting up tzdata (2024a-3) ... Current default time zone: 'Etc/UTC' -Local time is now: Wed May 8 00:19:11 UTC 2024. -Universal Time is now: Wed May 8 00:19:11 UTC 2024. +Local time is now: Wed May 8 00:24:05 UTC 2024. +Universal Time is now: Wed May 8 00:24:05 UTC 2024. Run 'dpkg-reconfigure tzdata' if you wish to change it. Setting up autotools-dev (20220109.1) ... @@ -573,7 +605,11 @@ Building tag database... -> Finished parsing the build-deps I: Building the package -I: Running cd /build/reproducible-path/python-datrie-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-datrie_0.8.2-4_source.changes +I: user script /srv/workspace/pbuilder/19294/tmp/hooks/A99_set_merged_usr starting +Not re-configuring usrmerge for trixie +I: user script /srv/workspace/pbuilder/19294/tmp/hooks/A99_set_merged_usr finished +hostname: Name or service not known +I: Running cd /build/reproducible-path/python-datrie-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-datrie_0.8.2-4_source.changes dpkg-buildpackage: info: source package python-datrie dpkg-buildpackage: info: source version 0.8.2-4 dpkg-buildpackage: info: source distribution unstable @@ -840,7 +876,7 @@ tests/test_state.py . [ 34%] tests/test_trie.py ......................... [100%] -============================== 38 passed in 6.83s ============================== +============================== 38 passed in 9.77s ============================== I: pybuild base:311: cd /build/reproducible-path/python-datrie-0.8.2/.pybuild/cpython3_3.11_datrie/build; python3.11 -m pytest tests ============================= test session starts ============================== platform linux -- Python 3.11.9, pytest-7.4.4, pluggy-1.5.0 @@ -849,157 +885,269 @@ collected 38 items tests/test_iteration.py ....... [ 18%] -tests/test_random.py ..... [ 31%] +tests/test_random.py ..F.. [ 31%] tests/test_state.py . [ 34%] tests/test_trie.py ......................... [100%] -============================== 38 passed in 6.87s ============================== - create-stamp debian/debhelper-build-stamp - dh_testroot -O--buildsystem=pybuild - dh_prep -O--buildsystem=pybuild - dh_auto_install --destdir=debian/python3-datrie/ -O--buildsystem=pybuild -I: pybuild base:311: /usr/bin/python3.12 setup.py install --root /build/reproducible-path/python-datrie-0.8.2/debian/python3-datrie -/usr/lib/python3/dist-packages/setuptools/__init__.py:84: _DeprecatedInstaller: setuptools.installer and fetch_build_eggs are deprecated. -!! - - ******************************************************************************** - Requirements should be satisfied by a PEP 517 installer. - If you are using pip, you can try `pip install --use-pep517`. - ******************************************************************************** - -!! - dist.fetch_build_eggs(dist.setup_requires) -WARNING: The wheel package is not available. -running install -/usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. -!! - - ******************************************************************************** - Please avoid running ``setup.py`` directly. - Instead, use pypa/build, pypa/installer or other - standards-based tools. - - See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. - ******************************************************************************** - -!! - self.initialize_options() -running build -running build_ext -running install_lib -creating /build/reproducible-path/python-datrie-0.8.2/debian/python3-datrie/usr -creating /build/reproducible-path/python-datrie-0.8.2/debian/python3-datrie/usr/lib -creating /build/reproducible-path/python-datrie-0.8.2/debian/python3-datrie/usr/lib/python3.12 -creating /build/reproducible-path/python-datrie-0.8.2/debian/python3-datrie/usr/lib/python3.12/dist-packages -copying /build/reproducible-path/python-datrie-0.8.2/.pybuild/cpython3_3.12_datrie/build/datrie.cpython-312-arm-linux-gnueabihf.so -> /build/reproducible-path/python-datrie-0.8.2/debian/python3-datrie/usr/lib/python3.12/dist-packages -creating /build/reproducible-path/python-datrie-0.8.2/debian/python3-datrie/usr/lib/python3.12/dist-packages/.hypothesis -creating /build/reproducible-path/python-datrie-0.8.2/debian/python3-datrie/usr/lib/python3.12/dist-packages/.hypothesis/unicode_data -creating /build/reproducible-path/python-datrie-0.8.2/debian/python3-datrie/usr/lib/python3.12/dist-packages/.hypothesis/unicode_data/15.0.0 -copying /build/reproducible-path/python-datrie-0.8.2/.pybuild/cpython3_3.12_datrie/build/.hypothesis/unicode_data/15.0.0/charmap.json.gz -> /build/reproducible-path/python-datrie-0.8.2/debian/python3-datrie/usr/lib/python3.12/dist-packages/.hypothesis/unicode_data/15.0.0 -running install_egg_info -running egg_info -creating datrie.egg-info -writing datrie.egg-info/PKG-INFO -writing dependency_links to datrie.egg-info/dependency_links.txt -writing top-level names to datrie.egg-info/top_level.txt -writing manifest file 'datrie.egg-info/SOURCES.txt' -dependency /usr/include/datrie/alpha-map.h won't be automatically included in the manifest: the path must be relative -dependency /usr/include/datrie/trie.h won't be automatically included in the manifest: the path must be relative -dependency /usr/include/datrie/triedefs.h won't be automatically included in the manifest: the path must be relative -reading manifest file 'datrie.egg-info/SOURCES.txt' -reading manifest template 'MANIFEST.in' -warning: no files found matching 'tests/words100k.txt.zip' -adding license file 'COPYING' -writing manifest file 'datrie.egg-info/SOURCES.txt' -Copying datrie.egg-info to /build/reproducible-path/python-datrie-0.8.2/debian/python3-datrie/usr/lib/python3.12/dist-packages/datrie-0.8.2.egg-info -Skipping SOURCES.txt -running install_scripts -I: pybuild base:311: /usr/bin/python3 setup.py install --root /build/reproducible-path/python-datrie-0.8.2/debian/python3-datrie -/usr/lib/python3/dist-packages/setuptools/__init__.py:84: _DeprecatedInstaller: setuptools.installer and fetch_build_eggs are deprecated. -!! - - ******************************************************************************** - Requirements should be satisfied by a PEP 517 installer. - If you are using pip, you can try `pip install --use-pep517`. - ******************************************************************************** - -!! - dist.fetch_build_eggs(dist.setup_requires) -WARNING: The wheel package is not available. -running install -/usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. -!! +=================================== FAILURES =================================== +_____________________________ test_pickle_unpickle _____________________________ - ******************************************************************************** - Please avoid running ``setup.py`` directly. - Instead, use pypa/build, pypa/installer or other - standards-based tools. +words = [] - See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. - ******************************************************************************** + @given(printable_strings) +> def test_pickle_unpickle(words): -!! - self.initialize_options() -running build -running build_ext -running install_lib -creating /build/reproducible-path/python-datrie-0.8.2/debian/python3-datrie/usr/lib/python3.11 -creating /build/reproducible-path/python-datrie-0.8.2/debian/python3-datrie/usr/lib/python3.11/dist-packages -copying /build/reproducible-path/python-datrie-0.8.2/.pybuild/cpython3_3.11_datrie/build/datrie.cpython-311-arm-linux-gnueabihf.so -> /build/reproducible-path/python-datrie-0.8.2/debian/python3-datrie/usr/lib/python3.11/dist-packages -creating /build/reproducible-path/python-datrie-0.8.2/debian/python3-datrie/usr/lib/python3.11/dist-packages/.hypothesis -creating /build/reproducible-path/python-datrie-0.8.2/debian/python3-datrie/usr/lib/python3.11/dist-packages/.hypothesis/unicode_data -creating /build/reproducible-path/python-datrie-0.8.2/debian/python3-datrie/usr/lib/python3.11/dist-packages/.hypothesis/unicode_data/14.0.0 -copying /build/reproducible-path/python-datrie-0.8.2/.pybuild/cpython3_3.11_datrie/build/.hypothesis/unicode_data/14.0.0/charmap.json.gz -> /build/reproducible-path/python-datrie-0.8.2/debian/python3-datrie/usr/lib/python3.11/dist-packages/.hypothesis/unicode_data/14.0.0 -running install_egg_info -running egg_info -writing datrie.egg-info/PKG-INFO -writing dependency_links to datrie.egg-info/dependency_links.txt -writing top-level names to datrie.egg-info/top_level.txt -dependency /usr/include/datrie/alpha-map.h won't be automatically included in the manifest: the path must be relative -dependency /usr/include/datrie/trie.h won't be automatically included in the manifest: the path must be relative -dependency /usr/include/datrie/triedefs.h won't be automatically included in the manifest: the path must be relative -reading manifest file 'datrie.egg-info/SOURCES.txt' -reading manifest template 'MANIFEST.in' -warning: no files found matching 'tests/words100k.txt.zip' -adding license file 'COPYING' -writing manifest file 'datrie.egg-info/SOURCES.txt' -Copying datrie.egg-info to /build/reproducible-path/python-datrie-0.8.2/debian/python3-datrie/usr/lib/python3.11/dist-packages/datrie-0.8.2.egg-info -Skipping SOURCES.txt -running install_scripts - 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_dwz -a -O--buildsystem=pybuild - dh_strip -a -O--buildsystem=pybuild - dh_makeshlibs -a -O--buildsystem=pybuild - dh_shlibdeps -a -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-datrie' in '../python3-datrie_0.8.2-4_armhf.deb'. -dpkg-deb: building package 'python3-datrie-dbgsym' in '../python3-datrie-dbgsym_0.8.2-4_armhf.deb'. - dpkg-genbuildinfo --build=binary -O../python-datrie_0.8.2-4_armhf.buildinfo - dpkg-genchanges --build=binary -O../python-datrie_0.8.2-4_armhf.changes -dpkg-genchanges: info: binary-only upload (no source code included) - dpkg-source --after-build . -dpkg-source: info: using options from python-datrie-0.8.2/debian/source/options: --extend-diff-ignore=^[^/]*[.]egg-info/ -dpkg-buildpackage: info: binary-only upload (no source included) -dpkg-genchanges: info: not including original source code in upload +tests/test_random.py:34: +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +args = ([],), kwargs = {}, arg_drawtime = 0.0003696450003189966 +start = 10506.667705869, result = None, finish = 10509.466054148 +in_drawtime = 0.0, runtime = datetime.timedelta(seconds=2, microseconds=798348) +current_deadline = datetime.timedelta(microseconds=250000) + + @proxies(self.test) + def test(*args, **kwargs): + arg_drawtime = math.fsum(data.draw_times.values()) + start = time.perf_counter() + try: + result = self.test(*args, **kwargs) + finally: + finish = time.perf_counter() + in_drawtime = math.fsum(data.draw_times.values()) - arg_drawtime + runtime = datetime.timedelta(seconds=finish - start - in_drawtime) + self._timing_features = { + "execute:test": finish - start - in_drawtime, + **data.draw_times, + **data._stateful_run_times, + } + + if (current_deadline := self.settings.deadline) is not None: + if not is_final: + current_deadline = (current_deadline // 4) * 5 + if runtime >= current_deadline: +> raise DeadlineExceeded(runtime, self.settings.deadline) +E hypothesis.errors.DeadlineExceeded: Test took 2798.35ms, which exceeds the deadline of 200.00ms + +/usr/lib/python3/dist-packages/hypothesis/core.py:846: DeadlineExceeded + +The above exception was the direct cause of the following exception: + + @given(printable_strings) +> def test_pickle_unpickle(words): + +tests/test_random.py:34: +_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + +self = +data = ConjectureData(VALID, 1 bytes, frozen) + + def execute_once( + self, + data, + *, + print_example=False, + is_final=False, + expected_failure=None, + example_kwargs=None, + ): + """Run the test function once, using ``data`` as input. + + If the test raises an exception, it will propagate through to the + caller of this method. Depending on its type, this could represent + an ordinary test failure, or a fatal error, or a control exception. + + If this method returns normally, the test might have passed, or + it might have placed ``data`` in an unsuccessful state and then + swallowed the corresponding control exception. + """ + + self.ever_executed = True + data.is_find = self.is_find + + self._string_repr = "" + text_repr = None + if self.settings.deadline is None and not TESTCASE_CALLBACKS: + test = self.test + else: + + @proxies(self.test) + def test(*args, **kwargs): + arg_drawtime = math.fsum(data.draw_times.values()) + start = time.perf_counter() + try: + result = self.test(*args, **kwargs) + finally: + finish = time.perf_counter() + in_drawtime = math.fsum(data.draw_times.values()) - arg_drawtime + runtime = datetime.timedelta(seconds=finish - start - in_drawtime) + self._timing_features = { + "execute:test": finish - start - in_drawtime, + **data.draw_times, + **data._stateful_run_times, + } + + if (current_deadline := self.settings.deadline) is not None: + if not is_final: + current_deadline = (current_deadline // 4) * 5 + if runtime >= current_deadline: + raise DeadlineExceeded(runtime, self.settings.deadline) + return result + + def run(data): + # Set up dynamic context needed by a single test run. + if self.stuff.selfy is not None: + data.hypothesis_runner = self.stuff.selfy + # Generate all arguments to the test function. + args = self.stuff.args + kwargs = dict(self.stuff.kwargs) + if example_kwargs is None: + kw, argslices = context.prep_args_kwargs_from_strategies( + self.stuff.given_kwargs + ) + else: + kw = example_kwargs + argslices = {} + kwargs.update(kw) + if expected_failure is not None: + nonlocal text_repr + text_repr = repr_call(test, args, kwargs) + if text_repr in self.xfail_example_reprs: + warnings.warn( + f"We generated {text_repr}, which seems identical " + "to one of your `@example(...).xfail()` cases. " + "Revise the strategy to avoid this overlap?", + HypothesisWarning, + # Checked in test_generating_xfailed_examples_warns! + stacklevel=6, + ) + + if print_example or current_verbosity() >= Verbosity.verbose: + printer = RepresentationPrinter(context=context) + if print_example: + printer.text("Falsifying example:") + else: + printer.text("Trying example:") + + if self.print_given_args: + printer.text(" ") + printer.repr_call( + test.__name__, + args, + kwargs, + force_split=True, + arg_slices=argslices, + leading_comment=( + "# " + context.data.slice_comments[(0, 0)] + if (0, 0) in context.data.slice_comments + else None + ), + ) + report(printer.getvalue()) + + if TESTCASE_CALLBACKS: + printer = RepresentationPrinter(context=context) + printer.repr_call( + test.__name__, + args, + kwargs, + force_split=True, + arg_slices=argslices, + leading_comment=( + "# " + context.data.slice_comments[(0, 0)] + if (0, 0) in context.data.slice_comments + else None + ), + ) + self._string_repr = printer.getvalue() + data._observability_arguments = { + **dict(enumerate(map(to_jsonable, args))), + **{k: to_jsonable(v) for k, v in kwargs.items()}, + } + + try: + return test(*args, **kwargs) + except TypeError as e: + # If we sampled from a sequence of strategies, AND failed with a + # TypeError, *AND that exception mentions SearchStrategy*, add a note: + if "SearchStrategy" in str(e) and hasattr( + data, "_sampled_from_all_strategies_elements_message" + ): + msg, format_arg = data._sampled_from_all_strategies_elements_message + add_note(e, msg.format(format_arg)) + raise + finally: + if parts := getattr(data, "_stateful_repr_parts", None): + self._string_repr = "\n".join(parts) + + # self.test_runner can include the execute_example method, or setup/teardown + # _example, so it's important to get the PRNG and build context in place first. + with local_settings(self.settings): + with deterministic_PRNG(): + with BuildContext(data, is_final=is_final) as context: + # providers may throw in per_case_context_fn, and we'd like + # `result` to still be set in these cases. + result = None + with data.provider.per_test_case_context_manager(): + # Run the test function once, via the executor hook. + # In most cases this will delegate straight to `run(data)`. + result = self.test_runner(data, run) + + # If a failure was expected, it should have been raised already, so + # instead raise an appropriate diagnostic error. + if expected_failure is not None: + exception, traceback = expected_failure + if isinstance(exception, DeadlineExceeded) and ( + runtime_secs := math.fsum( + v + for k, v in self._timing_features.items() + if k.startswith("execute:") + ) + ): + report( + "Unreliable test timings! On an initial run, this " + "test took %.2fms, which exceeded the deadline of " + "%.2fms, but on a subsequent run it took %.2f ms, " + "which did not. If you expect this sort of " + "variability in your test timings, consider turning " + "deadlines off for this test by setting deadline=None." + % ( + exception.runtime.total_seconds() * 1000, + self.settings.deadline.total_seconds() * 1000, + runtime_secs * 1000, + ) + ) + else: + report("Failed to reproduce exception. Expected: \n" + traceback) +> raise Flaky( + f"Hypothesis {text_repr} produces unreliable results: " + "Falsified on the first call but did not on a subsequent one" + ) from exception +E hypothesis.errors.Flaky: Hypothesis test_pickle_unpickle(words=[]) produces unreliable results: Falsified on the first call but did not on a subsequent one +E Falsifying example: test_pickle_unpickle( +E words=[], +E ) +E Unreliable test timings! On an initial run, this test took 2798.35ms, which exceeded the deadline of 200.00ms, but on a subsequent run it took 1.88 ms, which did not. If you expect this sort of variability in your test timings, consider turning deadlines off for this test by setting deadline=None. + +/usr/lib/python3/dist-packages/hypothesis/core.py:974: Flaky +=========================== short test summary info ============================ +FAILED tests/test_random.py::test_pickle_unpickle - hypothesis.errors.Flaky: ... +======================== 1 failed, 37 passed in 13.84s ========================= +E: pybuild pybuild:389: test: plugin distutils failed with: exit code=1: cd /build/reproducible-path/python-datrie-0.8.2/.pybuild/cpython3_3.11_datrie/build; python3.11 -m pytest tests +dh_auto_test: error: pybuild --test --test-pytest -i python{version} -p "3.12 3.11" returned exit code 13 +make: *** [debian/rules:7: 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/19294/tmp/hooks/C01_cleanup starting +debug output: disk usage on i-capture-the-hostname at Wed May 8 00:27:49 UTC 2024 +Filesystem Size Used Avail Use% Mounted on +tmpfs 6.2G 0 6.2G 0% /dev/shm + +I: user script /srv/workspace/pbuilder/19294/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/16942 and its subdirectories -I: Current time: Tue May 7 12:21:52 -12 2024 -I: pbuilder-time-stamp: 1715127712 +I: removing directory /srv/workspace/pbuilder/19294 and its subdirectories