>>> uvicorn: Building community/uvicorn 0.29.0-r0 (using abuild 3.12.0-r5) started Fri, 12 Apr 2024 00:22:20 +0000 >>> uvicorn: Checking sanity of /home/buildozer/aports/community/uvicorn/APKBUILD... >>> uvicorn: Analyzing dependencies... >>> uvicorn: Installing for build: build-base python3 py3-asgiref py3-click py3-h11 py3-gpep517 py3-hatchling py3-a2wsgi py3-dotenv py3-httptools py3-httpx py3-pytest py3-pytest-mock py3-trustme py3-watchfiles py3-websockets py3-wsproto py3-yaml (1/96) Installing libbz2 (1.0.8-r6) (2/96) Installing libffi (3.4.6-r0) (3/96) Installing gdbm (1.23-r1) (4/96) Installing xz-libs (5.6.1-r2) (5/96) Installing mpdecimal (4.0.0-r0) (6/96) Installing libpanelw (6.4_p20240330-r0) (7/96) Installing readline (8.2.10-r0) (8/96) Installing sqlite-libs (3.45.2-r0) (9/96) Installing python3 (3.11.8-r0) (10/96) Installing python3-pycache-pyc0 (3.11.8-r0) (11/96) Installing pyc (3.11.8-r0) (12/96) Installing python3-pyc (3.11.8-r0) (13/96) Installing py3-asgiref (3.8.1-r0) (14/96) Installing py3-asgiref-pyc (3.8.1-r0) (15/96) Installing py3-click (8.1.7-r1) (16/96) Installing py3-click-pyc (8.1.7-r1) (17/96) Installing py3-h11 (0.14.0-r3) (18/96) Installing py3-h11-pyc (0.14.0-r3) (19/96) Installing py3-installer (0.7.0-r1) (20/96) Installing py3-installer-pyc (0.7.0-r1) (21/96) Installing py3-gpep517 (15-r1) (22/96) Installing py3-gpep517-pyc (15-r1) (23/96) Installing py3-editables (0.5-r1) (24/96) Installing py3-editables-pyc (0.5-r1) (25/96) Installing py3-parsing (3.1.2-r0) (26/96) Installing py3-parsing-pyc (3.1.2-r0) (27/96) Installing py3-packaging (24.0-r0) (28/96) Installing py3-packaging-pyc (24.0-r0) (29/96) Installing py3-pathspec (0.12.1-r1) (30/96) Installing py3-pathspec-pyc (0.12.1-r1) (31/96) Installing py3-pluggy (1.4.0-r0) (32/96) Installing py3-pluggy-pyc (1.4.0-r0) (33/96) Installing py3-trove-classifiers (2024.3.3-r1) (34/96) Installing py3-trove-classifiers-pyc (2024.3.3-r1) (35/96) Installing py3-hatchling (1.22.5-r0) (36/96) Installing py3-hatchling-pyc (1.22.5-r0) (37/96) Installing py3-a2wsgi (1.10.4-r0) (38/96) Installing py3-a2wsgi-pyc (1.10.4-r0) (39/96) Installing py3-dotenv (1.0.1-r0) (40/96) Installing py3-dotenv-pyc (1.0.1-r0) (41/96) Installing http-parser (2.9.4-r0) (42/96) Installing llhttp (8.1.1-r1) (43/96) Installing py3-httptools (0.6.1-r0) (44/96) Installing py3-httptools-pyc (0.6.1-r0) (45/96) Installing py3-certifi (2024.2.2-r0) (46/96) Installing py3-certifi-pyc (2024.2.2-r0) (47/96) Installing py3-idna (3.6-r0) (48/96) Installing py3-idna-pyc (3.6-r0) (49/96) Installing py3-curio (1.6-r1) (50/96) Installing py3-curio-pyc (1.6-r1) (51/96) Installing py3-sniffio (1.3.1-r0) (52/96) Installing py3-sniffio-pyc (1.3.1-r0) (53/96) Installing py3-anyio (4.3.0-r1) (54/96) Installing py3-anyio-pyc (4.3.0-r1) (55/96) Installing py3-httpcore (1.0.4-r0) (56/96) Installing py3-httpcore-pyc (1.0.4-r0) (57/96) Installing py3-httpx (0.27.0-r0) (58/96) Installing py3-httpx-pyc (0.27.0-r0) (59/96) Installing py3-iniconfig (2.0.0-r0) (60/96) Installing py3-iniconfig-pyc (2.0.0-r0) (61/96) Installing py3-py (1.11.0-r2) (62/96) Installing py3-py-pyc (1.11.0-r2) (63/96) Installing py3-pytest (8.1.1-r0) (64/96) Installing py3-pytest-pyc (8.1.1-r0) (65/96) Installing py3-mock (5.1.0-r1) (66/96) Installing py3-mock-pyc (5.1.0-r1) (67/96) Installing py3-pytest-mock (3.10.0-r2) (68/96) Installing py3-pytest-mock-pyc (3.10.0-r2) (69/96) Installing py3-cparser (2.22-r0) (70/96) Installing py3-cparser-pyc (2.22-r0) (71/96) Installing py3-cffi (1.16.0-r0) (72/96) Installing py3-cffi-pyc (1.16.0-r0) (73/96) Installing py3-cryptography (42.0.5-r0) (74/96) Installing py3-cryptography-pyc (42.0.5-r0) (75/96) Installing py3-openssl (24.1.0-r0) (76/96) Installing py3-openssl-pyc (24.1.0-r0) (77/96) Installing py3-asn1 (0.6.0-r0) (78/96) Installing py3-asn1-pyc (0.6.0-r0) (79/96) Installing py3-asn1-modules (0.3.0-r1) (80/96) Installing py3-asn1-modules-pyc (0.3.0-r1) (81/96) Installing py3-attrs (23.2.0-r0) (82/96) Installing py3-attrs-pyc (23.2.0-r0) (83/96) Installing py3-service_identity (24.1.0-r0) (84/96) Installing py3-service_identity-pyc (24.1.0-r0) (85/96) Installing py3-trustme (1.1.0-r0) (86/96) Installing py3-trustme-pyc (1.1.0-r0) (87/96) Installing py3-watchfiles (0.19.0-r1) (88/96) Installing py3-watchfiles-pyc (0.19.0-r1) (89/96) Installing py3-websockets (12.0-r1) (90/96) Installing py3-websockets-pyc (12.0-r1) (91/96) Installing py3-wsproto (1.2.0-r2) (92/96) Installing py3-wsproto-pyc (1.2.0-r2) (93/96) Installing yaml (0.2.5-r2) (94/96) Installing py3-yaml (6.0.1-r2) (95/96) Installing py3-yaml-pyc (6.0.1-r2) (96/96) Installing .makedepends-uvicorn (20240412.002224) Executing busybox-1.36.1-r25.trigger OK: 297 MiB in 198 packages >>> uvicorn: Cleaning up srcdir >>> uvicorn: Cleaning up pkgdir >>> uvicorn: Cleaning up tmpdir >>> uvicorn: Fetching https://distfiles.alpinelinux.org/distfiles/edge/uvicorn-0.29.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: (56) The requested URL returned error: 404 >>> uvicorn: Fetching https://github.com/encode/uvicorn/archive/0.29.0/uvicorn-0.29.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 702k 0 702k 0 0 1157k 0 --:--:-- --:--:-- --:--:-- 1157k >>> uvicorn: Fetching https://distfiles.alpinelinux.org/distfiles/edge/uvicorn-0.29.0.tar.gz >>> uvicorn: Checking sha512sums... uvicorn-0.29.0.tar.gz: OK httpx.patch: OK >>> uvicorn: Unpacking /var/cache/distfiles/uvicorn-0.29.0.tar.gz... >>> uvicorn: httpx.patch patching file tests/middleware/test_message_logger.py patching file tests/middleware/test_proxy_headers.py patching file tests/middleware/test_wsgi.py patching file requirements.txt patching file tools/cli_usage.py 2024-04-12 00:22:28,110 gpep517 INFO Building wheel via backend hatchling.build 2024-04-12 00:22:28,545 gpep517 INFO The backend produced .dist/uvicorn-0.29.0-py3-none-any.whl uvicorn-0.29.0-py3-none-any.whl ============================= test session starts ============================== platform linux -- Python 3.11.8, pytest-8.1.1, pluggy-1.4.0 rootdir: /home/buildozer/aports/community/uvicorn/src/uvicorn-0.29.0 configfile: pyproject.toml plugins: mock-3.10.0, anyio-0.0.0 collected 583 items tests/importer/test_importer.py ....... [ 1%] tests/middleware/test_logging.py .............. [ 3%] tests/middleware/test_message_logger.py .. [ 3%] tests/middleware/test_proxy_headers.py ........................... [ 8%] tests/middleware/test_wsgi.py ........... [ 10%] tests/protocols/test_http.py ........................................... [ 17%] ................................................................. [ 28%] tests/protocols/test_utils.py ...... [ 30%] tests/protocols/test_websocket.py ...................................... [ 36%] ........................................................................ [ 48%] ................................F....................................... [ 61%] .................... [ 64%] tests/supervisors/test_multiprocess.py . [ 64%] tests/supervisors/test_reload.py .s..s..s..s...s.s..s..s..s.s.s....... [ 71%] tests/supervisors/test_signal.py ... [ 71%] tests/test_auto_detection.py ... [ 72%] tests/test_cli.py .............. [ 74%] tests/test_config.py ................................................... [ 83%] ........................................................ [ 92%] tests/test_default_headers.py ...... [ 93%] tests/test_lifespan.py ................ [ 96%] tests/test_main.py ......... [ 98%] tests/test_server.py .... [ 98%] tests/test_ssl.py .... [ 99%] tests/test_subprocess.py .. [100%] =================================== FAILURES =================================== _ test_send_binary_data_to_server_bigger_than_default_on_websockets[httptools-max=10 sent=10] _ http_protocol_cls = client_size_sent = 10, server_size_max = 10, expected_result = 0 unused_tcp_port = 56855 @pytest.mark.anyio @pytest.mark.parametrize( "client_size_sent, server_size_max, expected_result", [ (MAX_WS_BYTES, MAX_WS_BYTES, 0), (MAX_WS_BYTES_PLUS1, MAX_WS_BYTES, 1009), (10, 10, 0), (11, 10, 1009), ], ids=[ "max=defaults sent=defaults", "max=defaults sent=defaults+1", "max=10 sent=10", "max=10 sent=11", ], ) async def test_send_binary_data_to_server_bigger_than_default_on_websockets( http_protocol_cls: HTTPProtocol, client_size_sent: int, server_size_max: int, expected_result: int, unused_tcp_port: int, ): class App(WebSocketResponse): async def websocket_connect(self, message): await self.send({"type": "websocket.accept"}) async def websocket_receive(self, message): _bytes = message.get("bytes") await self.send({"type": "websocket.send", "bytes": _bytes}) async def send_text(url: str): async with websockets.client.connect(url, max_size=client_size_sent) as ws: await ws.send(b"\x01" * client_size_sent) return await ws.recv() config = Config( app=App, ws=WebSocketProtocol, http=http_protocol_cls, lifespan="off", ws_max_size=server_size_max, port=unused_tcp_port, ) async with run_server(config): if expected_result == 0: > data = await send_text(f"ws://127.0.0.1:{unused_tcp_port}") tests/protocols/test_websocket.py:906: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ tests/protocols/test_websocket.py:892: in send_text async with websockets.client.connect(url, max_size=client_size_sent) as ws: /usr/lib/python3.11/site-packages/websockets/legacy/client.py:629: in __aenter__ return await self /usr/lib/python3.11/site-packages/websockets/legacy/client.py:647: in __await_impl_timeout__ return await self.__await_impl__() /usr/lib/python3.11/site-packages/websockets/legacy/client.py:651: in __await_impl__ _transport, _protocol = await self._create_connection() /usr/lib/python3.11/asyncio/base_events.py:1086: in create_connection raise exceptions[0] /usr/lib/python3.11/asyncio/base_events.py:1070: in create_connection sock = await self._connect_sock( /usr/lib/python3.11/asyncio/base_events.py:974: in _connect_sock await self.sock_connect(sock, address) /usr/lib/python3.11/asyncio/selector_events.py:638: in sock_connect return await fut _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = <_UnixSelectorEventLoop running=False closed=True debug=False> fut = None, sock = address = ('127.0.0.1', 56855) def _sock_connect_cb(self, fut, sock, address): if fut.done(): return try: err = sock.getsockopt(socket.SOL_SOCKET, socket.SO_ERROR) if err != 0: # Jump to any except clause below. > raise OSError(err, f'Connect call failed {address}') E ConnectionRefusedError: [Errno 111] Connect call failed ('127.0.0.1', 56855) /usr/lib/python3.11/asyncio/selector_events.py:678: ConnectionRefusedError ----------------------------- Captured stderr call ----------------------------- INFO: Started server process [31152] INFO: Uvicorn running on http://127.0.0.1:56855 (Press CTRL+C to quit) INFO: Shutting down ------------------------------ Captured log call ------------------------------- INFO uvicorn.error:server.py:82 Started server process [31152] INFO uvicorn.error:server.py:214 Uvicorn running on http://127.0.0.1:56855 (Press CTRL+C to quit) INFO uvicorn.error:server.py:258 Shutting down =========================== short test summary info ============================ SKIPPED [1] tests/supervisors/test_reload.py:76: Needed dependency not installed SKIPPED [1] tests/supervisors/test_reload.py:89: Needed dependency not installed SKIPPED [1] tests/supervisors/test_reload.py:102: Needed dependency not installed SKIPPED [1] tests/supervisors/test_reload.py:114: Needed dependency not installed SKIPPED [1] tests/supervisors/test_reload.py:143: Needed dependency not installed SKIPPED [1] tests/supervisors/test_reload.py:170: Needed dependency not installed SKIPPED [1] tests/supervisors/test_reload.py:182: Needed dependency not installed SKIPPED [1] tests/supervisors/test_reload.py:202: Needed dependency not installed SKIPPED [1] tests/supervisors/test_reload.py:227: Needed dependency not installed SKIPPED [1] tests/supervisors/test_reload.py:255: Needed dependency not installed SKIPPED [1] tests/supervisors/test_reload.py:310: Needed dependency not installed ============= 1 failed, 571 passed, 11 skipped in 80.05s (0:01:20) ============= >>> ERROR: uvicorn: check failed >>> uvicorn: Uninstalling dependencies... (1/96) Purging .makedepends-uvicorn (20240412.002224) (2/96) Purging py3-asgiref-pyc (3.8.1-r0) (3/96) Purging py3-asgiref (3.8.1-r0) (4/96) Purging py3-click-pyc (8.1.7-r1) (5/96) Purging py3-click (8.1.7-r1) (6/96) Purging py3-gpep517-pyc (15-r1) (7/96) Purging py3-gpep517 (15-r1) (8/96) Purging py3-installer-pyc (0.7.0-r1) (9/96) Purging py3-installer (0.7.0-r1) (10/96) Purging py3-hatchling-pyc (1.22.5-r0) (11/96) Purging py3-hatchling (1.22.5-r0) (12/96) Purging py3-editables-pyc (0.5-r1) (13/96) Purging py3-editables (0.5-r1) (14/96) Purging py3-pathspec-pyc (0.12.1-r1) (15/96) Purging py3-pathspec (0.12.1-r1) (16/96) Purging py3-trove-classifiers-pyc (2024.3.3-r1) (17/96) Purging py3-trove-classifiers (2024.3.3-r1) (18/96) Purging py3-a2wsgi-pyc (1.10.4-r0) (19/96) Purging py3-a2wsgi (1.10.4-r0) (20/96) Purging py3-dotenv-pyc (1.0.1-r0) (21/96) Purging py3-dotenv (1.0.1-r0) (22/96) Purging py3-httptools-pyc (0.6.1-r0) (23/96) Purging py3-httptools (0.6.1-r0) (24/96) Purging py3-httpx-pyc (0.27.0-r0) (25/96) Purging py3-httpx (0.27.0-r0) (26/96) Purging py3-httpcore-pyc (1.0.4-r0) (27/96) Purging py3-httpcore (1.0.4-r0) (28/96) Purging py3-certifi-pyc (2024.2.2-r0) (29/96) Purging py3-certifi (2024.2.2-r0) (30/96) Purging py3-pytest-mock-pyc (3.10.0-r2) (31/96) Purging py3-pytest-mock (3.10.0-r2) (32/96) Purging py3-mock-pyc (5.1.0-r1) (33/96) Purging py3-mock (5.1.0-r1) (34/96) Purging py3-pytest-pyc (8.1.1-r0) (35/96) Purging py3-pytest (8.1.1-r0) (36/96) Purging py3-iniconfig-pyc (2.0.0-r0) (37/96) Purging py3-iniconfig (2.0.0-r0) (38/96) Purging py3-packaging-pyc (24.0-r0) (39/96) Purging py3-packaging (24.0-r0) (40/96) Purging py3-parsing-pyc (3.1.2-r0) (41/96) Purging py3-parsing (3.1.2-r0) (42/96) Purging py3-pluggy-pyc (1.4.0-r0) (43/96) Purging py3-pluggy (1.4.0-r0) (44/96) Purging py3-py-pyc (1.11.0-r2) (45/96) Purging py3-py (1.11.0-r2) (46/96) Purging py3-trustme-pyc (1.1.0-r0) (47/96) Purging py3-trustme (1.1.0-r0) (48/96) Purging py3-openssl-pyc (24.1.0-r0) (49/96) Purging py3-openssl (24.1.0-r0) (50/96) Purging py3-service_identity-pyc (24.1.0-r0) (51/96) Purging py3-service_identity (24.1.0-r0) (52/96) Purging py3-asn1-modules-pyc (0.3.0-r1) (53/96) Purging py3-asn1-modules (0.3.0-r1) (54/96) Purging py3-asn1-pyc (0.6.0-r0) (55/96) Purging py3-asn1 (0.6.0-r0) (56/96) Purging py3-attrs-pyc (23.2.0-r0) (57/96) Purging py3-attrs (23.2.0-r0) (58/96) Purging py3-cryptography-pyc (42.0.5-r0) (59/96) Purging py3-cryptography (42.0.5-r0) (60/96) Purging py3-cffi-pyc (1.16.0-r0) (61/96) Purging py3-cffi (1.16.0-r0) (62/96) Purging py3-cparser-pyc (2.22-r0) (63/96) Purging py3-cparser (2.22-r0) (64/96) Purging py3-watchfiles-pyc (0.19.0-r1) (65/96) Purging py3-watchfiles (0.19.0-r1) (66/96) Purging py3-anyio-pyc (4.3.0-r1) (67/96) Purging py3-anyio (4.3.0-r1) (68/96) Purging py3-idna-pyc (3.6-r0) (69/96) Purging py3-idna (3.6-r0) (70/96) Purging py3-sniffio-pyc (1.3.1-r0) (71/96) Purging py3-sniffio (1.3.1-r0) (72/96) Purging py3-curio-pyc (1.6-r1) (73/96) Purging py3-curio (1.6-r1) (74/96) Purging py3-websockets-pyc (12.0-r1) (75/96) Purging py3-websockets (12.0-r1) (76/96) Purging py3-wsproto-pyc (1.2.0-r2) (77/96) Purging py3-wsproto (1.2.0-r2) (78/96) Purging py3-h11-pyc (0.14.0-r3) (79/96) Purging py3-h11 (0.14.0-r3) (80/96) Purging py3-yaml-pyc (6.0.1-r2) (81/96) Purging py3-yaml (6.0.1-r2) (82/96) Purging http-parser (2.9.4-r0) (83/96) Purging llhttp (8.1.1-r1) (84/96) Purging python3-pyc (3.11.8-r0) (85/96) Purging python3-pycache-pyc0 (3.11.8-r0) (86/96) Purging pyc (3.11.8-r0) (87/96) Purging yaml (0.2.5-r2) (88/96) Purging python3 (3.11.8-r0) (89/96) Purging gdbm (1.23-r1) (90/96) Purging libbz2 (1.0.8-r6) (91/96) Purging libffi (3.4.6-r0) (92/96) Purging libpanelw (6.4_p20240330-r0) (93/96) Purging mpdecimal (4.0.0-r0) (94/96) Purging readline (8.2.10-r0) (95/96) Purging sqlite-libs (3.45.2-r0) (96/96) Purging xz-libs (5.6.1-r2) Executing busybox-1.36.1-r25.trigger OK: 227 MiB in 102 packages