>>> py3-memory-profiler: Checking sanity of /home/patrycja/aports/testing/py3-memory-profiler/APKBUILD... >>> py3-memory-profiler: Cleaning up srcdir >>> py3-memory-profiler: Cleaning up pkgdir >>> py3-memory-profiler: Cleaning up tmpdir >>> py3-memory-profiler: Fetching py3-memory-profiler-0.61.tar.gz::https://github.com/pythonprofilers/memory_profiler/archive/refs/tags/v0.61.tar.gz >>> py3-memory-profiler: Fetching py3-memory-profiler-0.61.tar.gz::https://github.com/pythonprofilers/memory_profiler/archive/refs/tags/v0.61.tar.gz >>> py3-memory-profiler: Checking sha512sums... py3-memory-profiler-0.61.tar.gz: OK assertRaisesRegexp.patch: OK >>> py3-memory-profiler: Preparing build chroot... (1/108) Installing musl (1.2.5-r0) (2/108) Installing ca-certificates-bundle (20240226-r0) (3/108) Installing libcrypto3 (3.2.1-r2) (4/108) Installing libssl3 (3.2.1-r2) (5/108) Installing zlib (1.3.1-r0) (6/108) Installing apk-tools (2.14.3-r1) (7/108) Installing libattr (2.5.2-r0) (8/108) Installing attr (2.5.2-r0) (9/108) Installing libcap2 (2.69-r1) (10/108) Installing libcap-getcap (2.69-r1) (11/108) Installing fakeroot (1.33-r0) (12/108) Installing scanelf (1.3.7-r2) (13/108) Installing musl-utils (1.2.5-r0) (14/108) Installing libgcc (13.2.1_git20240309-r0) (15/108) Installing libstdc++ (13.2.1_git20240309-r0) (16/108) Installing lzip (1.24.1-r0) (17/108) Installing openssl (3.2.1-r2) (18/108) Installing patch (2.7.6-r10) (19/108) Installing pkgconf (2.2.0-r0) (20/108) Installing libacl (2.3.2-r0) (21/108) Installing tar (1.35-r2) (22/108) Installing busybox (1.36.1-r25) Executing busybox-1.36.1-r25.post-install (23/108) Installing ssl_client (1.36.1-r25) (24/108) Installing busybox-binsh (1.36.1-r25) (25/108) Installing abuild (3.12.0-r5) Executing abuild-3.12.0-r5.pre-install (26/108) Installing abuild-sudo (3.12.0-r5) (27/108) Installing alpine-baselayout-data (3.6.3-r0) (28/108) 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/108) Installing ifupdown-ng (0.12.1-r5) (30/108) Installing openrc (0.54-r1) Executing openrc-0.54-r1.post-install (31/108) Installing mdev-conf (4.6-r0) (32/108) Installing busybox-mdev-openrc (1.36.1-r25) (33/108) Installing alpine-conf (3.17.2-r0) (34/108) Installing alpine-keys (2.4-r1) (35/108) Installing alpine-release (3.20.0_alpha20240329-r0) (36/108) Installing busybox-openrc (1.36.1-r25) (37/108) Installing busybox-suid (1.36.1-r25) (38/108) Installing alpine-base (3.20.0_alpha20240329-r0) (39/108) Installing jansson (2.14-r4) (40/108) Installing zstd-libs (1.5.6-r0) (41/108) Installing binutils (2.42-r0) (42/108) Installing libmagic (5.45-r1) (43/108) Installing file (5.45-r1) (44/108) Installing libgomp (13.2.1_git20240309-r0) (45/108) Installing libatomic (13.2.1_git20240309-r0) (46/108) Installing gmp (6.3.0-r0) (47/108) Installing isl26 (0.26-r1) (48/108) Installing mpfr4 (4.2.1-r0) (49/108) Installing mpc1 (1.3.1-r1) (50/108) Installing gcc (13.2.1_git20240309-r0) (51/108) Installing libstdc++-dev (13.2.1_git20240309-r0) (52/108) Installing musl-dev (1.2.5-r0) (53/108) Installing g++ (13.2.1_git20240309-r0) (54/108) Installing make (4.4.1-r2) (55/108) Installing fortify-headers (1.1-r3) (56/108) Installing build-base (0.5-r3) (57/108) Installing hiredis (1.2.0-r0) (58/108) Installing libxxhash (0.8.2-r2) (59/108) Installing ccache (4.9.1-r0) (60/108) Installing ca-certificates (20240226-r0) (61/108) Installing brotli-libs (1.1.0-r2) (62/108) Installing c-ares (1.28.1-r0) (63/108) Installing libunistring (1.2-r0) (64/108) Installing libidn2 (2.3.7-r0) (65/108) Installing nghttp2-libs (1.61.0-r0) (66/108) Installing libpsl (0.21.5-r1) (67/108) Installing libcurl (8.7.1-r0) (68/108) Installing libexpat (2.6.2-r0) (69/108) Installing pcre2 (10.43-r0) (70/108) Installing git (2.44.0-r2) (71/108) Installing git-init-template (2.44.0-r2) (72/108) Installing libbz2 (1.0.8-r6) (73/108) Installing libffi (3.4.6-r0) (74/108) Installing gdbm (1.23-r1) (75/108) Installing xz-libs (5.6.1-r2) (76/108) Installing mpdecimal (4.0.0-r0) (77/108) Installing ncurses-terminfo-base (6.4_p20240330-r0) (78/108) Installing libncursesw (6.4_p20240330-r0) (79/108) Installing libpanelw (6.4_p20240330-r0) (80/108) Installing readline (8.2.10-r0) (81/108) Installing sqlite-libs (3.45.2-r0) (82/108) Installing python3 (3.12.2-r0) (83/108) Installing python3-pycache-pyc0 (3.12.2-r0) (84/108) Installing pyc (3.12.2-r0) (85/108) Installing py3-installer-pyc (0.7.0-r2) (86/108) Installing py3-gpep517-pyc (15-r2) (87/108) Installing python3-pyc (3.12.2-r0) (88/108) Installing py3-installer (0.7.0-r2) (89/108) Installing py3-gpep517 (15-r2) (90/108) Installing py3-psutil (5.9.8-r1) (91/108) Installing py3-psutil-pyc (5.9.8-r1) (92/108) Installing py3-iniconfig (2.0.0-r1) (93/108) Installing py3-iniconfig-pyc (2.0.0-r1) (94/108) Installing py3-parsing (3.1.2-r1) (95/108) Installing py3-parsing-pyc (3.1.2-r1) (96/108) Installing py3-packaging (24.0-r1) (97/108) Installing py3-packaging-pyc (24.0-r1) (98/108) Installing py3-pluggy (1.4.0-r1) (99/108) Installing py3-pluggy-pyc (1.4.0-r1) (100/108) Installing py3-py (1.11.0-r3) (101/108) Installing py3-py-pyc (1.11.0-r3) (102/108) Installing py3-pytest (8.1.1-r1) (103/108) Installing py3-pytest-pyc (8.1.1-r1) (104/108) Installing py3-setuptools (69.2.0-r1) (105/108) Installing py3-setuptools-pyc (69.2.0-r1) (106/108) Installing py3-wheel (0.42.0-r1) (107/108) Installing py3-wheel-pyc (0.42.0-r1) (108/108) Installing tini (0.19.0-r3) Executing busybox-1.36.1-r25.trigger Executing ca-certificates-20240226-r0.trigger OK: 295 MiB in 108 packages >>> py3-memory-profiler: Fetching py3-memory-profiler-0.61.tar.gz::https://github.com/pythonprofilers/memory_profiler/archive/refs/tags/v0.61.tar.gz >>> py3-memory-profiler: Checking sha512sums... py3-memory-profiler-0.61.tar.gz: OK assertRaisesRegexp.patch: OK >>> py3-memory-profiler: Unpacking /var/cache/distfiles/py3-memory-profiler-0.61.tar.gz... >>> py3-memory-profiler: assertRaisesRegexp.patch patching file test/test_exit_code.py 2024-04-11 20:21:26,430 gpep517 INFO Building wheel via backend setuptools.build_meta 2024-04-11 20:21:26,458 root INFO running bdist_wheel 2024-04-11 20:21:26,468 root INFO running build 2024-04-11 20:21:26,468 root INFO running build_py 2024-04-11 20:21:26,469 root INFO creating build 2024-04-11 20:21:26,469 root INFO creating build/lib 2024-04-11 20:21:26,469 root INFO copying memory_profiler.py -> build/lib 2024-04-11 20:21:26,470 root INFO copying mprof.py -> build/lib 2024-04-11 20:21:26,472 wheel INFO installing to build/bdist.linux-x86_64/wheel 2024-04-11 20:21:26,472 root INFO running install 2024-04-11 20:21:26,477 root INFO running install_lib 2024-04-11 20:21:26,478 root INFO creating build/bdist.linux-x86_64 2024-04-11 20:21:26,478 root INFO creating build/bdist.linux-x86_64/wheel 2024-04-11 20:21:26,479 root INFO copying build/lib/mprof.py -> build/bdist.linux-x86_64/wheel 2024-04-11 20:21:26,479 root INFO copying build/lib/memory_profiler.py -> build/bdist.linux-x86_64/wheel 2024-04-11 20:21:26,479 root INFO running install_egg_info 2024-04-11 20:21:26,481 root INFO running egg_info 2024-04-11 20:21:26,481 root INFO creating memory_profiler.egg-info 2024-04-11 20:21:26,482 root INFO writing memory_profiler.egg-info/PKG-INFO 2024-04-11 20:21:26,482 root INFO writing dependency_links to memory_profiler.egg-info/dependency_links.txt 2024-04-11 20:21:26,482 root INFO writing entry points to memory_profiler.egg-info/entry_points.txt 2024-04-11 20:21:26,483 root INFO writing requirements to memory_profiler.egg-info/requires.txt 2024-04-11 20:21:26,483 root INFO writing top-level names to memory_profiler.egg-info/top_level.txt 2024-04-11 20:21:26,483 root INFO writing manifest file 'memory_profiler.egg-info/SOURCES.txt' 2024-04-11 20:21:26,484 root INFO reading manifest file 'memory_profiler.egg-info/SOURCES.txt' 2024-04-11 20:21:26,484 root INFO adding license file 'COPYING' 2024-04-11 20:21:26,484 root INFO writing manifest file 'memory_profiler.egg-info/SOURCES.txt' 2024-04-11 20:21:26,485 root INFO Copying memory_profiler.egg-info to build/bdist.linux-x86_64/wheel/memory_profiler-0.61.0-py3.12.egg-info 2024-04-11 20:21:26,485 root INFO running install_scripts 2024-04-11 20:21:26,487 wheel INFO creating build/bdist.linux-x86_64/wheel/memory_profiler-0.61.0.dist-info/WHEEL 2024-04-11 20:21:26,487 wheel INFO creating '/home/patrycja/aports/testing/py3-memory-profiler/src/memory_profiler-0.61/.dist/.tmp-yvnmksnr/memory_profiler-0.61.0-py3-none-any.whl' and adding 'build/bdist.linux-x86_64/wheel' to it 2024-04-11 20:21:26,487 wheel INFO adding 'memory_profiler.py' 2024-04-11 20:21:26,488 wheel INFO adding 'mprof.py' 2024-04-11 20:21:26,488 wheel INFO adding 'memory_profiler-0.61.0.dist-info/COPYING' 2024-04-11 20:21:26,488 wheel INFO adding 'memory_profiler-0.61.0.dist-info/METADATA' 2024-04-11 20:21:26,488 wheel INFO adding 'memory_profiler-0.61.0.dist-info/WHEEL' 2024-04-11 20:21:26,488 wheel INFO adding 'memory_profiler-0.61.0.dist-info/entry_points.txt' 2024-04-11 20:21:26,488 wheel INFO adding 'memory_profiler-0.61.0.dist-info/top_level.txt' 2024-04-11 20:21:26,488 wheel INFO adding 'memory_profiler-0.61.0.dist-info/RECORD' 2024-04-11 20:21:26,488 wheel INFO removing build/bdist.linux-x86_64/wheel 2024-04-11 20:21:26,489 gpep517 INFO The backend produced .dist/memory_profiler-0.61.0-py3-none-any.whl memory_profiler-0.61.0-py3-none-any.whl Filename: test/test_func.py Line # Mem usage Increment Occurrences Line Contents ============================================================= 2 18.645 MiB 18.645 MiB 2 @profile 3 def test_1(i): 4 # .. will be called twice .. 5 18.645 MiB 0.000 MiB 2 c = {} 6 19.270 MiB 0.000 MiB 10012 for i in range(i): 7 19.270 MiB 0.625 MiB 10010 c[i] = 2 Filename: test/test_loop.py Line # Mem usage Increment Occurrences Line Contents ============================================================= 11 19.340 MiB 19.340 MiB 1 @profile 12 def test_2(): 13 26.980 MiB 7.641 MiB 1 a = [1] * (10 ** 6) 14 179.457 MiB 152.477 MiB 1 b = [2] * (2 * 10 ** 7) 15 26.977 MiB -152.480 MiB 1 del b 16 17 26.977 MiB 0.000 MiB 3 for i in range(2): 18 26.977 MiB 0.000 MiB 2 a = [1] * (10 ** 6) 19 179.465 MiB 304.969 MiB 2 b = [2] * (2 * 10 ** 7) 20 26.977 MiB -304.977 MiB 2 del b 21 26.977 MiB 0.000 MiB 1 return a Filename: test/test_mprofile.py Line # Mem usage Increment Occurrences Line Contents ============================================================= 5 18.801 MiB 18.801 MiB 1 @profile 6 def test1(l): 7 """test1 docstring""" 8 19.551 MiB 0.750 MiB 1 a = [1] * l 9 19.551 MiB 0.000 MiB 1 time.sleep(1) 10 19.551 MiB 0.000 MiB 1 return a Filename: test/test_mprofile.py Line # Mem usage Increment Occurrences Line Contents ============================================================= 12 18.887 MiB 18.887 MiB 1 @profile 13 def test2(l): 14 20.387 MiB 1.500 MiB 1 b = [1] * l 15 20.387 MiB 0.000 MiB 1 time.sleep(1) 16 20.387 MiB 0.000 MiB 1 return b Filename: test/test_as.py Line # Mem usage Increment Occurrences Line Contents ============================================================= 3 18.605 MiB 18.605 MiB 1 @profile 4 def f(): 5 18.605 MiB 0.000 MiB 1 o = math.sqrt(2013) 6 18.605 MiB 0.000 MiB 1 return o Filename: test/test_precision_command_line.py Line # Mem usage Increment Occurrences Line Contents ============================================================= 11 18.793 MiB 18.793 MiB 1 @profile(precision=4) 12 def test_1(): 13 26.492 MiB 7.699 MiB 1 a = [1] * (10 ** 6) 14 179.090 MiB 152.598 MiB 1 b = [2] * (2 * 10 ** 7) 15 179.090 MiB 0.000 MiB 1 time.sleep(0.6) 16 26.500 MiB -152.590 MiB 1 del b 17 18 26.500 MiB 0.000 MiB 3 for i in range(2): 19 26.500 MiB -0.008 MiB 2 a = [1] * (10 ** 6) 20 179.082 MiB 305.148 MiB 2 b = [2] * (2 * 10 ** 7) 21 26.492 MiB -305.180 MiB 2 del b 22 26.492 MiB -0.008 MiB 1 return a Filename: test/test_precision_command_line.py Line # Mem usage Increment Occurrences Line Contents ============================================================= 24 18.859 MiB 18.859 MiB 1 @profile(precision=2) 25 def test_2(): 26 18.859 MiB 0.000 MiB 1 a = {} 27 18.859 MiB 0.000 MiB 1 time.sleep(0.5) 28 19.609 MiB 0.125 MiB 10001 for i in range(10000): 29 19.609 MiB 0.625 MiB 10000 a[i] = i + 1 30 19.609 MiB 0.000 MiB 1 time.sleep(0.6) 31 19.609 MiB 0.000 MiB 1 return Filename: test/test_gen.py Line # Mem usage Increment Occurrences Line Contents ============================================================= 2 18.922 MiB 18.922 MiB 1 @profile 3 def my_func(): 4 26.535 MiB 7.613 MiB 1 a = [1] * (10 ** 6) 5 179.133 MiB 152.598 MiB 1 b = [2] * (2 * 10 ** 7) 6 26.555 MiB -152.578 MiB 1 del b 7 26.555 MiB 0.000 MiB 2 yield a Filename: test/test_gen.py Line # Mem usage Increment Occurrences Line Contents ============================================================= 10 18.922 MiB 18.922 MiB 1 @profile 11 def test_comprehension(): 12 # Dict comprehension 13 30.922 MiB 12.000 MiB 40 d_comp = dict((str(k*k), [v] * (1<<17)) 14 29.922 MiB 0.000 MiB 13 for (v, k) in enumerate(range(99, 111))) 15 16 # List comprehension 17 50.297 MiB 19.375 MiB 100 l_comp = [[i] * (i<<9) for i in range(99)] 18 30.996 MiB -19.301 MiB 1 del l_comp 19 18.926 MiB -12.070 MiB 1 del d_comp 20 21 32.051 MiB 0.000 MiB 4 def hh(x=1): 22 # Set comprehension 23 53.676 MiB -298.250 MiB 135 s_comp = set(('Z',) * (k<<13) for k in range(x, 19 + 2*x)) 24 53.676 MiB 0.000 MiB 3 return s_comp 25 26 18.926 MiB -13.125 MiB 1 val = [range(1, 4), max(1, 4), 42 + len(hh())] 27 40.969 MiB -12.707 MiB 1 val = hh() | hh(4) 28 40.969 MiB 0.000 MiB 1 val.add(40) 29 60.219 MiB 19.250 MiB 100 l1_comp = [[(1, i)] * (i<<9) for i in range(99)] 30 79.594 MiB 19.375 MiB 100 l2_comp = [[(3, i)] * (i<<9) for i in range(99)] 31 32 79.594 MiB 0.000 MiB 1 return val Filename: test/test_gen.py Line # Mem usage Increment Occurrences Line Contents ============================================================= 35 18.922 MiB 18.922 MiB 1 @profile 36 def test_generator(): 37 42.922 MiB 24.000 MiB 9 a_gen = ([42] * (1<<20) for __ in '123') 38 42.922 MiB 0.000 MiB 1 huge_lst = list(a_gen) 39 40 42.922 MiB 0.000 MiB 1 b_gen = ([24] * (1<<20) for __ in '123') 41 42.922 MiB 0.000 MiB 1 del b_gen 42 18.922 MiB -24.000 MiB 1 del huge_lst 43 44 18.922 MiB 0.000 MiB 1 return a_gen Filename: test/test_unicode.py Line # Mem usage Increment Occurrences Line Contents ============================================================= 2 18.797 MiB 18.797 MiB 1 @profile 3 def test_unicode(txt): 4 # test when unicode is present 5 18.797 MiB 0.000 MiB 1 txt = txt.replace (u"ی", u"ي") #Arabic Yah = ي 6 18.797 MiB 0.000 MiB 1 return txt Filename: /home/patrycja/aports/testing/py3-memory-profiler/src/memory_profiler-0.61/test/test_import.py Line # Mem usage Increment Occurrences Line Contents ============================================================= 4 18.5 MiB 18.5 MiB 1 @profile 5 def my_func(): 6 26.1 MiB 7.6 MiB 1 a = [1] * (10 ** 6) 7 178.7 MiB 152.6 MiB 1 b = [2] * (2 * 10 ** 7) 8 26.2 MiB -152.6 MiB 1 del b 9 26.2 MiB 0.0 MiB 1 return a Filename: /home/patrycja/aports/testing/py3-memory-profiler/src/memory_profiler-0.61/test/test_precision_import.py Line # Mem usage Increment Occurrences Line Contents ============================================================= 13 18.5273 MiB 18.5273 MiB 1 @profile(precision=4) 14 def test_1(): 15 26.0742 MiB 7.5469 MiB 1 a = [1] * (10 ** 6) 16 178.6719 MiB 152.5977 MiB 1 b = [2] * (2 * 10 ** 7) 17 178.6719 MiB 0.0000 MiB 1 time.sleep(0.6) 18 26.1875 MiB -152.4844 MiB 1 del b 19 20 26.1875 MiB 0.0000 MiB 3 for i in range(2): 21 26.1875 MiB 0.0000 MiB 2 a = [1] * (10 ** 6) 22 178.6797 MiB 304.9766 MiB 2 b = [2] * (2 * 10 ** 7) 23 26.1875 MiB -304.9844 MiB 2 del b 24 26.1875 MiB 0.0000 MiB 1 return a Filename: /home/patrycja/aports/testing/py3-memory-profiler/src/memory_profiler-0.61/test/test_precision_import.py Line # Mem usage Increment Occurrences Line Contents ============================================================= 26 18.55469 MiB 18.55469 MiB 1 @profile(precision=5) 27 def test_2(): 28 18.55469 MiB 0.00000 MiB 1 a = {} 29 18.55469 MiB 0.00000 MiB 1 time.sleep(0.5) 30 19.16406 MiB 0.25000 MiB 10001 for i in range(10000): 31 19.16406 MiB 0.35938 MiB 10000 a[i] = i + 1 32 19.16406 MiB 0.00000 MiB 1 time.sleep(0.6) 33 19.16406 MiB 0.00000 MiB 1 return Success Traceback (most recent call last): File "", line 198, in _run_module_as_main File "", line 88, in _run_code File "/home/patrycja/aports/testing/py3-memory-profiler/src/memory_profiler-0.61/memory_profiler.py", line 1351, in exec_with_profiler(script_filename, prof, args.backend, script_args) File "/home/patrycja/aports/testing/py3-memory-profiler/src/memory_profiler-0.61/memory_profiler.py", line 1252, in exec_with_profiler exec(compile(f.read(), filename, 'exec'), ns, ns) File "/tmp/tmpa47db864.py", line 1, in raise RuntimeError('I am not working nicely') RuntimeError: I am not working nicely ERROR:mprof:Program resulted with a non-zero exit code: 1 ..Traceback (most recent call last): File "", line 198, in _run_module_as_main File "", line 88, in _run_code File "/home/patrycja/aports/testing/py3-memory-profiler/src/memory_profiler-0.61/memory_profiler.py", line 1351, in exec_with_profiler(script_filename, prof, args.backend, script_args) File "/home/patrycja/aports/testing/py3-memory-profiler/src/memory_profiler-0.61/memory_profiler.py", line 1252, in exec_with_profiler exec(compile(f.read(), filename, 'exec'), ns, ns) File "/tmp/tmp4hrd1c5v.py", line 1, in raise RuntimeError('I am not working nicely') RuntimeError: I am not working nicely . ---------------------------------------------------------------------- Ran 3 tests in 0.338s OK : Sampling memory every 0.1s running new process running as a Python program... : Sampling memory every 0.1s running new process running as a Python program... : Sampling memory every 0.1s running new process running as a Python program... . ---------------------------------------------------------------------- Ran 1 test in 0.000s OK Traceback (most recent call last): File "/home/patrycja/aports/testing/py3-memory-profiler/src/memory_profiler-0.61/test/test_async.py", line 24, in asyncio.run(main()) # main loop ^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.12/asyncio/runners.py", line 194, in run return runner.run(main) ^^^^^^^^^^^^^^^^ File "/usr/lib/python3.12/asyncio/runners.py", line 118, in run return self._loop.run_until_complete(task) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.12/asyncio/base_events.py", line 685, in run_until_complete return future.result() ^^^^^^^^^^^^^^^ File "/home/patrycja/aports/testing/py3-memory-profiler/src/memory_profiler-0.61/test/test_async.py", line 15, in main task = asyncio.create_task(my_func()) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.12/asyncio/tasks.py", line 420, in create_task task = loop.create_task(coro) ^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.12/asyncio/base_events.py", line 457, in create_task task = tasks.Task(coro, loop=self, name=name, context=context) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ TypeError: a coroutine was expected, got >>> ERROR: py3-memory-profiler: check failed >>> ERROR: py3-memory-profiler: rootbld failed >>> py3-memory-profiler: Cleaning up build chroot