[Python-modules-team] Bug#954625: pytest-httpbin: FTBFS: dh_auto_test: error: pybuild --test --test-pytest -i python{version} -p "3.7 3.8" returned exit code 13
Lucas Nussbaum
lucas at debian.org
Sun Mar 22 08:22:46 GMT 2020
Source: pytest-httpbin
Version: 1.0.0-2
Severity: serious
Justification: FTBFS on amd64
Tags: bullseye sid ftbfs
Usertags: ftbfs-20200321 ftbfs-bullseye
Hi,
During a rebuild of all packages in sid, your package failed to build
on amd64.
Relevant part (hopefully):
> make[1]: Entering directory '/<<PKGBUILDDIR>>'
> dh_auto_install
> I: pybuild base:217: /usr/bin/python3.7 setup.py install --root /<<PKGBUILDDIR>>/debian/python3-pytest-httpbin
> running install
> running build
> running build_py
> running egg_info
> writing pytest_httpbin.egg-info/PKG-INFO
> writing dependency_links to pytest_httpbin.egg-info/dependency_links.txt
> writing entry points to pytest_httpbin.egg-info/entry_points.txt
> writing requirements to pytest_httpbin.egg-info/requires.txt
> writing top-level names to pytest_httpbin.egg-info/top_level.txt
> reading manifest file 'pytest_httpbin.egg-info/SOURCES.txt'
> reading manifest template 'MANIFEST.in'
> writing manifest file 'pytest_httpbin.egg-info/SOURCES.txt'
> running install_lib
> creating /<<PKGBUILDDIR>>/debian/python3-pytest-httpbin/usr
> creating /<<PKGBUILDDIR>>/debian/python3-pytest-httpbin/usr/lib
> creating /<<PKGBUILDDIR>>/debian/python3-pytest-httpbin/usr/lib/python3.7
> creating /<<PKGBUILDDIR>>/debian/python3-pytest-httpbin/usr/lib/python3.7/dist-packages
> creating /<<PKGBUILDDIR>>/debian/python3-pytest-httpbin/usr/lib/python3.7/dist-packages/pytest_httpbin
> copying /<<PKGBUILDDIR>>/.pybuild/cpython3_3.7_pytest-httpbin/build/pytest_httpbin/__init__.py -> /<<PKGBUILDDIR>>/debian/python3-pytest-httpbin/usr/lib/python3.7/dist-packages/pytest_httpbin
> creating /<<PKGBUILDDIR>>/debian/python3-pytest-httpbin/usr/lib/python3.7/dist-packages/pytest_httpbin/certs
> copying /<<PKGBUILDDIR>>/.pybuild/cpython3_3.7_pytest-httpbin/build/pytest_httpbin/certs/cacert.pem -> /<<PKGBUILDDIR>>/debian/python3-pytest-httpbin/usr/lib/python3.7/dist-packages/pytest_httpbin/certs
> copying /<<PKGBUILDDIR>>/.pybuild/cpython3_3.7_pytest-httpbin/build/pytest_httpbin/certs/cert.pem -> /<<PKGBUILDDIR>>/debian/python3-pytest-httpbin/usr/lib/python3.7/dist-packages/pytest_httpbin/certs
> copying /<<PKGBUILDDIR>>/.pybuild/cpython3_3.7_pytest-httpbin/build/pytest_httpbin/certs/key.pem -> /<<PKGBUILDDIR>>/debian/python3-pytest-httpbin/usr/lib/python3.7/dist-packages/pytest_httpbin/certs
> copying /<<PKGBUILDDIR>>/.pybuild/cpython3_3.7_pytest-httpbin/build/pytest_httpbin/certs.py -> /<<PKGBUILDDIR>>/debian/python3-pytest-httpbin/usr/lib/python3.7/dist-packages/pytest_httpbin
> copying /<<PKGBUILDDIR>>/.pybuild/cpython3_3.7_pytest-httpbin/build/pytest_httpbin/plugin.py -> /<<PKGBUILDDIR>>/debian/python3-pytest-httpbin/usr/lib/python3.7/dist-packages/pytest_httpbin
> copying /<<PKGBUILDDIR>>/.pybuild/cpython3_3.7_pytest-httpbin/build/pytest_httpbin/version.py -> /<<PKGBUILDDIR>>/debian/python3-pytest-httpbin/usr/lib/python3.7/dist-packages/pytest_httpbin
> copying /<<PKGBUILDDIR>>/.pybuild/cpython3_3.7_pytest-httpbin/build/pytest_httpbin/serve.py -> /<<PKGBUILDDIR>>/debian/python3-pytest-httpbin/usr/lib/python3.7/dist-packages/pytest_httpbin
> byte-compiling /<<PKGBUILDDIR>>/debian/python3-pytest-httpbin/usr/lib/python3.7/dist-packages/pytest_httpbin/__init__.py to __init__.cpython-37.pyc
> byte-compiling /<<PKGBUILDDIR>>/debian/python3-pytest-httpbin/usr/lib/python3.7/dist-packages/pytest_httpbin/certs.py to certs.cpython-37.pyc
> byte-compiling /<<PKGBUILDDIR>>/debian/python3-pytest-httpbin/usr/lib/python3.7/dist-packages/pytest_httpbin/plugin.py to plugin.cpython-37.pyc
> byte-compiling /<<PKGBUILDDIR>>/debian/python3-pytest-httpbin/usr/lib/python3.7/dist-packages/pytest_httpbin/version.py to version.cpython-37.pyc
> byte-compiling /<<PKGBUILDDIR>>/debian/python3-pytest-httpbin/usr/lib/python3.7/dist-packages/pytest_httpbin/serve.py to serve.cpython-37.pyc
> running install_egg_info
> Copying pytest_httpbin.egg-info to /<<PKGBUILDDIR>>/debian/python3-pytest-httpbin/usr/lib/python3.7/dist-packages/pytest_httpbin-1.0.0.egg-info
> Skipping SOURCES.txt
> running install_scripts
> I: pybuild base:217: /usr/bin/python3 setup.py install --root /<<PKGBUILDDIR>>/debian/python3-pytest-httpbin
> running install
> running build
> running build_py
> running egg_info
> writing pytest_httpbin.egg-info/PKG-INFO
> writing dependency_links to pytest_httpbin.egg-info/dependency_links.txt
> writing entry points to pytest_httpbin.egg-info/entry_points.txt
> writing requirements to pytest_httpbin.egg-info/requires.txt
> writing top-level names to pytest_httpbin.egg-info/top_level.txt
> reading manifest file 'pytest_httpbin.egg-info/SOURCES.txt'
> reading manifest template 'MANIFEST.in'
> writing manifest file 'pytest_httpbin.egg-info/SOURCES.txt'
> running install_lib
> creating /<<PKGBUILDDIR>>/debian/python3-pytest-httpbin/usr/lib/python3.8
> creating /<<PKGBUILDDIR>>/debian/python3-pytest-httpbin/usr/lib/python3.8/dist-packages
> creating /<<PKGBUILDDIR>>/debian/python3-pytest-httpbin/usr/lib/python3.8/dist-packages/pytest_httpbin
> copying /<<PKGBUILDDIR>>/.pybuild/cpython3_3.8_pytest-httpbin/build/pytest_httpbin/__init__.py -> /<<PKGBUILDDIR>>/debian/python3-pytest-httpbin/usr/lib/python3.8/dist-packages/pytest_httpbin
> creating /<<PKGBUILDDIR>>/debian/python3-pytest-httpbin/usr/lib/python3.8/dist-packages/pytest_httpbin/certs
> copying /<<PKGBUILDDIR>>/.pybuild/cpython3_3.8_pytest-httpbin/build/pytest_httpbin/certs/cacert.pem -> /<<PKGBUILDDIR>>/debian/python3-pytest-httpbin/usr/lib/python3.8/dist-packages/pytest_httpbin/certs
> copying /<<PKGBUILDDIR>>/.pybuild/cpython3_3.8_pytest-httpbin/build/pytest_httpbin/certs/cert.pem -> /<<PKGBUILDDIR>>/debian/python3-pytest-httpbin/usr/lib/python3.8/dist-packages/pytest_httpbin/certs
> copying /<<PKGBUILDDIR>>/.pybuild/cpython3_3.8_pytest-httpbin/build/pytest_httpbin/certs/key.pem -> /<<PKGBUILDDIR>>/debian/python3-pytest-httpbin/usr/lib/python3.8/dist-packages/pytest_httpbin/certs
> copying /<<PKGBUILDDIR>>/.pybuild/cpython3_3.8_pytest-httpbin/build/pytest_httpbin/certs.py -> /<<PKGBUILDDIR>>/debian/python3-pytest-httpbin/usr/lib/python3.8/dist-packages/pytest_httpbin
> copying /<<PKGBUILDDIR>>/.pybuild/cpython3_3.8_pytest-httpbin/build/pytest_httpbin/plugin.py -> /<<PKGBUILDDIR>>/debian/python3-pytest-httpbin/usr/lib/python3.8/dist-packages/pytest_httpbin
> copying /<<PKGBUILDDIR>>/.pybuild/cpython3_3.8_pytest-httpbin/build/pytest_httpbin/version.py -> /<<PKGBUILDDIR>>/debian/python3-pytest-httpbin/usr/lib/python3.8/dist-packages/pytest_httpbin
> copying /<<PKGBUILDDIR>>/.pybuild/cpython3_3.8_pytest-httpbin/build/pytest_httpbin/serve.py -> /<<PKGBUILDDIR>>/debian/python3-pytest-httpbin/usr/lib/python3.8/dist-packages/pytest_httpbin
> byte-compiling /<<PKGBUILDDIR>>/debian/python3-pytest-httpbin/usr/lib/python3.8/dist-packages/pytest_httpbin/__init__.py to __init__.cpython-38.pyc
> byte-compiling /<<PKGBUILDDIR>>/debian/python3-pytest-httpbin/usr/lib/python3.8/dist-packages/pytest_httpbin/certs.py to certs.cpython-38.pyc
> byte-compiling /<<PKGBUILDDIR>>/debian/python3-pytest-httpbin/usr/lib/python3.8/dist-packages/pytest_httpbin/plugin.py to plugin.cpython-38.pyc
> byte-compiling /<<PKGBUILDDIR>>/debian/python3-pytest-httpbin/usr/lib/python3.8/dist-packages/pytest_httpbin/version.py to version.cpython-38.pyc
> byte-compiling /<<PKGBUILDDIR>>/debian/python3-pytest-httpbin/usr/lib/python3.8/dist-packages/pytest_httpbin/serve.py to serve.cpython-38.pyc
> running install_egg_info
> Copying pytest_httpbin.egg-info to /<<PKGBUILDDIR>>/debian/python3-pytest-httpbin/usr/lib/python3.8/dist-packages/pytest_httpbin-1.0.0.egg-info
> Skipping SOURCES.txt
> running install_scripts
> http_proxy= https_proxy= PYBUILD_SYSTEM=custom \
> PYBUILD_TEST_ARGS="{interpreter} -m pytest -v -x -s" dh_auto_test
> I: pybuild base:217: python3.7 -m pytest -v -x -s
> ============================= test session starts ==============================
> platform linux -- Python 3.7.7, pytest-4.6.9, py-1.8.1, pluggy-0.13.0 -- /usr/bin/python3.7
> cachedir: .pytest_cache
> rootdir: /<<PKGBUILDDIR>>
> plugins: httpbin-1.0.0
> collecting ... collected 19 items
>
> tests/test_httpbin.py::test_httpbin_gets_injected PASSED
> tests/test_httpbin.py::test_httpbin_accepts_get_requests PASSED
> tests/test_httpbin.py::test_httpbin_secure_accepts_get_requests PASSED
> tests/test_httpbin.py::test_httpbin_secure_accepts_lots_of_get_requests PASSED
> tests/test_httpbin.py::test_httpbin_accepts_lots_of_get_requests_in_single_session PASSED
> tests/test_httpbin.py::test_httpbin_both[http] PASSED
> tests/test_httpbin.py::test_chunked_encoding[http] PASSED
> tests/test_httpbin.py::test_httpbin_both[https] PASSED
> tests/test_httpbin.py::test_chunked_encoding[https] FAILED
>
> =================================== FAILURES ===================================
> _________________________ test_chunked_encoding[https] _________________________
>
> httpbin_both = <pytest_httpbin.serve.SecureServer object at 0x7ff46fd6ccd0>
>
> def test_chunked_encoding(httpbin_both):
> > assert requests.get(httpbin_both.url + '/stream/20').status_code == 200
>
> tests/test_httpbin.py:44:
> _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
> /usr/lib/python3/dist-packages/requests/api.py:75: in get
> return request('get', url, params=params, **kwargs)
> /usr/lib/python3/dist-packages/requests/api.py:60: in request
> return session.request(method=method, url=url, **kwargs)
> /usr/lib/python3/dist-packages/requests/sessions.py:533: in request
> resp = self.send(prep, **send_kwargs)
> /usr/lib/python3/dist-packages/requests/sessions.py:686: in send
> r.content
> /usr/lib/python3/dist-packages/requests/models.py:828: in content
> self._content = b''.join(self.iter_content(CONTENT_CHUNK_SIZE)) or b''
> /usr/lib/python3/dist-packages/requests/models.py:750: in generate
> for chunk in self.raw.stream(chunk_size, decode_content=True):
> /usr/lib/python3/dist-packages/urllib3/response.py:564: in stream
> data = self.read(amt=amt, decode_content=decode_content)
> /usr/lib/python3/dist-packages/urllib3/response.py:507: in read
> data = self._fp.read(amt) if not fp_closed else b""
> /usr/lib/python3.7/http/client.py:457: in read
> n = self.readinto(b)
> /usr/lib/python3.7/http/client.py:501: in readinto
> n = self.fp.readinto(b)
> /usr/lib/python3.7/socket.py:589: in readinto
> return self._sock.recv_into(b)
> /usr/lib/python3.7/ssl.py:1071: in recv_into
> return self.read(nbytes, buffer)
> _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
>
> self = <ssl.SSLSocket [closed] fd=-1, family=AddressFamily.AF_INET, type=SocketKind.SOCK_STREAM, proto=6>
> len = 5443, buffer = <memory at 0x7ff470bdf7a0>
>
> def read(self, len=1024, buffer=None):
> """Read up to LEN bytes and return them.
> Return zero-length string on EOF."""
>
> self._checkClosed()
> if self._sslobj is None:
> raise ValueError("Read on closed or unwrapped SSL socket.")
> try:
> if buffer is not None:
> > return self._sslobj.read(len, buffer)
> E ssl.SSLError: [SSL: KRB5_S_TKT_NYV] unexpected eof while reading (_ssl.c:2555)
>
> /usr/lib/python3.7/ssl.py:929: SSLError
> ====================== 1 failed, 8 passed in 1.18 seconds ======================
> 127.0.0.1 - - [22/Mar/2020 03:21:18] "GET /get HTTP/1.1" 200 218
> 127.0.0.1 - - [22/Mar/2020 03:21:18] "GET /get HTTP/1.1" 200 218
> 127.0.0.1 - - [22/Mar/2020 03:21:18] "GET /get HTTP/1.1" 200 218
> 127.0.0.1 - - [22/Mar/2020 03:21:18] "GET /get HTTP/1.1" 200 218
> 127.0.0.1 - - [22/Mar/2020 03:21:18] "GET /get HTTP/1.1" 200 218
> 127.0.0.1 - - [22/Mar/2020 03:21:18] "GET /get HTTP/1.1" 200 218
> 127.0.0.1 - - [22/Mar/2020 03:21:18] "GET /get HTTP/1.1" 200 218
> 127.0.0.1 - - [22/Mar/2020 03:21:18] "GET /get HTTP/1.1" 200 218
> 127.0.0.1 - - [22/Mar/2020 03:21:18] "GET /get HTTP/1.1" 200 218
> 127.0.0.1 - - [22/Mar/2020 03:21:18] "GET /get HTTP/1.1" 200 218
> 127.0.0.1 - - [22/Mar/2020 03:21:18] "GET /get HTTP/1.1" 200 218
> 127.0.0.1 - - [22/Mar/2020 03:21:18] "GET /get HTTP/1.1" 200 218
> 127.0.0.1 - - [22/Mar/2020 03:21:18] "GET /get HTTP/1.1" 200 218
> 127.0.0.1 - - [22/Mar/2020 03:21:18] "GET /get HTTP/1.1" 200 218
> 127.0.0.1 - - [22/Mar/2020 03:21:18] "GET /get HTTP/1.1" 200 218
> 127.0.0.1 - - [22/Mar/2020 03:21:18] "GET /get HTTP/1.1" 200 218
> 127.0.0.1 - - [22/Mar/2020 03:21:18] "GET /get HTTP/1.1" 200 218
> 127.0.0.1 - - [22/Mar/2020 03:21:18] "GET /get HTTP/1.1" 200 218
> 127.0.0.1 - - [22/Mar/2020 03:21:18] "GET /get HTTP/1.1" 200 218
> 127.0.0.1 - - [22/Mar/2020 03:21:18] "GET /get HTTP/1.1" 200 218
> 127.0.0.1 - - [22/Mar/2020 03:21:18] "GET /get HTTP/1.1" 200 218
> 127.0.0.1 - - [22/Mar/2020 03:21:18] "GET /get HTTP/1.1" 200 218
> 127.0.0.1 - - [22/Mar/2020 03:21:18] "GET /get HTTP/1.1" 200 218
> 127.0.0.1 - - [22/Mar/2020 03:21:18] "GET /stream/20 HTTP/1.1" 200 4990
> 127.0.0.1 - - [22/Mar/2020 03:21:18] "GET /get HTTP/1.1" 200 218
> 127.0.0.1 - - [22/Mar/2020 03:21:18] "GET /stream/20 HTTP/1.1" 200 4990
> E: pybuild pybuild:352: test: plugin custom failed with: exit code=1: python3.7 -m pytest -v -x -s
> dh_auto_test: error: pybuild --test --test-pytest -i python{version} -p "3.7 3.8" returned exit code 13
The full build log is available from:
http://qa-logs.debian.net/2020/03/21/pytest-httpbin_1.0.0-2_unstable.log
A list of current common problems and possible solutions is available at
http://wiki.debian.org/qa.debian.org/FTBFS . You're welcome to contribute!
About the archive rebuild: The rebuild was done on EC2 VM instances from
Amazon Web Services, using a clean, minimal and up-to-date chroot. Every
failed build was retried once to eliminate random failures.
More information about the Python-modules-team
mailing list