Bug#1026740: pyct: FTBFS: dh_auto_test: error: pybuild --test --test-pytest -i python{version} -p "3.11 3.10" returned exit code 13

Lucas Nussbaum lucas at debian.org
Tue Dec 20 17:29:18 GMT 2022


Source: pyct
Version: 0.4.7a3-2
Severity: serious
Justification: FTBFS
Tags: bookworm sid ftbfs
User: lucas at debian.org
Usertags: ftbfs-20221220 ftbfs-bookworm

Hi,

During a rebuild of all packages in sid, your package failed to build
on amd64.


Relevant part (hopefully):
>  debian/rules build
> dh build --with python3 --buildsystem=pybuild
>    dh_update_autotools_config -O--buildsystem=pybuild
>    dh_autoreconf -O--buildsystem=pybuild
>    dh_auto_configure -O--buildsystem=pybuild
> I: pybuild base:240: python3.11 setup.py config 
> /usr/lib/python3/dist-packages/setuptools/config/setupcfg.py:508: SetuptoolsDeprecationWarning: The license_file parameter is deprecated, use license_files instead.
>   warnings.warn(msg, warning_class)
> running config
> I: pybuild base:240: python3.10 setup.py config 
> /usr/lib/python3/dist-packages/setuptools/config/setupcfg.py:508: SetuptoolsDeprecationWarning: The license_file parameter is deprecated, use license_files instead.
>   warnings.warn(msg, warning_class)
> running config
>    dh_auto_build -O--buildsystem=pybuild
> I: pybuild base:240: /usr/bin/python3.11 setup.py build 
> /usr/lib/python3/dist-packages/setuptools/config/setupcfg.py:508: SetuptoolsDeprecationWarning: The license_file parameter is deprecated, use license_files instead.
>   warnings.warn(msg, warning_class)
> running build
> running build_py
> creating /<<PKGBUILDDIR>>/.pybuild/cpython3_3.11_pyct/build/pyct
> copying pyct/__init__.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.11_pyct/build/pyct
> copying pyct/build.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.11_pyct/build/pyct
> copying pyct/report.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.11_pyct/build/pyct
> copying pyct/cmd.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.11_pyct/build/pyct
> creating /<<PKGBUILDDIR>>/.pybuild/cpython3_3.11_pyct/build/pyct/tests
> copying pyct/tests/__init__.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.11_pyct/build/pyct/tests
> copying pyct/tests/test_cmd.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.11_pyct/build/pyct/tests
> copying pyct/tests/test_report.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.11_pyct/build/pyct/tests
> running egg_info
> creating pyct.egg-info
> writing pyct.egg-info/PKG-INFO
> writing dependency_links to pyct.egg-info/dependency_links.txt
> writing entry points to pyct.egg-info/entry_points.txt
> writing requirements to pyct.egg-info/requires.txt
> writing top-level names to pyct.egg-info/top_level.txt
> writing manifest file 'pyct.egg-info/SOURCES.txt'
> reading manifest file 'pyct.egg-info/SOURCES.txt'
> reading manifest template 'MANIFEST.in'
> adding license file 'LICENSE.txt'
> writing manifest file 'pyct.egg-info/SOURCES.txt'
> copying pyct/.version -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.11_pyct/build/pyct
> I: pybuild base:240: /usr/bin/python3 setup.py build 
> /usr/lib/python3/dist-packages/setuptools/config/setupcfg.py:508: SetuptoolsDeprecationWarning: The license_file parameter is deprecated, use license_files instead.
>   warnings.warn(msg, warning_class)
> running build
> running build_py
> creating /<<PKGBUILDDIR>>/.pybuild/cpython3_3.10_pyct/build/pyct
> copying pyct/__init__.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.10_pyct/build/pyct
> copying pyct/build.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.10_pyct/build/pyct
> copying pyct/report.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.10_pyct/build/pyct
> copying pyct/cmd.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.10_pyct/build/pyct
> creating /<<PKGBUILDDIR>>/.pybuild/cpython3_3.10_pyct/build/pyct/tests
> copying pyct/tests/__init__.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.10_pyct/build/pyct/tests
> copying pyct/tests/test_cmd.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.10_pyct/build/pyct/tests
> copying pyct/tests/test_report.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.10_pyct/build/pyct/tests
> running egg_info
> writing pyct.egg-info/PKG-INFO
> writing dependency_links to pyct.egg-info/dependency_links.txt
> writing entry points to pyct.egg-info/entry_points.txt
> writing requirements to pyct.egg-info/requires.txt
> writing top-level names to pyct.egg-info/top_level.txt
> reading manifest file 'pyct.egg-info/SOURCES.txt'
> reading manifest template 'MANIFEST.in'
> adding license file 'LICENSE.txt'
> writing manifest file 'pyct.egg-info/SOURCES.txt'
> copying pyct/.version -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.10_pyct/build/pyct
>    dh_auto_test -O--buildsystem=pybuild
> I: pybuild base:240: cd /<<PKGBUILDDIR>>/.pybuild/cpython3_3.11_pyct/build; python3.11 -m pytest 
> ============================= test session starts ==============================
> platform linux -- Python 3.11.1, pytest-7.2.0, pluggy-1.0.0+repack -- /usr/bin/python3.11
> cachedir: .pytest_cache
> rootdir: /<<PKGBUILDDIR>>, configfile: tox.ini
> collecting ... collected 19 items
> 
> pyct/tests/test_cmd.py::test_examples_with_use_test_data PASSED          [  5%]
> pyct/tests/test_cmd.py::test_examples_with_prexisting_content_in_target_raises_error PASSED [ 10%]
> pyct/tests/test_cmd.py::test_examples_using_test_data_and_force_with_prexisting_content_in_target PASSED [ 15%]
> pyct/tests/test_cmd.py::test_copy_examples PASSED                        [ 21%]
> pyct/tests/test_cmd.py::test_copy_examples_with_prexisting_content_in_target_raises_error PASSED [ 26%]
> pyct/tests/test_cmd.py::test_copy_examples_using_force_with_prexisting_content_in_target PASSED [ 31%]
> pyct/tests/test_cmd.py::test_fetch_data_using_test_data_with_no_file_in_data_copies_from_stubs PASSED [ 36%]
> pyct/tests/test_cmd.py::test_fetch_data_using_test_data_with_file_in_data_skips PASSED [ 42%]
> pyct/tests/test_cmd.py::test_fetch_data_using_test_data_and_force_with_file_in_data_over_writes PASSED [ 47%]
> pyct/tests/test_cmd.py::test_clean_data_when_data_file_is_real_does_nothing PASSED [ 52%]
> pyct/tests/test_cmd.py::test_clean_data_when_data_file_is_from_stubs_removes_file_from_data PASSED [ 57%]
> pyct/tests/test_cmd.py::test_clean_data_when_file_not_in_data_does_nothing PASSED [ 63%]
> pyct/tests/test_cmd.py::test_clean_data_when_stubs_is_empty_does_nothing PASSED [ 68%]
> pyct/tests/test_cmd.py::test_clean_data_when_no_stubs_dir_does_nothing PASSED [ 73%]
> pyct/tests/test_report.py::test_report_gives_package_version FAILED      [ 78%]
> pyct/tests/test_report.py::test_report_gives_conda_version PASSED        [ 84%]
> pyct/tests/test_report.py::test_report_gives_python_version PASSED       [ 89%]
> pyct/tests/test_report.py::test_report_gives_system_version PASSED       [ 94%]
> pyct/tests/test_report.py::test_unknown_package_output PASSED            [100%]
> 
> =================================== FAILURES ===================================
> ______________________ test_report_gives_package_version _______________________
> 
> mock_import_module = <MagicMock name='import_module' id='140050591535952'>
> mock_print = <MagicMock name='print' id='140050606880656'>
> 
>     @patch("builtins.print")
>     @patch("importlib.import_module")
>     def test_report_gives_package_version(mock_import_module, mock_print):
>         module = TestModule()
>         mock_import_module.return_value = module
>     
>         report("param")
>     
> >       mock_print.assert_called_with('param=1.9.3                    # /mock/opt/anaconda3/envs/pyct/lib/python3.7/site-packages/param')
> 
> pyct/tests/test_report.py:16: 
> _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
> 
> self = <MagicMock name='print' id='140050606880656'>
> args = ('param=1.9.3                    # /mock/opt/anaconda3/envs/pyct/lib/python3.7/site-packages/param',)
> kwargs = {}
> expected = "print('param=1.9.3                    # /mock/opt/anaconda3/envs/pyct/lib/python3.7/site-packages/param')"
> actual = 'not called.'
> error_message = "expected call not found.\nExpected: print('param=1.9.3                    # /mock/opt/anaconda3/envs/pyct/lib/python3.7/site-packages/param')\nActual: not called."
> 
>     def assert_called_with(self, /, *args, **kwargs):
>         """assert that the last call was made with the specified arguments.
>     
>         Raises an AssertionError if the args and keyword args passed in are
>         different to the last call to the mock."""
>         if self.call_args is None:
>             expected = self._format_mock_call_signature(args, kwargs)
>             actual = 'not called.'
>             error_message = ('expected call not found.\nExpected: %s\nActual: %s'
>                     % (expected, actual))
> >           raise AssertionError(error_message)
> E           AssertionError: expected call not found.
> E           Expected: print('param=1.9.3                    # /mock/opt/anaconda3/envs/pyct/lib/python3.7/site-packages/param')
> E           Actual: not called.
> 
> /usr/lib/python3.11/unittest/mock.py:924: AssertionError
> ----------------------------- Captured stdout call -----------------------------
> param=1.9.3                    # /mock/opt/anaconda3/envs/pyct/lib/python3.7/site-packages/param
> =========================== short test summary info ============================
> FAILED pyct/tests/test_report.py::test_report_gives_package_version - Asserti...
> ========================= 1 failed, 18 passed in 0.38s =========================
> E: pybuild pybuild:386: test: plugin distutils failed with: exit code=1: cd /<<PKGBUILDDIR>>/.pybuild/cpython3_3.11_pyct/build; python3.11 -m pytest 
> I: pybuild base:240: cd /<<PKGBUILDDIR>>/.pybuild/cpython3_3.10_pyct/build; python3.10 -m pytest 
> ============================= test session starts ==============================
> platform linux -- Python 3.10.9, pytest-7.2.0, pluggy-1.0.0+repack -- /usr/bin/python3.10
> cachedir: .pytest_cache
> rootdir: /<<PKGBUILDDIR>>, configfile: tox.ini
> collecting ... collected 19 items
> 
> pyct/tests/test_cmd.py::test_examples_with_use_test_data PASSED          [  5%]
> pyct/tests/test_cmd.py::test_examples_with_prexisting_content_in_target_raises_error PASSED [ 10%]
> pyct/tests/test_cmd.py::test_examples_using_test_data_and_force_with_prexisting_content_in_target PASSED [ 15%]
> pyct/tests/test_cmd.py::test_copy_examples PASSED                        [ 21%]
> pyct/tests/test_cmd.py::test_copy_examples_with_prexisting_content_in_target_raises_error PASSED [ 26%]
> pyct/tests/test_cmd.py::test_copy_examples_using_force_with_prexisting_content_in_target PASSED [ 31%]
> pyct/tests/test_cmd.py::test_fetch_data_using_test_data_with_no_file_in_data_copies_from_stubs PASSED [ 36%]
> pyct/tests/test_cmd.py::test_fetch_data_using_test_data_with_file_in_data_skips PASSED [ 42%]
> pyct/tests/test_cmd.py::test_fetch_data_using_test_data_and_force_with_file_in_data_over_writes PASSED [ 47%]
> pyct/tests/test_cmd.py::test_clean_data_when_data_file_is_real_does_nothing PASSED [ 52%]
> pyct/tests/test_cmd.py::test_clean_data_when_data_file_is_from_stubs_removes_file_from_data PASSED [ 57%]
> pyct/tests/test_cmd.py::test_clean_data_when_file_not_in_data_does_nothing PASSED [ 63%]
> pyct/tests/test_cmd.py::test_clean_data_when_stubs_is_empty_does_nothing PASSED [ 68%]
> pyct/tests/test_cmd.py::test_clean_data_when_no_stubs_dir_does_nothing PASSED [ 73%]
> pyct/tests/test_report.py::test_report_gives_package_version PASSED      [ 78%]
> pyct/tests/test_report.py::test_report_gives_conda_version PASSED        [ 84%]
> pyct/tests/test_report.py::test_report_gives_python_version PASSED       [ 89%]
> pyct/tests/test_report.py::test_report_gives_system_version PASSED       [ 94%]
> pyct/tests/test_report.py::test_unknown_package_output PASSED            [100%]
> 
> ============================== 19 passed in 0.35s ==============================
> dh_auto_test: error: pybuild --test --test-pytest -i python{version} -p "3.11 3.10" returned exit code 13


The full build log is available from:
http://qa-logs.debian.net/2022/12/20/pyct_0.4.7a3-2_unstable.log

All bugs filed during this archive rebuild are listed at:
https://bugs.debian.org/cgi-bin/pkgreport.cgi?tag=ftbfs-20221220;users=lucas@debian.org
or:
https://udd.debian.org/bugs/?release=na&merged=ign&fnewerval=7&flastmodval=7&fusertag=only&fusertagtag=ftbfs-20221220&fusertaguser=lucas@debian.org&allbugs=1&cseverity=1&ctags=1&caffected=1#results

A list of current common problems and possible solutions is available at
http://wiki.debian.org/qa.debian.org/FTBFS . You're welcome to contribute!

If you reassign this bug to another package, please mark it as 'affects'-ing
this package. See https://www.debian.org/Bugs/server-control#affects

If you fail to reproduce this, please provide a build log and diff it with mine
so that we can identify if something relevant changed in the meantime.



More information about the debian-science-maintainers mailing list