Package: src:pytest-mypy-testing
Version: 0.1.3-2
Severity: serious
Tags: ftbfs forky sid

Dear maintainer:

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

Below you will find how the build ends (probably the most relevant part,
but not necessarily). If required, the full build log is available here:

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

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:pytest-mypy-testing, 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:129: Building wheel for python3.13 with "build" 
module
I: pybuild base:311: python3.13 -m build --skip-dependency-check --no-isolation 
--wheel --outdir /<<PKGBUILDDIR>>/.pybuild/cpython3_3.13  
* Building wheel...

[... snipped ...]

hook_name  = 'pytest_runtest_call'
res        = <generator object pytest_runtest_call at 0x7ff7b44a1ee0>
result     = []
results    = []
teardown   = <generator object LoggingPlugin.pytest_runtest_call at 
0x7ff7d0aa1a80>
teardowns  = [<generator object LoggingPlugin.pytest_runtest_call at 
0x7ff7d0aa1a80>,
 <generator object CaptureManager.pytest_runtest_call at 0x7ff7d0aa26c0>,
 <generator object pytest_runtest_call at 0x7ff7b44a1ee0>]

/usr/lib/python3/dist-packages/pluggy/_callers.py:121: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

item = <PytestMypyTestItem 
[mypy]mypy_test_use_reveal_type__int_list_var__with__inferred_asterisk>

    def pytest_runtest_call(item: Item) -> None:
        _update_current_test_var(item, "call")
        try:
            del sys.last_type
            del sys.last_value
            del sys.last_traceback
            if sys.version_info >= (3, 12, 0):
                del sys.last_exc  # type:ignore[attr-defined]
        except AttributeError:
            pass
        try:
>           item.runtest()

item       = <PytestMypyTestItem 
[mypy]mypy_test_use_reveal_type__int_list_var__with__inferred_asterisk>

/usr/lib/python3/dist-packages/_pytest/runner.py:178: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <PytestMypyTestItem 
[mypy]mypy_test_use_reveal_type__int_list_var__with__inferred_asterisk>

    def runtest(self) -> None:
>       returncode, actual_messages = self.parent.run_mypy(self.mypy_item)
                                      ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

self       = <PytestMypyTestItem 
[mypy]mypy_test_use_reveal_type__int_list_var__with__inferred_asterisk>

pytest_mypy_testing/plugin.py:64: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <PytestMypyFile test_basics.mypy-testing>
item = 
MypyTestItem(name='mypy_test_use_reveal_type__int_list_var__with__inferred_asterisk',
 lineno=71, end_lineno=74, expect...', error_code=None)], 
func_node=<ast.FunctionDef object at 0x7ff7d96829d0>, marks={'mypy_testing'}, 
actual_messages=[])

    def run_mypy(self, item: MypyTestItem) -> Tuple[int, List[Message]]:
        if self._mypy_result is None:
>           self._mypy_result = self._run_mypy(self.path)
                                ^^^^^^^^^^^^^^^^^^^^^^^^^

item       = 
MypyTestItem(name='mypy_test_use_reveal_type__int_list_var__with__inferred_asterisk',
             lineno=71,
             end_lineno=74,
             
expected_messages=[Message(filename='/<<PKGBUILDDIR>>/.pybuild/cpython3_3.13/build/tests/test_basics.mypy-testing',
                                        lineno=74,
                                        colno=None,
                                        severity=Severity.NOTE,
                                        message='Revealed type is '
                                                
"'builtins.list[builtins.int*]'",
                                        
revealed_type='builtins.list[builtins.int]',
                                        error_code=None)],
             func_node=<ast.FunctionDef object at 0x7ff7d96829d0>,
             marks={'mypy_testing'},
             actual_messages=[])
self       = <PytestMypyFile test_basics.mypy-testing>

pytest_mypy_testing/plugin.py:136: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <PytestMypyFile test_basics.mypy-testing>
filename = 
PosixPath('/<<PKGBUILDDIR>>/.pybuild/cpython3_3.13/build/tests/test_basics.mypy-testing')

    def _run_mypy(self, filename: Union[pathlib.Path, os.PathLike, str]) -> 
MypyResult:
        filename = pathlib.Path(filename)
        with tempfile.TemporaryDirectory(prefix="pytest-mypy-testing-") as 
tmp_dir_name:
            mypy_cache_dir = os.path.join(tmp_dir_name, "mypy_cache")
            os.makedirs(mypy_cache_dir)
    
            mypy_args = [
                "--cache-dir={}".format(mypy_cache_dir),
                "--check-untyped-defs",
                "--hide-error-context",
                "--no-color-output",
                "--no-error-summary",
                "--no-pretty",
                "--soft-error-limit=-1",
                "--no-silence-site-packages",
                "--no-warn-unused-configs",
                "--show-column-numbers",
                "--show-error-codes",
                "--show-traceback",
                str(filename),
            ]
    
            out, err, returncode = mypy.api.run(mypy_args)
    
        lines = (out + err).splitlines()
    
        file_messages = [
            msg
>           for msg in map(Message.from_output, lines)
                       ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
            if (msg.filename == self.mypy_file.filename)
            and not (
                msg.severity is Severity.NOTE
                and msg.message
                == "See 
https://mypy.readthedocs.io/en/stable/running_mypy.html#missing-imports";
            )
        ]

err        = ('../../../mypy.ini: [mypy]: python_version: Python 3.8 is not 
supported (must '
 'be 3.9 or higher)\n')
filename   = 
PosixPath('/<<PKGBUILDDIR>>/.pybuild/cpython3_3.13/build/tests/test_basics.mypy-testing')
lines      = ['tests/test_basics.mypy-testing:11:11: error: Incompatible types 
in '
 'assignment (expression has type "int", variable has type "str")  '
 '[assignment]',
 'tests/test_basics.mypy-testing:17:11: error: Incompatible types in '
 'assignment (expression has type "int", variable has type "str")  '
 '[assignment]',
 'tests/test_basics.mypy-testing:24:11: error: Incompatible types in '
 'assignment (expression has type "int", variable has type "str")  '
 '[assignment]',
 'tests/test_basics.mypy-testing:30:11: error: Incompatible types in '
 'assignment (expression has type "int", variable has type "str")  '
 '[assignment]',
 'tests/test_basics.mypy-testing:37:11: error: Incompatible types in '
 'assignment (expression has type "int", variable has type "str")  '
 '[assignment]',
 'tests/test_basics.mypy-testing:44:11: error: Incompatible types in '
 'assignment (expression has type "int", variable has type "str")  '
 '[assignment]',
 'tests/test_basics.mypy-testing:49:17: note: Revealed type is "Literal[123]?"',
 'tests/test_basics.mypy-testing:50:17: note: Revealed type is "Literal[456]?"',
 'tests/test_basics.mypy-testing:56:17: note: Revealed type is '
 '"builtins.float"',
 'tests/test_basics.mypy-testing:62:17: note: Revealed type is "builtins.int"',
 'tests/test_basics.mypy-testing:68:17: note: Revealed type is '
 '"builtins.list[builtins.int]"',
 'tests/test_basics.mypy-testing:74:17: note: Revealed type is '
 '"builtins.list[builtins.int]"',
 'tests/test_basics.mypy-testing:80:17: note: Revealed type is "Literal[123]?"',
 'tests/test_basics.mypy-testing:81:17: note: Revealed type is "Literal[456]?"',
 'tests/test_basics.mypy-testing:87:17: note: Revealed type is "Literal[456]?"',
 'tests/test_basics.mypy-testing:99:17: note: Revealed type is '
 '"builtins.list[Never]"',
 '../../../mypy.ini: [mypy]: python_version: Python 3.8 is not supported (must '
 'be 3.9 or higher)']
mypy_args  = ['--cache-dir=/tmp/pytest-mypy-testing-ik2cmi4_/mypy_cache',
 '--check-untyped-defs',
 '--hide-error-context',
 '--no-color-output',
 '--no-error-summary',
 '--no-pretty',
 '--soft-error-limit=-1',
 '--no-silence-site-packages',
 '--no-warn-unused-configs',
 '--show-column-numbers',
 '--show-error-codes',
 '--show-traceback',
 '/<<PKGBUILDDIR>>/.pybuild/cpython3_3.13/build/tests/test_basics.mypy-testing']
mypy_cache_dir = '/tmp/pytest-mypy-testing-ik2cmi4_/mypy_cache'
out        = ('tests/test_basics.mypy-testing:11:11: error: Incompatible types 
in '
 'assignment (expression has type "int", variable has type "str")  '
 '[assignment]\n'
 'tests/test_basics.mypy-testing:17:11: error: Incompatible types in '
 'assignment (expression has type "int", variable has type "str")  '
 '[assignment]\n'
 'tests/test_basics.mypy-testing:24:11: error: Incompatible types in '
 'assignment (expression has type "int", variable has type "str")  '
 '[assignment]\n'
 'tests/test_basics.mypy-testing:30:11: error: Incompatible types in '
 'assignment (expression has type "int", variable has type "str")  '
 '[assignment]\n'
 'tests/test_basics.mypy-testing:37:11: error: Incompatible types in '
 'assignment (expression has type "int", variable has type "str")  '
 '[assignment]\n'
 'tests/test_basics.mypy-testing:44:11: error: Incompatible types in '
 'assignment (expression has type "int", variable has type "str")  '
 '[assignment]\n'
 'tests/test_basics.mypy-testing:49:17: note: Revealed type is '
 '"Literal[123]?"\n'
 'tests/test_basics.mypy-testing:50:17: note: Revealed type is '
 '"Literal[456]?"\n'
 'tests/test_basics.mypy-testing:56:17: note: Revealed type is '
 '"builtins.float"\n'
 'tests/test_basics.mypy-testing:62:17: note: Revealed type is "builtins.int"\n'
 'tests/test_basics.mypy-testing:68:17: note: Revealed type is '
 '"builtins.list[builtins.int]"\n'
 'tests/test_basics.mypy-testing:74:17: note: Revealed type is '
 '"builtins.list[builtins.int]"\n'
 'tests/test_basics.mypy-testing:80:17: note: Revealed type is '
 '"Literal[123]?"\n'
 'tests/test_basics.mypy-testing:81:17: note: Revealed type is '
 '"Literal[456]?"\n'
 'tests/test_basics.mypy-testing:87:17: note: Revealed type is '
 '"Literal[456]?"\n'
 'tests/test_basics.mypy-testing:99:17: note: Revealed type is '
 '"builtins.list[Never]"\n')
returncode = 1
self       = <PytestMypyFile test_basics.mypy-testing>
tmp_dir_name = '/tmp/pytest-mypy-testing-ik2cmi4_'

pytest_mypy_testing/plugin.py:173: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = <class 'pytest_mypy_testing.message.Message'>
line = '../../../mypy.ini: [mypy]: python_version: Python 3.8 is not supported 
(must be 3.9 or higher)'

    @classmethod
    def from_output(cls, line: str) -> "Message":
        """Create message object from mypy output line.
    
        >>> m = Message.from_output("z.py:1: note: bar")
        >>> (m.lineno, m.colno, m.severity, m.message, m.revealed_type, 
m.error_code)
        (1, None, Severity.NOTE, 'bar', None, None)
    
        >>> m = Message.from_output("z.py:1:13: note: bar")
        >>> (m.lineno, m.colno, m.severity, m.message, m.revealed_type, 
m.error_code)
        (1, 13, Severity.NOTE, 'bar', None, None)
    
        >>> m = Message.from_output("z.py:1: note: Revealed type is 'bar'")
        >>> (m.lineno, m.colno, m.severity, m.message, m.revealed_type, 
m.error_code)
        (1, None, Severity.NOTE, "Revealed type is 'bar'", 'bar', None)
    
        >>> m = Message.from_output('z.py:1: note: Revealed type is "bar"')
        >>> (m.lineno, m.colno, m.severity, m.message, m.revealed_type, 
m.error_code)
        (1, None, Severity.NOTE, 'Revealed type is "bar"', 'bar', None)
    
        >>> m = Message.from_output("z.py:1:13: error: bar [baz]")
        >>> (m.lineno, m.colno, m.severity, m.message, m.revealed_type, 
m.error_code)
        (1, 13, Severity.ERROR, 'bar', None, 'baz')
    
        """
        m = cls.OUTPUT_RE.match(line)
        if not m:
>           raise ValueError("Not a valid mypy message")
E           ValueError: Not a valid mypy message

cls        = <class 'pytest_mypy_testing.message.Message'>
line       = ('../../../mypy.ini: [mypy]: python_version: Python 3.8 is not 
supported (must '
 'be 3.9 or higher)')
m          = None

pytest_mypy_testing/message.py:295: ValueError
============================= slowest 20 durations =============================
5.30s call     
tests/test_file_with_nonitem_messages.mypy-testing::[mypy]mypy_test_xfail_unexpected_note
5.06s call     
tests/test_basics.mypy-testing::[mypy]mypy_test_use_reveal_type__int_list_var
4.78s call     
tests/test_basics.mypy-testing::[mypy]mypy_test_invalid_assignment_only_error_code__error_code_does_not_match
3.25s call     
tests/test_basics.mypy-testing::[mypy]mypy_test_use_reveal_type__int_list_var__with__inferred_asterisk
3.15s call     
tests/test_basics.mypy-testing::[mypy]mypy_test_invalid_assignment_no_message_and_no_error_code
2.99s call     
tests/test_basics.mypy-testing::[mypy]mypy_test_xfail_unexpected_note
2.94s call     
tests/test_basics.mypy-testing::[mypy]mypy_test_invalid_assignment_only_error_code
2.94s call     
tests/test_basics.mypy-testing::[mypy]mypy_test_xfail_missing_note
2.90s call     
tests/test_basics.mypy-testing::[mypy]mypy_test_xfail_wrong_reveal_type
2.90s call     tests/test_basics.mypy-testing::[mypy]mypy_test_use_reveal_type
2.87s call     
tests/test_basics.mypy-testing::[mypy]mypy_test_use_reveal_type__int_var
2.83s call     
tests/test_basics.mypy-testing::[mypy]mypy_test_invalid_assignment_with_error_code
2.83s call     
tests/test_basics.mypy-testing::[mypy]mypy_test_invalid_assignment_with_error_code__message_does_not_match
2.80s call     
tests/test_basics.mypy-testing::[mypy]mypy_test_use_reveal_type__float_var
2.70s call     
tests/test_basics.mypy-testing::[mypy]mypy_test_invalid_assignment
0.00s setup    tests/test_parser.py::test_parse_file_basic_call_works_with_py37
0.00s call     tests/test_parser.py::test_parse_file_basic_call_works_with_py37
0.00s call     tests/test_plugin.py::test_pytest_collect_file[test_z.py]
0.00s call     
tests/test_plugin.py::test_pytest_collect_file_not_test_file_name[z.py]
0.00s call     
tests/test_plugin.py::test_pytest_collect_file[test_z.mypy-testing]
=========================== short test summary info ============================
FAILED tests/test_basics.mypy-testing::[mypy]mypy_test_invalid_assignment - 
ValueError: Not a valid mypy message
FAILED 
tests/test_basics.mypy-testing::[mypy]mypy_test_invalid_assignment_with_error_code
 - ValueError: Not a valid mypy message
FAILED 
tests/test_basics.mypy-testing::[mypy]mypy_test_invalid_assignment_only_error_code
 - ValueError: Not a valid mypy message
FAILED tests/test_basics.mypy-testing::[mypy]mypy_test_use_reveal_type - 
ValueError: Not a valid mypy message
FAILED 
tests/test_basics.mypy-testing::[mypy]mypy_test_use_reveal_type__float_var - 
ValueError: Not a valid mypy message
FAILED tests/test_basics.mypy-testing::[mypy]mypy_test_use_reveal_type__int_var 
- ValueError: Not a valid mypy message
FAILED 
tests/test_basics.mypy-testing::[mypy]mypy_test_use_reveal_type__int_list_var - 
ValueError: Not a valid mypy message
FAILED 
tests/test_basics.mypy-testing::[mypy]mypy_test_use_reveal_type__int_list_var__with__inferred_asterisk
 - ValueError: Not a valid mypy message
============= 8 failed, 53 passed, 1 skipped, 7 xfailed in 51.12s ==============
E: pybuild pybuild:389: test: plugin pyproject failed with: exit code=1: cd 
/<<PKGBUILDDIR>>/.pybuild/cpython3_3.13/build; python3.13 -m pytest tests
dh_auto_test: error: pybuild --test --test-pytest -i python{version} -p 3.13 
returned exit code 13
make: *** [debian/rules:6: binary] Error 25
dpkg-buildpackage: error: debian/rules binary subprocess returned exit status 2
--------------------------------------------------------------------------------

Reply via email to