>>> py3-memory-profiler: Building testing/py3-memory-profiler 0.61-r0 (using abuild 3.11.10-r0) started Thu, 22 Jun 2023 14:18:34 +0000 >>> py3-memory-profiler: Checking sanity of /home/buildozer/aports/testing/py3-memory-profiler/APKBUILD... >>> py3-memory-profiler: Analyzing dependencies... >>> py3-memory-profiler: Installing for build: build-base py3-psutil py3-gpep517 py3-setuptools py3-wheel py3-pytest (1/35) Installing libbz2 (1.0.8-r6) (2/35) Installing libffi (3.4.4-r3) (3/35) Installing gdbm (1.23-r1) (4/35) Installing xz-libs (5.4.3-r1) (5/35) Installing mpdecimal (2.5.1-r2) (6/35) Installing libpanelw (6.4_p20230617-r0) (7/35) Installing readline (8.2.1-r2) (8/35) Installing sqlite-libs (3.42.0-r2) (9/35) Installing python3 (3.11.4-r0) (10/35) Installing python3-pycache-pyc0 (3.11.4-r0) (11/35) Installing pyc (0.1-r0) (12/35) Installing py3-psutil-pyc (5.9.5-r1) (13/35) Installing python3-pyc (3.11.4-r0) (14/35) Installing py3-psutil (5.9.5-r1) (15/35) Installing py3-installer (0.7.0-r1) (16/35) Installing py3-installer-pyc (0.7.0-r1) (17/35) Installing py3-gpep517 (13-r2) (18/35) Installing py3-gpep517-pyc (13-r2) (19/35) Installing py3-parsing (3.1.0-r0) (20/35) Installing py3-parsing-pyc (3.1.0-r0) (21/35) Installing py3-packaging (23.1-r1) (22/35) Installing py3-packaging-pyc (23.1-r1) (23/35) Installing py3-setuptools (68.0.0-r0) (24/35) Installing py3-setuptools-pyc (68.0.0-r0) (25/35) Installing py3-wheel (0.40.0-r1) (26/35) Installing py3-wheel-pyc (0.40.0-r1) (27/35) Installing py3-iniconfig (1.1.1-r6) (28/35) Installing py3-iniconfig-pyc (1.1.1-r6) (29/35) Installing py3-pluggy (1.2.0-r0) (30/35) Installing py3-pluggy-pyc (1.2.0-r0) (31/35) Installing py3-py (1.11.0-r2) (32/35) Installing py3-py-pyc (1.11.0-r2) (33/35) Installing py3-pytest (7.3.2-r0) (34/35) Installing py3-pytest-pyc (7.3.2-r0) (35/35) Installing .makedepends-py3-memory-profiler (20230622.141835) Executing busybox-1.36.1-r1.trigger OK: 401 MiB in 140 packages >>> py3-memory-profiler: Cleaning up srcdir >>> py3-memory-profiler: Cleaning up pkgdir >>> py3-memory-profiler: Cleaning up tmpdir >>> py3-memory-profiler: Fetching https://distfiles.alpinelinux.org/distfiles/edge//py3-memory-profiler-0.61.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-memory-profiler: Fetching py3-memory-profiler-0.61.tar.gz::https://github.com/pythonprofilers/memory_profiler/archive/refs/tags/v0.61.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 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0 100 141k 0 141k 0 0 127k 0 --:--:-- 0:00:01 --:--:-- 127k >>> py3-memory-profiler: Fetching https://distfiles.alpinelinux.org/distfiles/edge//py3-memory-profiler-0.61.tar.gz >>> py3-memory-profiler: Checking sha512sums... py3-memory-profiler-0.61.tar.gz: OK >>> py3-memory-profiler: Unpacking /var/cache/distfiles/edge/py3-memory-profiler-0.61.tar.gz... 2023-06-22 14:18:37,431 gpep517 INFO Building wheel via backend setuptools.build_meta 2023-06-22 14:18:37,465 root INFO running bdist_wheel 2023-06-22 14:18:37,471 root INFO running build 2023-06-22 14:18:37,471 root INFO running build_py 2023-06-22 14:18:37,473 root INFO creating build 2023-06-22 14:18:37,473 root INFO creating build/lib 2023-06-22 14:18:37,473 root INFO copying memory_profiler.py -> build/lib 2023-06-22 14:18:37,473 root INFO copying mprof.py -> build/lib 2023-06-22 14:18:37,476 wheel INFO installing to build/bdist.linux-s390x/wheel 2023-06-22 14:18:37,476 root INFO running install 2023-06-22 14:18:37,481 root INFO running install_lib 2023-06-22 14:18:37,482 root INFO creating build/bdist.linux-s390x 2023-06-22 14:18:37,482 root INFO creating build/bdist.linux-s390x/wheel 2023-06-22 14:18:37,483 root INFO copying build/lib/mprof.py -> build/bdist.linux-s390x/wheel 2023-06-22 14:18:37,483 root INFO copying build/lib/memory_profiler.py -> build/bdist.linux-s390x/wheel 2023-06-22 14:18:37,483 root INFO running install_egg_info 2023-06-22 14:18:37,488 root INFO running egg_info 2023-06-22 14:18:37,488 root INFO creating memory_profiler.egg-info 2023-06-22 14:18:37,489 root INFO writing memory_profiler.egg-info/PKG-INFO 2023-06-22 14:18:37,489 root INFO writing dependency_links to memory_profiler.egg-info/dependency_links.txt 2023-06-22 14:18:37,489 root INFO writing entry points to memory_profiler.egg-info/entry_points.txt 2023-06-22 14:18:37,489 root INFO writing requirements to memory_profiler.egg-info/requires.txt 2023-06-22 14:18:37,489 root INFO writing top-level names to memory_profiler.egg-info/top_level.txt 2023-06-22 14:18:37,489 root INFO writing manifest file 'memory_profiler.egg-info/SOURCES.txt' 2023-06-22 14:18:37,490 root INFO reading manifest file 'memory_profiler.egg-info/SOURCES.txt' 2023-06-22 14:18:37,490 root INFO adding license file 'COPYING' 2023-06-22 14:18:37,491 root INFO writing manifest file 'memory_profiler.egg-info/SOURCES.txt' 2023-06-22 14:18:37,491 root INFO Copying memory_profiler.egg-info to build/bdist.linux-s390x/wheel/memory_profiler-0.61.0-py3.11.egg-info 2023-06-22 14:18:37,491 root INFO running install_scripts 2023-06-22 14:18:37,493 wheel INFO creating build/bdist.linux-s390x/wheel/memory_profiler-0.61.0.dist-info/WHEEL 2023-06-22 14:18:37,494 wheel INFO creating '/home/buildozer/aports/testing/py3-memory-profiler/src/memory_profiler-0.61/.dist/.tmp-ou91u7wr/memory_profiler-0.61.0-py3-none-any.whl' and adding 'build/bdist.linux-s390x/wheel' to it 2023-06-22 14:18:37,494 wheel INFO adding 'memory_profiler.py' 2023-06-22 14:18:37,494 wheel INFO adding 'mprof.py' 2023-06-22 14:18:37,494 wheel INFO adding 'memory_profiler-0.61.0.dist-info/COPYING' 2023-06-22 14:18:37,494 wheel INFO adding 'memory_profiler-0.61.0.dist-info/METADATA' 2023-06-22 14:18:37,494 wheel INFO adding 'memory_profiler-0.61.0.dist-info/WHEEL' 2023-06-22 14:18:37,495 wheel INFO adding 'memory_profiler-0.61.0.dist-info/entry_points.txt' 2023-06-22 14:18:37,495 wheel INFO adding 'memory_profiler-0.61.0.dist-info/top_level.txt' 2023-06-22 14:18:37,495 wheel INFO adding 'memory_profiler-0.61.0.dist-info/RECORD' 2023-06-22 14:18:37,495 wheel INFO removing build/bdist.linux-s390x/wheel 2023-06-22 14:18:37,495 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 19.840 MiB 19.840 MiB 2 @profile 3 def test_1(i): 4 # .. will be called twice .. 5 19.840 MiB 0.000 MiB 2 c = {} 6 20.137 MiB 0.008 MiB 10012 for i in range(i): 7 20.137 MiB 0.258 MiB 10010 c[i] = 2 Filename: test/test_loop.py Line # Mem usage Increment Occurrences Line Contents ============================================================= 11 20.812 MiB 20.812 MiB 1 @profile 12 def test_2(): 13 28.445 MiB 7.633 MiB 1 a = [1] * (10 ** 6) 14 181.035 MiB 152.590 MiB 1 b = [2] * (2 * 10 ** 7) 15 28.445 MiB -152.590 MiB 1 del b 16 17 28.445 MiB 0.000 MiB 3 for i in range(2): 18 28.445 MiB 0.000 MiB 2 a = [1] * (10 ** 6) 19 181.035 MiB 305.180 MiB 2 b = [2] * (2 * 10 ** 7) 20 28.445 MiB -305.180 MiB 2 del b 21 28.445 MiB 0.000 MiB 1 return a Filename: test/test_mprofile.py Line # Mem usage Increment Occurrences Line Contents ============================================================= 5 19.840 MiB 19.840 MiB 1 @profile 6 def test1(l): 7 """test1 docstring""" 8 20.605 MiB 0.766 MiB 1 a = [1] * l 9 20.668 MiB 0.062 MiB 1 time.sleep(1) 10 20.668 MiB 0.000 MiB 1 return a Filename: test/test_mprofile.py Line # Mem usage Increment Occurrences Line Contents ============================================================= 12 19.902 MiB 19.902 MiB 1 @profile 13 def test2(l): 14 21.430 MiB 1.527 MiB 1 b = [1] * l 15 21.430 MiB 0.000 MiB 1 time.sleep(1) 16 21.430 MiB 0.000 MiB 1 return b Filename: test/test_as.py Line # Mem usage Increment Occurrences Line Contents ============================================================= 3 19.840 MiB 19.840 MiB 1 @profile 4 def f(): 5 19.840 MiB 0.000 MiB 1 o = math.sqrt(2013) 6 19.840 MiB 0.000 MiB 1 return o Filename: test/test_precision_command_line.py Line # Mem usage Increment Occurrences Line Contents ============================================================= 11 19.848 MiB 19.848 MiB 1 @profile(precision=4) 12 def test_1(): 13 27.480 MiB 7.633 MiB 1 a = [1] * (10 ** 6) 14 180.070 MiB 152.590 MiB 1 b = [2] * (2 * 10 ** 7) 15 180.133 MiB 0.062 MiB 1 time.sleep(0.6) 16 27.543 MiB -152.590 MiB 1 del b 17 18 27.543 MiB 0.000 MiB 3 for i in range(2): 19 27.543 MiB 0.000 MiB 2 a = [1] * (10 ** 6) 20 180.133 MiB 305.180 MiB 2 b = [2] * (2 * 10 ** 7) 21 27.543 MiB -305.180 MiB 2 del b 22 27.543 MiB 0.000 MiB 1 return a Filename: test/test_precision_command_line.py Line # Mem usage Increment Occurrences Line Contents ============================================================= 24 19.910 MiB 19.910 MiB 1 @profile(precision=2) 25 def test_2(): 26 19.910 MiB 0.000 MiB 1 a = {} 27 19.910 MiB 0.000 MiB 1 time.sleep(0.5) 28 20.281 MiB -0.031 MiB 10001 for i in range(10000): 29 20.281 MiB 0.371 MiB 10000 a[i] = i + 1 30 20.281 MiB 0.000 MiB 1 time.sleep(0.6) 31 20.281 MiB 0.000 MiB 1 return Filename: test/test_gen.py Line # Mem usage Increment Occurrences Line Contents ============================================================= 2 19.254 MiB 19.254 MiB 1 @profile 3 def my_func(): 4 26.887 MiB 7.633 MiB 1 a = [1] * (10 ** 6) 5 179.477 MiB 152.590 MiB 1 b = [2] * (2 * 10 ** 7) 6 26.887 MiB -152.590 MiB 1 del b 7 26.887 MiB 0.000 MiB 2 yield a Filename: test/test_gen.py Line # Mem usage Increment Occurrences Line Contents ============================================================= 10 19.254 MiB 19.254 MiB 1 @profile 11 def test_comprehension(): 12 # Dict comprehension 13 31.301 MiB 12.047 MiB 40 d_comp = dict((str(k*k), [v] * (1<<17)) 14 30.297 MiB 0.000 MiB 13 for (v, k) in enumerate(range(99, 111))) 15 16 # List comprehension 17 50.617 MiB 19.316 MiB 102 l_comp = [[i] * (i<<9) for i in range(99)] 18 31.305 MiB -19.312 MiB 1 del l_comp 19 19.258 MiB -12.047 MiB 1 del d_comp 20 21 32.461 MiB 0.000 MiB 4 def hh(x=1): 22 # Set comprehension 23 54.113 MiB -299.129 MiB 135 s_comp = set(('Z',) * (k<<13) for k in range(x, 19 + 2*x)) 24 54.113 MiB 0.000 MiB 3 return s_comp 25 26 19.258 MiB -13.203 MiB 1 val = [range(1, 4), max(1, 4), 42 + len(hh())] 27 41.297 MiB -12.816 MiB 1 val = hh() | hh(4) 28 41.297 MiB 0.000 MiB 1 val.add(40) 29 60.609 MiB 19.312 MiB 102 l1_comp = [[(1, i)] * (i<<9) for i in range(99)] 30 79.949 MiB 19.340 MiB 102 l2_comp = [[(3, i)] * (i<<9) for i in range(99)] 31 32 79.949 MiB 0.000 MiB 1 return val Filename: test/test_gen.py Line # Mem usage Increment Occurrences Line Contents ============================================================= 35 19.254 MiB 19.254 MiB 1 @profile 36 def test_generator(): 37 43.266 MiB 24.012 MiB 9 a_gen = ([42] * (1<<20) for __ in '123') 38 43.266 MiB 0.000 MiB 1 huge_lst = list(a_gen) 39 40 43.266 MiB 0.000 MiB 2 b_gen = ([24] * (1<<20) for __ in '123') 41 43.266 MiB 0.000 MiB 1 del b_gen 42 19.254 MiB -24.012 MiB 1 del huge_lst 43 44 19.254 MiB 0.000 MiB 1 return a_gen Filename: test/test_unicode.py Line # Mem usage Increment Occurrences Line Contents ============================================================= 2 19.828 MiB 19.828 MiB 1 @profile 3 def test_unicode(txt): 4 # test when unicode is present 5 19.828 MiB 0.000 MiB 1 txt = txt.replace (u"ی", u"ي") #Arabic Yah = ي 6 19.828 MiB 0.000 MiB 1 return txt Filename: /home/buildozer/aports/testing/py3-memory-profiler/src/memory_profiler-0.61/test/test_import.py Line # Mem usage Increment Occurrences Line Contents ============================================================= 4 18.9 MiB 18.9 MiB 1 @profile 5 def my_func(): 6 26.5 MiB 7.6 MiB 1 a = [1] * (10 ** 6) 7 179.1 MiB 152.6 MiB 1 b = [2] * (2 * 10 ** 7) 8 26.5 MiB -152.6 MiB 1 del b 9 26.5 MiB 0.0 MiB 1 return a Filename: /home/buildozer/aports/testing/py3-memory-profiler/src/memory_profiler-0.61/test/test_precision_import.py Line # Mem usage Increment Occurrences Line Contents ============================================================= 13 19.7852 MiB 19.7852 MiB 1 @profile(precision=4) 14 def test_1(): 15 27.4180 MiB 7.6328 MiB 1 a = [1] * (10 ** 6) 16 180.0078 MiB 152.5898 MiB 1 b = [2] * (2 * 10 ** 7) 17 180.0703 MiB 0.0625 MiB 1 time.sleep(0.6) 18 27.4805 MiB -152.5898 MiB 1 del b 19 20 27.4805 MiB 0.0000 MiB 3 for i in range(2): 21 27.4805 MiB 0.0000 MiB 2 a = [1] * (10 ** 6) 22 180.0703 MiB 305.1797 MiB 2 b = [2] * (2 * 10 ** 7) 23 27.4805 MiB -305.1797 MiB 2 del b 24 27.4805 MiB 0.0000 MiB 1 return a Filename: /home/buildozer/aports/testing/py3-memory-profiler/src/memory_profiler-0.61/test/test_precision_import.py Line # Mem usage Increment Occurrences Line Contents ============================================================= 26 19.84766 MiB 19.84766 MiB 1 @profile(precision=5) 27 def test_2(): 28 19.84766 MiB 0.00000 MiB 1 a = {} 29 19.84766 MiB 0.00000 MiB 1 time.sleep(0.5) 30 20.14062 MiB 0.00781 MiB 10001 for i in range(10000): 31 20.14062 MiB 0.25391 MiB 10000 a[i] = i + 1 32 20.14062 MiB 0.00000 MiB 1 time.sleep(0.6) 33 20.14062 MiB 0.00000 MiB 1 return Success /home/buildozer/aports/testing/py3-memory-profiler/src/memory_profiler-0.61/test/test_exit_code.py:30: DeprecationWarning: Please use assertRaisesRegex instead. self.assertRaisesRegexp(SystemExit, '1', self.run_action) Traceback (most recent call last): File "", line 198, in _run_module_as_main File "", line 88, in _run_code File "/home/buildozer/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/buildozer/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/tmpers78j11.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/buildozer/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/buildozer/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/tmpni9hboac.py", line 1, in raise RuntimeError('I am not working nicely') RuntimeError: I am not working nicely . ---------------------------------------------------------------------- Ran 3 tests in 0.352s 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 Filename: /home/buildozer/aports/testing/py3-memory-profiler/src/memory_profiler-0.61/test/test_async.py Line # Mem usage Increment Occurrences Line Contents ============================================================= 7 19.9 MiB 19.9 MiB 1 @profile 8 async def my_func(): 9 27.5 MiB 7.6 MiB 1 a = [1] * (10 ** 6) 10 180.1 MiB 152.6 MiB 1 b = [2] * (2 * 10 ** 7) 11 180.1 MiB 0.0 MiB 2 await asyncio.sleep(1e-2) 12 27.5 MiB -152.6 MiB 1 del b >>> py3-memory-profiler: Entering fakeroot... >>> py3-memory-profiler-pyc*: Running split function pyc... '/home/buildozer/aports/testing/py3-memory-profiler/pkg/py3-memory-profiler/usr/lib/python3.11/site-packages/__pycache__' -> '/home/buildozer/aports/testing/py3-memory-profiler/pkg/py3-memory-profiler-pyc/usr/lib/python3.11/site-packages/__pycache__' >>> py3-memory-profiler-pyc*: Preparing subpackage py3-memory-profiler-pyc... >>> py3-memory-profiler-pyc*: Running postcheck for py3-memory-profiler-pyc >>> py3-memory-profiler*: Running postcheck for py3-memory-profiler >>> py3-memory-profiler*: Preparing package py3-memory-profiler... >>> py3-memory-profiler-pyc*: Tracing dependencies... py3-psutil python3~3.11 >>> py3-memory-profiler-pyc*: Package size: 140.0 KB >>> py3-memory-profiler-pyc*: Compressing data... >>> py3-memory-profiler-pyc*: Create checksum... >>> py3-memory-profiler-pyc*: Create py3-memory-profiler-pyc-0.61-r0.apk >>> py3-memory-profiler*: Tracing dependencies... py3-psutil python3~3.11 >>> py3-memory-profiler*: Package size: 156.0 KB >>> py3-memory-profiler*: Compressing data... >>> py3-memory-profiler*: Create checksum... >>> py3-memory-profiler*: Create py3-memory-profiler-0.61-r0.apk >>> py3-memory-profiler: Build complete at Thu, 22 Jun 2023 14:19:01 +0000 elapsed time 0h 0m 27s >>> py3-memory-profiler: Cleaning up srcdir >>> py3-memory-profiler: Cleaning up pkgdir >>> py3-memory-profiler: Uninstalling dependencies... (1/35) Purging .makedepends-py3-memory-profiler (20230622.141835) (2/35) Purging py3-psutil-pyc (5.9.5-r1) (3/35) Purging py3-psutil (5.9.5-r1) (4/35) Purging py3-gpep517-pyc (13-r2) (5/35) Purging py3-gpep517 (13-r2) (6/35) Purging py3-installer-pyc (0.7.0-r1) (7/35) Purging py3-installer (0.7.0-r1) (8/35) Purging py3-setuptools-pyc (68.0.0-r0) (9/35) Purging py3-setuptools (68.0.0-r0) (10/35) Purging py3-wheel-pyc (0.40.0-r1) (11/35) Purging py3-wheel (0.40.0-r1) (12/35) Purging py3-pytest-pyc (7.3.2-r0) (13/35) Purging py3-pytest (7.3.2-r0) (14/35) Purging py3-iniconfig-pyc (1.1.1-r6) (15/35) Purging py3-iniconfig (1.1.1-r6) (16/35) Purging py3-packaging-pyc (23.1-r1) (17/35) Purging py3-packaging (23.1-r1) (18/35) Purging py3-parsing-pyc (3.1.0-r0) (19/35) Purging py3-parsing (3.1.0-r0) (20/35) Purging py3-pluggy-pyc (1.2.0-r0) (21/35) Purging py3-pluggy (1.2.0-r0) (22/35) Purging py3-py-pyc (1.11.0-r2) (23/35) Purging py3-py (1.11.0-r2) (24/35) Purging python3-pyc (3.11.4-r0) (25/35) Purging python3-pycache-pyc0 (3.11.4-r0) (26/35) Purging pyc (0.1-r0) (27/35) Purging python3 (3.11.4-r0) (28/35) Purging gdbm (1.23-r1) (29/35) Purging libbz2 (1.0.8-r6) (30/35) Purging libffi (3.4.4-r3) (31/35) Purging libpanelw (6.4_p20230617-r0) (32/35) Purging mpdecimal (2.5.1-r2) (33/35) Purging readline (8.2.1-r2) (34/35) Purging sqlite-libs (3.42.0-r2) (35/35) Purging xz-libs (5.4.3-r1) Executing busybox-1.36.1-r1.trigger OK: 344 MiB in 105 packages >>> py3-memory-profiler: Updating the testing/s390x repository index... >>> py3-memory-profiler: Signing the index...