user [email protected] usertags 1143337 python3.15 retitle 1143337 magnum-capi-helm: FTBFS: different request parameters and missing 'novaclient' module thanks
Hi! While rebuilding the python related packages against the Python 3.15rc2 version we ran into this FTBFS: https://debusine.debian.net/debian/r-python-python3.15/artifact/4856298/ And it's also visible through the reproducible builds infrastructure: https://tests.reproducible-builds.org/debian/rb-pkg/unstable/amd64/magnum-capi-helm.html At this point there are two separate errors that need addressing: FAIL: magnum_capi_helm.tests.test_kubernetes.TestKubernetesClient.test_get_machine_deployment_found magnum_capi_helm.tests.test_kubernetes.TestKubernetesClient.test_get_machine_deployment_found ---------------------------------------------------------------------- testtools.testresult.real._StringException: Traceback (most recent call last): File "/usr/lib/python3.15/unittest/mock.py", line 1439, in patched return func(*newargs, **newkeywargs) File "/build/reproducible-path/magnum-capi-helm-1.2.0/magnum_capi_helm/tests/test_kubernetes.py", line 287, in test_get_machine_deployment_found mock_request.assert_called_once_with( ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ "GET", ^^^^^^ ...<4 lines>... allow_redirects=True, ^^^^^^^^^^^^^^^^^^^^^ ) ^ File "/usr/lib/python3.15/unittest/mock.py", line 998, in assert_called_once_with return self.assert_called_with(*args, **kwargs) ~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.15/unittest/mock.py", line 986, in assert_called_with raise AssertionError(_error_message()) from cause AssertionError: expected call not found. Expected: request('GET', 'https://test:6443/apis/cluster.x-k8s.io/v1beta1/namespaces/ns1/machinedeployments/name', allow_redirects=True) Actual: request('GET', 'https://test:6443/apis/cluster.x-k8s.io/v1beta1/namespaces/ns1/machinedeployments/name', params=None, allow_redirects=True) ====================================================================== FAIL: magnum_capi_helm.tests.test_driver.ClusterAPIDriverTest.test_validate_upgrade_cluster_node_group magnum_capi_helm.tests.test_driver.ClusterAPIDriverTest.test_validate_upgrade_cluster_node_group ---------------------------------------------------------------------- testtools.testresult.real._StringException: Traceback (most recent call last): File "/usr/lib/python3.15/unittest/mock.py", line 1436, in patched with self.decoration_helper(patched, ~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^ args, ^^^^^ keywargs) as (newargs, newkeywargs): ^^^^^^^^^ File "/usr/lib/python3.15/contextlib.py", line 203, in __enter__ return next(self.gen) File "/usr/lib/python3.15/unittest/mock.py", line 1418, in decoration_helper arg = exit_stack.enter_context(patching) File "/usr/lib/python3.15/contextlib.py", line 594, in enter_context result = _enter() File "/usr/lib/python3.15/unittest/mock.py", line 1494, in __enter__ self.target = self.getter() ~~~~~~~~~~~^^ File "/usr/lib/python3.15/pkgutil.py", line 476, in resolve_name mod = importlib.import_module(modname) File "/usr/lib/python3.15/importlib/__init__.py", line 88, in import_module return _bootstrap._gcd_import(name[level:], package, level) ~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "<frozen importlib._bootstrap>", line 1390, in _gcd_import File "<frozen importlib._bootstrap>", line 1350, in _find_and_load File "<frozen importlib._bootstrap>", line 1302, in _find_and_load_unlocked ModuleNotFoundError: No module named 'novaclient' Please consider investigating the root cause to get this package back in a healthy state. -- Regards, Marga

