#1137390 ansible-lint: FTBFS: E AssertionError: assert 4 == 2

#1137390#5
Date:
2026-05-23 13:45:59 UTC
From:
To:
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/202605/

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:ansible-lint, so that this is still
visible in the BTS web page for this package.

Thanks.
--------------------------------------------------------------------------------
[...]
 debian/rules clean
dh clean --buildsystem=pybuild
   dh_auto_clean -O--buildsystem=pybuild
   dh_autoreconf_clean -O--buildsystem=pybuild
   dh_clean -O--buildsystem=pybuild
 debian/rules binary
dh binary --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:142: Building wheel for python3.14 with "build" module
I: pybuild base:385: python3.14 -m build --skip-dependency-check --no-isolation --wheel --outdir /<<PKGBUILDDIR>>/.pybuild/cpython3_3.14
* Building wheel...
running bdist_wheel

[... snipped ...]

adding 'ansiblelint/rules/meta_video_links.md'
adding 'ansiblelint/rules/meta_video_links.py'
adding 'ansiblelint/rules/name.md'
adding 'ansiblelint/rules/name.py'
adding 'ansiblelint/rules/no_changed_when.md'
adding 'ansiblelint/rules/no_changed_when.py'
adding 'ansiblelint/rules/no_free_form.md'
adding 'ansiblelint/rules/no_free_form.py'
adding 'ansiblelint/rules/no_handler.md'
adding 'ansiblelint/rules/no_handler.py'
adding 'ansiblelint/rules/no_jinja_when.md'
adding 'ansiblelint/rules/no_jinja_when.py'
adding 'ansiblelint/rules/no_log_password.md'
adding 'ansiblelint/rules/no_log_password.py'
adding 'ansiblelint/rules/no_prompting.md'
adding 'ansiblelint/rules/no_prompting.py'
adding 'ansiblelint/rules/no_relative_paths.md'
adding 'ansiblelint/rules/no_relative_paths.py'
adding 'ansiblelint/rules/no_same_owner.md'
adding 'ansiblelint/rules/no_same_owner.py'
adding 'ansiblelint/rules/no_tabs.md'
adding 'ansiblelint/rules/no_tabs.py'
adding 'ansiblelint/rules/only_builtins.md'
adding 'ansiblelint/rules/only_builtins.py'
adding 'ansiblelint/rules/package_latest.md'
adding 'ansiblelint/rules/package_latest.py'
adding 'ansiblelint/rules/partial_become.md'
adding 'ansiblelint/rules/partial_become.py'
adding 'ansiblelint/rules/playbook_extension.md'
adding 'ansiblelint/rules/playbook_extension.py'
adding 'ansiblelint/rules/risky_file_permissions.md'
adding 'ansiblelint/rules/risky_file_permissions.py'
adding 'ansiblelint/rules/risky_octal.md'
adding 'ansiblelint/rules/risky_octal.py'
adding 'ansiblelint/rules/risky_shell_pipe.md'
adding 'ansiblelint/rules/risky_shell_pipe.py'
adding 'ansiblelint/rules/role_name.md'
adding 'ansiblelint/rules/role_name.py'
adding 'ansiblelint/rules/run_once.md'
adding 'ansiblelint/rules/run_once.py'
adding 'ansiblelint/rules/sanity.md'
adding 'ansiblelint/rules/sanity.py'
adding 'ansiblelint/rules/schema.md'
adding 'ansiblelint/rules/schema.py'
adding 'ansiblelint/rules/syntax_check.md'
adding 'ansiblelint/rules/syntax_check.py'
adding 'ansiblelint/rules/var_naming.md'
adding 'ansiblelint/rules/var_naming.py'
adding 'ansiblelint/rules/yaml.md'
adding 'ansiblelint/rules/yaml_rule.py'
adding 'ansiblelint/rules/custom/__init__.py'
adding 'ansiblelint/schemas/README.md'
adding 'ansiblelint/schemas/__init__.py'
adding 'ansiblelint/schemas/__main__.py'
adding 'ansiblelint/schemas/__store__.json'
adding 'ansiblelint/schemas/ansible-lint-config.json'
adding 'ansiblelint/schemas/ansible-navigator-config.json'
adding 'ansiblelint/schemas/ansible-navigator.json'
adding 'ansiblelint/schemas/ansible.json'
adding 'ansiblelint/schemas/changelog.json'
adding 'ansiblelint/schemas/execution-environment.json'
adding 'ansiblelint/schemas/galaxy.json'
adding 'ansiblelint/schemas/inventory.json'
adding 'ansiblelint/schemas/main.py'
adding 'ansiblelint/schemas/meta-runtime.json'
adding 'ansiblelint/schemas/meta.json'
adding 'ansiblelint/schemas/molecule.json'
adding 'ansiblelint/schemas/play-argspec.json'
adding 'ansiblelint/schemas/playbook.json'
adding 'ansiblelint/schemas/requirements.json'
adding 'ansiblelint/schemas/role-arg-spec.json'
adding 'ansiblelint/schemas/rulebook.json'
adding 'ansiblelint/schemas/tasks.json'
adding 'ansiblelint/schemas/vars.json'
adding 'ansiblelint/testing/__init__.py'
adding 'ansiblelint/testing/fixtures.py'
adding 'ansible_lint-26.1.1.dist-info/METADATA'
adding 'ansible_lint-26.1.1.dist-info/WHEEL'
adding 'ansible_lint-26.1.1.dist-info/entry_points.txt'
adding 'ansible_lint-26.1.1.dist-info/top_level.txt'
adding 'ansible_lint-26.1.1.dist-info/RECORD'
removing build/bdist.linux-x86_64/wheel
Successfully built ansible_lint-26.1.1-py3-none-any.whl
I: pybuild plugin_pyproject:168: Unpacking wheel built for python3.13 with "installer" module
   dh_auto_test -O--buildsystem=pybuild
I: pybuild pybuild:390: cp --recursive /<<PKGBUILDDIR>>/playbook.yml /<<PKGBUILDDIR>>/examples /<<PKGBUILDDIR>>/conftest.py /<<PKGBUILDDIR>>/.pre-commit-config.yaml /<<PKGBUILDDIR>>/.ansible-lint /<<PKGBUILDDIR>>/collections /<<PKGBUILDDIR>>/.pybuild/cpython3_3.14/build/
I: pybuild base:385: cd /<<PKGBUILDDIR>>/.pybuild/cpython3_3.14/build; python3.14 -m pytest -n 2 -k "not (test_spdx or test_args_module_pass or test_risky_file_permissions or test_fqcn_builtin_fail or test_fqcn_builtin_pass or test_transformer or test_call_from_outside_venv or test_schema_moves or test_rules_id_format or test_yamllint or test_example or test_example_custom_module or test_verbosity or test_task_hook_import_playbook or test_request_timeouterror_handling or test_requests_uses_timeout or test_schema_refresh_cli or test_refresh_schemas or test_jinja_transform or test_no_tabs_rule or test_nodeps[1] or test_nodeps[2] or test_import_playbook_from_collection or test_broken_ansible_cfg or test_find_children_in_module or test_args_module_relative_import or test_find_children_in_playbook)"
============================= test session starts ==============================
platform linux -- Python 3.14.5, pytest-9.0.3, pluggy-1.6.0
rootdir: /<<PKGBUILDDIR>>/.pybuild/cpython3_3.14/build
configfile: pyproject.toml
plugins: mock-3.15.1, xdist-3.8.0, typeguard-4.4.4
created: 2/2 workers
2 workers [839 items]

........................................................................ [  8%]
........................................................................ [ 17%]
........................................................................ [ 25%]
........................................................................ [ 34%]
........................................................................ [ 42%]
.s...................................................................... [ 51%]
....................sss................................................. [ 60%]
......................F.F............................................... [ 68%]
........................................................................ [ 77%]
........................................................................ [ 85%]
........................................................................ [ 94%]
...............................................                          [100%]
=================================== FAILURES ===================================


test/test_import_playbook.py:45: AssertionError
E       assert 1 == 2
E        +  where 1 = len({examples/playbooks/test_import_with_malformed.yml (playbook)})
E        +    where {examples/playbooks/test_import_with_malformed.yml (playbook)} = <ansiblelint.runner.Runner object at 0x7fea748605f0>.lintables

test/test_import_tasks.py:31: AssertionError
============================= slowest 10 durations =============================
6.06s call     test/test_app.py::test_with_inventory_concurrent_syntax_checks
4.81s call     test/test_runner.py::test_runner[lots_of_warnings]
3.43s call     test/test_utils.py::test_import_role_children_subdirs
2.44s call     test/test_utils.py::test_import_playbook_children_subdirs
2.42s call     test/test_utils.py::test_import_playbook_children
2.20s call     test/test_cli_role_paths.py::test_run_single_role_path_with_roles_path_env
2.11s call     test/test_cli_role_paths.py::test_run_playbook_github[on]
2.09s call     test/test_app.py::test_generate_ignore
2.09s call     ansiblelint/rules/var_naming.py::test_var_naming_with_pattern_foreign_role
2.08s call     test/test_utils.py::test_include_children_load_playbook_failed_syntax_check
=========================== short test summary info ============================
FAILED test/test_import_playbook.py::test_import_playbook_invalid - Assertion...
FAILED test/test_import_tasks.py::test_import_tasks[1] - assert 1 == 2
============= 2 failed, 833 passed, 4 skipped in 72.65s (0:01:12) ==============
E: pybuild pybuild:485: test: plugin pyproject failed with: exit code=1: cd /<<PKGBUILDDIR>>/.pybuild/cpython3_3.14/build; python3.14 -m pytest -n 2 -k "not (test_spdx or test_args_module_pass or test_risky_file_permissions or test_fqcn_builtin_fail or test_fqcn_builtin_pass or test_transformer or test_call_from_outside_venv or test_schema_moves or test_rules_id_format or test_yamllint or test_example or test_example_custom_module or test_verbosity or test_task_hook_import_playbook or test_request_timeouterror_handling or test_requests_uses_timeout or test_schema_refresh_cli or test_refresh_schemas or test_jinja_transform or test_no_tabs_rule or test_nodeps[1] or test_nodeps[2] or test_import_playbook_from_collection or test_broken_ansible_cfg or test_find_children_in_module or test_args_module_relative_import or test_find_children_in_playbook)"
I: pybuild pybuild:390: cp --recursive /<<PKGBUILDDIR>>/playbook.yml /<<PKGBUILDDIR>>/examples /<<PKGBUILDDIR>>/conftest.py /<<PKGBUILDDIR>>/.pre-commit-config.yaml /<<PKGBUILDDIR>>/.ansible-lint /<<PKGBUILDDIR>>/collections /<<PKGBUILDDIR>>/.pybuild/cpython3_3.13/build/
I: pybuild base:385: cd /<<PKGBUILDDIR>>/.pybuild/cpython3_3.13/build; python3.13 -m pytest -n 2 -k "not (test_spdx or test_args_module_pass or test_risky_file_permissions or test_fqcn_builtin_fail or test_fqcn_builtin_pass or test_transformer or test_call_from_outside_venv or test_schema_moves or test_rules_id_format or test_yamllint or test_example or test_example_custom_module or test_verbosity or test_task_hook_import_playbook or test_request_timeouterror_handling or test_requests_uses_timeout or test_schema_refresh_cli or test_refresh_schemas or test_jinja_transform or test_no_tabs_rule or test_nodeps[1] or test_nodeps[2] or test_import_playbook_from_collection or test_broken_ansible_cfg or test_find_children_in_module or test_args_module_relative_import or test_find_children_in_playbook)"
============================= test session starts ==============================
platform linux -- Python 3.13.12, pytest-9.0.3, pluggy-1.6.0
rootdir: /<<PKGBUILDDIR>>/.pybuild/cpython3_3.13/build
configfile: pyproject.toml
plugins: mock-3.15.1, xdist-3.8.0, typeguard-4.4.4
created: 2/2 workers
2 workers [839 items]

........................................................................ [  8%]
........................................................................ [ 17%]
........................................................................ [ 25%]
........................................................................ [ 34%]
........................................................................ [ 42%]
.................F..F......s............................................ [ 51%]
..........................sss........................................... [ 60%]
........................................................................ [ 68%]
........................................................................ [ 77%]
........................................................................ [ 85%]
........................................................................ [ 94%]
...............................................                          [100%]
=================================== FAILURES ===================================


test/test_import_playbook.py:45: AssertionError
E       assert 1 == 2
E        +  where 1 = len({examples/playbooks/test_import_with_malformed.yml (playbook)})
E        +    where {examples/playbooks/test_import_with_malformed.yml (playbook)} = <ansiblelint.runner.Runner object at 0x7f6796c2c4b0>.lintables

test/test_import_tasks.py:31: AssertionError
============================= slowest 10 durations =============================
5.66s call     test/test_app.py::test_with_inventory_concurrent_syntax_checks
5.15s call     test/test_runner.py::test_runner[lots_of_warnings]
3.38s call     test/test_utils.py::test_import_role_children_subdirs
2.39s call     test/test_utils.py::test_import_playbook_children
2.37s call     test/test_utils.py::test_import_playbook_children_subdirs
2.07s call     ansiblelint/rules/var_naming.py::test_var_naming_with_pattern_foreign_role
2.03s call     test/test_utils.py::test_cli_auto_detect
2.03s call     test/test_utils.py::test_include_children_load_playbook_failed_syntax_check
1.99s call     test/test_app.py::test_generate_ignore
1.98s call     test/test_cli_role_paths.py::test_run_single_role_path_with_roles_path_env
=========================== short test summary info ============================
FAILED test/test_import_playbook.py::test_import_playbook_invalid - Assertion...
FAILED test/test_import_tasks.py::test_import_tasks[1] - assert 1 == 2
============= 2 failed, 833 passed, 4 skipped in 71.83s (0:01:11) ==============
E: pybuild pybuild:485: test: plugin pyproject failed with: exit code=1: cd /<<PKGBUILDDIR>>/.pybuild/cpython3_3.13/build; python3.13 -m pytest -n 2 -k "not (test_spdx or test_args_module_pass or test_risky_file_permissions or test_fqcn_builtin_fail or test_fqcn_builtin_pass or test_transformer or test_call_from_outside_venv or test_schema_moves or test_rules_id_format or test_yamllint or test_example or test_example_custom_module or test_verbosity or test_task_hook_import_playbook or test_request_timeouterror_handling or test_requests_uses_timeout or test_schema_refresh_cli or test_refresh_schemas or test_jinja_transform or test_no_tabs_rule or test_nodeps[1] or test_nodeps[2] or test_import_playbook_from_collection or test_broken_ansible_cfg or test_find_children_in_module or test_args_module_relative_import or test_find_children_in_playbook)"
dh_auto_test: error: pybuild --test --test-pytest -i python{version} -p "3.14 3.13" --parallel=2 returned exit code 13
make: *** [debian/rules:38: binary] Error 25
dpkg-buildpackage: error: debian/rules binary subprocess failed with exit status 2
--------------------------------------------------------------------------------