Diff of the two buildlogs: -- --- b1/build.log 2025-04-30 07:31:57.279158252 +0000 +++ b2/build.log 2025-04-30 07:40:41.567998705 +0000 @@ -1,6 +1,6 @@ I: pbuilder: network access will be disabled during build -I: Current time: Tue Apr 29 19:22:27 -12 2025 -I: pbuilder-time-stamp: 1745997747 +I: Current time: Wed Apr 30 21:32:09 +14 2025 +I: pbuilder-time-stamp: 1745998329 I: Building the build Environment I: extracting base tarball [/var/cache/pbuilder/unstable-reproducible-base.tgz] I: copying local configuration @@ -22,52 +22,84 @@ dpkg-source: info: unpacking python-elastic-transport_8.17.1-2.debian.tar.xz I: Not using root during the build. I: Installing the build-deps -I: user script /srv/workspace/pbuilder/31124/tmp/hooks/D02_print_environment starting +I: user script /srv/workspace/pbuilder/31254/tmp/hooks/D01_modify_environment starting +debug: Running on ff64a. +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 Apr 30 07:33 /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/31254/tmp/hooks/D01_modify_environment finished +I: user script /srv/workspace/pbuilder/31254/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=6 ' + 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='c01c14d775544f7ca9541cad1a48079e' - 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='31124' - PS1='# ' - PS2='> ' + INVOCATION_ID=759d2114a4f74deea07d91a3cd4513a5 + 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=31254 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.04KLNWKD/pbuilderrc_KBf1 --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.04KLNWKD/b1 --logfile b1/build.log python-elastic-transport_8.17.1-2.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.04KLNWKD/pbuilderrc_z39J --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.04KLNWKD/b2 --logfile b2/build.log python-elastic-transport_8.17.1-2.dsc' + SUDO_GID=114 + SUDO_UID=109 + 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 cbxi4a 6.1.0-23-armmp #1 SMP Debian 6.1.99-1 (2024-07-15) armv7l GNU/Linux + Linux i-capture-the-hostname 6.1.0-34-arm64 #1 SMP Debian 6.1.135-1 (2025-04-25) aarch64 GNU/Linux I: ls -l /bin lrwxrwxrwx 1 root root 7 Mar 4 11:20 /bin -> usr/bin -I: user script /srv/workspace/pbuilder/31124/tmp/hooks/D02_print_environment finished +I: user script /srv/workspace/pbuilder/31254/tmp/hooks/D02_print_environment finished -> Attempting to satisfy build-dependencies -> Creating pbuilder-satisfydepends-dummy package Package: pbuilder-satisfydepends-dummy @@ -282,7 +314,7 @@ Get: 133 http://deb.debian.org/debian unstable/main armhf python3-respx all 0.22.0-3 [26.1 kB] Get: 134 http://deb.debian.org/debian unstable/main armhf python3-sphinx-autodoc-typehints all 2.3.0-2 [25.3 kB] Get: 135 http://deb.debian.org/debian unstable/main armhf python3-trustme all 1.2.1-1 [12.3 kB] -Fetched 33.8 MB in 3s (11.8 MB/s) +Fetched 33.8 MB in 2s (17.8 MB/s) Preconfiguring packages ... Selecting previously unselected package libpython3.13-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 ... 19565 files and directories currently installed.) @@ -716,8 +748,8 @@ Setting up tzdata (2025b-2) ... Current default time zone: 'Etc/UTC' -Local time is now: Wed Apr 30 07:25:30 UTC 2025. -Universal Time is now: Wed Apr 30 07:25:30 UTC 2025. +Local time is now: Wed Apr 30 07:34:52 UTC 2025. +Universal Time is now: Wed Apr 30 07:34:52 UTC 2025. Run 'dpkg-reconfigure tzdata' if you wish to change it. Setting up autotools-dev (20240727.1) ... @@ -859,7 +891,11 @@ Building tag database... -> Finished parsing the build-deps I: Building the package -I: Running cd /build/reproducible-path/python-elastic-transport-8.17.1/ && 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-elastic-transport_8.17.1-2_source.changes +I: user script /srv/workspace/pbuilder/31254/tmp/hooks/A99_set_merged_usr starting +Not re-configuring usrmerge for unstable +I: user script /srv/workspace/pbuilder/31254/tmp/hooks/A99_set_merged_usr finished +hostname: Name or service not known +I: Running cd /build/reproducible-path/python-elastic-transport-8.17.1/ && 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-elastic-transport_8.17.1-2_source.changes dpkg-buildpackage: info: source package python-elastic-transport dpkg-buildpackage: info: source version 8.17.1-2 dpkg-buildpackage: info: source distribution unstable @@ -898,27 +934,27 @@ running build_py creating build/lib/elastic_transport copying elastic_transport/_exceptions.py -> build/lib/elastic_transport -copying elastic_transport/_utils.py -> build/lib/elastic_transport copying elastic_transport/_models.py -> build/lib/elastic_transport -copying elastic_transport/_serializer.py -> build/lib/elastic_transport +copying elastic_transport/_response.py -> build/lib/elastic_transport +copying elastic_transport/_version.py -> build/lib/elastic_transport +copying elastic_transport/_transport.py -> build/lib/elastic_transport +copying elastic_transport/_utils.py -> build/lib/elastic_transport +copying elastic_transport/_async_transport.py -> build/lib/elastic_transport copying elastic_transport/__init__.py -> build/lib/elastic_transport +copying elastic_transport/_serializer.py -> build/lib/elastic_transport copying elastic_transport/_otel.py -> build/lib/elastic_transport -copying elastic_transport/_transport.py -> build/lib/elastic_transport -copying elastic_transport/_version.py -> build/lib/elastic_transport -copying elastic_transport/_response.py -> build/lib/elastic_transport +copying elastic_transport/_compat.py -> build/lib/elastic_transport copying elastic_transport/client_utils.py -> build/lib/elastic_transport copying elastic_transport/_node_pool.py -> build/lib/elastic_transport -copying elastic_transport/_async_transport.py -> build/lib/elastic_transport -copying elastic_transport/_compat.py -> build/lib/elastic_transport creating build/lib/elastic_transport/_node -copying elastic_transport/_node/_urllib3_chain_certs.py -> build/lib/elastic_transport/_node +copying elastic_transport/_node/_http_httpx.py -> build/lib/elastic_transport/_node copying elastic_transport/_node/_http_urllib3.py -> build/lib/elastic_transport/_node +copying elastic_transport/_node/_http_requests.py -> build/lib/elastic_transport/_node copying elastic_transport/_node/_base.py -> build/lib/elastic_transport/_node copying elastic_transport/_node/__init__.py -> build/lib/elastic_transport/_node -copying elastic_transport/_node/_base_async.py -> build/lib/elastic_transport/_node -copying elastic_transport/_node/_http_requests.py -> build/lib/elastic_transport/_node -copying elastic_transport/_node/_http_httpx.py -> build/lib/elastic_transport/_node copying elastic_transport/_node/_http_aiohttp.py -> build/lib/elastic_transport/_node +copying elastic_transport/_node/_urllib3_chain_certs.py -> build/lib/elastic_transport/_node +copying elastic_transport/_node/_base_async.py -> build/lib/elastic_transport/_node copying elastic_transport/py.typed -> build/lib/elastic_transport installing to build/bdist.linux-armv7l/wheel running install @@ -926,28 +962,28 @@ creating build/bdist.linux-armv7l/wheel creating build/bdist.linux-armv7l/wheel/elastic_transport copying build/lib/elastic_transport/_exceptions.py -> build/bdist.linux-armv7l/wheel/./elastic_transport -copying build/lib/elastic_transport/_utils.py -> build/bdist.linux-armv7l/wheel/./elastic_transport copying build/lib/elastic_transport/_models.py -> build/bdist.linux-armv7l/wheel/./elastic_transport -copying build/lib/elastic_transport/py.typed -> build/bdist.linux-armv7l/wheel/./elastic_transport +copying build/lib/elastic_transport/_response.py -> build/bdist.linux-armv7l/wheel/./elastic_transport +copying build/lib/elastic_transport/_version.py -> build/bdist.linux-armv7l/wheel/./elastic_transport +copying build/lib/elastic_transport/_transport.py -> build/bdist.linux-armv7l/wheel/./elastic_transport +copying build/lib/elastic_transport/_utils.py -> build/bdist.linux-armv7l/wheel/./elastic_transport +copying build/lib/elastic_transport/_async_transport.py -> build/bdist.linux-armv7l/wheel/./elastic_transport +copying build/lib/elastic_transport/__init__.py -> build/bdist.linux-armv7l/wheel/./elastic_transport creating build/bdist.linux-armv7l/wheel/elastic_transport/_node -copying build/lib/elastic_transport/_node/_urllib3_chain_certs.py -> build/bdist.linux-armv7l/wheel/./elastic_transport/_node +copying build/lib/elastic_transport/_node/_http_httpx.py -> build/bdist.linux-armv7l/wheel/./elastic_transport/_node copying build/lib/elastic_transport/_node/_http_urllib3.py -> build/bdist.linux-armv7l/wheel/./elastic_transport/_node +copying build/lib/elastic_transport/_node/_http_requests.py -> build/bdist.linux-armv7l/wheel/./elastic_transport/_node copying build/lib/elastic_transport/_node/_base.py -> build/bdist.linux-armv7l/wheel/./elastic_transport/_node copying build/lib/elastic_transport/_node/__init__.py -> build/bdist.linux-armv7l/wheel/./elastic_transport/_node -copying build/lib/elastic_transport/_node/_base_async.py -> build/bdist.linux-armv7l/wheel/./elastic_transport/_node -copying build/lib/elastic_transport/_node/_http_requests.py -> build/bdist.linux-armv7l/wheel/./elastic_transport/_node -copying build/lib/elastic_transport/_node/_http_httpx.py -> build/bdist.linux-armv7l/wheel/./elastic_transport/_node copying build/lib/elastic_transport/_node/_http_aiohttp.py -> build/bdist.linux-armv7l/wheel/./elastic_transport/_node +copying build/lib/elastic_transport/_node/_urllib3_chain_certs.py -> build/bdist.linux-armv7l/wheel/./elastic_transport/_node +copying build/lib/elastic_transport/_node/_base_async.py -> build/bdist.linux-armv7l/wheel/./elastic_transport/_node copying build/lib/elastic_transport/_serializer.py -> build/bdist.linux-armv7l/wheel/./elastic_transport -copying build/lib/elastic_transport/__init__.py -> build/bdist.linux-armv7l/wheel/./elastic_transport copying build/lib/elastic_transport/_otel.py -> build/bdist.linux-armv7l/wheel/./elastic_transport -copying build/lib/elastic_transport/_transport.py -> build/bdist.linux-armv7l/wheel/./elastic_transport -copying build/lib/elastic_transport/_version.py -> build/bdist.linux-armv7l/wheel/./elastic_transport -copying build/lib/elastic_transport/_response.py -> build/bdist.linux-armv7l/wheel/./elastic_transport +copying build/lib/elastic_transport/_compat.py -> build/bdist.linux-armv7l/wheel/./elastic_transport +copying build/lib/elastic_transport/py.typed -> build/bdist.linux-armv7l/wheel/./elastic_transport copying build/lib/elastic_transport/client_utils.py -> build/bdist.linux-armv7l/wheel/./elastic_transport copying build/lib/elastic_transport/_node_pool.py -> build/bdist.linux-armv7l/wheel/./elastic_transport -copying build/lib/elastic_transport/_async_transport.py -> build/bdist.linux-armv7l/wheel/./elastic_transport -copying build/lib/elastic_transport/_compat.py -> build/bdist.linux-armv7l/wheel/./elastic_transport running install_egg_info running egg_info creating elastic_transport.egg-info @@ -967,7 +1003,7 @@ Copying elastic_transport.egg-info to build/bdist.linux-armv7l/wheel/./elastic_transport-8.17.1.egg-info running install_scripts creating build/bdist.linux-armv7l/wheel/elastic_transport-8.17.1.dist-info/WHEEL -creating '/build/reproducible-path/python-elastic-transport-8.17.1/.pybuild/cpython3_3.13_elastic-transport/.tmp-7t5wmcgz/elastic_transport-8.17.1-py3-none-any.whl' and adding 'build/bdist.linux-armv7l/wheel' to it +creating '/build/reproducible-path/python-elastic-transport-8.17.1/.pybuild/cpython3_3.13_elastic-transport/.tmp-lm2el8y9/elastic_transport-8.17.1-py3-none-any.whl' and adding 'build/bdist.linux-armv7l/wheel' to it adding 'elastic_transport/__init__.py' adding 'elastic_transport/_async_transport.py' adding 'elastic_transport/_compat.py' @@ -1008,9 +1044,9 @@ loading intersphinx inventory 'python' from https://docs.python.org/3/objects.inv ... loading intersphinx inventory 'requests' from https://docs.python-requests.org/en/latest/objects.inv ... WARNING: failed to reach any of the inventories with the following issues: -intersphinx inventory 'https://docs.python-requests.org/en/latest/objects.inv' not fetchable due to : HTTPSConnectionPool(host='docs.python-requests.org', port=443): Max retries exceeded with url: /en/latest/objects.inv (Caused by NameResolutionError(": Failed to resolve 'docs.python-requests.org' ([Errno -3] Temporary failure in name resolution)")) +intersphinx inventory 'https://docs.python-requests.org/en/latest/objects.inv' not fetchable due to : HTTPSConnectionPool(host='docs.python-requests.org', port=443): Max retries exceeded with url: /en/latest/objects.inv (Caused by NameResolutionError(": Failed to resolve 'docs.python-requests.org' ([Errno -3] Temporary failure in name resolution)")) WARNING: failed to reach any of the inventories with the following issues: -intersphinx inventory 'https://docs.python.org/3/objects.inv' not fetchable due to : HTTPSConnectionPool(host='docs.python.org', port=443): Max retries exceeded with url: /3/objects.inv (Caused by NameResolutionError(": Failed to resolve 'docs.python.org' ([Errno -3] Temporary failure in name resolution)")) +intersphinx inventory 'https://docs.python.org/3/objects.inv' not fetchable due to : HTTPSConnectionPool(host='docs.python.org', port=443): Max retries exceeded with url: /3/objects.inv (Caused by NameResolutionError(": Failed to resolve 'docs.python.org' ([Errno -3] Temporary failure in name resolution)")) building [mo]: targets for 0 po files that are out of date writing output... building [html]: targets for 10 source files that are out of date @@ -1032,9 +1068,9 @@ preparing documents... done copying assets... copying static files... -Writing evaluated template result to /build/reproducible-path/python-elastic-transport-8.17.1/build/html/_static/language_data.js Writing evaluated template result to /build/reproducible-path/python-elastic-transport-8.17.1/build/html/_static/documentation_options.js Writing evaluated template result to /build/reproducible-path/python-elastic-transport-8.17.1/build/html/_static/basic.css +Writing evaluated template result to /build/reproducible-path/python-elastic-transport-8.17.1/build/html/_static/language_data.js copying static files: done copying extra files... copying extra files: done @@ -1065,7 +1101,7 @@ cachedir: .pytest_cache rootdir: /build/reproducible-path/python-elastic-transport-8.17.1 configfile: setup.cfg -plugins: cov-5.0.0, mock-3.14.0, anyio-4.8.0, typeguard-4.4.2, respx-0.22.0, asyncio-0.25.1, pytest_httpserver-1.1.3 +plugins: mock-3.14.0, respx-0.22.0, asyncio-0.25.1, typeguard-4.4.2, pytest_httpserver-1.1.3, cov-5.0.0, anyio-4.8.0 asyncio: mode=Mode.STRICT, asyncio_default_fixture_loop_scope="function" collecting ... collected 459 items / 159 deselected / 300 selected @@ -1103,8 +1139,8 @@ tests/async_/test_async_transport.py::test_sniff_error_resets_lock_and_last_sniffed_at PASSED [ 10%] tests/async_/test_async_transport.py::test_sniff_on_start_no_results_errors[] PASSED [ 11%] tests/async_/test_async_transport.py::test_sniff_on_start_no_results_errors[_empty_sniff] PASSED [ 11%] -tests/async_/test_async_transport.py::test_multiple_tasks_test[1] PASSED [ 11%] -tests/async_/test_async_transport.py::test_multiple_tasks_test[8] PASSED [ 12%] +tests/async_/test_async_transport.py::test_multiple_tasks_test[1] FAILED [ 11%] +tests/async_/test_async_transport.py::test_multiple_tasks_test[8] FAILED [ 12%] tests/node/test_base.py::test_unknown_parameter[Urllib3HttpNode] PASSED [ 12%] tests/node/test_base.py::test_unknown_parameter[RequestsHttpNode] PASSED [ 12%] tests/node/test_base.py::test_unknown_parameter[AiohttpHttpNode] PASSED [ 13%] @@ -1370,6 +1406,108 @@ tests/test_utils.py::test_is_not_ipaddress[v2.sg.media-imdb.com0] PASSED [ 99%] tests/test_utils.py::test_is_not_ipaddress[v2.sg.media-imdb.com1] PASSED [100%] +=================================== FAILURES =================================== +_________________________ test_multiple_tasks_test[1] __________________________ + +pool_size = 1 + + @pytest.mark.parametrize("pool_size", [1, 8]) + @pytest.mark.asyncio + async def test_multiple_tasks_test(pool_size): + node_configs = [ + NodeConfig("http", "localhost", 80), + NodeConfig("http", "localhost", 81), + NodeConfig("http", "localhost", 82), + NodeConfig("http", "localhost", 83, _extras={"status": 500}), + ] + + async def sniff_callback(*_): + await asyncio.sleep(random.random()) + return node_configs + + t = AsyncTransport( + node_configs, + retry_on_status=[500], + max_retries=5, + node_class=AsyncDummyNode, + sniff_on_start=True, + sniff_before_requests=True, + sniff_on_node_failure=True, + sniff_callback=sniff_callback, + ) + + loop = asyncio.get_running_loop() + start = loop.time() + + async def run_requests(): + successful_requests = 0 + while loop.time() - start < 2: + await t.perform_request("GET", "/") + successful_requests += 1 + return successful_requests + + tasks = [loop.create_task(run_requests()) for _ in range(pool_size * 2)] +> assert sum([await task for task in tasks]) >= 1000 +E assert 968 >= 1000 +E + where 968 = sum([1, 967]) + +tests/async_/test_async_transport.py:672: AssertionError +------------------------------ Captured log call ------------------------------- +WARNING elastic_transport.node_pool:_node_pool.py:249 Node has failed for 1 times in a row, putting on 1 second timeout +WARNING elastic_transport.transport:_async_transport.py:369 Retrying request after non-successful status 500 (attempt 0 of 5) +WARNING elastic_transport.node_pool:_node_pool.py:249 Node has failed for 2 times in a row, putting on 2 second timeout +WARNING elastic_transport.transport:_async_transport.py:369 Retrying request after non-successful status 500 (attempt 0 of 5) +_________________________ test_multiple_tasks_test[8] __________________________ + +pool_size = 8 + + @pytest.mark.parametrize("pool_size", [1, 8]) + @pytest.mark.asyncio + async def test_multiple_tasks_test(pool_size): + node_configs = [ + NodeConfig("http", "localhost", 80), + NodeConfig("http", "localhost", 81), + NodeConfig("http", "localhost", 82), + NodeConfig("http", "localhost", 83, _extras={"status": 500}), + ] + + async def sniff_callback(*_): + await asyncio.sleep(random.random()) + return node_configs + + t = AsyncTransport( + node_configs, + retry_on_status=[500], + max_retries=5, + node_class=AsyncDummyNode, + sniff_on_start=True, + sniff_before_requests=True, + sniff_on_node_failure=True, + sniff_callback=sniff_callback, + ) + + loop = asyncio.get_running_loop() + start = loop.time() + + async def run_requests(): + successful_requests = 0 + while loop.time() - start < 2: + await t.perform_request("GET", "/") + successful_requests += 1 + return successful_requests + + tasks = [loop.create_task(run_requests()) for _ in range(pool_size * 2)] +> assert sum([await task for task in tasks]) >= 1000 +E assert 965 >= 1000 +E + where 965 = sum([1, 964, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]) + +tests/async_/test_async_transport.py:672: AssertionError +------------------------------ Captured log call ------------------------------- +WARNING elastic_transport.node_pool:_node_pool.py:249 Node has failed for 1 times in a row, putting on 1 second timeout +WARNING elastic_transport.transport:_async_transport.py:369 Retrying request after non-successful status 500 (attempt 0 of 5) +WARNING elastic_transport.node_pool:_node_pool.py:249 Node has failed for 2 times in a row, putting on 2 second timeout +WARNING elastic_transport.transport:_async_transport.py:369 Retrying request after non-successful status 500 (attempt 0 of 5) + ---------- coverage: platform linux, python 3.13.3-final-0 ----------- Name Stmts Miss Cover Missing ------------------------------------------------------------------------------- @@ -1397,48 +1535,28 @@ ------------------------------------------------------------------------------- TOTAL 1789 326 82% - -===================== 300 passed, 159 deselected in 43.15s ===================== - create-stamp debian/debhelper-build-stamp - dh_testroot -O--buildsystem=pybuild - dh_prep -O--buildsystem=pybuild - dh_auto_install -O--buildsystem=pybuild -I: pybuild plugin_pyproject:178: Copying package built for python3.13 to destdir -I: pybuild pybuild:334: rm -fr /build/reproducible-path/python-elastic-transport-8.17.1/debian/python3-elastic-transport/usr/lib/python3*/dist-packages/elastic_transport-*/top_level.txt - dh_installdocs -O--buildsystem=pybuild -dh_installdocs: warning: Cannot auto-detect main package for python-elastic-transport-doc. If the default is wrong, please use --doc-main-package - dh_sphinxdoc -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 -dpkg-gencontrol: warning: Recommends field of package python3-elastic-transport: substitution variable ${python3:Recommends} used, but is not defined -dpkg-gencontrol: warning: Suggests field of package python3-elastic-transport: substitution variable ${python3:Suggests} used, but is not defined -dpkg-gencontrol: warning: package python-elastic-transport-doc: substitution variable ${sphinxdoc:Built-Using} unused, but is defined - dh_md5sums -O--buildsystem=pybuild - dh_builddeb -O--buildsystem=pybuild -dpkg-deb: building package 'python3-elastic-transport' in '../python3-elastic-transport_8.17.1-2_all.deb'. -dpkg-deb: building package 'python-elastic-transport-doc' in '../python-elastic-transport-doc_8.17.1-2_all.deb'. - dpkg-genbuildinfo --build=binary -O../python-elastic-transport_8.17.1-2_armhf.buildinfo - dpkg-genchanges --build=binary -O../python-elastic-transport_8.17.1-2_armhf.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 +=========================== short test summary info ============================ +FAILED tests/async_/test_async_transport.py::test_multiple_tasks_test[1] - assert 968 >= 1000 + + where 968 = sum([1, 967]) +FAILED tests/async_/test_async_transport.py::test_multiple_tasks_test[8] - assert 965 >= 1000 + + where 965 = sum([1, 964, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]) +================ 2 failed, 298 passed, 159 deselected in 54.15s ================ +E: pybuild pybuild:389: test: plugin pyproject failed with: exit code=1: cd /build/reproducible-path/python-elastic-transport-8.17.1/.pybuild/cpython3_3.13_elastic-transport/build; python3.13 -m pytest --ignore=tests/test_otel.py -k 'not test_async_transport_httpbin and not test_httpbin and not test_simple_request and not test_node and not test_ssl_assert_fingerprint and not test_assert_fingerprint_in_cert_chain and not test_default_headers and not test_custom_headers and not test_custom_user_agent and not test_head and not test_debug_logging and not test_debug_logging_uncompressed_body and not test_debug_logging_no_body and not test_debug_logging_error and not test_supported_tls_versions and not test_unsupported_tls_versions and not test_ca_certs_with_verify_ssl_false_raises_error and not test_uncompressed_body_logged and not test_failed_request_logs and not test_threading_test ' +dh_auto_test: error: pybuild --test --test-pytest -i python{version} -p 3.13 returned exit code 13 +make: *** [debian/rules:39: 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/31254/tmp/hooks/C01_cleanup starting +debug output: disk usage on i-capture-the-hostname at Wed Apr 30 07:40:28 UTC 2025 +Filesystem Size Used Avail Use% Mounted on +tmpfs 1.9G 0 1.9G 0% /dev/shm + +I: user script /srv/workspace/pbuilder/31254/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/31124 and its subdirectories -I: Current time: Tue Apr 29 19:31:52 -12 2025 -I: pbuilder-time-stamp: 1745998312 +I: removing directory /srv/workspace/pbuilder/31254 and its subdirectories