Source: python-refurb
Version: 1.27.0-1
Severity: serious
Justification: FTBFS
Tags: trixie sid ftbfs
User: [email protected]
Usertags: ftbfs-20240728 ftbfs-trixie
Hi,
During a rebuild of all packages in sid, your package failed to build
on amd64.
Relevant part (hopefully):
> 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:129: Building wheel for python3.12 with "build"
> module
> I: pybuild base:311: python3.12 -m build --skip-dependency-check
> --no-isolation --wheel --outdir /<<PKGBUILDDIR>>/.pybuild/cpython3_3.12
> * Building wheel...
> Successfully built refurb-1.27.0-py3-none-any.whl
> I: pybuild plugin_pyproject:144: Unpacking wheel built for python3.12 with
> "installer" module
> dh_auto_test -O--buildsystem=pybuild
> I: pybuild base:311: cd /<<PKGBUILDDIR>>/.pybuild/cpython3_3.12/build;
> python3.12 -m pytest -k "not test_checks_are_formatted_properly"
> ============================= test session starts
> ==============================
> platform linux -- Python 3.12.4, pytest-8.3.1, pluggy-1.5.0
> rootdir: /<<PKGBUILDDIR>>/.pybuild/cpython3_3.12/build
> configfile: pyproject.toml
> testpaths: test
> plugins: anyio-4.4.0, cov-5.0.0
> collected 137 items / 1 deselected / 136 selected
>
> test/test_arg_parsing.py ............................................... [
> 34%]
> ........................ [
> 52%]
> test/test_checks.py ...................... [
> 68%]
> test/test_explain.py .... [
> 71%]
> test/test_gen.py ... [
> 73%]
> test/test_github_annotations.py .. [
> 75%]
> test/test_loader.py ....... [
> 80%]
> test/test_main.py .............s........... [
> 98%]
> test/test_visitor.py .F
> [100%]
>
> =================================== FAILURES
> ===================================
> ____________________________ test_mypy_consistence
> _____________________________
>
> def test_mypy_consistence() -> None:
> """
> Ensure the visitor method name to node type mappings used in refurb
> are
> in sync with the ones of mypy.
>
> This is meant as a failsafe, especially when the mypy dependency is
> upgraded.
>
> If this fails, review the mappings in
> refurb.visitor.METHOD_NODE_MAPPINGS.
> """
>
> mypy_visitor_mapping = get_mypy_visitor_mapping()
> > assert mypy_visitor_mapping == METHOD_NODE_MAPPINGS
> E AssertionError: assert {'visit__prom...peExpr'>, ...} ==
> {'visit__prom...peExpr'>, ...}
> E
> E Omitting 83 identical items, use -vv to show
> E Left contains 1 more item:
> E {'visit_type_alias_stmt': <class 'mypy.nodes.TypeAliasStmt'>}
> E Use -v to get more diff
>
> test/test_visitor.py:82: AssertionError
>
> ---------- coverage: platform linux, python 3.12.4-final-0 -----------
> Name Stmts Miss Cover Missing
> -------------------------------------
> TOTAL 3015 0 100%
>
> 121 files skipped due to complete coverage.
> Coverage HTML written to dir htmlcov
>
> Required test coverage of 100% reached. Total coverage: 100.00%
> =========================== short test summary info
> ============================
> FAILED test/test_visitor.py::test_mypy_consistence - AssertionError: assert
> {...
> ====== 1 failed, 134 passed, 1 skipped, 1 deselected in 86.72s (0:01:26)
> =======
> E: pybuild pybuild:389: test: plugin pyproject failed with: exit code=1: cd
> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.12/build; python3.12 -m pytest -k "not
> test_checks_are_formatted_properly"
> dh_auto_test: error: pybuild --test --test-pytest -i python{version} -p 3.12
> returned exit code 13
The full build log is available from:
http://qa-logs.debian.net/2024/07/28/python-refurb_1.27.0-1_unstable.log
All bugs filed during this archive rebuild are listed at:
https://bugs.debian.org/cgi-bin/pkgreport.cgi?tag=ftbfs-20240728;[email protected]
or:
https://udd.debian.org/bugs/?release=na&merged=ign&fnewerval=7&flastmodval=7&fusertag=only&fusertagtag=ftbfs-20240728&[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.