[Bug 2053154] Re: Intermittent BadStatusLine('Hello world!HTTP/1.1 200 OK\r\n') when executing test-suite
Launchpad Bug Tracker
2053154 at bugs.launchpad.net
Thu Feb 22 18:49:51 UTC 2024
This bug was fixed in the package python-requests-unixsocket -
0.3.0-3ubuntu2
---------------
python-requests-unixsocket (0.3.0-3ubuntu2) noble; urgency=medium
* Fix test flakiness due to unread data (LP: #2053154)
- d/p/0002-fix-HEAD-method-tests.patch
-- Dan Bungert <daniel.bungert at canonical.com> Thu, 15 Feb 2024
00:53:56 -0700
** Changed in: python-requests-unixsocket (Ubuntu)
Status: Fix Committed => Fix Released
--
You received this bug notification because you are a member of Ubuntu
OpenStack, which is subscribed to python-requests-unixsocket in Ubuntu.
https://bugs.launchpad.net/bugs/2053154
Title:
Intermittent BadStatusLine('Hello world!HTTP/1.1 200 OK\r\n') when
executing test-suite
Status in python-requests-unixsocket package in Ubuntu:
Fix Released
Bug description:
When executing the test suite, sometimes the following exception gets
raised:
E requests.exceptions.ConnectionError: ('Connection aborted.',
BadStatusLine('Hello world!HTTP/1.1 200 OK\r\n'))
This looks bad. According to the test definition, the string "Hello
world!" is supposed to be the body of the HTTP response. And somehow
it appears before the status line.
We noticed this issue after uploading 0.3.0-3ubuntu1 because the
package FTBFS [1] (three times out three). So Launchpad builders seem
very good at reproducing the issue (that said my PPA build was green).
That being said, the issue seems unrelated to the patch included in
0.3.0-3ubuntu1.
I've been able to reproduce the exception without the patch, and also
on a mantic system.
Steps to reproduce:
$ git ubuntu clone python-requests-unixsocket
$ cd python-requests-unixsocket
$ while python3 -m pytest requests_unixsocket/tests; do true; done
It can take many iterations until the issue occurs. At this point I
don't know yet if the issue is specific to requests-unixsocket or if
it is a src:requests bug instead (or maybe something else like python-
waitress?).
[1] https://launchpadlibrarian.net/714333527/buildlog_ubuntu-noble-
amd64.python-requests-unixsocket_0.3.0-3ubuntu1_BUILDING.txt.gz
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/python-requests-unixsocket/+bug/2053154/+subscriptions
More information about the Ubuntu-openstack-bugs
mailing list