🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: linux.debian.bugs.dist
1 messages
1 total messages Started by Paul Gevers Fri, 06 Nov 2026 08:20
Bug#1153145: locust: autopkgtest missing needs-internet restriction
#3401
Author: Paul Gevers
Date: Fri, 06 Nov 2026 08:20
90 lines
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
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads