Source: ionit
Version: 0.5.0-2
Severity: serious
Justification: FTBFS
Tags: trixie sid ftbfs
User: [email protected]
Usertags: ftbfs-20250107 ftbfs-trixie
Hi,
During a rebuild of all packages in sid, your package failed to build
on amd64.
This build was done using sbuild from bookworm-backports and the unshare
backend.
Relevant part (hopefully):
> make[1]: Entering directory '/build/reproducible-path/ionit-0.5.0'
> dh_auto_build
> I: pybuild base:311: /usr/bin/python3 setup.py build
> running build
> running build_py
> copying ionit_plugin.py ->
> /build/reproducible-path/ionit-0.5.0/.pybuild/cpython3_3.13/build
> running build_scripts
> creating build/scripts-3.13
> copying and adjusting ionit -> build/scripts-3.13
> changing mode of build/scripts-3.13/ionit from 644 to 755
> pandoc -s -t man ionit.1.md -o ionit.1
> make[1]: Leaving directory '/build/reproducible-path/ionit-0.5.0'
> dh_auto_test -O--buildsystem=pybuild
> I: pybuild base:311: cd
> /build/reproducible-path/ionit-0.5.0/.pybuild/cpython3_3.13/build; python3.13
> -m unittest discover -v -s /build/reproducible-path/ionit-0.5.0
> test_black (tests.test_black.BlackTestCase.test_black)
> Test: Run black code formatter on Python source code. ... Running following
> command:
> black --check --diff -l 99 /build/reproducible-path/ionit-0.5.0/ionit tests
> ionit_plugin.py /build/reproducible-path/ionit-0.5.0/setup.py
> ok
> test_flake8 (tests.test_flake8.Flake8TestCase.test_flake8)
> Test: Run flake8 on Python source code. ... Running following command:
> /usr/bin/python3.13 -m flake8 --max-line-length=99
> /build/reproducible-path/ionit-0.5.0/ionit tests ionit_plugin.py
> /build/reproducible-path/ionit-0.5.0/setup.py
> ok
> test_collect_function
> (tests.test_ionit.TestCollectContext.test_collect_function)
> Test: Run collect_context(["tests/config/function"]) ... ok
> test_collect_static_context
> (tests.test_ionit.TestCollectContext.test_collect_static_context)
> Test: Run collect_context(["tests/config/static"]) ... ok
> test_configuration_file
> (tests.test_ionit.TestCollectContext.test_configuration_file)
> Test: Run collect_context(["tests/config/static/second.yaml"]) ... ok
> test_context_stacking
> (tests.test_ionit.TestCollectContext.test_context_stacking)
> Test: Run collect_context(["tests/config/stacking"]) ... ok
> test_empty_context (tests.test_ionit.TestCollectContext.test_empty_context)
> Test: Run collect_context(["tests/config/empty-context"]) ... ok
> test_empty_python_file
> (tests.test_ionit.TestCollectContext.test_empty_python_file)
> Test: Run collect_context(["tests/config/empty"]) ... ok
> test_ignoring_additional_files
> (tests.test_ionit.TestCollectContext.test_ignoring_additional_files)
> Test: Run collect_context(["tests/config/additional-file"]) ... ok
> test_invalid_json (tests.test_ionit.TestCollectContext.test_invalid_json)
> Test: Run collect_context(["tests/config/invalid-json"]) ... FAIL
> test_invalid_python (tests.test_ionit.TestCollectContext.test_invalid_python)
> Test: Run collect_context(["tests/config/invalid-python"]) ... ok
> test_invalid_yaml (tests.test_ionit.TestCollectContext.test_invalid_yaml)
> Test: Run collect_context(["tests/config/invalid-yaml"]) ... ok
> test_missing_directory
> (tests.test_ionit.TestCollectContext.test_missing_directory)
> Test: Non-existing context directory ... ok
> test_non_dict_context
> (tests.test_ionit.TestCollectContext.test_non_dict_context)
> Test failure for collect_context(["tests/config/non-dict"]) ... ok
> test_python_module (tests.test_ionit.TestCollectContext.test_python_module)
> Test: Run collect_context(["tests/config/python"]) ... ok
> test_raise_exception
> (tests.test_ionit.TestCollectContext.test_raise_exception)
> Test failure for collect_context(["tests/config/exception"]) ... ok
> test_main_append_templates
> (tests.test_ionit.TestMain.test_main_append_templates)
> Test main() with static context and multiple template directories ...
> 2025-01-08 07:09:41,051 ionit INFO: Reading configuration file
> '/build/reproducible-path/ionit-0.5.0/tests/config/static/first.json'...
> 2025-01-08 07:09:41,051 ionit INFO: Reading configuration file
> '/build/reproducible-path/ionit-0.5.0/tests/config/static/second.yaml'...
> 2025-01-08 07:09:41,054 ionit INFO: Rendered
> '/build/reproducible-path/ionit-0.5.0/tests/template/static/counting.jinja'
> to '/build/reproducible-path/ionit-0.5.0/tests/template/static/counting'.
> 2025-01-08 07:09:41,055 ionit INFO: Rendered
> '/build/reproducible-path/ionit-0.5.0/tests/template/static2/counting.jinja'
> to '/build/reproducible-path/ionit-0.5.0/tests/template/static2/counting'.
> ok
> test_main_default_config (tests.test_ionit.TestMain.test_main_default_config)
> Test main() with default config ... 2025-01-08 07:09:41,056 ionit INFO:
> Loading Python module 'function' from
> '/build/reproducible-path/ionit-0.5.0/tests/config/function/function.py'...
> 2025-01-08 07:09:41,057 ionit INFO: Rendered
> '/build/reproducible-path/ionit-0.5.0/tests/template/function/Document.jinja'
> to '/build/reproducible-path/ionit-0.5.0/tests/template/function/Document'.
> ok
> test_main_default_templates_directory
> (tests.test_ionit.TestMain.test_main_default_templates_directory)
> Test main() with default templates directory ... 2025-01-08 07:09:41,058
> ionit INFO: Reading configuration file
> '/build/reproducible-path/ionit-0.5.0/tests/config/static/first.json'...
> 2025-01-08 07:09:41,058 ionit INFO: Reading configuration file
> '/build/reproducible-path/ionit-0.5.0/tests/config/static/second.yaml'...
> 2025-01-08 07:09:41,060 ionit INFO: Rendered
> '/build/reproducible-path/ionit-0.5.0/tests/template/static/counting.jinja'
> to '/build/reproducible-path/ionit-0.5.0/tests/template/static/counting'.
> ok
> test_main_static (tests.test_ionit.TestMain.test_main_static)
> Test main() with static context ... 2025-01-08 07:09:41,061 ionit INFO:
> Reading configuration file
> '/build/reproducible-path/ionit-0.5.0/tests/config/static/first.json'...
> 2025-01-08 07:09:41,061 ionit INFO: Reading configuration file
> '/build/reproducible-path/ionit-0.5.0/tests/config/static/second.yaml'...
> 2025-01-08 07:09:41,062 ionit INFO: Rendered
> '/build/reproducible-path/ionit-0.5.0/tests/template/static/counting.jinja'
> to '/build/reproducible-path/ionit-0.5.0/tests/template/static/counting'.
> ok
> test_attribution_error (tests.test_ionit.TestRendering.test_attribution_error)
> Test: Run render_templates("tests/template/attribution-error") ... ok
> test_missing_context (tests.test_ionit.TestRendering.test_missing_context)
> Test: Missing context for render_templates("tests/template/static") ... ok
> test_render_function (tests.test_ionit.TestRendering.test_render_function)
> Test: Run render_templates("tests/template/function") ... 2025-01-08
> 07:09:41,070 ionit INFO: Rendered
> '/build/reproducible-path/ionit-0.5.0/tests/template/function/Document.jinja'
> to '/build/reproducible-path/ionit-0.5.0/tests/template/function/Document'.
> ok
> test_render_invalid (tests.test_ionit.TestRendering.test_render_invalid)
> Test: Run render_templates("tests/template/invalid") ... ok
> test_render_static (tests.test_ionit.TestRendering.test_render_static)
> Test: Run render_templates("tests/template/static") ... 2025-01-08
> 07:09:41,073 ionit INFO: Rendered
> '/build/reproducible-path/ionit-0.5.0/tests/template/static/counting.jinja'
> to '/build/reproducible-path/ionit-0.5.0/tests/template/static/counting'.
> ok
> test_render_write_protected
> (tests.test_ionit.TestRendering.test_render_write_protected)
> Test: Run render_templates("tests/template/static"), but write protected ...
> ok
> test_isort (tests.test_isort.IsortTestCase.test_isort)
> Test: Run isort on Python source code. ... Running following command:
> isort --check-only --diff -l 99 -p ionit_plugin
> /build/reproducible-path/ionit-0.5.0/ionit tests ionit_plugin.py
> /build/reproducible-path/ionit-0.5.0/setup.py
> ok
> test_file_not_open_mocked
> (tests.test_mock_open.MockTest.test_file_not_open_mocked)
> Test not opening the mocked file ... ok
> test_file_open_not_mocked
> (tests.test_mock_open.MockTest.test_file_open_not_mocked)
> Test opening a not mocked file ... ok
> test_open_same_file_twice
> (tests.test_mock_open.MockTest.test_open_same_file_twice)
> Test opening the same mocked file twice ... ok
> test_raise_exception (tests.test_mock_open.MockTest.test_raise_exception)
> Test raising an exception on mocked open() ... ok
> test_pylint (tests.test_pylint.PylintTestCase.test_pylint)
> Test: Run pylint on Python source code. ... Running following command:
> /usr/bin/python3.13 -m pylint
> --rcfile=/build/reproducible-path/ionit-0.5.0/tests/pylint.conf --
> /build/reproducible-path/ionit-0.5.0/ionit tests ionit_plugin.py
> /build/reproducible-path/ionit-0.5.0/setup.py
> ok
>
> ======================================================================
> FAIL: test_invalid_json
> (tests.test_ionit.TestCollectContext.test_invalid_json)
> Test: Run collect_context(["tests/config/invalid-json"])
> ----------------------------------------------------------------------
> Traceback (most recent call last):
> File "/build/reproducible-path/ionit-0.5.0/tests/test_ionit.py", line 115,
> in test_invalid_json
> self.assertRegex(
> ~~~~~~~~~~~~~~~~^
> context_manager.output[0],
> ^^^^^^^^^^^^^^^^^^^^^^^^^^
> ...<4 lines>...
> ),
> ^^
> )
> ^
> AssertionError: Regex didn't match: "ERROR:ionit:Failed to read JSON from
> '[^']*config/invalid-json/invalid.json': Expecting property name enclosed in
> double quotes: line 3 column 1 \\(char 22\\)" not found in
> "ERROR:ionit:Failed to read JSON from
> '/build/reproducible-path/ionit-0.5.0/tests/config/invalid-json/invalid.json':
> Illegal trailing comma before end of object: line 2 column 19 (char 20)"
>
> ----------------------------------------------------------------------
> Ran 32 tests in 6.439s
>
> FAILED (failures=1)
> E: pybuild pybuild:389: test: plugin distutils failed with: exit code=1: cd
> /build/reproducible-path/ionit-0.5.0/.pybuild/cpython3_3.13/build; python3.13
> -m unittest discover -v -s /build/reproducible-path/ionit-0.5.0
> dh_auto_test: error: pybuild --test -i python{version} -p 3.13 returned exit
> code 13
The full build log is available from:
http://qa-logs.debian.net/2025/01/07/ionit_0.5.0-2_unstable.log
All bugs filed during this archive rebuild are listed at:
https://bugs.debian.org/cgi-bin/pkgreport.cgi?tag=ftbfs-20250107;[email protected]
or:
https://udd.debian.org/bugs/?release=na&merged=ign&fnewerval=7&flastmodval=7&fusertag=only&fusertagtag=ftbfs-20250107&[email protected]&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.