>>> py3-starlette: Building testing/py3-starlette 0.31.0-r0 (using abuild 3.11.21-r0) started Tue, 25 Jul 2023 18:18:52 +0000 >>> py3-starlette: Checking sanity of /home/buildozer/aports/testing/py3-starlette/APKBUILD... >>> py3-starlette: Analyzing dependencies... >>> py3-starlette: Installing for build: build-base py3-anyio py3-gpep517 py3-hatchling py3-installer py3-httpx py3-itsdangerous py3-jinja2 py3-pytest py3-python-multipart py3-trio py3-typing-extensions py3-yaml (1/84) Installing libbz2 (1.0.8-r6) (2/84) Installing libffi (3.4.4-r3) (3/84) Installing gdbm (1.23-r1) (4/84) Installing xz-libs (5.4.3-r1) (5/84) Installing mpdecimal (2.5.1-r2) (6/84) Installing libpanelw (6.4_p20230722-r0) (7/84) Installing readline (8.2.1-r2) (8/84) Installing sqlite-libs (3.42.0-r2) (9/84) Installing python3 (3.11.4-r2) (10/84) Installing python3-pycache-pyc0 (3.11.4-r2) (11/84) Installing pyc (0.1-r0) (12/84) Installing py3-idna (3.4-r4) (13/84) Installing py3-idna-pyc (3.4-r4) (14/84) Installing py3-curio (1.6-r1) (15/84) Installing py3-curio-pyc (1.6-r1) (16/84) Installing py3-sniffio (1.3.0-r2) (17/84) Installing py3-sniffio-pyc (1.3.0-r2) (18/84) Installing py3-anyio-pyc (3.6.2-r3) (19/84) Installing python3-pyc (3.11.4-r2) (20/84) Installing py3-anyio (3.6.2-r3) (21/84) Installing py3-installer (0.7.0-r1) (22/84) Installing py3-installer-pyc (0.7.0-r1) (23/84) Installing py3-gpep517 (13-r2) (24/84) Installing py3-gpep517-pyc (13-r2) (25/84) Installing py3-editables (0.4-r0) (26/84) Installing py3-editables-pyc (0.4-r0) (27/84) Installing py3-parsing (3.1.0-r0) (28/84) Installing py3-parsing-pyc (3.1.0-r0) (29/84) Installing py3-packaging (23.1-r1) (30/84) Installing py3-packaging-pyc (23.1-r1) (31/84) Installing py3-pathspec (0.11.1-r1) (32/84) Installing py3-pathspec-pyc (0.11.1-r1) (33/84) Installing py3-pluggy (1.2.0-r0) (34/84) Installing py3-pluggy-pyc (1.2.0-r0) (35/84) Installing py3-trove-classifiers (2023.7.6-r0) (36/84) Installing py3-trove-classifiers-pyc (2023.7.6-r0) (37/84) Installing py3-hatchling (1.18.0-r0) (38/84) Installing py3-hatchling-pyc (1.18.0-r0) (39/84) Installing py3-certifi (2023.7.22-r0) (40/84) Installing py3-certifi-pyc (2023.7.22-r0) (41/84) Installing py3-h11 (0.14.0-r2) (42/84) Installing py3-h11-pyc (0.14.0-r2) (43/84) Installing py3-httpcore (0.17.3-r0) (44/84) Installing py3-httpcore-pyc (0.17.3-r0) (45/84) Installing py3-httpx (0.24.1-r0) (46/84) Installing py3-httpx-pyc (0.24.1-r0) (47/84) Installing py3-itsdangerous (2.1.2-r2) (48/84) Installing py3-itsdangerous-pyc (2.1.2-r2) (49/84) Installing py3-markupsafe (2.1.3-r0) (50/84) Installing py3-markupsafe-pyc (2.1.3-r0) (51/84) Installing py3-jinja2 (3.1.2-r2) (52/84) Installing py3-jinja2-pyc (3.1.2-r2) (53/84) Installing py3-iniconfig (1.1.1-r6) (54/84) Installing py3-iniconfig-pyc (1.1.1-r6) (55/84) Installing py3-py (1.11.0-r2) (56/84) Installing py3-py-pyc (1.11.0-r2) (57/84) Installing py3-pytest (7.4.0-r0) (58/84) Installing py3-pytest-pyc (7.4.0-r0) (59/84) Installing py3-python-multipart (0.0.6-r1) (60/84) Installing py3-python-multipart-pyc (0.0.6-r1) (61/84) Installing py3-attrs (23.1.0-r1) (62/84) Installing py3-attrs-pyc (23.1.0-r1) (63/84) Installing py3-async_generator (1.10-r5) (64/84) Installing py3-async_generator-pyc (1.10-r5) (65/84) Installing py3-cparser (2.21-r2) (66/84) Installing py3-cparser-pyc (2.21-r2) (67/84) Installing py3-cffi (1.15.1-r3) (68/84) Installing py3-cffi-pyc (1.15.1-r3) (69/84) Installing py3-cryptography (41.0.2-r0) (70/84) Installing py3-cryptography-pyc (41.0.2-r0) (71/84) Installing py3-openssl (23.2.0-r0) (72/84) Installing py3-openssl-pyc (23.2.0-r0) (73/84) Installing py3-outcome (1.2.0-r2) (74/84) Installing py3-outcome-pyc (1.2.0-r2) (75/84) Installing py3-sortedcontainers (2.4.0-r3) (76/84) Installing py3-sortedcontainers-pyc (2.4.0-r3) (77/84) Installing py3-trio (0.21.0-r3) (78/84) Installing py3-trio-pyc (0.21.0-r3) (79/84) Installing py3-typing-extensions (4.7.1-r0) (80/84) Installing py3-typing-extensions-pyc (4.7.1-r0) (81/84) Installing yaml (0.2.5-r2) (82/84) Installing py3-yaml (6.0.1-r1) (83/84) Installing py3-yaml-pyc (6.0.1-r1) (84/84) Installing .makedepends-py3-starlette (20230725.181854) Executing busybox-1.36.1-r4.trigger OK: 445 MiB in 189 packages >>> py3-starlette: Cleaning up srcdir >>> py3-starlette: Cleaning up pkgdir >>> py3-starlette: Cleaning up tmpdir >>> py3-starlette: Fetching https://distfiles.alpinelinux.org/distfiles/edge/py3-starlette-0.31.0.tar.gz % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0 0 146 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0 curl: (22) The requested URL returned error: 404 >>> py3-starlette: Fetching py3-starlette-0.31.0.tar.gz::https://github.com/encode/starlette/archive/refs/tags/0.31.0.tar.gz % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0 100 2779k 100 2779k 0 0 4852k 0 --:--:-- --:--:-- --:--:-- 4852k 100 2779k 100 2779k 0 0 4849k 0 --:--:-- --:--:-- --:--:-- 0 >>> py3-starlette: Fetching https://distfiles.alpinelinux.org/distfiles/edge/py3-starlette-0.31.0.tar.gz >>> py3-starlette: Checking sha512sums... py3-starlette-0.31.0.tar.gz: OK >>> py3-starlette: Unpacking /var/cache/distfiles/edge/py3-starlette-0.31.0.tar.gz... 2023-07-25 18:18:56,622 gpep517 INFO Building wheel via backend hatchling.build 2023-07-25 18:18:56,765 gpep517 INFO The backend produced .dist/starlette-0.31.0-py3-none-any.whl starlette-0.31.0-py3-none-any.whl ============================= test session starts ============================== platform linux -- Python 3.11.4, pytest-7.4.0, pluggy-1.2.0 rootdir: /home/buildozer/aports/testing/py3-starlette/src/starlette-0.31.0 configfile: pyproject.toml plugins: anyio-3.6.2 collected 752 items tests/test__utils.py ...... [ 0%] tests/test_applications.py ............................................. [ 6%] ... [ 7%] tests/test_authentication.py ........... [ 8%] tests/test_background.py ........ [ 9%] tests/test_concurrency.py .... [ 10%] tests/test_config.py .... [ 10%] tests/test_convertors.py ...... [ 11%] tests/test_datastructures.py .......................... [ 15%] tests/test_endpoints.py .................... [ 17%] tests/test_exceptions.py ..................... [ 20%] tests/test_formparsers.py .............................................. [ 26%] ...................... [ 29%] tests/test_requests.py ................................................. [ 36%] .............................. [ 40%] tests/test_responses.py ................................................ [ 46%] .............. [ 48%] tests/test_routing.py .................................................. [ 54%] ............................... [ 59%] tests/test_schemas.py ... [ 59%] tests/test_staticfiles.py .............................................. [ 65%] ...... [ 66%] tests/test_status.py .. [ 66%] tests/test_templates.py ...................... [ 69%] tests/test_testclient.py ..................................... [ 74%] tests/test_websockets.py ............................................... [ 80%] ................ [ 82%] tests/middleware/test_base.py .........x.x.............................. [ 88%] ..... [ 89%] tests/middleware/test_cors.py .............................. [ 93%] tests/middleware/test_errors.py ............ [ 94%] tests/middleware/test_gzip.py .......... [ 96%] tests/middleware/test_https_redirect.py .. [ 96%] tests/middleware/test_middleware.py . [ 96%] tests/middleware/test_session.py ............ [ 98%] tests/middleware/test_trusted_host.py ..... [ 98%] tests/middleware/test_wsgi.py ....FF.... [100%] =================================== FAILURES =================================== _________________________ test_wsgi_exception[asyncio] _________________________ test_client_factory = functools.partial(, backend='asyncio', backend_options={}) def test_wsgi_exception(test_client_factory): # Note that we're testing the WSGI app directly here. # The HTTP protocol implementations would catch this error and return 500. app = WSGIMiddleware(raise_exception) client = test_client_factory(app) with pytest.raises(ExceptionGroup) as exc: > client.get("/") tests/middleware/test_wsgi.py:73: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ starlette/testclient.py:502: in get return super().get( /usr/lib/python3.11/site-packages/httpx/_client.py:1041: in get return self.request( starlette/testclient.py:468: in request return super().request( /usr/lib/python3.11/site-packages/httpx/_client.py:814: in request return self.send(request, auth=auth, follow_redirects=follow_redirects) /usr/lib/python3.11/site-packages/httpx/_client.py:901: in send response = self._send_handling_auth( /usr/lib/python3.11/site-packages/httpx/_client.py:929: in _send_handling_auth response = self._send_handling_redirects( /usr/lib/python3.11/site-packages/httpx/_client.py:966: in _send_handling_redirects response = self._send_single_request(request) /usr/lib/python3.11/site-packages/httpx/_client.py:1002: in _send_single_request response = transport.handle_request(request) starlette/testclient.py:344: in handle_request raise exc starlette/testclient.py:341: in handle_request portal.call(self.app, scope, receive, send) /usr/lib/python3.11/site-packages/anyio/from_thread.py:283: in call return cast(T_Retval, self.start_task_soon(func, *args).result()) /usr/lib/python3.11/concurrent/futures/_base.py:456: in result return self.__get_result() /usr/lib/python3.11/concurrent/futures/_base.py:401: in __get_result raise self._exception /usr/lib/python3.11/site-packages/anyio/from_thread.py:219: in _call_func retval = await retval starlette/middleware/wsgi.py:72: in __call__ await responder(receive, send) starlette/middleware/wsgi.py:102: in __call__ await anyio.to_thread.run_sync(self.wsgi, environ, self.start_response) /usr/lib/python3.11/site-packages/anyio/to_thread.py:31: in run_sync return await get_asynclib().run_sync_in_worker_thread( /usr/lib/python3.11/site-packages/anyio/_backends/_asyncio.py:937: in run_sync_in_worker_thread return await future /usr/lib/python3.11/site-packages/anyio/_backends/_asyncio.py:867: in run result = context.run(func, *args) starlette/middleware/wsgi.py:140: in wsgi for chunk in self.app(environ, start_response): _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ environ = {'HTTP_ACCEPT': '*/*', 'HTTP_ACCEPT_ENCODING': 'gzip, deflate', 'HTTP_CONNECTION': 'keep-alive', 'HTTP_HOST': 'testserver', ...} start_response = > def raise_exception(environ, start_response): > raise RuntimeError("Something went wrong") E RuntimeError: Something went wrong tests/middleware/test_wsgi.py:34: RuntimeError __________________________ test_wsgi_exception[trio] ___________________________ test_client_factory = functools.partial(, backend='trio', backend_options={}) def test_wsgi_exception(test_client_factory): # Note that we're testing the WSGI app directly here. # The HTTP protocol implementations would catch this error and return 500. app = WSGIMiddleware(raise_exception) client = test_client_factory(app) with pytest.raises(ExceptionGroup) as exc: > client.get("/") tests/middleware/test_wsgi.py:73: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ starlette/testclient.py:502: in get return super().get( /usr/lib/python3.11/site-packages/httpx/_client.py:1041: in get return self.request( starlette/testclient.py:468: in request return super().request( /usr/lib/python3.11/site-packages/httpx/_client.py:814: in request return self.send(request, auth=auth, follow_redirects=follow_redirects) /usr/lib/python3.11/site-packages/httpx/_client.py:901: in send response = self._send_handling_auth( /usr/lib/python3.11/site-packages/httpx/_client.py:929: in _send_handling_auth response = self._send_handling_redirects( /usr/lib/python3.11/site-packages/httpx/_client.py:966: in _send_handling_redirects response = self._send_single_request(request) /usr/lib/python3.11/site-packages/httpx/_client.py:1002: in _send_single_request response = transport.handle_request(request) starlette/testclient.py:344: in handle_request raise exc starlette/testclient.py:341: in handle_request portal.call(self.app, scope, receive, send) /usr/lib/python3.11/site-packages/anyio/from_thread.py:283: in call return cast(T_Retval, self.start_task_soon(func, *args).result()) /usr/lib/python3.11/concurrent/futures/_base.py:456: in result return self.__get_result() /usr/lib/python3.11/concurrent/futures/_base.py:401: in __get_result raise self._exception /usr/lib/python3.11/site-packages/anyio/from_thread.py:219: in _call_func retval = await retval starlette/middleware/wsgi.py:72: in __call__ await responder(receive, send) starlette/middleware/wsgi.py:102: in __call__ await anyio.to_thread.run_sync(self.wsgi, environ, self.start_response) /usr/lib/python3.11/site-packages/anyio/to_thread.py:31: in run_sync return await get_asynclib().run_sync_in_worker_thread( /usr/lib/python3.11/site-packages/anyio/_backends/_trio.py:230: in run_sync_in_worker_thread return await run_sync( /usr/lib/python3.11/site-packages/trio/_threads.py:214: in to_thread_run_sync return await trio.lowlevel.wait_task_rescheduled(abort) /usr/lib/python3.11/site-packages/trio/_core/_traps.py:166: in wait_task_rescheduled return (await _async_yield(WaitTaskRescheduled(abort_func))).unwrap() /usr/lib/python3.11/site-packages/outcome/_impl.py:138: in unwrap raise captured_error /usr/lib/python3.11/site-packages/trio/_threads.py:160: in do_release_then_return_result return result.unwrap() /usr/lib/python3.11/site-packages/outcome/_impl.py:138: in unwrap raise captured_error /usr/lib/python3.11/site-packages/trio/_threads.py:174: in worker_fn ret = sync_fn(*args) /usr/lib/python3.11/site-packages/anyio/_backends/_trio.py:225: in wrapper return func(*args) starlette/middleware/wsgi.py:140: in wsgi for chunk in self.app(environ, start_response): _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ environ = {'HTTP_ACCEPT': '*/*', 'HTTP_ACCEPT_ENCODING': 'gzip, deflate', 'HTTP_CONNECTION': 'keep-alive', 'HTTP_HOST': 'testserver', ...} start_response = > def raise_exception(environ, start_response): > raise RuntimeError("Something went wrong") E RuntimeError: Something went wrong tests/middleware/test_wsgi.py:34: RuntimeError =========================== short test summary info ============================ XFAIL tests/middleware/test_base.py::test_contextvars[asyncio-CustomMiddlewareUsingBaseHTTPMiddleware] - BaseHTTPMiddleware creates a TaskGroup which copies the contextand erases any changes to it made within the TaskGroup XFAIL tests/middleware/test_base.py::test_contextvars[trio-CustomMiddlewareUsingBaseHTTPMiddleware] - BaseHTTPMiddleware creates a TaskGroup which copies the contextand erases any changes to it made within the TaskGroup ================== 2 failed, 748 passed, 2 xfailed in 33.25s =================== >>> ERROR: py3-starlette: check failed >>> py3-starlette: Uninstalling dependencies... (1/84) Purging .makedepends-py3-starlette (20230725.181854) (2/84) Purging py3-gpep517-pyc (13-r2) (3/84) Purging py3-gpep517 (13-r2) (4/84) Purging py3-hatchling-pyc (1.18.0-r0) (5/84) Purging py3-hatchling (1.18.0-r0) (6/84) Purging py3-editables-pyc (0.4-r0) (7/84) Purging py3-editables (0.4-r0) (8/84) Purging py3-pathspec-pyc (0.11.1-r1) (9/84) Purging py3-pathspec (0.11.1-r1) (10/84) Purging py3-trove-classifiers-pyc (2023.7.6-r0) (11/84) Purging py3-trove-classifiers (2023.7.6-r0) (12/84) Purging py3-installer-pyc (0.7.0-r1) (13/84) Purging py3-installer (0.7.0-r1) (14/84) Purging py3-httpx-pyc (0.24.1-r0) (15/84) Purging py3-httpx (0.24.1-r0) (16/84) Purging py3-httpcore-pyc (0.17.3-r0) (17/84) Purging py3-httpcore (0.17.3-r0) (18/84) Purging py3-anyio-pyc (3.6.2-r3) (19/84) Purging py3-anyio (3.6.2-r3) (20/84) Purging py3-certifi-pyc (2023.7.22-r0) (21/84) Purging py3-certifi (2023.7.22-r0) (22/84) Purging py3-h11-pyc (0.14.0-r2) (23/84) Purging py3-h11 (0.14.0-r2) (24/84) Purging py3-itsdangerous-pyc (2.1.2-r2) (25/84) Purging py3-itsdangerous (2.1.2-r2) (26/84) Purging py3-jinja2-pyc (3.1.2-r2) (27/84) Purging py3-jinja2 (3.1.2-r2) (28/84) Purging py3-markupsafe-pyc (2.1.3-r0) (29/84) Purging py3-markupsafe (2.1.3-r0) (30/84) Purging py3-pytest-pyc (7.4.0-r0) (31/84) Purging py3-pytest (7.4.0-r0) (32/84) Purging py3-iniconfig-pyc (1.1.1-r6) (33/84) Purging py3-iniconfig (1.1.1-r6) (34/84) Purging py3-packaging-pyc (23.1-r1) (35/84) Purging py3-packaging (23.1-r1) (36/84) Purging py3-parsing-pyc (3.1.0-r0) (37/84) Purging py3-parsing (3.1.0-r0) (38/84) Purging py3-pluggy-pyc (1.2.0-r0) (39/84) Purging py3-pluggy (1.2.0-r0) (40/84) Purging py3-py-pyc (1.11.0-r2) (41/84) Purging py3-py (1.11.0-r2) (42/84) Purging py3-python-multipart-pyc (0.0.6-r1) (43/84) Purging py3-python-multipart (0.0.6-r1) (44/84) Purging py3-trio-pyc (0.21.0-r3) (45/84) Purging py3-trio (0.21.0-r3) (46/84) Purging py3-idna-pyc (3.4-r4) (47/84) Purging py3-idna (3.4-r4) (48/84) Purging py3-openssl-pyc (23.2.0-r0) (49/84) Purging py3-openssl (23.2.0-r0) (50/84) Purging py3-cryptography-pyc (41.0.2-r0) (51/84) Purging py3-cryptography (41.0.2-r0) (52/84) Purging py3-cffi-pyc (1.15.1-r3) (53/84) Purging py3-cffi (1.15.1-r3) (54/84) Purging py3-cparser-pyc (2.21-r2) (55/84) Purging py3-cparser (2.21-r2) (56/84) Purging py3-outcome-pyc (1.2.0-r2) (57/84) Purging py3-outcome (1.2.0-r2) (58/84) Purging py3-async_generator-pyc (1.10-r5) (59/84) Purging py3-async_generator (1.10-r5) (60/84) Purging py3-attrs-pyc (23.1.0-r1) (61/84) Purging py3-attrs (23.1.0-r1) (62/84) Purging py3-sniffio-pyc (1.3.0-r2) (63/84) Purging py3-sniffio (1.3.0-r2) (64/84) Purging py3-curio-pyc (1.6-r1) (65/84) Purging py3-curio (1.6-r1) (66/84) Purging py3-sortedcontainers-pyc (2.4.0-r3) (67/84) Purging py3-sortedcontainers (2.4.0-r3) (68/84) Purging py3-typing-extensions-pyc (4.7.1-r0) (69/84) Purging py3-typing-extensions (4.7.1-r0) (70/84) Purging py3-yaml-pyc (6.0.1-r1) (71/84) Purging py3-yaml (6.0.1-r1) (72/84) Purging python3-pyc (3.11.4-r2) (73/84) Purging python3-pycache-pyc0 (3.11.4-r2) (74/84) Purging pyc (0.1-r0) (75/84) Purging yaml (0.2.5-r2) (76/84) Purging python3 (3.11.4-r2) (77/84) Purging gdbm (1.23-r1) (78/84) Purging libbz2 (1.0.8-r6) (79/84) Purging libffi (3.4.4-r3) (80/84) Purging libpanelw (6.4_p20230722-r0) (81/84) Purging mpdecimal (2.5.1-r2) (82/84) Purging readline (8.2.1-r2) (83/84) Purging sqlite-libs (3.42.0-r2) (84/84) Purging xz-libs (5.4.3-r1) Executing busybox-1.36.1-r4.trigger OK: 376 MiB in 105 packages