Article View: linux.debian.bugs.dist
Article #3401Bug#1153145: locust: autopkgtest missing needs-internet restriction
From: Paul Gevers
Date: Fri, 06 Nov 2026 08:20
Date: Fri, 06 Nov 2026 08:20
90 lines
4927 bytes
4927 bytes
Source: locust
Version: 2.46.7-5
Severity: important
User: debian-ci@lists.debian.org
Usertags: needs-internet
Dear maintainer(s),
I looked at the results of the autopkgtest of your package and I noticed
it's failures loong64. It seems to fail sometimes while connecting to
https://www.locust.io and , but on loong64 we don't run tests with the
needs-internet restriction. Please ensure that tests that need internet
have the needs-internet restriction added such that they can be skipped
on the right hosts.
Don't hesitate to reach out if you need help and some more information
from our infrastructure.
Paul
https://ci.debian.net/packages/l/locust/testing/loong64/77465460/
313s =================================== FAILURES
===================================
313s _________________________ test_fasthttp_catch_response
_________________________
313s
313s self = <locust.contrib.fasthttp.ResponseContextManager object at
0x7fffe343aeb0>
313s
313s @property
313s def content(self) -> bytes:
313s """Unzips if necessary and buffers the received body.
Careful with large files!"""
313s try:
313s > return self._cached_content
313s ^^^^^^^^^^^^^^^^^^^^
313s E AttributeError:
'locust.contrib.fasthttp.ResponseContextManager' object has no attribute
'_cached_content'
313s
313s /usr/lib/python3/dist-packages/geventhttpclient/useragent.py:385:
AttributeError
313s
313s During handling of the above exception, another exception occurred:
313s
313s fastsession = <locust.contrib.fasthttp.FastHttpSession object at
0x7fffe3403920>
313s
313s def test_fasthttp_catch_response(fastsession: FastHttpSession):
313s with fastsession.get("https://www.locust.io/",
catch_response=True) as resp:
313s > if not resp.text or not "asdfasdf" in resp.text:
313s ^^^^^^^^^
313s
313s locust/test/test_pytest_locustfile.py:43:
313s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
_ _ _ _ _ _
313s locust/contrib/fasthttp.py:496: in text
313s if self.content is None:
313s ^^^^^^^^^^^^
313s /usr/lib/python3/dist-packages/geventhttpclient/useragent.py:387:
in content
313s self._cached_content = self._content()
313s ^^^^^^^^^^^^^^^
313s locust/contrib/fasthttp.py:580: in _content
313s return super()._content()
313s ^^^^^^^^^^^^^^^^^^
313s /usr/lib/python3/dist-packages/geventhttpclient/useragent.py:404:
in _content
313s ret = self.unzipped(gzip=False, br=True)
313s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
313s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
_ _ _ _ _ _
313s
313s self = <locust.contrib.fasthttp.ResponseContextManager object at
0x7fffe343aeb0>
313s gzip = False, br = True
313s
313s def unzipped(self, gzip: bool = True, br: bool = False) -> bytes:
313s bodystr = self._response.read()
313s if gzip:
313s return zlib.decompress(bodystr, 16 + zlib.MAX_WBITS)
313s elif br:
313s > return cast(bytes, brotli.decompress(bodystr))
313s ^^^^^^^^^^^^^^^^^^^^^^^^^^
313s E brotli.error: brotli: decoder failed
313s
313s /usr/lib/python3/dist-packages/geventhttpclient/useragent.py:372: error
Technical Details
Message-ID:
<NWnkZ-a9ya-1@gated-at.bofh.it>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!news.corradoroberto.it!bofh.it!news.nic.it!robomodShow Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!news.corradoroberto.it!bofh.it!news.nic.it!robomod From: Paul Gevers <elbrus@debian.org> Newsgroups: linux.debian.bugs.dist Subject: Bug#1153145: locust: autopkgtest missing needs-internet restriction Date: Fri, 06 Nov 2026 09:20:01 +0100 Message-ID: <NWnkZ-a9ya-1@gated-at.bofh.it> X-Mailbox-Line: From debian-bugs-dist-request@lists.debian.org Fri Nov 6 08:13:10 2026 Old-Return-Path: <debbugs@buxtehude.debian.org> X-Spam-Flag: NO X-Spam-Score: -1.699 Reply-To: Paul Gevers <elbrus@debian.org>, 1153145@bugs.debian.org Resent-To: debian-bugs-dist@lists.debian.org Resent-Cc: morph@debian.org X-Debian-Pr-Message: report 1153145 X-Debian-Pr-Package: src:locust X-Debian-Pr-Source: locust MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Content-Language: en-US, nl Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Debian-User: elbrus X-Debian-Message: from BTS X-Mailing-List: <debian-bugs-dist@lists.debian.org> archive/latest/2000919 List-ID: <debian-bugs-dist.lists.debian.org> List-URL: <https://lists.debian.org/debian-bugs-dist/> Approved: robomod@news.nic.it Lines: 90 Organization: linux.* mail to news gateway Sender: robomod@news.nic.it X-Original-Date: Fri, 6 Nov 2026 09:10:27 +0100 X-Original-Message-ID: <65f626a8-1674-49e4-9d81-3dd7e0453112@debian.org>