Package: src:mypy
Version: 1.15.0-4
Severity: serious
Tags: ftbfs trixie sid

Dear maintainer:

During a rebuild of all packages in unstable, your package failed to build:

--------------------------------------------------------------------------------
[...]
 debian/rules clean
dh clean  --buildsystem=pybuild
   dh_auto_clean -O--buildsystem=pybuild
        pybuild --clean -i python{version} -p 3.13
        rm -rf .pybuild/
        find . -name \*.pyc -exec rm {} \;
   debian/rules execute_after_dh_auto_clean
make[1]: Entering directory '/<<PKGBUILDDIR>>'
/usr/bin/make -C docs clean
make[2]: Entering directory '/<<PKGBUILDDIR>>/docs'
rm -rf build/*
make[2]: Leaving directory '/<<PKGBUILDDIR>>/docs'
/usr/bin/make -C mypyc/doc clean
make[2]: Entering directory '/<<PKGBUILDDIR>>/mypyc/doc'

[... snipped ...]

adding 'mypyc/test/test_serialization.py'
adding 'mypyc/test/test_struct.py'
adding 'mypyc/test/test_tuplename.py'
adding 'mypyc/test/test_typeops.py'
adding 'mypyc/test/testutil.py'
adding 'mypyc/transform/__init__.py'
adding 'mypyc/transform/copy_propagation.py'
adding 'mypyc/transform/exceptions.py'
adding 'mypyc/transform/flag_elimination.py'
adding 'mypyc/transform/ir_transform.py'
adding 'mypyc/transform/lower.py'
adding 'mypyc/transform/refcount.py'
adding 'mypyc/transform/uninit.py'
adding 'mypy-1.15.0.dist-info/LICENSE'
adding 'mypy-1.15.0.dist-info/METADATA'
adding 'mypy-1.15.0.dist-info/WHEEL'
adding 'mypy-1.15.0.dist-info/entry_points.txt'
adding 'mypy-1.15.0.dist-info/top_level.txt'
adding 'mypy-1.15.0.dist-info/RECORD'
removing build/bdist.linux-x86_64/wheel
Successfully built mypy-1.15.0-py3-none-any.whl
I: pybuild plugin_pyproject:144: Unpacking wheel built for python3.13 with 
"installer" module
W: pybuild plugin_pyproject:150: Scripts directory already exists, skipping 
unpack. Is the Python package being built twice?
PYTHONPATH=/<<PKGBUILDDIR>> /usr/bin/make -C docs html
make[2]: Entering directory '/<<PKGBUILDDIR>>/docs'
sphinx-build -b html -d build/doctrees   source build/html
Running Sphinx v8.1.3
loading translations [en]... done
making output directory... done
Converting `source_suffix = '.rst'` to `source_suffix = {'.rst': 
'restructuredtext'}`.
loading intersphinx inventory 'python' from 
/usr/share/doc/python3/html/objects.inv ...
loading intersphinx inventory 'attrs' from 
/usr/share/doc/python-attr-doc/html/objects.inv ...
loading intersphinx inventory 'cython' from 
/usr/share/doc/cython3/html/objects.inv ...
loading intersphinx inventory 'monkeytype' from 
../../debian/intersphinx/monkeytype_objects.inv ...
loading intersphinx inventory 'setuptools' from 
/usr/share/doc/python-setuptools-doc/html/objects.inv ...
myst v4.0.1: MdParserConfig(commonmark_only=False, gfm_only=False, 
enable_extensions=set(), disable_syntax=[], all_links_external=False, 
links_external_new_tab=False, url_schemes=('http', 'https', 'mailto', 'ftp'), 
ref_domains=None, fence_as_directive=set(), number_code_blocks=[], 
title_to_header=False, heading_anchors=0, heading_slug_func=None, html_meta={}, 
footnote_sort=True, footnote_transition=True, words_per_minute=200, 
substitutions={}, linkify_fuzzy_links=True, dmath_allow_labels=True, 
dmath_allow_space=True, dmath_allow_digits=True, dmath_double_inline=False, 
update_mathjax=True, 
mathjax_classes='tex2jax_process|mathjax_process|math|output_area', 
enable_checkboxes=False, suppress_warnings=[], highlight_code_blocks=True)
building [mo]: targets for 0 po files that are out of date
writing output... 
building [html]: targets for 37 source files that are out of date
updating environment: [new config] 37 added, 0 changed, 0 removed
reading sources... [  3%] additional_features
reading sources... [  5%] builtin_types
reading sources... [  8%] changelog
reading sources... [ 11%] cheat_sheet_py3
reading sources... [ 14%] class_basics
reading sources... [ 16%] command_line
reading sources... [ 19%] common_issues
reading sources... [ 22%] config_file
reading sources... [ 24%] duck_type_compatibility
reading sources... [ 27%] dynamic_typing
reading sources... [ 30%] error_code_list
reading sources... [ 32%] error_code_list2
reading sources... [ 35%] error_codes
reading sources... [ 38%] existing_code
reading sources... [ 41%] extending_mypy
reading sources... [ 43%] faq
reading sources... [ 46%] final_attrs
reading sources... [ 49%] generics
reading sources... [ 51%] getting_started
reading sources... [ 54%] index
reading sources... [ 57%] inline_config
reading sources... [ 59%] installed_packages
reading sources... [ 62%] kinds_of_types
reading sources... [ 65%] literal_types
reading sources... [ 68%] metaclasses
reading sources... [ 70%] more_types
reading sources... [ 73%] mypy_daemon
reading sources... [ 76%] protocols
reading sources... [ 78%] running_mypy
reading sources... [ 81%] runtime_troubles
reading sources... [ 84%] stubgen
reading sources... [ 86%] stubs
reading sources... [ 89%] stubtest
reading sources... [ 92%] supported_python_features
reading sources... [ 95%] type_inference_and_annotations
reading sources... [ 97%] type_narrowing
reading sources... [100%] typed_dict

looking for now-outdated files... none found
pickling environment... done
checking consistency... done
preparing documents... done
copying assets... 
copying static files... 
Writing evaluated template result to 
/<<PKGBUILDDIR>>/docs/build/html/_static/language_data.js
Writing evaluated template result to 
/<<PKGBUILDDIR>>/docs/build/html/_static/documentation_options.js
Writing evaluated template result to 
/<<PKGBUILDDIR>>/docs/build/html/_static/basic.css
copying static files: done
copying extra files... 
copying extra files: done
copying assets: done
writing output... [  3%] additional_features
writing output... [  5%] builtin_types
writing output... [  8%] changelog
writing output... [ 11%] cheat_sheet_py3
writing output... [ 14%] class_basics
writing output... [ 16%] command_line
writing output... [ 19%] common_issues
writing output... [ 22%] config_file
writing output... [ 24%] duck_type_compatibility
writing output... [ 27%] dynamic_typing
writing output... [ 30%] error_code_list
writing output... [ 32%] error_code_list2
writing output... [ 35%] error_codes
writing output... [ 38%] existing_code
writing output... [ 41%] extending_mypy
writing output... [ 43%] faq
writing output... [ 46%] final_attrs
writing output... [ 49%] generics
writing output... [ 51%] getting_started
writing output... [ 54%] index
writing output... [ 57%] inline_config
writing output... [ 59%] installed_packages
writing output... [ 62%] kinds_of_types
writing output... [ 65%] literal_types
writing output... [ 68%] metaclasses
writing output... [ 70%] more_types
writing output... [ 73%] mypy_daemon
writing output... [ 76%] protocols
writing output... [ 78%] running_mypy
writing output... [ 81%] runtime_troubles
writing output... [ 84%] stubgen
writing output... [ 86%] stubs
writing output... [ 89%] stubtest
writing output... [ 92%] supported_python_features
writing output... [ 95%] type_inference_and_annotations
writing output... [ 97%] type_narrowing
writing output... [100%] typed_dict

generating indices... genindex done
writing additional pages... search done
dumping search index in English (code: en)... done
dumping object inventory... done
build succeeded.

The HTML pages are in build/html.

Build finished. The HTML pages are in build/html.
make[2]: Leaving directory '/<<PKGBUILDDIR>>/docs'
PYTHONPATH=/<<PKGBUILDDIR>> /usr/bin/make -C mypyc/doc html
make[2]: Entering directory '/<<PKGBUILDDIR>>/mypyc/doc'
Running Sphinx v8.1.3
loading translations [en]... done
making output directory... done
WARNING: html_static_path entry '_static' does not exist
building [mo]: targets for 0 po files that are out of date
writing output... 
building [html]: targets for 18 source files that are out of date
updating environment: [new config] 18 added, 0 changed, 0 removed
reading sources... [  6%] bool_operations
reading sources... [ 11%] bytes_operations
reading sources... [ 17%] compilation_units
reading sources... [ 22%] dict_operations
reading sources... [ 28%] differences_from_python
reading sources... [ 33%] float_operations
reading sources... [ 39%] getting_started
reading sources... [ 44%] index
reading sources... [ 50%] int_operations
reading sources... [ 56%] introduction
reading sources... [ 61%] list_operations
reading sources... [ 67%] native_classes
reading sources... [ 72%] native_operations
reading sources... [ 78%] performance_tips_and_tricks
reading sources... [ 83%] set_operations
reading sources... [ 89%] str_operations
reading sources... [ 94%] tuple_operations
reading sources... [100%] using_type_annotations

looking for now-outdated files... none found
pickling environment... done
checking consistency... done
preparing documents... done
copying assets... 
copying static files... 
Writing evaluated template result to 
/<<PKGBUILDDIR>>/mypyc/doc/_build/html/_static/language_data.js
Writing evaluated template result to 
/<<PKGBUILDDIR>>/mypyc/doc/_build/html/_static/documentation_options.js
Writing evaluated template result to 
/<<PKGBUILDDIR>>/mypyc/doc/_build/html/_static/basic.css
copying static files: done
copying extra files... 
copying extra files: done
copying assets: done
writing output... [  6%] bool_operations
writing output... [ 11%] bytes_operations
writing output... [ 17%] compilation_units
writing output... [ 22%] dict_operations
writing output... [ 28%] differences_from_python
writing output... [ 33%] float_operations
writing output... [ 39%] getting_started
writing output... [ 44%] index
writing output... [ 50%] int_operations
writing output... [ 56%] introduction
writing output... [ 61%] list_operations
writing output... [ 67%] native_classes
writing output... [ 72%] native_operations
writing output... [ 78%] performance_tips_and_tricks
writing output... [ 83%] set_operations
writing output... [ 89%] str_operations
writing output... [ 94%] tuple_operations
writing output... [100%] using_type_annotations

generating indices... genindex done
writing additional pages... search done
dumping search index in English (code: en)... done
dumping object inventory... done
build succeeded, 1 warning.

The HTML pages are in _build/html.
make[2]: Leaving directory '/<<PKGBUILDDIR>>/mypyc/doc'
mv mypyc/doc/_build/html mypyc/doc/_build/mypyc
make[1]: Leaving directory '/<<PKGBUILDDIR>>'
        rm -f debian/mypy-doc.debhelper.log debian/mypy.debhelper.log
   debian/rules override_dh_auto_test-arch
make[1]: Entering directory '/<<PKGBUILDDIR>>'
py3versions: no X-Python3-Version in control file, using supported versions
export TEST_MYPYC=1
PYBUILD_SYSTEM=custom \
        PYBUILD_TEST_ARGS="{interpreter} -m mypy \
        --config-file {dir}/mypy_self_check.ini -p mypy" dh_auto_test
        pybuild --test --test-pytest -i python{version} -p 3.13
I: pybuild base:311: python3.13 -m mypy         --config-file 
/<<PKGBUILDDIR>>/mypy_self_check.ini -p mypy
Success: no issues found in 182 source files
        rm -fr -- /tmp/dh-xdg-rundir-MDZMwRZZ
dh_auto_install
        install -m0755 -d /<<PKGBUILDDIR>>/debian/tmp
        pybuild --install -i python{version} -p 3.13 
--dest-dir=/<<PKGBUILDDIR>>/debian/tmp
I: pybuild plugin_pyproject:178: Copying package built for python3.13 to destdir
set -e; for v in 3.13; do \
        env -u CFLAGS PYTHONPATH=$(pybuild --print build_dir --pyver $v | awk 
'{ print $3 }') PATH=$PATH:/<<PKGBUILDDIR>>/debian/python3-mypy/usr/bin/ 
python$v -m pytest -n 2 \
        -o testpaths="mypy/test mypyc/test" -o python_files=test*.py -k 'not 
(testCustomTypeshedDirWithRelativePathDoesNotCrash or 
testNoPython3StubAvailable or testIgnoreImportIfNoPython3StubAvailable or 
PEP561Suite or testDaemonStatusKillRestartRecheck)' \
        -o python_classes= -o python_functions= ; \
done
============================= test session starts ==============================
platform linux -- Python 3.13.2, pytest-8.3.5, pluggy-1.5.0
rootdir: /<<PKGBUILDDIR>>
configfile: pyproject.toml
testpaths: mypy/test, mypyc/test
plugins: xdist-3.6.1, typeguard-4.4.2, cov-5.0.0
created: 2/2 workers
2 workers [12551 items]

........................................................................ [  0%]
.x...................................................................... [  1%]
........................................................................ [  1%]
........................................................................ [  2%]
........................................................................ [  2%]
........................................................ss.............. [  3%]
...........................................................s............ [  4%]
........................................................................ [  4%]
........................................................................ [  5%]
........................................................................ [  5%]
..................................................................s..... [  6%]
......................................................s................. [  6%]
........................................................................ [  7%]
.........................................................x.............. [  8%]
......................................s...............s..s.............. [  8%]
........................................................................ [  9%]
........................................................................ [  9%]
.......................................s................................ [ 10%]
........................................................................ [ 10%]
.................................s...................................... [ 11%]
........................................................................ [ 12%]
.................................................s...................... [ 12%]
........................................................................ [ 13%]
........................................................................ [ 13%]
........................................................................ [ 14%]
........................................................................ [ 14%]
....................x................................................... [ 15%]
........................................................................ [ 16%]
.................s..............................................s....... [ 16%]
........................................................................ [ 17%]
........................................................................ [ 17%]
........................................................................ [ 18%]
........................................................................ [ 18%]
........................................................................ [ 19%]
........................................................................ [ 20%]
........................................................................ [ 20%]
........................................................................ [ 21%]
..................................s..................................... [ 21%]
........................................................................ [ 22%]
........................................................................ [ 22%]
........................................................................ [ 23%]
........................................................................ [ 24%]
........................................................................ [ 24%]
........................................................................ [ 25%]
........................................................................ [ 25%]
........................................................................ [ 26%]
........................................................................ [ 26%]
........................................................................ [ 27%]
........................................................................ [ 28%]
........................................................................ [ 28%]
........................................................................ [ 29%]
........................................................................ [ 29%]
........................................................................ [ 30%]
........................................................................ [ 30%]
........................................................................ [ 31%]
........................................................................ [ 32%]
........................................................................ [ 32%]
............................x.x......................................... [ 33%]
........................................................................ [ 33%]
........................................................................ [ 34%]
........................................................................ [ 34%]
........................................................................ [ 35%]
........................................................................ [ 36%]
........................................................................ [ 36%]
........................................................................ [ 37%]
........................................................................ [ 37%]
........................................................................ [ 38%]
........................................................................ [ 39%]
........................................................................ [ 39%]
........................................................................ [ 40%]
........................................................................ [ 40%]
........................................................................ [ 41%]
...............................................................s........ [ 41%]
........................................................................ [ 42%]
........................................................................ [ 43%]
........................................................................ [ 43%]
........................................................................ [ 44%]
........................................................................ [ 44%]
........................................................................ [ 45%]
...........s............................................................ [ 45%]
........................................................................ [ 46%]
........................................................................ [ 47%]
........................................................................ [ 47%]
........................................................................ [ 48%]
........................................................................ [ 48%]
........................................................................ [ 49%]
........................................................................ [ 49%]
........................................................................ [ 50%]
........................................................................ [ 51%]
......................................s................................. [ 51%]
........................................................................ [ 52%]
........................................................................ [ 52%]
........................................................................ [ 53%]
..............x......................................................... [ 53%]
........................................................................ [ 54%]
........................................................................ [ 55%]
..........................................................s............. [ 55%]
........................................................................ [ 56%]
........................................................................ [ 56%]
........................................................................ [ 57%]
........................................................................ [ 57%]
........................................................................ [ 58%]
..........................................s............................. [ 59%]
.............ssssssss...........s.................s.................s... [ 59%]
......s............s........s........................................... [ 60%]
..s...s.....ss.......................................................... [ 60%]
.......................s................................................ [ 61%]
........................................................................ [ 61%]
........................................................................ [ 62%]
............................s........................................... [ 63%]
............sss.........sss..sssssssss.........s....ssssss.s...ss.....ss [ 63%]
..s.........................................s.s.s.......s..sss.s........ [ 64%]
s....s..............s....s....s.................................sss..... [ 64%]
ss........s.....s....s.ss......................s....ssssss.ssssssssss... [ 65%]
........ss.............s.......s..s...s.s.s.....ss..s............ssss... [ 65%]
.........ss......s...ssss.s..s......ss.ss.s.sss.s....................... [ 66%]
....................s.........................................s......... [ 67%]
........................................................................ [ 67%]
........................................................................ [ 68%]
........................................................................ [ 68%]
..............................................ssssssssssssssssssssssssss [ 69%]
ssssssssssssssssssssssssssssssssssssssssssssssss........................ [ 69%]
......................................................................x. [ 70%]
........................................................................ [ 71%]
........................................................................ [ 71%]
........................................................................ [ 72%]
........................................................................ [ 72%]
........................................................................ [ 73%]
........................................................................ [ 74%]
........................................................................ [ 74%]
........................................................................ [ 75%]
........................................................................ [ 75%]
..........................................................s............. [ 76%]
........................................................................ [ 76%]
..........................................................x............. [ 77%]
........................................................................ [ 78%]
........................................................................ [ 78%]
........................................................................ [ 79%]
........................................................................ [ 79%]
........F............................................................... [ 80%]
........................................................................ [ 80%]
........................................................................ [ 81%]
........................................................................ [ 82%]
...........................................................s............ [ 82%]
........................................................................ [ 83%]
..........................s.......s..................................... [ 83%]
....................................................s................... [ 84%]
........................................................................ [ 84%]
........................................................................ [ 85%]
........................................................................ [ 86%]
........................................................................ [ 86%]
........................................................................ [ 87%]
........................................................................ [ 87%]
........................................................................ [ 88%]
........................................................................ [ 88%]
........................................................................ [ 89%]
........................................................................ [ 90%]
........................................................................ [ 90%]
........................................................................ [ 91%]
........................................................................ [ 91%]
........................................................................ [ 92%]
.......................................s......................s......... [ 92%]
.......................................s................................ [ 93%]
............................s................................s..s...s... [ 94%]
.........s...ssss.s.ss......ss....s......ssss..sss...sssssss...s........ [ 94%]
.............sssss...s......s........s.s..................s..s..ss...... [ 95%]
..s.s....s....s...s.ss...........................s.s....ss...ssssss.sss. [ 95%]
sssss..s.......s..s.sssssssssssss.ss.sssssssssssssssssssssssssssss...... [ 96%]
.............s..sss..s.s................................................ [ 96%]
........................................................................ [ 97%]
........................................................................ [ 98%]
........................................................................ [ 98%]
............................................xx.......................... [ 99%]
........................................................................ [ 99%]
.......................                                                  [100%]
=================================== FAILURES ===================================
___________________ StubtestUnit.test_runtime_typing_objects ___________________
[gw1] linux -- Python 3.13.2 /usr/bin/python3.13

args = (<mypy.test.teststubtest.StubtestUnit 
testMethod=test_runtime_typing_objects>,)
kwargs = {}
cases = [<mypy.test.teststubtest.Case object at 0x7fa866700050>, 
<mypy.test.teststubtest.Case object at 0x7fa865dc0dd0>, 
<mypy.test.teststubtest.Case object at 0x7fa86664d2b0>]
expected_errors = set()
c = <mypy.test.teststubtest.Case object at 0x7fa86664d2b0>, @py_assert1 = False
@py_format3 = "{'test_module.Y.__closed__'} == set()\n~\n~Extra items in the 
left set:\n~'test_module.Y.__closed__'\n~Use -v to get more diff"
@py_format5 = "error: test_module.Y.__closed__ variable differs from runtime 
type None\n~Stub: in file test_module.pyi:76\n~builtins...odule.Y.__closed__'} 
== set()\n~\n~Extra items in the left set:\n~'test_module.Y.__closed__'\n~Use 
-v to get more diff"
output = 'error: test_module.Y.__closed__ variable differs from runtime type 
None\nStub: in file test_module.pyi:76\nbuiltins.bool\nRuntime:\nNone\n\nFound 
1 error (checked 1 module)\n'
actual_errors = {'test_module.Y.__closed__'}

    def test(*args: Any, **kwargs: Any) -> None:
        cases = list(fn(*args, **kwargs))
        expected_errors = set()
        for c in cases:
            if c.error is None:
                continue
            expected_error = c.error
            if expected_error == "":
                expected_error = TEST_MODULE_NAME
            elif not expected_error.startswith(f"{TEST_MODULE_NAME}."):
                expected_error = f"{TEST_MODULE_NAME}.{expected_error}"
            assert expected_error not in expected_errors, (
                "collect_cases merges cases into a single stubtest invocation; 
we already "
                "expect an error for {}".format(expected_error)
            )
            expected_errors.add(expected_error)
        output = run_stubtest(
            stub="\n\n".join(textwrap.dedent(c.stub.lstrip("\n")) for c in 
cases),
            runtime="\n\n".join(textwrap.dedent(c.runtime.lstrip("\n")) for c 
in cases),
            options=["--generate-allowlist"],
        )
    
        actual_errors = set(output.splitlines())
        if actual_errors != expected_errors:
            output = run_stubtest(
                stub="\n\n".join(textwrap.dedent(c.stub.lstrip("\n")) for c in 
cases),
                runtime="\n\n".join(textwrap.dedent(c.runtime.lstrip("\n")) for 
c in cases),
                options=[],
            )
>           assert actual_errors == expected_errors, output
E           AssertionError: error: test_module.Y.__closed__ variable differs 
from runtime type None
E             Stub: in file test_module.pyi:76
E             builtins.bool
E             Runtime:
E             None
E             
E             Found 1 error (checked 1 module)
E             
E           assert {'test_module.Y.__closed__'} == set()
E             
E             Extra items in the left set:
E             'test_module.Y.__closed__'
E             Use -v to get more diff

mypy/test/teststubtest.py:233: AssertionError
=========================== short test summary info ============================
FAILED mypy/test/teststubtest.py::StubtestUnit::test_runtime_typing_objects
===== 1 failed, 12195 passed, 345 skipped, 10 xfailed in 617.24s (0:10:17) =====
make[1]: *** [debian/rules:86: override_dh_auto_test-arch] Error 1
make[1]: Leaving directory '/<<PKGBUILDDIR>>'
make: *** [debian/rules:28: binary] Error 2
dpkg-buildpackage: error: debian/rules binary subprocess returned exit status 2
--------------------------------------------------------------------------------

The above is just how the build ends and not necessarily the most relevant part.
If required, the full build log is available here:

https://people.debian.org/~sanvila/build-logs/202504/

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

Thanks.

Reply via email to