Source: ionit
Version: 0.3.8-1
Severity: serious
Justification: FTBFS
Tags: bookworm sid ftbfs
User: lu...@debian.org
Usertags: ftbfs-20211104 ftbfs-bookworm

Hi,

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


Relevant part (hopefully):
> make[1]: Entering directory '/<<PKGBUILDDIR>>'
> dh_auto_build
> I: pybuild base:232: /usr/bin/python3 setup.py build 
> running build
> running build_py
> copying ionit_plugin.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9/build
> running build_scripts
> creating build
> creating build/scripts-3.9
> copying and adjusting ionit -> build/scripts-3.9
> changing mode of build/scripts-3.9/ionit from 644 to 755
> pandoc -s -t man ionit.1.md -o ionit.1
> make[1]: Leaving directory '/<<PKGBUILDDIR>>'
>    dh_auto_test -O--buildsystem=pybuild
> I: pybuild base:232: cd /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9/build; 
> python3.9 -m unittest discover -v -s /<<PKGBUILDDIR>>
> test_black (tests.test_black.BlackTestCase)
> Test: Run black code formatter on Python source code. ... Running following 
> command:
> black --check --diff -l 99 /<<PKGBUILDDIR>>/ionit tests ionit_plugin.py 
> /<<PKGBUILDDIR>>/setup.py
> ok
> test_flake8 (tests.test_flake8.Flake8TestCase)
> Test: Run flake8 on Python source code. ... Running following command:
> /usr/bin/python3.9 -m flake8 --max-line-length=99 /<<PKGBUILDDIR>>/ionit 
> tests ionit_plugin.py /<<PKGBUILDDIR>>/setup.py
> ok
> test_collect_function (tests.test_ionit.TestCollectContext)
> Test: Run collect_context(["tests/config/function"]) ... ok
> test_collect_static_context (tests.test_ionit.TestCollectContext)
> Test: Run collect_context(["tests/config/static"]) ... ok
> test_configuration_file (tests.test_ionit.TestCollectContext)
> Test: Run collect_context(["tests/config/static/second.yaml"]) ... ok
> test_context_stacking (tests.test_ionit.TestCollectContext)
> Test: Run collect_context(["tests/config/stacking"]) ... ok
> test_empty_context (tests.test_ionit.TestCollectContext)
> Test: Run collect_context(["tests/config/empty-context"]) ... ok
> test_empty_python_file (tests.test_ionit.TestCollectContext)
> Test: Run collect_context(["tests/config/empty"]) ... ok
> test_ignoring_additional_files (tests.test_ionit.TestCollectContext)
> Test: Run collect_context(["tests/config/additional-file"]) ... ok
> test_invalid_json (tests.test_ionit.TestCollectContext)
> Test: Run collect_context(["tests/config/invalid-json"]) ... ok
> test_invalid_python (tests.test_ionit.TestCollectContext)
> Test: Run collect_context(["tests/config/invalid-python"]) ... ok
> test_invalid_yaml (tests.test_ionit.TestCollectContext)
> Test: Run collect_context(["tests/config/invalid-yaml"]) ... ok
> test_missing_directory (tests.test_ionit.TestCollectContext)
> Test: Non-existing context directory ... ok
> test_non_dict_context (tests.test_ionit.TestCollectContext)
> Test failure for collect_context(["tests/config/non-dict"]) ... ok
> test_python_module (tests.test_ionit.TestCollectContext)
> Test: Run collect_context(["tests/config/python"]) ... ok
> test_raise_exception (tests.test_ionit.TestCollectContext)
> Test failure for collect_context(["tests/config/exception"]) ... ok
> test_main_default_config (tests.test_ionit.TestMain)
> Test main() with default config ... 2021-11-04 09:54:54,731 ionit INFO: 
> Loading Python module 'function' from 
> '/<<PKGBUILDDIR>>/tests/config/function/function.py'...
> 2021-11-04 09:54:54,734 ionit INFO: Rendered 
> '/<<PKGBUILDDIR>>/tests/template/function/Document.jinja' to 
> '/<<PKGBUILDDIR>>/tests/template/function/Document'.
> ok
> test_main_static (tests.test_ionit.TestMain)
> Test main() with static context ... 2021-11-04 09:54:54,735 ionit INFO: 
> Reading configuration file 
> '/<<PKGBUILDDIR>>/tests/config/static/first.json'...
> 2021-11-04 09:54:54,735 ionit INFO: Reading configuration file 
> '/<<PKGBUILDDIR>>/tests/config/static/second.yaml'...
> 2021-11-04 09:54:54,736 ionit INFO: Rendered 
> '/<<PKGBUILDDIR>>/tests/template/static/counting.jinja' to 
> '/<<PKGBUILDDIR>>/tests/template/static/counting'.
> ok
> test_attribution_error (tests.test_ionit.TestRendering)
> Test: Run render_templates("tests/template/attribution-error") ... ok
> test_missing_context (tests.test_ionit.TestRendering)
> Test: Missing context for render_templates("tests/template/static") ... ok
> test_render_function (tests.test_ionit.TestRendering)
> Test: Run render_templates("tests/template/function") ... 2021-11-04 
> 09:54:54,744 ionit INFO: Rendered 
> '/<<PKGBUILDDIR>>/tests/template/function/Document.jinja' to 
> '/<<PKGBUILDDIR>>/tests/template/function/Document'.
> ok
> test_render_invalid (tests.test_ionit.TestRendering)
> Test: Run render_templates("tests/template/invalid") ... ok
> test_render_static (tests.test_ionit.TestRendering)
> Test: Run render_templates("tests/template/static") ... 2021-11-04 
> 09:54:54,745 ionit INFO: Rendered 
> '/<<PKGBUILDDIR>>/tests/template/static/counting.jinja' to 
> '/<<PKGBUILDDIR>>/tests/template/static/counting'.
> ok
> test_render_write_protected (tests.test_ionit.TestRendering)
> Test: Run render_templates("tests/template/static"), but write protected ... 
> ok
> test_isort (tests.test_isort.IsortTestCase)
> Test: Run isort on Python source code. ... Running following command:
> isort --check-only --diff -l 99 -p ionit_plugin /<<PKGBUILDDIR>>/ionit tests 
> ionit_plugin.py /<<PKGBUILDDIR>>/setup.py
> ok
> test_file_not_open_mocked (tests.test_mock_open.MockTest)
> Test not opening the mocked file ... ok
> test_file_open_not_mocked (tests.test_mock_open.MockTest)
> Test opening a not mocked file ... ok
> test_open_same_file_twice (tests.test_mock_open.MockTest)
> Test opening the same mocked file twice ... ok
> test_raise_exception (tests.test_mock_open.MockTest)
> Test raising an exception on mocked open() ... ok
> test_pylint (tests.test_pylint.PylintTestCase)
> Test: Run pylint on Python source code. ... Running following command:
> /usr/bin/python3.9 -m pylint --rcfile=/<<PKGBUILDDIR>>/tests/pylint.conf -- 
> /<<PKGBUILDDIR>>/ionit tests ionit_plugin.py /<<PKGBUILDDIR>>/setup.py
> FAIL
> 
> ======================================================================
> FAIL: test_pylint (tests.test_pylint.PylintTestCase)
> Test: Run pylint on Python source code.
> ----------------------------------------------------------------------
> Traceback (most recent call last):
>   File "/<<PKGBUILDDIR>>/tests/test_pylint.py", line 76, in test_pylint
>     self.fail("\n".join(msgs))
> AssertionError: pylint found issues:
> ************* Module ionit
> /<<PKGBUILDDIR>>/ionit.py:33:4: R0402: Use 'from ruamel import yaml' instead 
> (consider-using-from-import)
> /<<PKGBUILDDIR>>/ionit.py:66:16: W0402: Uses of a deprecated module 'imp' 
> (deprecated-module)
> /<<PKGBUILDDIR>>/ionit.py:129:21: W1514: Using open without explicitly 
> specifying an encoding (unspecified-encoding)
> /<<PKGBUILDDIR>>/ionit.py:135:21: W1514: Using open without explicitly 
> specifying an encoding (unspecified-encoding)
> /<<PKGBUILDDIR>>/ionit.py:196:17: W1514: Using open without explicitly 
> specifying an encoding (unspecified-encoding)
> /<<PKGBUILDDIR>>/ionit.py:215:13: C0209: Formatting a regular string which 
> could be a f-string (consider-using-f-string)
> ************* Module tests.test_mock_open
> tests/test_mock_open.py:50:17: W1514: Using open without explicitly 
> specifying an encoding (unspecified-encoding)
> tests/test_mock_open.py:51:21: W1514: Using open without explicitly 
> specifying an encoding (unspecified-encoding)
> tests/test_mock_open.py:68:25: W1514: Using open without explicitly 
> specifying an encoding (unspecified-encoding)
> tests/test_mock_open.py:69:29: W1514: Using open without explicitly 
> specifying an encoding (unspecified-encoding)
> tests/test_mock_open.py:70:33: W1514: Using open without explicitly 
> specifying an encoding (unspecified-encoding)
> tests/test_mock_open.py:77:16: R1732: Consider using 'with' for 
> resource-allocating operations (consider-using-with)
> tests/test_mock_open.py:77:16: W1514: Using open without explicitly 
> specifying an encoding (unspecified-encoding)
> ************* Module tests.test_black
> tests/test_black.py:36:29: C0209: Formatting a regular string which could be 
> a f-string (consider-using-f-string)
> tests/test_black.py:43:22: C0209: Formatting a regular string which could be 
> a f-string (consider-using-f-string)
> tests/test_black.py:45:22: C0209: Formatting a regular string which could be 
> a f-string (consider-using-f-string)
> tests/test_black.py:37:18: R1732: Consider using 'with' for 
> resource-allocating operations (consider-using-with)
> ************* Module tests.test_ionit
> tests/test_ionit.py:241:17: W1514: Using open without explicitly specifying 
> an encoding (unspecified-encoding)
> tests/test_ionit.py:274:17: W1514: Using open without explicitly specifying 
> an encoding (unspecified-encoding)
> tests/test_ionit.py:308:17: W1514: Using open without explicitly specifying 
> an encoding (unspecified-encoding)
> tests/test_ionit.py:326:17: W1514: Using open without explicitly specifying 
> an encoding (unspecified-encoding)
> ************* Module tests.test_pylint
> tests/test_pylint.py:42:29: C0209: Formatting a regular string which could be 
> a f-string (consider-using-f-string)
> tests/test_pylint.py:64:20: C0209: Formatting a regular string which could be 
> a f-string (consider-using-f-string)
> tests/test_pylint.py:69:28: C0209: Formatting a regular string which could be 
> a f-string (consider-using-f-string)
> tests/test_pylint.py:72:20: C0209: Formatting a regular string which could be 
> a f-string (consider-using-f-string)
> tests/test_pylint.py:43:18: R1732: Consider using 'with' for 
> resource-allocating operations (consider-using-with)
> ************* Module tests.test_isort
> tests/test_isort.py:44:29: C0209: Formatting a regular string which could be 
> a f-string (consider-using-f-string)
> tests/test_isort.py:51:22: C0209: Formatting a regular string which could be 
> a f-string (consider-using-f-string)
> tests/test_isort.py:45:18: R1732: Consider using 'with' for 
> resource-allocating operations (consider-using-with)
> ************* Module tests.test_flake8
> tests/test_flake8.py:36:29: C0209: Formatting a regular string which could be 
> a f-string (consider-using-f-string)
> tests/test_flake8.py:46:20: C0209: Formatting a regular string which could be 
> a f-string (consider-using-f-string)
> tests/test_flake8.py:51:28: C0209: Formatting a regular string which could be 
> a f-string (consider-using-f-string)
> tests/test_flake8.py:54:20: C0209: Formatting a regular string which could be 
> a f-string (consider-using-f-string)
> tests/test_flake8.py:37:18: R1732: Consider using 'with' for 
> resource-allocating operations (consider-using-with)
> ************* Module tests.mock_open
> tests/mock_open.py:39:25: C0209: Formatting a regular string which could be a 
> f-string (consider-using-f-string)
> tests/mock_open.py:77:20: W1514: Using open without explicitly specifying an 
> encoding (unspecified-encoding)
> tests/mock_open.py:77:20: R1732: Consider using 'with' for 
> resource-allocating operations (consider-using-with)
> tests/mock_open.py:94:33: C0209: Formatting a regular string which could be a 
> f-string (consider-using-f-string)
> 
> ----------------------------------------------------------------------
> Ran 30 tests in 6.787s
> 
> FAILED (failures=1)
> E: pybuild pybuild:354: test: plugin distutils failed with: exit code=1: cd 
> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9/build; python3.9 -m unittest discover 
> -v -s /<<PKGBUILDDIR>>
> dh_auto_test: error: pybuild --test -i python{version} -p 3.9 returned exit 
> code 13


The full build log is available from:
http://qa-logs.debian.net/2021/11/04/ionit_0.3.8-1_unstable.log

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 marking 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.

Reply via email to