Package: src:python-ibm-cloud-sdk-core Version: 3.19.2-1 Severity: serious Tags: ftbfs forky sid
Dear maintainer: During a rebuild of all packages in unstable, this package failed to build. Below you will find the last part of the build log (probably the most relevant part, but not necessarily). If required, the full build log is available here: https://people.debian.org/~sanvila/build-logs/202512/ About the archive rebuild: The build was made on virtual machines from AWS, using sbuild and a reduced chroot with only build-essential packages. If you cannot reproduce the bug please contact me privately, as I am willing to provide ssh access to a virtual machine where the bug is fully reproducible. If this is really a bug in one of the build-depends, please use reassign and add an affects on src:python-ibm-cloud-sdk-core, so that this is still visible in the BTS web page for this package. Thanks. -------------------------------------------------------------------------------- [...] debian/rules clean dh clean --with python3 --buildsystem=pybuild dh_auto_clean -O--buildsystem=pybuild dh_autoreconf_clean -O--buildsystem=pybuild dh_clean -O--buildsystem=pybuild debian/rules binary dh binary --with python3 --buildsystem=pybuild dh_update_autotools_config -O--buildsystem=pybuild dh_autoreconf -O--buildsystem=pybuild dh_auto_configure -O--buildsystem=pybuild dh_auto_build -O--buildsystem=pybuild I: pybuild plugin_pyproject:131: Building wheel for python3.14 with "build" module I: pybuild base:317: python3.14 -m build --skip-dependency-check --no-isolation --wheel --outdir /<<PKGBUILDDIR>>/.pybuild/cpython3_3.14_ibm-cloud-sdk-core * Building wheel... <string>:18: DeprecationWarning: pkg_resources is deprecated as an API. See https://setuptools.pypa.io/en/latest/pkg_resources.html [... snipped ...] !! ******************************************************************************** Please remove any references to `setuptools.command.test` in all supported versions of the affected package. This deprecation is overdue, please update your project and remove deprecated calls to avoid build errors in the future. ******************************************************************************** !! /usr/lib/python3/dist-packages/setuptools/_distutils/dist.py:289: UserWarning: Unknown distribution option: 'tests_require' warnings.warn(msg) /usr/lib/python3/dist-packages/setuptools/dist.py:759: SetuptoolsDeprecationWarning: License classifiers are deprecated. !! ******************************************************************************** Please consider removing the following classifiers in favor of a SPDX license expression: License :: OSI Approved :: Apache Software License See https://packaging.python.org/en/latest/guides/writing-pyproject-toml/#license for details. ******************************************************************************** !! self._finalize_license_expression() running bdist_wheel running build running build_py running egg_info writing ibm_cloud_sdk_core.egg-info/PKG-INFO writing dependency_links to ibm_cloud_sdk_core.egg-info/dependency_links.txt writing requirements to ibm_cloud_sdk_core.egg-info/requires.txt writing top-level names to ibm_cloud_sdk_core.egg-info/top_level.txt reading manifest file 'ibm_cloud_sdk_core.egg-info/SOURCES.txt' reading manifest template 'MANIFEST.in' adding license file 'LICENSE' writing manifest file 'ibm_cloud_sdk_core.egg-info/SOURCES.txt' installing to build/bdist.linux-x86_64/wheel running install running install_lib creating build/bdist.linux-x86_64/wheel creating build/bdist.linux-x86_64/wheel/test copying build/lib/test/test_api_exception.py -> build/bdist.linux-x86_64/wheel/./test copying build/lib/test/test_base_service.py -> build/bdist.linux-x86_64/wheel/./test copying build/lib/test/test_cp4d_token_manager.py -> build/bdist.linux-x86_64/wheel/./test copying build/lib/test/test_jwt_token_manager.py -> build/bdist.linux-x86_64/wheel/./test copying build/lib/test/test_basic_authenticator.py -> build/bdist.linux-x86_64/wheel/./test copying build/lib/test/test_mcsp_authenticator.py -> build/bdist.linux-x86_64/wheel/./test copying build/lib/test/test_iam_token_manager.py -> build/bdist.linux-x86_64/wheel/./test copying build/lib/test/test_container_token_manager.py -> build/bdist.linux-x86_64/wheel/./test copying build/lib/test/test_bearer_authenticator.py -> build/bdist.linux-x86_64/wheel/./test copying build/lib/test/test_utils.py -> build/bdist.linux-x86_64/wheel/./test copying build/lib/test/test_iam_authenticator.py -> build/bdist.linux-x86_64/wheel/./test copying build/lib/test/test_vpc_instance_authenticator.py -> build/bdist.linux-x86_64/wheel/./test copying build/lib/test/test_container_authenticator.py -> build/bdist.linux-x86_64/wheel/./test copying build/lib/test/test_cp4d_authenticator.py -> build/bdist.linux-x86_64/wheel/./test copying build/lib/test/test_no_auth_authenticator.py -> build/bdist.linux-x86_64/wheel/./test copying build/lib/test/test_detailed_response.py -> build/bdist.linux-x86_64/wheel/./test copying build/lib/test/test_token_manager.py -> build/bdist.linux-x86_64/wheel/./test copying build/lib/test/test_vpc_instance_token_manager.py -> build/bdist.linux-x86_64/wheel/./test copying build/lib/test/test_authenticator.py -> build/bdist.linux-x86_64/wheel/./test copying build/lib/test/__init__.py -> build/bdist.linux-x86_64/wheel/./test copying build/lib/test/test_mcsp_token_manager.py -> build/bdist.linux-x86_64/wheel/./test creating build/bdist.linux-x86_64/wheel/ibm_cloud_sdk_core copying build/lib/ibm_cloud_sdk_core/get_authenticator.py -> build/bdist.linux-x86_64/wheel/./ibm_cloud_sdk_core copying build/lib/ibm_cloud_sdk_core/api_exception.py -> build/bdist.linux-x86_64/wheel/./ibm_cloud_sdk_core copying build/lib/ibm_cloud_sdk_core/base_service.py -> build/bdist.linux-x86_64/wheel/./ibm_cloud_sdk_core copying build/lib/ibm_cloud_sdk_core/version.py -> build/bdist.linux-x86_64/wheel/./ibm_cloud_sdk_core copying build/lib/ibm_cloud_sdk_core/utils.py -> build/bdist.linux-x86_64/wheel/./ibm_cloud_sdk_core copying build/lib/ibm_cloud_sdk_core/detailed_response.py -> build/bdist.linux-x86_64/wheel/./ibm_cloud_sdk_core creating build/bdist.linux-x86_64/wheel/ibm_cloud_sdk_core/token_managers copying build/lib/ibm_cloud_sdk_core/token_managers/vpc_instance_token_manager.py -> build/bdist.linux-x86_64/wheel/./ibm_cloud_sdk_core/token_managers copying build/lib/ibm_cloud_sdk_core/token_managers/mcsp_token_manager.py -> build/bdist.linux-x86_64/wheel/./ibm_cloud_sdk_core/token_managers copying build/lib/ibm_cloud_sdk_core/token_managers/container_token_manager.py -> build/bdist.linux-x86_64/wheel/./ibm_cloud_sdk_core/token_managers copying build/lib/ibm_cloud_sdk_core/token_managers/jwt_token_manager.py -> build/bdist.linux-x86_64/wheel/./ibm_cloud_sdk_core/token_managers copying build/lib/ibm_cloud_sdk_core/token_managers/token_manager.py -> build/bdist.linux-x86_64/wheel/./ibm_cloud_sdk_core/token_managers copying build/lib/ibm_cloud_sdk_core/token_managers/iam_token_manager.py -> build/bdist.linux-x86_64/wheel/./ibm_cloud_sdk_core/token_managers copying build/lib/ibm_cloud_sdk_core/token_managers/iam_request_based_token_manager.py -> build/bdist.linux-x86_64/wheel/./ibm_cloud_sdk_core/token_managers copying build/lib/ibm_cloud_sdk_core/token_managers/cp4d_token_manager.py -> build/bdist.linux-x86_64/wheel/./ibm_cloud_sdk_core/token_managers copying build/lib/ibm_cloud_sdk_core/token_managers/__init__.py -> build/bdist.linux-x86_64/wheel/./ibm_cloud_sdk_core/token_managers creating build/bdist.linux-x86_64/wheel/ibm_cloud_sdk_core/authenticators copying build/lib/ibm_cloud_sdk_core/authenticators/mcsp_authenticator.py -> build/bdist.linux-x86_64/wheel/./ibm_cloud_sdk_core/authenticators copying build/lib/ibm_cloud_sdk_core/authenticators/container_authenticator.py -> build/bdist.linux-x86_64/wheel/./ibm_cloud_sdk_core/authenticators copying build/lib/ibm_cloud_sdk_core/authenticators/iam_authenticator.py -> build/bdist.linux-x86_64/wheel/./ibm_cloud_sdk_core/authenticators copying build/lib/ibm_cloud_sdk_core/authenticators/no_auth_authenticator.py -> build/bdist.linux-x86_64/wheel/./ibm_cloud_sdk_core/authenticators copying build/lib/ibm_cloud_sdk_core/authenticators/vpc_instance_authenticator.py -> build/bdist.linux-x86_64/wheel/./ibm_cloud_sdk_core/authenticators copying build/lib/ibm_cloud_sdk_core/authenticators/cp4d_authenticator.py -> build/bdist.linux-x86_64/wheel/./ibm_cloud_sdk_core/authenticators copying build/lib/ibm_cloud_sdk_core/authenticators/bearer_token_authenticator.py -> build/bdist.linux-x86_64/wheel/./ibm_cloud_sdk_core/authenticators copying build/lib/ibm_cloud_sdk_core/authenticators/authenticator.py -> build/bdist.linux-x86_64/wheel/./ibm_cloud_sdk_core/authenticators copying build/lib/ibm_cloud_sdk_core/authenticators/iam_request_based_authenticator.py -> build/bdist.linux-x86_64/wheel/./ibm_cloud_sdk_core/authenticators copying build/lib/ibm_cloud_sdk_core/authenticators/basic_authenticator.py -> build/bdist.linux-x86_64/wheel/./ibm_cloud_sdk_core/authenticators copying build/lib/ibm_cloud_sdk_core/authenticators/__init__.py -> build/bdist.linux-x86_64/wheel/./ibm_cloud_sdk_core/authenticators copying build/lib/ibm_cloud_sdk_core/__init__.py -> build/bdist.linux-x86_64/wheel/./ibm_cloud_sdk_core running install_egg_info Copying ibm_cloud_sdk_core.egg-info to build/bdist.linux-x86_64/wheel/./ibm_cloud_sdk_core-3.19.2.egg-info running install_scripts creating build/bdist.linux-x86_64/wheel/ibm_cloud_sdk_core-3.19.2.dist-info/WHEEL creating '/<<PKGBUILDDIR>>/.pybuild/cpython3_3.13_ibm-cloud-sdk-core/.tmp-2gpz7h73/ibm_cloud_sdk_core-3.19.2-py3-none-any.whl' and adding 'build/bdist.linux-x86_64/wheel' to it adding 'ibm_cloud_sdk_core/__init__.py' adding 'ibm_cloud_sdk_core/api_exception.py' adding 'ibm_cloud_sdk_core/base_service.py' adding 'ibm_cloud_sdk_core/detailed_response.py' adding 'ibm_cloud_sdk_core/get_authenticator.py' adding 'ibm_cloud_sdk_core/utils.py' adding 'ibm_cloud_sdk_core/version.py' adding 'ibm_cloud_sdk_core/authenticators/__init__.py' adding 'ibm_cloud_sdk_core/authenticators/authenticator.py' adding 'ibm_cloud_sdk_core/authenticators/basic_authenticator.py' adding 'ibm_cloud_sdk_core/authenticators/bearer_token_authenticator.py' adding 'ibm_cloud_sdk_core/authenticators/container_authenticator.py' adding 'ibm_cloud_sdk_core/authenticators/cp4d_authenticator.py' adding 'ibm_cloud_sdk_core/authenticators/iam_authenticator.py' adding 'ibm_cloud_sdk_core/authenticators/iam_request_based_authenticator.py' adding 'ibm_cloud_sdk_core/authenticators/mcsp_authenticator.py' adding 'ibm_cloud_sdk_core/authenticators/no_auth_authenticator.py' adding 'ibm_cloud_sdk_core/authenticators/vpc_instance_authenticator.py' adding 'ibm_cloud_sdk_core/token_managers/__init__.py' adding 'ibm_cloud_sdk_core/token_managers/container_token_manager.py' adding 'ibm_cloud_sdk_core/token_managers/cp4d_token_manager.py' adding 'ibm_cloud_sdk_core/token_managers/iam_request_based_token_manager.py' adding 'ibm_cloud_sdk_core/token_managers/iam_token_manager.py' adding 'ibm_cloud_sdk_core/token_managers/jwt_token_manager.py' adding 'ibm_cloud_sdk_core/token_managers/mcsp_token_manager.py' adding 'ibm_cloud_sdk_core/token_managers/token_manager.py' adding 'ibm_cloud_sdk_core/token_managers/vpc_instance_token_manager.py' adding 'ibm_cloud_sdk_core-3.19.2.dist-info/licenses/LICENSE' adding 'test/__init__.py' adding 'test/test_api_exception.py' adding 'test/test_authenticator.py' adding 'test/test_base_service.py' adding 'test/test_basic_authenticator.py' adding 'test/test_bearer_authenticator.py' adding 'test/test_container_authenticator.py' adding 'test/test_container_token_manager.py' adding 'test/test_cp4d_authenticator.py' adding 'test/test_cp4d_token_manager.py' adding 'test/test_detailed_response.py' adding 'test/test_iam_authenticator.py' adding 'test/test_iam_token_manager.py' adding 'test/test_jwt_token_manager.py' adding 'test/test_mcsp_authenticator.py' adding 'test/test_mcsp_token_manager.py' adding 'test/test_no_auth_authenticator.py' adding 'test/test_token_manager.py' adding 'test/test_utils.py' adding 'test/test_vpc_instance_authenticator.py' adding 'test/test_vpc_instance_token_manager.py' adding 'ibm_cloud_sdk_core-3.19.2.dist-info/METADATA' adding 'ibm_cloud_sdk_core-3.19.2.dist-info/WHEEL' adding 'ibm_cloud_sdk_core-3.19.2.dist-info/top_level.txt' adding 'ibm_cloud_sdk_core-3.19.2.dist-info/zip-safe' adding 'ibm_cloud_sdk_core-3.19.2.dist-info/RECORD' removing build/bdist.linux-x86_64/wheel Successfully built ibm_cloud_sdk_core-3.19.2-py3-none-any.whl I: pybuild plugin_pyproject:155: Unpacking wheel built for python3.13 with "installer" module dh_auto_test -O--buildsystem=pybuild I: pybuild base:317: cd /<<PKGBUILDDIR>>/.pybuild/cpython3_3.14_ibm-cloud-sdk-core/build; python3.14 -m pytest test -k " not test_cwd and not test_iam and not test_gzip_compression_external and not test_retry_config_external and not test_files_dict and not test_files_duplicate_parts and not test_configure_service and not test_request_token_auth_default and not test_request_token_auth_in_ctor and not test_get_token_success and not test_request_token_success and not test_authenticate_success and not test_authenticate_fail_iam and not test_client_id_and_secret and not test_setter_methods and not test_retrieve_cr_token_success and not test_get_authenticator_from_credential_file and not test_read_external_sources_2 and not test_files_list " ============================= test session starts ============================== platform linux -- Python 3.14.2, pytest-9.0.2, pluggy-1.6.0 rootdir: /<<PKGBUILDDIR>> configfile: pyproject.toml plugins: typeguard-4.4.4 collected 152 items / 43 deselected / 109 selected test/test_api_exception.py . [ 0%] test/test_authenticator.py . [ 1%] test/test_base_service.py .......................F..F............ [ 37%] test/test_basic_authenticator.py .. [ 39%] test/test_bearer_authenticator.py .. [ 41%] test/test_container_authenticator.py ..... [ 45%] test/test_container_token_manager.py .. [ 47%] test/test_cp4d_authenticator.py ..... [ 52%] test/test_cp4d_token_manager.py . [ 53%] test/test_detailed_response.py .. [ 55%] test/test_jwt_token_manager.py ..... [ 59%] test/test_mcsp_authenticator.py ....... [ 66%] test/test_mcsp_token_manager.py .. [ 67%] test/test_no_auth_authenticator.py . [ 68%] test/test_token_manager.py ..... [ 73%] test/test_utils.py ................ [ 88%] test/test_vpc_instance_authenticator.py .... [ 91%] test/test_vpc_instance_token_manager.py ......... [100%] =================================== FAILURES =================================== _______________________________ test_http_client _______________________________ def test_http_client(): auth = BasicAuthenticator('my_username', 'my_password') service = AnyServiceV1('2018-11-20', authenticator=auth) assert isinstance(service.get_http_client(), requests.sessions.Session) > assert service.get_http_client().headers.get('Accept-Encoding') == > 'gzip, deflate' E AssertionError: assert 'gzip, deflate, zstd' == 'gzip, deflate' E E - gzip, deflate E + gzip, deflate, zstd E ? ++++++ test/test_base_service.py:587: AssertionError _______________________ test_gzip_compression_file_input _______________________ def test_gzip_compression_file_input(): service = AnyServiceV1('2018-11-20', authenticator=NoAuthAuthenticator()) service.set_enable_gzip_compression(True) # Should return file-like object with the compressed data when compression is on # and the input is a file, opened for reading in binary mode. raw_data = b'rawdata' with tempfile.TemporaryFile(mode='w+b') as tmp_file: tmp_file.write(raw_data) tmp_file.seek(0) prepped = service.prepare_request('GET', url='', data=tmp_file) > assert prepped['data'].read() == gzip.compress(raw_data) E AssertionError: assert b'\x1f\x8b\x0...7\x00\x00\x00' == b'\x1f\x8b\x0...7\x00\x00\x00' E E At index 4 diff: b'\x1c' != b'\x00' E Use -v to get more diff test/test_base_service.py:668: AssertionError =============================== warnings summary =============================== .pybuild/cpython3_3.14_ibm-cloud-sdk-core/build/test/test_base_service.py::test_request_server_error .pybuild/cpython3_3.14_ibm-cloud-sdk-core/build/test/test_base_service.py::test_request_success_invalid_json .pybuild/cpython3_3.14_ibm-cloud-sdk-core/build/test/test_base_service.py::test_request_fail_401_nonerror_json .pybuild/cpython3_3.14_ibm-cloud-sdk-core/build/test/test_base_service.py::test_request_fail_401_error_json .pybuild/cpython3_3.14_ibm-cloud-sdk-core/build/test/test_base_service.py::test_request_fail_401_nonjson .pybuild/cpython3_3.14_ibm-cloud-sdk-core/build/test/test_base_service.py::test_request_fail_401_badjson /<<PKGBUILDDIR>>/.pybuild/cpython3_3.14_ibm-cloud-sdk-core/build/ibm_cloud_sdk_core/api_exception.py:56: DeprecationWarning: Using the `code` attribute on the `ApiException` is deprecated andwill be removed in the future. Use `status_code` instead. warnings.warn( -- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html =========================== short test summary info ============================ FAILED test/test_base_service.py::test_http_client - AssertionError: assert '... FAILED test/test_base_service.py::test_gzip_compression_file_input - Assertio... =========== 2 failed, 107 passed, 43 deselected, 6 warnings in 1.96s =========== E: pybuild pybuild:389: test: plugin pyproject failed with: exit code=1: cd /<<PKGBUILDDIR>>/.pybuild/cpython3_3.14_ibm-cloud-sdk-core/build; python3.14 -m pytest test -k " not test_cwd and not test_iam and not test_gzip_compression_external and not test_retry_config_external and not test_files_dict and not test_files_duplicate_parts and not test_configure_service and not test_request_token_auth_default and not test_request_token_auth_in_ctor and not test_get_token_success and not test_request_token_success and not test_authenticate_success and not test_authenticate_fail_iam and not test_client_id_and_secret and not test_setter_methods and not test_retrieve_cr_token_success and not test_get_authenticator_from_credential_file and not test_read_external_sources_2 and not test_files_list " I: pybuild base:317: cd /<<PKGBUILDDIR>>/.pybuild/cpython3_3.13_ibm-cloud-sdk-core/build; python3.13 -m pytest test -k " not test_cwd and not test_iam and not test_gzip_compression_external and not test_retry_config_external and not test_files_dict and not test_files_duplicate_parts and not test_configure_service and not test_request_token_auth_default and not test_request_token_auth_in_ctor and not test_get_token_success and not test_request_token_success and not test_authenticate_success and not test_authenticate_fail_iam and not test_client_id_and_secret and not test_setter_methods and not test_retrieve_cr_token_success and not test_get_authenticator_from_credential_file and not test_read_external_sources_2 and not test_files_list " ============================= test session starts ============================== platform linux -- Python 3.13.11, pytest-9.0.2, pluggy-1.6.0 rootdir: /<<PKGBUILDDIR>> configfile: pyproject.toml plugins: typeguard-4.4.4 collected 152 items / 43 deselected / 109 selected test/test_api_exception.py . [ 0%] test/test_authenticator.py . [ 1%] test/test_base_service.py ....................................... [ 37%] test/test_basic_authenticator.py .. [ 39%] test/test_bearer_authenticator.py .. [ 41%] test/test_container_authenticator.py ..... [ 45%] test/test_container_token_manager.py .. [ 47%] test/test_cp4d_authenticator.py ..... [ 52%] test/test_cp4d_token_manager.py . [ 53%] test/test_detailed_response.py .. [ 55%] test/test_jwt_token_manager.py ..... [ 59%] test/test_mcsp_authenticator.py ....... [ 66%] test/test_mcsp_token_manager.py .. [ 67%] test/test_no_auth_authenticator.py . [ 68%] test/test_token_manager.py ..... [ 73%] test/test_utils.py ................ [ 88%] test/test_vpc_instance_authenticator.py .... [ 91%] test/test_vpc_instance_token_manager.py ......... [100%] =============================== warnings summary =============================== .pybuild/cpython3_3.13_ibm-cloud-sdk-core/build/test/test_base_service.py::test_request_server_error .pybuild/cpython3_3.13_ibm-cloud-sdk-core/build/test/test_base_service.py::test_request_success_invalid_json .pybuild/cpython3_3.13_ibm-cloud-sdk-core/build/test/test_base_service.py::test_request_fail_401_nonerror_json .pybuild/cpython3_3.13_ibm-cloud-sdk-core/build/test/test_base_service.py::test_request_fail_401_error_json .pybuild/cpython3_3.13_ibm-cloud-sdk-core/build/test/test_base_service.py::test_request_fail_401_nonjson .pybuild/cpython3_3.13_ibm-cloud-sdk-core/build/test/test_base_service.py::test_request_fail_401_badjson /<<PKGBUILDDIR>>/.pybuild/cpython3_3.13_ibm-cloud-sdk-core/build/ibm_cloud_sdk_core/api_exception.py:56: DeprecationWarning: Using the `code` attribute on the `ApiException` is deprecated andwill be removed in the future. Use `status_code` instead. warnings.warn( -- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html ================ 109 passed, 43 deselected, 6 warnings in 1.94s ================ I: pybuild pybuild:334: rm -rf /<<PKGBUILDDIR>>/.pybuild/cpython3_3.13_ibm-cloud-sdk-core/build/.pytest_cache dh_auto_test: error: pybuild --test --test-pytest -i python{version} -p "3.14 3.13" returned exit code 13 make: *** [debian/rules:34: binary] Error 25 dpkg-buildpackage: error: debian/rules binary subprocess returned exit status 2 --------------------------------------------------------------------------------

