Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package python-python-gvm for openSUSE:Factory checked in at 2024-11-25 23:22:44 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/python-python-gvm (Old) and /work/SRC/openSUSE:Factory/.python-python-gvm.new.28523 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-python-gvm" Mon Nov 25 23:22:44 2024 rev:8 rq:1226247 version:24.8.0 Changes: -------- --- /work/SRC/openSUSE:Factory/python-python-gvm/python-python-gvm.changes 2024-11-14 16:08:24.626076467 +0100 +++ /work/SRC/openSUSE:Factory/.python-python-gvm.new.28523/python-python-gvm.changes 2024-11-25 23:23:02.338521722 +0100 @@ -1,0 +2,7 @@ +Mon Nov 25 10:29:53 UTC 2024 - Daniel Garcia <daniel.gar...@suse.com> + +- Add opensuse-fix-tests-1-core.patch custom patch to fix tests + running in OBS with limited resources, running on 1-core-VM. + bsc#1233398 + +------------------------------------------------------------------- New: ---- opensuse-fix-tests-1-core.patch BETA DEBUG BEGIN: New: - Add opensuse-fix-tests-1-core.patch custom patch to fix tests running in OBS with limited resources, running on 1-core-VM. BETA DEBUG END: ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ python-python-gvm.spec ++++++ --- /var/tmp/diff_new_pack.FtesdT/_old 2024-11-25 23:23:02.990548901 +0100 +++ /var/tmp/diff_new_pack.FtesdT/_new 2024-11-25 23:23:02.990548901 +0100 @@ -25,6 +25,9 @@ Group: Development/Languages/Python URL: https://github.com/greenbone/python-gvm Source: https://files.pythonhosted.org/packages/source/p/python_gvm/python_gvm-%{version}.tar.gz +# PATCH-FIX-OPENSUSE opensuse-fix-tests-1-core.patch -- bsc#1233398 +# Fix tests running with 1 core in VM +Patch: opensuse-fix-tests-1-core.patch BuildRequires: %{python_module pip} BuildRequires: %{python_module poetry-core} BuildRequires: %{python_module setuptools} @@ -49,7 +52,7 @@ Greenbone Management Protocol (GMP) and Open Scanner Protocol (OSP). %prep -%setup -q -n python_gvm-%{version} +%autosetup -p1 -n python_gvm-%{version} %build %pyproject_wheel ++++++ opensuse-fix-tests-1-core.patch ++++++ Index: python_gvm-24.8.0/tests/connections/test_unix_socket_connection.py =================================================================== --- python_gvm-24.8.0.orig/tests/connections/test_unix_socket_connection.py +++ python_gvm-24.8.0/tests/connections/test_unix_socket_connection.py @@ -62,6 +62,13 @@ class UnixSocketConnectionTestCase(unitt connection.disconnect() def test_unix_socket_connection_connect_send_bytes_read(self): + # Add sleep to make sure setup theading server is up and + # running even with limited resources, bsc#1233398 + import time + import multiprocessing + if multiprocessing.cpu_count() == 1: + time.sleep(2) + connection = UnixSocketConnection( path=self.socket_name, timeout=DEFAULT_TIMEOUT )