>>> py3-nats: Checking sanity of /home/patrycja/aports/community/py3-nats/APKBUILD... >>> py3-nats: Cleaning up srcdir >>> py3-nats: Cleaning up pkgdir >>> py3-nats: Cleaning up tmpdir >>> py3-nats: Fetching https://github.com/nats-io/nats.py/archive/v2.6.0/nats.py-2.6.0.tar.gz >>> py3-nats: Fetching https://github.com/nats-io/nats.py/archive/v2.6.0/nats.py-2.6.0.tar.gz >>> py3-nats: Checking sha512sums... nats.py-2.6.0.tar.gz: OK >>> py3-nats: Preparing build chroot... (1/135) Installing musl (1.2.5-r0) (2/135) Installing ca-certificates-bundle (20240226-r0) (3/135) Installing libcrypto3 (3.2.1-r1) (4/135) Installing libssl3 (3.2.1-r1) (5/135) Installing zlib (1.3.1-r0) (6/135) Installing apk-tools (2.14.3-r1) (7/135) Installing libattr (2.5.2-r0) (8/135) Installing attr (2.5.2-r0) (9/135) Installing libcap2 (2.69-r1) (10/135) Installing libcap-getcap (2.69-r1) (11/135) Installing fakeroot (1.33-r0) (12/135) Installing scanelf (1.3.7-r2) (13/135) Installing musl-utils (1.2.5-r0) (14/135) Installing libgcc (13.2.1_git20240309-r0) (15/135) Installing libstdc++ (13.2.1_git20240309-r0) (16/135) Installing lzip (1.24.1-r0) (17/135) Installing openssl (3.2.1-r1) (18/135) Installing patch (2.7.6-r10) (19/135) Installing pkgconf (2.2.0-r0) (20/135) Installing libacl (2.3.2-r0) (21/135) Installing tar (1.35-r2) (22/135) Installing busybox (1.36.1-r25) Executing busybox-1.36.1-r25.post-install (23/135) Installing ssl_client (1.36.1-r25) (24/135) Installing busybox-binsh (1.36.1-r25) (25/135) Installing abuild (3.12.0-r5) Executing abuild-3.12.0-r5.pre-install (26/135) Installing abuild-sudo (3.12.0-r5) (27/135) Installing alpine-baselayout-data (3.6.3-r0) (28/135) Installing alpine-baselayout (3.6.3-r0) Executing alpine-baselayout-3.6.3-r0.pre-install Executing alpine-baselayout-3.6.3-r0.post-install (29/135) Installing ifupdown-ng (0.12.1-r5) (30/135) Installing openrc (0.54-r1) Executing openrc-0.54-r1.post-install (31/135) Installing mdev-conf (4.6-r0) (32/135) Installing busybox-mdev-openrc (1.36.1-r25) (33/135) Installing alpine-conf (3.17.2-r0) (34/135) Installing alpine-keys (2.4-r1) (35/135) Installing alpine-release (3.20.0_alpha20240329-r0) (36/135) Installing busybox-openrc (1.36.1-r25) (37/135) Installing busybox-suid (1.36.1-r25) (38/135) Installing alpine-base (3.20.0_alpha20240329-r0) (39/135) Installing jansson (2.14-r4) (40/135) Installing zstd-libs (1.5.6-r0) (41/135) Installing binutils (2.42-r0) (42/135) Installing libmagic (5.45-r1) (43/135) Installing file (5.45-r1) (44/135) Installing libgomp (13.2.1_git20240309-r0) (45/135) Installing libatomic (13.2.1_git20240309-r0) (46/135) Installing gmp (6.3.0-r0) (47/135) Installing isl26 (0.26-r1) (48/135) Installing mpfr4 (4.2.1-r0) (49/135) Installing mpc1 (1.3.1-r1) (50/135) Installing gcc (13.2.1_git20240309-r0) (51/135) Installing libstdc++-dev (13.2.1_git20240309-r0) (52/135) Installing musl-dev (1.2.5-r0) (53/135) Installing g++ (13.2.1_git20240309-r0) (54/135) Installing make (4.4.1-r2) (55/135) Installing fortify-headers (1.1-r3) (56/135) Installing build-base (0.5-r3) (57/135) Installing hiredis (1.2.0-r0) (58/135) Installing libxxhash (0.8.2-r2) (59/135) Installing ccache (4.9.1-r0) (60/135) Installing ca-certificates (20240226-r0) (61/135) Installing brotli-libs (1.1.0-r2) (62/135) Installing c-ares (1.28.1-r0) (63/135) Installing libunistring (1.2-r0) (64/135) Installing libidn2 (2.3.7-r0) (65/135) Installing nghttp2-libs (1.61.0-r0) (66/135) Installing libpsl (0.21.5-r1) (67/135) Installing libcurl (8.7.1-r0) (68/135) Installing libexpat (2.6.2-r0) (69/135) Installing pcre2 (10.43-r0) (70/135) Installing git (2.44.0-r2) (71/135) Installing git-init-template (2.44.0-r2) (72/135) Installing nats-server (2.10.12-r1) (73/135) Installing libbz2 (1.0.8-r6) (74/135) Installing libffi (3.4.6-r0) (75/135) Installing gdbm (1.23-r1) (76/135) Installing xz-libs (5.6.1-r2) (77/135) Installing mpdecimal (4.0.0-r0) (78/135) Installing ncurses-terminfo-base (6.4_p20240309-r0) (79/135) Installing libncursesw (6.4_p20240309-r0) (80/135) Installing libpanelw (6.4_p20240309-r0) (81/135) Installing readline (8.2.10-r0) (82/135) Installing sqlite-libs (3.45.2-r0) (83/135) Installing python3 (3.12.2-r0) (84/135) Installing python3-pycache-pyc0 (3.12.2-r0) (85/135) Installing pyc (3.12.2-r0) (86/135) Installing py3-frozenlist (1.4.1-r1) (87/135) Installing py3-frozenlist-pyc (1.4.1-r1) (88/135) Installing py3-aiosignal-pyc (1.3.1-r3) (89/135) Installing py3-typing-extensions (4.11.0-r0) (90/135) Installing py3-typing-extensions-pyc (4.11.0-r0) (91/135) Installing py3-async-timeout (4.0.3-r1) (92/135) Installing py3-async-timeout-pyc (4.0.3-r1) (93/135) Installing py3-attrs (23.2.0-r1) (94/135) Installing py3-attrs-pyc (23.2.0-r1) (95/135) Installing py3-brotli (1.1.0-r2) (96/135) Installing py3-brotli-pyc (1.1.0-r2) (97/135) Installing py3-charset-normalizer (3.3.2-r1) (98/135) Installing py3-charset-normalizer-pyc (3.3.2-r1) (99/135) Installing py3-idna (3.6-r1) (100/135) Installing py3-idna-pyc (3.6-r1) (101/135) Installing py3-idna-ssl (1.1.0-r9) (102/135) Installing py3-idna-ssl-pyc (1.1.0-r9) (103/135) Installing py3-multidict (6.0.5-r1) (104/135) Installing py3-multidict-pyc (6.0.5-r1) (105/135) Installing py3-yarl (1.9.4-r1) (106/135) Installing py3-yarl-pyc (1.9.4-r1) (107/135) Installing py3-aiohttp-pyc (3.9.3-r1) (108/135) Installing python3-pyc (3.12.2-r0) (109/135) Installing py3-aiosignal (1.3.1-r3) (110/135) Installing py3-aiohttp (3.9.3-r1) (111/135) Installing py3-installer (0.7.0-r2) (112/135) Installing py3-installer-pyc (0.7.0-r2) (113/135) Installing py3-gpep517 (15-r2) (114/135) Installing py3-gpep517-pyc (15-r2) (115/135) Installing py3-iniconfig (2.0.0-r1) (116/135) Installing py3-iniconfig-pyc (2.0.0-r1) (117/135) Installing py3-parsing (3.1.2-r1) (118/135) Installing py3-parsing-pyc (3.1.2-r1) (119/135) Installing py3-packaging (24.0-r1) (120/135) Installing py3-packaging-pyc (24.0-r1) (121/135) Installing py3-pluggy (1.4.0-r1) (122/135) Installing py3-pluggy-pyc (1.4.0-r1) (123/135) Installing py3-py (1.11.0-r3) (124/135) Installing py3-py-pyc (1.11.0-r3) (125/135) Installing py3-pytest (8.1.1-r1) (126/135) Installing py3-pytest-pyc (8.1.1-r1) (127/135) Installing py3-coverage (6.5.0-r6) (128/135) Installing py3-coverage-pyc (6.5.0-r6) (129/135) Installing py3-pytest-cov (4.1.0-r1) (130/135) Installing py3-pytest-cov-pyc (4.1.0-r1) (131/135) Installing py3-setuptools (69.2.0-r1) (132/135) Installing py3-setuptools-pyc (69.2.0-r1) (133/135) Installing py3-wheel (0.42.0-r1) (134/135) Installing py3-wheel-pyc (0.42.0-r1) (135/135) Installing tini (0.19.0-r3) Executing busybox-1.36.1-r25.trigger Executing ca-certificates-20240226-r0.trigger OK: 316 MiB in 135 packages >>> py3-nats: Fetching https://github.com/nats-io/nats.py/archive/v2.6.0/nats.py-2.6.0.tar.gz >>> py3-nats: Checking sha512sums... nats.py-2.6.0.tar.gz: OK >>> py3-nats: Unpacking /var/cache/distfiles/nats.py-2.6.0.tar.gz... 2024-04-08 15:16:35,350 gpep517 INFO Building wheel via backend setuptools.build_meta 2024-04-08 15:16:35,423 root INFO running bdist_wheel 2024-04-08 15:16:35,430 root INFO running build 2024-04-08 15:16:35,430 root INFO running build_py 2024-04-08 15:16:35,431 root INFO creating build 2024-04-08 15:16:35,432 root INFO creating build/lib 2024-04-08 15:16:35,432 root INFO creating build/lib/nats 2024-04-08 15:16:35,432 root INFO copying nats/__init__.py -> build/lib/nats 2024-04-08 15:16:35,432 root INFO copying nats/errors.py -> build/lib/nats 2024-04-08 15:16:35,432 root INFO copying nats/nuid.py -> build/lib/nats 2024-04-08 15:16:35,432 root INFO creating build/lib/nats/js 2024-04-08 15:16:35,432 root INFO copying nats/js/object_store.py -> build/lib/nats/js 2024-04-08 15:16:35,432 root INFO copying nats/js/kv.py -> build/lib/nats/js 2024-04-08 15:16:35,433 root INFO copying nats/js/client.py -> build/lib/nats/js 2024-04-08 15:16:35,433 root INFO copying nats/js/__init__.py -> build/lib/nats/js 2024-04-08 15:16:35,433 root INFO copying nats/js/errors.py -> build/lib/nats/js 2024-04-08 15:16:35,433 root INFO copying nats/js/api.py -> build/lib/nats/js 2024-04-08 15:16:35,433 root INFO copying nats/js/manager.py -> build/lib/nats/js 2024-04-08 15:16:35,433 root INFO creating build/lib/nats/protocol 2024-04-08 15:16:35,433 root INFO copying nats/protocol/parser.py -> build/lib/nats/protocol 2024-04-08 15:16:35,434 root INFO copying nats/protocol/__init__.py -> build/lib/nats/protocol 2024-04-08 15:16:35,434 root INFO copying nats/protocol/command.py -> build/lib/nats/protocol 2024-04-08 15:16:35,434 root INFO creating build/lib/nats/aio 2024-04-08 15:16:35,434 root INFO copying nats/aio/subscription.py -> build/lib/nats/aio 2024-04-08 15:16:35,434 root INFO copying nats/aio/transport.py -> build/lib/nats/aio 2024-04-08 15:16:35,434 root INFO copying nats/aio/client.py -> build/lib/nats/aio 2024-04-08 15:16:35,434 root INFO copying nats/aio/msg.py -> build/lib/nats/aio 2024-04-08 15:16:35,435 root INFO copying nats/aio/__init__.py -> build/lib/nats/aio 2024-04-08 15:16:35,435 root INFO copying nats/aio/errors.py -> build/lib/nats/aio 2024-04-08 15:16:35,435 root INFO running egg_info 2024-04-08 15:16:35,435 root INFO creating nats_py.egg-info 2024-04-08 15:16:35,436 root INFO writing nats_py.egg-info/PKG-INFO 2024-04-08 15:16:35,437 root INFO writing dependency_links to nats_py.egg-info/dependency_links.txt 2024-04-08 15:16:35,437 root INFO writing requirements to nats_py.egg-info/requires.txt 2024-04-08 15:16:35,437 root INFO writing top-level names to nats_py.egg-info/top_level.txt 2024-04-08 15:16:35,437 root INFO writing manifest file 'nats_py.egg-info/SOURCES.txt' 2024-04-08 15:16:35,439 root INFO reading manifest file 'nats_py.egg-info/SOURCES.txt' 2024-04-08 15:16:35,439 root INFO adding license file 'LICENSE' 2024-04-08 15:16:35,440 root INFO writing manifest file 'nats_py.egg-info/SOURCES.txt' 2024-04-08 15:16:35,440 root INFO copying nats/py.typed -> build/lib/nats 2024-04-08 15:16:35,443 wheel INFO installing to build/bdist.linux-x86_64/wheel 2024-04-08 15:16:35,443 root INFO running install 2024-04-08 15:16:35,448 root INFO running install_lib 2024-04-08 15:16:35,449 root INFO creating build/bdist.linux-x86_64 2024-04-08 15:16:35,449 root INFO creating build/bdist.linux-x86_64/wheel 2024-04-08 15:16:35,449 root INFO creating build/bdist.linux-x86_64/wheel/nats 2024-04-08 15:16:35,449 root INFO creating build/bdist.linux-x86_64/wheel/nats/js 2024-04-08 15:16:35,449 root INFO copying build/lib/nats/js/object_store.py -> build/bdist.linux-x86_64/wheel/nats/js 2024-04-08 15:16:35,449 root INFO copying build/lib/nats/js/kv.py -> build/bdist.linux-x86_64/wheel/nats/js 2024-04-08 15:16:35,450 root INFO copying build/lib/nats/js/client.py -> build/bdist.linux-x86_64/wheel/nats/js 2024-04-08 15:16:35,450 root INFO copying build/lib/nats/js/__init__.py -> build/bdist.linux-x86_64/wheel/nats/js 2024-04-08 15:16:35,450 root INFO copying build/lib/nats/js/errors.py -> build/bdist.linux-x86_64/wheel/nats/js 2024-04-08 15:16:35,450 root INFO copying build/lib/nats/js/api.py -> build/bdist.linux-x86_64/wheel/nats/js 2024-04-08 15:16:35,450 root INFO copying build/lib/nats/js/manager.py -> build/bdist.linux-x86_64/wheel/nats/js 2024-04-08 15:16:35,450 root INFO copying build/lib/nats/py.typed -> build/bdist.linux-x86_64/wheel/nats 2024-04-08 15:16:35,450 root INFO creating build/bdist.linux-x86_64/wheel/nats/protocol 2024-04-08 15:16:35,450 root INFO copying build/lib/nats/protocol/parser.py -> build/bdist.linux-x86_64/wheel/nats/protocol 2024-04-08 15:16:35,450 root INFO copying build/lib/nats/protocol/__init__.py -> build/bdist.linux-x86_64/wheel/nats/protocol 2024-04-08 15:16:35,450 root INFO copying build/lib/nats/protocol/command.py -> build/bdist.linux-x86_64/wheel/nats/protocol 2024-04-08 15:16:35,451 root INFO copying build/lib/nats/__init__.py -> build/bdist.linux-x86_64/wheel/nats 2024-04-08 15:16:35,451 root INFO copying build/lib/nats/errors.py -> build/bdist.linux-x86_64/wheel/nats 2024-04-08 15:16:35,451 root INFO copying build/lib/nats/nuid.py -> build/bdist.linux-x86_64/wheel/nats 2024-04-08 15:16:35,451 root INFO creating build/bdist.linux-x86_64/wheel/nats/aio 2024-04-08 15:16:35,451 root INFO copying build/lib/nats/aio/subscription.py -> build/bdist.linux-x86_64/wheel/nats/aio 2024-04-08 15:16:35,451 root INFO copying build/lib/nats/aio/transport.py -> build/bdist.linux-x86_64/wheel/nats/aio 2024-04-08 15:16:35,451 root INFO copying build/lib/nats/aio/client.py -> build/bdist.linux-x86_64/wheel/nats/aio 2024-04-08 15:16:35,451 root INFO copying build/lib/nats/aio/msg.py -> build/bdist.linux-x86_64/wheel/nats/aio 2024-04-08 15:16:35,451 root INFO copying build/lib/nats/aio/__init__.py -> build/bdist.linux-x86_64/wheel/nats/aio 2024-04-08 15:16:35,451 root INFO copying build/lib/nats/aio/errors.py -> build/bdist.linux-x86_64/wheel/nats/aio 2024-04-08 15:16:35,452 root INFO running install_egg_info 2024-04-08 15:16:35,453 root INFO Copying nats_py.egg-info to build/bdist.linux-x86_64/wheel/nats_py-2.6.0-py3.12.egg-info 2024-04-08 15:16:35,453 root INFO running install_scripts 2024-04-08 15:16:35,455 wheel INFO creating build/bdist.linux-x86_64/wheel/nats_py-2.6.0.dist-info/WHEEL 2024-04-08 15:16:35,455 wheel INFO creating '/home/patrycja/aports/community/py3-nats/src/nats.py-2.6.0/.dist/.tmp-mn049hj7/nats_py-2.6.0-py3-none-any.whl' and adding 'build/bdist.linux-x86_64/wheel' to it 2024-04-08 15:16:35,455 wheel INFO adding 'nats/__init__.py' 2024-04-08 15:16:35,455 wheel INFO adding 'nats/errors.py' 2024-04-08 15:16:35,455 wheel INFO adding 'nats/nuid.py' 2024-04-08 15:16:35,455 wheel INFO adding 'nats/py.typed' 2024-04-08 15:16:35,456 wheel INFO adding 'nats/aio/__init__.py' 2024-04-08 15:16:35,456 wheel INFO adding 'nats/aio/client.py' 2024-04-08 15:16:35,456 wheel INFO adding 'nats/aio/errors.py' 2024-04-08 15:16:35,456 wheel INFO adding 'nats/aio/msg.py' 2024-04-08 15:16:35,456 wheel INFO adding 'nats/aio/subscription.py' 2024-04-08 15:16:35,456 wheel INFO adding 'nats/aio/transport.py' 2024-04-08 15:16:35,456 wheel INFO adding 'nats/js/__init__.py' 2024-04-08 15:16:35,456 wheel INFO adding 'nats/js/api.py' 2024-04-08 15:16:35,457 wheel INFO adding 'nats/js/client.py' 2024-04-08 15:16:35,457 wheel INFO adding 'nats/js/errors.py' 2024-04-08 15:16:35,457 wheel INFO adding 'nats/js/kv.py' 2024-04-08 15:16:35,457 wheel INFO adding 'nats/js/manager.py' 2024-04-08 15:16:35,457 wheel INFO adding 'nats/js/object_store.py' 2024-04-08 15:16:35,457 wheel INFO adding 'nats/protocol/__init__.py' 2024-04-08 15:16:35,457 wheel INFO adding 'nats/protocol/command.py' 2024-04-08 15:16:35,457 wheel INFO adding 'nats/protocol/parser.py' 2024-04-08 15:16:35,458 wheel INFO adding 'nats_py-2.6.0.dist-info/LICENSE' 2024-04-08 15:16:35,458 wheel INFO adding 'nats_py-2.6.0.dist-info/METADATA' 2024-04-08 15:16:35,458 wheel INFO adding 'nats_py-2.6.0.dist-info/WHEEL' 2024-04-08 15:16:35,458 wheel INFO adding 'nats_py-2.6.0.dist-info/top_level.txt' 2024-04-08 15:16:35,458 wheel INFO adding 'nats_py-2.6.0.dist-info/zip-safe' 2024-04-08 15:16:35,458 wheel INFO adding 'nats_py-2.6.0.dist-info/RECORD' 2024-04-08 15:16:35,458 wheel INFO removing build/bdist.linux-x86_64/wheel 2024-04-08 15:16:35,459 gpep517 INFO The backend produced .dist/nats_py-2.6.0-py3-none-any.whl nats_py-2.6.0-py3-none-any.whl ============================= test session starts ============================== platform linux -- Python 3.12.2, pytest-8.1.1, pluggy-1.4.0 rootdir: /home/patrycja/aports/community/py3-nats/src/nats.py-2.6.0 configfile: pyproject.toml plugins: cov-4.1.0 collected 176 items / 2 deselected / 174 selected tests/test_client.py ................................................... [ 29%] .sssss....ss.................. [ 46%] tests/test_client_async_await.py .... [ 48%] tests/test_client_nkeys.py ssss [ 51%] tests/test_client_v2.py ... [ 52%] tests/test_client_websocket.py ........ [ 57%] tests/test_js.py ...........................................F...s....... [ 89%] . [ 89%] tests/test_nuid.py ..... [ 92%] tests/test_parser.py ............. [100%] =================================== FAILURES =================================== ____________________________ KVTest.test_kv_simple _____________________________ self = @async_test async def test_kv_simple(self): errors = [] async def error_handler(e): print("Error:", e, type(e)) errors.append(e) nc = await nats.connect(error_cb=error_handler) js = nc.jetstream() kv = await js.create_key_value(bucket="TEST", history=5, ttl=3600) status = await kv.status() assert status.bucket == "TEST" assert status.values == 0 assert status.history == 5 assert status.ttl == 3600 seq = await kv.put("hello", b'world') assert seq == 1 entry = await kv.get("hello") assert "hello" == entry.key assert b'world' == entry.value status = await kv.status() assert status.values == 1 for i in range(0, 100): await kv.put(f"hello.{i}", b'Hello JS KV!') status = await kv.status() assert status.values == 101 await kv.delete("hello.1") # Get after delete is again a not found error. with pytest.raises(KeyNotFoundError) as err: await kv.get("hello.1") assert err.value.entry.key == 'hello.1' assert err.value.entry.revision == 102 assert err.value.entry.value == None assert err.value.op == 'DEL' await kv.purge("hello.5") with pytest.raises(KeyNotFoundError) as err: await kv.get("hello.5") status = await kv.status() assert status.values == 102 await kv.purge("hello.*") with pytest.raises(NotFoundError): await kv.get("hello.5") status = await kv.status() > assert status.values == 2 E AssertionError: assert 1 == 2 E + where 1 = KeyValue.BucketStatus(stream_info=StreamInfo(config=StreamConfig(name='KV_TEST', description=None, subjects=['$KV.TEST...'NCRVYODK6AXEHAGXIUYNGV44JYTJ2APNU4TBWTBETLRBC3ZEXMG37EYC', name=None, replicas=None), did_create=None), bucket='TEST').values tests/test_js.py:2098: AssertionError =============================== warnings summary =============================== tests/test_js.py::PullSubscribeTest::test_fetch_concurrent /usr/lib/python3.12/_weakrefset.py:88: RuntimeWarning: coroutine 'Queue.get' was never awaited self.data.add(ref(item, self._remove)) Object allocated at: File "/home/patrycja/aports/community/py3-nats/src/nats.py-2.6.0/nats/aio/subscription.py", line 186 asyncio.wait_for(self._pending_queue.get(), timeout) -- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html =========================== short test summary info ============================ FAILED tests/test_js.py::KVTest::test_kv_simple - AssertionError: assert 1 == 2 = 1 failed, 161 passed, 12 skipped, 2 deselected, 1 warning in 143.38s (0:02:23) = >>> ERROR: py3-nats: check failed >>> ERROR: py3-nats: rootbld failed >>> py3-nats: Cleaning up build chroot