>>> ospd-openvas: Building community/ospd-openvas 22.8.1-r0 (using abuild 3.15.0-r0) started Sun, 12 Oct 2025 06:54:47 +0000 >>> ospd-openvas: Validating /home/udu/aports/community/ospd-openvas/APKBUILD... >>> ospd-openvas: Analyzing dependencies... >>> ospd-openvas: Installing for build: build-base py3-defusedxml py3-deprecated py3-gnupg py3-lxml py3-packaging py3-paho-mqtt py3-psutil py3-redis mosquitto py3-gpep517 py3-installer py3-poetry-core py3-pytest WARNING: opening /home/udu/packages//community: No such file or directory WARNING: opening /home/udu/packages//main: No such file or directory fetch http://dl-cdn.alpinelinux.org/alpine/v3.22/main/x86_64/APKINDEX.tar.gz fetch http://dl-cdn.alpinelinux.org/alpine/v3.22/community/x86_64/APKINDEX.tar.gz (1/71) Installing py3-defusedxml-pyc (0.7.1-r5) (2/71) Installing py3-defusedxml (0.7.1-r5) (3/71) Installing py3-wrapt (1.17.0-r0) (4/71) Installing py3-wrapt-pyc (1.17.0-r0) (5/71) Installing py3-deprecated (1.2.18-r0) (6/71) Installing py3-deprecated-pyc (1.2.18-r0) (7/71) Installing libgpg-error (1.55-r0) (8/71) Installing libassuan (2.5.7-r0) (9/71) Installing pinentry (1.3.1-r0) Executing pinentry-1.3.1-r0.post-install (10/71) Installing libgcrypt (1.10.3-r1) (11/71) Installing gnupg-gpgconf (2.4.7-r0) (12/71) Installing nettle (3.10.1-r0) (13/71) Installing libtasn1 (4.20.0-r0) (14/71) Installing p11-kit (0.25.5-r2) (15/71) Installing gnutls (3.8.8-r0) (16/71) Installing libksba (1.6.7-r0) (17/71) Installing libsasl (2.1.28-r8) (18/71) Installing libldap (2.6.8-r0) (19/71) Installing npth (1.8-r0) (20/71) Installing gnupg-dirmngr (2.4.7-r0) (21/71) Installing gnupg-keyboxd (2.4.7-r0) (22/71) Installing gpg (2.4.7-r0) (23/71) Installing gpg-agent (2.4.7-r0) (24/71) Installing gpg-wks-server (2.4.7-r0) (25/71) Installing gpgsm (2.4.7-r0) (26/71) Installing gpgv (2.4.7-r0) (27/71) Installing gnupg-utils (2.4.7-r0) (28/71) Installing gnupg-wks-client (2.4.7-r0) (29/71) Installing gnupg (2.4.7-r0) (30/71) Installing py3-gnupg (0.5.4-r0) (31/71) Installing py3-gnupg-pyc (0.5.4-r0) (32/71) Installing libxml2 (2.13.9-r0) (33/71) Installing libxslt (1.1.43-r3) (34/71) Installing py3-lxml (5.3.1-r3) (35/71) Installing py3-lxml-pyc (5.3.1-r3) (36/71) Installing py3-parsing (3.2.3-r0) (37/71) Installing py3-parsing-pyc (3.2.3-r0) (38/71) Installing py3-packaging (25.0-r0) (39/71) Installing py3-packaging-pyc (25.0-r0) (40/71) Installing py3-paho-mqtt (1.6.1-r3) (41/71) Installing py3-paho-mqtt-pyc (1.6.1-r3) (42/71) Installing py3-psutil (7.0.0-r0) (43/71) Installing py3-psutil-pyc (7.0.0-r0) (44/71) Installing hiredis (1.3.0-r0) (45/71) Installing py3-hiredis (3.2.1-r0) (46/71) Installing py3-hiredis-pyc (3.2.1-r0) (47/71) Installing py3-redis (6.1.0-r0) (48/71) Installing py3-redis-pyc (6.1.0-r0) (49/71) Installing cjson (1.7.18-r1) (50/71) Installing mosquitto-libs (2.0.21-r0) (51/71) Installing libwebsockets (4.3.5-r2) (52/71) Installing mosquitto (2.0.21-r0) Executing mosquitto-2.0.21-r0.pre-install (53/71) Installing py3-installer (0.7.0-r2) (54/71) Installing py3-installer-pyc (0.7.0-r2) (55/71) Installing py3-gpep517 (19-r0) (56/71) Installing py3-gpep517-pyc (19-r0) (57/71) Installing py3-fastjsonschema (2.21.1-r0) (58/71) Installing py3-fastjsonschema-pyc (2.21.1-r0) (59/71) Installing py3-lark-parser (1.1.9-r1) (60/71) Installing py3-lark-parser-pyc (1.1.9-r1) (61/71) Installing py3-poetry-core (2.0.1-r0) (62/71) Installing py3-poetry-core-pyc (2.0.1-r0) (63/71) Installing py3-iniconfig (2.1.0-r0) (64/71) Installing py3-iniconfig-pyc (2.1.0-r0) (65/71) Installing py3-pluggy (1.5.0-r0) (66/71) Installing py3-pluggy-pyc (1.5.0-r0) (67/71) Installing py3-py (1.11.0-r4) (68/71) Installing py3-py-pyc (1.11.0-r4) (69/71) Installing py3-pytest (8.3.5-r0) (70/71) Installing py3-pytest-pyc (8.3.5-r0) (71/71) Installing .makedepends-ospd-openvas (20251012.065448) Executing busybox-1.37.0-r19.trigger OK: 325 MiB in 160 packages >>> ospd-openvas: Cleaning up srcdir >>> ospd-openvas: Cleaning up pkgdir >>> ospd-openvas: Cleaning up tmpdir >>> ospd-openvas: Fetching ospd-openvas-22.8.1.tar.gz::https://github.com/greenbone/ospd-openvas/archive/v22.8.1.tar.gz >>> ospd-openvas: Fetching ospd-openvas-22.8.1.tar.gz::https://github.com/greenbone/ospd-openvas/archive/v22.8.1.tar.gz >>> ospd-openvas: Checking sha512sums... ospd-openvas-22.8.1.tar.gz: OK ospd-openvas.initd: OK ospd.conf: OK fix-test-unlink.patch: OK >>> ospd-openvas: Unpacking /var/cache/distfiles/ospd-openvas-22.8.1.tar.gz... >>> ospd-openvas: fix-test-unlink.patch patching file ospd/ospd.py Hunk #1 succeeded at 12 (offset -13 lines). Hunk #2 succeeded at 123 (offset -14 lines). >>> ospd-openvas: Creating group gvm >>> ospd-openvas: Creating user gvm 2025-10-12 06:54:49,605 gpep517 INFO Building wheel via backend poetry.core.masonry.api 2025-10-12 06:54:49,641 poetry.core.factory WARNING The "poetry.dev-dependencies" section is deprecated and will be removed in a future version. Use "poetry.group.dev.dependencies" instead. 2025-10-12 06:54:49,665 poetry.core.masonry.builders.wheel INFO Building wheel 2025-10-12 06:54:49,694 poetry.core.masonry.builders.wheel INFO Built ospd_openvas-22.8.1-py3-none-any.whl 2025-10-12 06:54:49,694 gpep517 INFO The backend produced .dist/ospd_openvas-22.8.1-py3-none-any.whl ospd_openvas-22.8.1-py3-none-any.whl ============================================================================================================================================ test session starts ============================================================================================================================================= platform linux -- Python 3.12.11, pytest-8.3.5, pluggy-1.5.0 rootdir: /home/udu/aports/community/ospd-openvas/src/ospd-openvas-22.8.1 configfile: pyproject.toml collected 411 items tests/command/test_command.py ... [ 0%] tests/command/test_commands.py .....................FFF [ 6%] tests/command/test_registry.py .. [ 7%] tests/messages/test_message.py ....... [ 8%] tests/messages/test_result.py ..... [ 9%] tests/messaging/test_mqtt.py .... [ 10%] tests/test_argument_parser.py ............ [ 13%] tests/test_cvss.py .... [ 14%] tests/test_daemon.py ..................... [ 19%] tests/test_datapickler.py ....... [ 21%] tests/test_db.py ............................................................... [ 36%] tests/test_errors.py ........ [ 38%] tests/test_gpg.py ... [ 39%] tests/test_lock.py ..... [ 40%] tests/test_notus.py ....... [ 42%] tests/test_nvti_cache.py ................... [ 47%] tests/test_openvas.py ................... [ 51%] tests/test_port_convert.py ................... [ 56%] tests/test_preferencehandler.py ............................................ [ 67%] tests/test_protocol.py . [ 67%] tests/test_scan_and_result.py ....................................................................... [ 84%] tests/test_target_convert.py ........ [ 86%] tests/test_vthelper.py .......... [ 89%] tests/test_vts.py ............. [ 92%] tests/test_xml.py ................................ [100%] ================================================================================================================================================== FAILURES ================================================================================================================================================== _____________________________________________________________________________________________________________________________ GetMemoryUsageTestCase.test_with_main_process_only _____________________________________________________________________________________________________________________________ self = def test_with_main_process_only(self): cmd = GetMemoryUsage(None) request = et.fromstring('') response = et.fromstring(cmd.handle_xml(request)) processes_element = response.find('processes') process_elements = processes_element.findall('process') self.assertTrue(len(process_elements), 1) main_process_element = process_elements[0] rss_element = main_process_element.find('rss') vms_element = main_process_element.find('vms') shared_element = main_process_element.find('shared') > self.assertIsNotNone(rss_element) E AssertionError: unexpectedly None tests/command/test_commands.py:484: AssertionError ________________________________________________________________________________________________________________________________ GetMemoryUsageTestCase.test_with_subprocess _________________________________________________________________________________________________________________________________ self = def test_with_subprocess(self): cmd = GetMemoryUsage(None) def foo(): # pylint: disable=blacklisted-name time.sleep(60) create_process(foo, args=[]) request = et.fromstring('') response = et.fromstring(cmd.handle_xml(request)) processes_element = response.find('processes') process_elements = processes_element.findall('process') self.assertTrue(len(process_elements), 2) for process_element in process_elements: rss_element = process_element.find('rss') vms_element = process_element.find('vms') shared_element = process_element.find('shared') > self.assertIsNotNone(rss_element) E AssertionError: unexpectedly None tests/command/test_commands.py:515: AssertionError _______________________________________________________________________________________________________________________________ GetMemoryUsageTestCase.test_with_subsubprocess _______________________________________________________________________________________________________________________________ self = def test_with_subsubprocess(self): cmd = GetMemoryUsage(None) def bar(): # pylint: disable=blacklisted-name create_process(foo, args=[]) def foo(): # pylint: disable=blacklisted-name time.sleep(60) create_process(bar, args=[]) request = et.fromstring('') response = et.fromstring(cmd.handle_xml(request)) processes_element = response.find('processes') process_elements = processes_element.findall('process') # sub-sub-processes aren't listed self.assertTrue(len(process_elements), 2) for process_element in process_elements: rss_element = process_element.find('rss') vms_element = process_element.find('vms') shared_element = process_element.find('shared') > self.assertIsNotNone(rss_element) E AssertionError: unexpectedly None tests/command/test_commands.py:550: AssertionError ============================================================================================================================================== warnings summary ============================================================================================================================================== tests/command/test_commands.py: 12 warnings tests/test_daemon.py: 7 warnings tests/test_scan_and_result.py: 28 warnings /home/udu/aports/community/ospd-openvas/src/ospd-openvas-22.8.1/ospd/protocol.py:228: DeprecationWarning: Testing an element's truth value will always return True in future versions. Use specific 'len(elem)' or 'elem is not None' test instead. if scanner_target: tests/messages/test_message.py::MessageTestCase::test_default_constructor tests/messages/test_result.py::ResultMessageTestCase::test_constructor tests/messaging/test_mqtt.py::MQTTSubscriberTestCase::test_subscribe tests/test_notus.py::NotusTestCase::test_notus_fail_cases tests/test_notus.py::NotusTestCase::test_notus_success_case /home/udu/aports/community/ospd-openvas/src/ospd-openvas-22.8.1/ospd_openvas/messages/message.py:36: DeprecationWarning: datetime.datetime.utcnow() is deprecated and scheduled for removal in a future version. Use timezone-aware objects to represent datetimes in UTC: datetime.datetime.now(datetime.UTC). self.created = created if created else datetime.utcnow() tests/test_daemon.py::TestFilters::test_format_vt_modification_time tests/test_daemon.py::TestFilters::test_get_filtered_vts_false tests/test_daemon.py::TestFilters::test_get_filtered_vts_true /home/udu/aports/community/ospd-openvas/src/ospd-openvas-22.8.1/ospd_openvas/daemon.py:383: DeprecationWarning: datetime.datetime.utcfromtimestamp() is deprecated and scheduled for removal in a future version. Use timezone-aware objects to represent datetimes in UTC: datetime.datetime.fromtimestamp(timestamp, datetime.UTC). return datetime.utcfromtimestamp(int(value)).strftime("%Y%m%d%H%M%S") tests/test_scan_and_result.py: 23 warnings /home/udu/aports/community/ospd-openvas/src/ospd-openvas-22.8.1/ospd/xml.py:264: DeprecationWarning: Testing an element's truth value will always return True in future versions. Use specific 'len(elem)' or 'elem is not None' test instead. if content: -- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html ========================================================================================================================================== short test summary info =========================================================================================================================================== FAILED tests/command/test_commands.py::GetMemoryUsageTestCase::test_with_main_process_only - AssertionError: unexpectedly None FAILED tests/command/test_commands.py::GetMemoryUsageTestCase::test_with_subprocess - AssertionError: unexpectedly None FAILED tests/command/test_commands.py::GetMemoryUsageTestCase::test_with_subsubprocess - AssertionError: unexpectedly None ================================================================================================================================= 3 failed, 408 passed, 78 warnings in 5.32s ================================================================================================================================= >>> ERROR: ospd-openvas: check failed >>> ospd-openvas: Uninstalling dependencies... (1/71) Purging .makedepends-ospd-openvas (20251012.065448) (2/71) Purging py3-defusedxml-pyc (0.7.1-r5) (3/71) Purging py3-defusedxml (0.7.1-r5) (4/71) Purging py3-deprecated-pyc (1.2.18-r0) (5/71) Purging py3-deprecated (1.2.18-r0) (6/71) Purging py3-wrapt-pyc (1.17.0-r0) (7/71) Purging py3-wrapt (1.17.0-r0) (8/71) Purging py3-gnupg-pyc (0.5.4-r0) (9/71) Purging py3-gnupg (0.5.4-r0) (10/71) Purging gnupg (2.4.7-r0) (11/71) Purging gpg-wks-server (2.4.7-r0) (12/71) Purging gpgsm (2.4.7-r0) (13/71) Purging gpgv (2.4.7-r0) (14/71) Purging gnupg-utils (2.4.7-r0) (15/71) Purging gnupg-wks-client (2.4.7-r0) (16/71) Purging gpg (2.4.7-r0) (17/71) Purging gnupg-keyboxd (2.4.7-r0) (18/71) Purging gpg-agent (2.4.7-r0) (19/71) Purging gnupg-dirmngr (2.4.7-r0) (20/71) Purging gnupg-gpgconf (2.4.7-r0) (21/71) Purging pinentry (1.3.1-r0) (22/71) Purging py3-lxml-pyc (5.3.1-r3) (23/71) Purging py3-lxml (5.3.1-r3) (24/71) Purging py3-paho-mqtt-pyc (1.6.1-r3) (25/71) Purging py3-paho-mqtt (1.6.1-r3) (26/71) Purging py3-psutil-pyc (7.0.0-r0) (27/71) Purging py3-psutil (7.0.0-r0) (28/71) Purging py3-redis-pyc (6.1.0-r0) (29/71) Purging py3-redis (6.1.0-r0) (30/71) Purging py3-hiredis-pyc (3.2.1-r0) (31/71) Purging py3-hiredis (3.2.1-r0) (32/71) Purging mosquitto (2.0.21-r0) (33/71) Purging py3-gpep517-pyc (19-r0) (34/71) Purging py3-gpep517 (19-r0) (35/71) Purging py3-installer-pyc (0.7.0-r2) (36/71) Purging py3-installer (0.7.0-r2) (37/71) Purging py3-poetry-core-pyc (2.0.1-r0) (38/71) Purging py3-poetry-core (2.0.1-r0) (39/71) Purging py3-fastjsonschema-pyc (2.21.1-r0) (40/71) Purging py3-fastjsonschema (2.21.1-r0) (41/71) Purging py3-lark-parser-pyc (1.1.9-r1) (42/71) Purging py3-lark-parser (1.1.9-r1) (43/71) Purging py3-pytest-pyc (8.3.5-r0) (44/71) Purging py3-pytest (8.3.5-r0) (45/71) Purging py3-iniconfig-pyc (2.1.0-r0) (46/71) Purging py3-iniconfig (2.1.0-r0) (47/71) Purging py3-packaging-pyc (25.0-r0) (48/71) Purging py3-packaging (25.0-r0) (49/71) Purging py3-parsing-pyc (3.2.3-r0) (50/71) Purging py3-parsing (3.2.3-r0) (51/71) Purging py3-pluggy-pyc (1.5.0-r0) (52/71) Purging py3-pluggy (1.5.0-r0) (53/71) Purging py3-py-pyc (1.11.0-r4) (54/71) Purging py3-py (1.11.0-r4) (55/71) Purging cjson (1.7.18-r1) (56/71) Purging gnutls (3.8.8-r0) (57/71) Purging hiredis (1.3.0-r0) (58/71) Purging libassuan (2.5.7-r0) (59/71) Purging libgcrypt (1.10.3-r1) (60/71) Purging libksba (1.6.7-r0) (61/71) Purging libldap (2.6.8-r0) (62/71) Purging libsasl (2.1.28-r8) (63/71) Purging libwebsockets (4.3.5-r2) (64/71) Purging libxslt (1.1.43-r3) (65/71) Purging mosquitto-libs (2.0.21-r0) (66/71) Purging nettle (3.10.1-r0) (67/71) Purging npth (1.8-r0) (68/71) Purging p11-kit (0.25.5-r2) (69/71) Purging libgpg-error (1.55-r0) (70/71) Purging libtasn1 (4.20.0-r0) (71/71) Purging libxml2 (2.13.9-r0) Executing busybox-1.37.0-r19.trigger OK: 296 MiB in 89 packages