Package: src:traitlets
Version: 5.14.3+really5.14.3-1
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:traitlets, so that this is still
visible in the BTS web page for this package.

Thanks.

--------------------------------------------------------------------------------
[...]
 debian/rules clean
dh clean --with sphinxdoc --buildsystem=pybuild
   dh_auto_clean -O--buildsystem=pybuild
   debian/rules execute_after_dh_auto_clean
make[1]: Entering directory '/<<PKGBUILDDIR>>'
rm -rf docs/build docs/source/changelog.md
make[1]: Leaving directory '/<<PKGBUILDDIR>>'
   dh_autoreconf_clean -O--buildsystem=pybuild
   dh_clean -O--buildsystem=pybuild
 debian/rules binary
dh binary --with sphinxdoc --buildsystem=pybuild
   dh_update_autotools_config -O--buildsystem=pybuild
   dh_autoreconf -O--buildsystem=pybuild
   dh_auto_configure -O--buildsystem=pybuild

[... snipped ...]

function_gen = <generator object pytest_runtest_call at 0x7f9beaecc9e0>
hook_impl  = <HookImpl plugin_name='runner', plugin=<module '_pytest.runner' 
from '/usr/lib/python3/dist-packages/_pytest/runner.py'>>
hook_impls = [<HookImpl plugin_name='threadexception', plugin=<module 
'_pytest.threadexception' from '/usr/lib/python3/dist-package...xture=None>>, 
<HookImpl plugin_name='logging-plugin', plugin=<_pytest.logging.LoggingPlugin 
object at 0x7f9c228ffcb0>>]
hook_name  = 'pytest_runtest_call'
res        = <generator object pytest_runtest_call at 0x7f9beaecc9e0>
result     = []
results    = []
teardown   = <generator object LoggingPlugin.pytest_runtest_call at 
0x7f9beae7f840>
teardowns  = [<generator object LoggingPlugin.pytest_runtest_call at 
0x7f9beae7f840>, <generator object CaptureManager.pytest_runtest_call at 
0x7f9beaecf4c0>, <generator object pytest_runtest_call at 0x7f9beaecc9e0>]

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

item = <PytestMypyTestItem [mypy]mypy_instance_typing>

    @hookimpl(wrapper=True)
    def pytest_runtest_call(item: Item) -> 
Generator[None]:
        xfailed = item.stash.get(xfailed_key, 
None)
        if xfailed is 
None:
            item.stash[xfailed_key] = xfailed = 
evaluate_xfail_marks(item)
    
        if xfailed and not 
item.config.option.runxfail and not 
xfailed.run:
            xfail("[NOTRUN] " + 
xfailed.reason)
    
        try:
>           return (yield)
                    ^^^^^

item       = <PytestMypyTestItem [mypy]mypy_instance_typing>
xfailed    = None

/usr/lib/python3/dist-packages/_pytest/skipping.py:263: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

hook_name = 'pytest_runtest_call'
hook_impls = [<HookImpl plugin_name='threadexception', plugin=<module 
'_pytest.threadexception' from '/usr/lib/python3/dist-package...xture=None>>, 
<HookImpl plugin_name='logging-plugin', plugin=<_pytest.logging.LoggingPlugin 
object at 0x7f9c228ffcb0>>]
caller_kwargs = {'item': <PytestMypyTestItem [mypy]mypy_instance_typing>}
firstresult = False

    def _multicall(
        hook_name: str,
        hook_impls: Sequence[HookImpl],
        caller_kwargs: Mapping[str, 
object],
        firstresult: bool,
    ) -> object | 
list[object]:
        """Execute a call into multiple python 
functions/methods and return the
        result(s).
    
        ``caller_kwargs`` comes from HookCaller.__call__().
        """
        __tracebackhide__ = True
        results: list[object] = 
[]
        exception = None
        try:  # run impl and wrapper setup functions in a 
loop
            teardowns: list[Teardown] = []
            try:
                for hook_impl in 
reversed(hook_impls):
                    try:
                        args = [caller_kwargs[argname] for 
argname in hook_impl.argnames]
                    except KeyError 
as e:
                        # coverage bug - this is 
tested
                        for argname in 
hook_impl.argnames:  # pragma: no cover
                            if argname not 
in caller_kwargs:
                                raise 
HookCallError(
                                    f"hook 
call must provide argument 
{argname!r}"
                                ) from 
e
    
                    if hook_impl.hookwrapper:
                        function_gen = run_old_style_hookwrapper(hook_impl, 
hook_name, args)
    
                        next(function_gen)  # first 
yield
                        teardowns.append(function_gen)
    
                    elif hook_impl.wrapper:
                        try:
                            # If this cast is not valid, a type error is 
raised below,
                            # which is the desired 
response.
                            res = hook_impl.function(*args)
                            function_gen = cast(Generator[None, 
object, object], res)
                            next(function_gen)  # first 
yield
                            teardowns.append(function_gen)
                        except 
StopIteration:
                            _raise_wrapfail(function_gen, 
"did not yield")
                    else:
>                       res = hook_impl.function(*args)
                              ^^^^^^^^^^^^^^^^^^^^^^^^^

__tracebackhide__ = True
args       = [<PytestMypyTestItem [mypy]mypy_instance_typing>]
caller_kwargs = {'item': <PytestMypyTestItem [mypy]mypy_instance_typing>}
exception  = ValueError('Not a valid mypy message')
firstresult = False
function_gen = <generator object pytest_runtest_call at 0x7f9beaecc9e0>
hook_impl  = <HookImpl plugin_name='runner', plugin=<module '_pytest.runner' 
from '/usr/lib/python3/dist-packages/_pytest/runner.py'>>
hook_impls = [<HookImpl plugin_name='threadexception', plugin=<module 
'_pytest.threadexception' from '/usr/lib/python3/dist-package...xture=None>>, 
<HookImpl plugin_name='logging-plugin', plugin=<_pytest.logging.LoggingPlugin 
object at 0x7f9c228ffcb0>>]
hook_name  = 'pytest_runtest_call'
res        = <generator object pytest_runtest_call at 0x7f9beaecc9e0>
result     = []
results    = []
teardown   = <generator object LoggingPlugin.pytest_runtest_call at 
0x7f9beae7f840>
teardowns  = [<generator object LoggingPlugin.pytest_runtest_call at 
0x7f9beae7f840>, <generator object CaptureManager.pytest_runtest_call at 
0x7f9beaecf4c0>, <generator object pytest_runtest_call at 0x7f9beaecc9e0>]

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

item = <PytestMypyTestItem [mypy]mypy_instance_typing>

    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_instance_typing>

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

self = <PytestMypyTestItem [mypy]mypy_instance_typing>

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

self       = <PytestMypyTestItem [mypy]mypy_instance_typing>

/usr/lib/python3/dist-packages/pytest_mypy_testing/plugin.py:64: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <PytestMypyFile test_typing.py>
item = MypyTestItem(name='mypy_instance_typing', lineno=433, end_lineno=454, 
expected_messages=[Message(filename='/build/trai..._code='assignment')], 
func_node=<ast.FunctionDef object at 0x7f9c21f479d0>, 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_instance_typing', lineno=433, 
end_lineno=454, 
expected_messages=[Message(filename='/build/trai..._code='assignment')], 
func_node=<ast.FunctionDef object at 0x7f9c21f479d0>, marks={'mypy_testing'}, 
actual_messages=[])
self       = <PytestMypyFile test_typing.py>

/usr/lib/python3/dist-packages/pytest_mypy_testing/plugin.py:136: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <PytestMypyFile test_typing.py>
filename = 
PosixPath('/<<PKGBUILDDIR>>/.pybuild/cpython3_3.13_traitlets/build/tests/test_typing.py')

    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        = 'pyproject.toml: [mypy]: python_version: Python 3.8 is not 
supported (must be 3.9 or higher)\n'
filename   = 
PosixPath('/<<PKGBUILDDIR>>/.pybuild/cpython3_3.13_traitlets/build/tests/test_typing.py')
lines      = 
['/usr/lib/python3/dist-packages/mypy/typeshed/stdlib/builtins.pyi:1244:27: 
error: Class cannot subclass "Any" (has 
ty...ist-packages/argcomplete/packages/_shlex.py:74:5: error: Function is 
missing a type annotation  [no-untyped-def]', ...]
mypy_args  = ['--cache-dir=/tmp/pytest-mypy-testing-y32okx2_/mypy_cache', 
'--check-untyped-defs', '--hide-error-context', '--no-color-output', 
'--no-error-summary', '--no-pretty', ...]
mypy_cache_dir = '/tmp/pytest-mypy-testing-y32okx2_/mypy_cache'
out        = 
'/usr/lib/python3/dist-packages/mypy/typeshed/stdlib/builtins.pyi:1244:27: 
error: Class cannot subclass "Any" (has typ...:454:14: error: Incompatible 
types in assignment (expression has type "None", variable has type "Foo")  
[assignment]\n'
returncode = 1
self       = <PytestMypyFile test_typing.py>
tmp_dir_name = '/tmp/pytest-mypy-testing-y32okx2_'

/usr/lib/python3/dist-packages/pytest_mypy_testing/plugin.py:173: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

cls = <class 'pytest_mypy_testing.message.Message'>
line = 'pyproject.toml: [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       = 'pyproject.toml: [mypy]: python_version: Python 3.8 is not 
supported (must be 3.9 or higher)'
m          = None

/usr/lib/python3/dist-packages/pytest_mypy_testing/message.py:295: 
ValueError
=============================== warnings summary 
===============================
tests/_warnings.py::tests._warnings.all_warnings
  <doctest tests._warnings.all_warnings[1]>:2: RuntimeWarning: bar

-- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html
============================= slowest 10 durations =============================
6.03s call     tests/test_typing.py::[mypy]mypy_int_typing
6.00s call     tests/test_typing.py::[mypy]mypy_enum_typing
5.73s call     tests/test_typing.py::[mypy]mypy_list_typing
4.27s call     tests/test_typing.py::[mypy]mypy_cint_typing
4.21s call     tests/test_typing.py::[mypy]mypy_set_typing
4.16s call     tests/test_typing.py::[mypy]mypy_tcp_typing
4.13s call     tests/test_typing.py::[mypy]mypy_dict_typing
4.09s call     tests/test_typing.py::[mypy]mypy_instance_typing
4.05s call     tests/test_typing.py::[mypy]mypy_any_typing
4.00s call     tests/test_typing.py::[mypy]mypy_type_typing
=========================== short test summary info 
============================
SKIPPED [1] 
../../../../../../usr/lib/python3/dist-packages/_pytest/doctest.py:458: all 
tests skipped by +SKIP option
FAILED tests/test_typing.py::[mypy]mypy_decorator_typing - 
ValueError: Not a valid mypy message
FAILED tests/test_typing.py::[mypy]mypy_config_typing - 
ValueError: Not a valid mypy message
FAILED tests/test_typing.py::[mypy]mypy_union_typing - 
ValueError: Not a valid mypy message
FAILED tests/test_typing.py::[mypy]mypy_list_typing - 
ValueError: Not a valid mypy message
FAILED tests/test_typing.py::[mypy]mypy_dict_typing - 
ValueError: Not a valid mypy message
FAILED tests/test_typing.py::[mypy]mypy_type_typing - 
ValueError: Not a valid mypy message
FAILED tests/test_typing.py::[mypy]mypy_unicode_typing - 
ValueError: Not a valid mypy message
FAILED tests/test_typing.py::[mypy]mypy_enum_typing - 
ValueError: Not a valid mypy message
FAILED tests/test_typing.py::[mypy]mypy_set_typing - 
ValueError: Not a valid mypy message
FAILED tests/test_typing.py::[mypy]mypy_any_typing - 
ValueError: Not a valid mypy message
FAILED tests/test_typing.py::[mypy]mypy_bool_typing - 
ValueError: Not a valid mypy message
FAILED tests/test_typing.py::[mypy]mypy_int_typing - 
ValueError: Not a valid mypy message
FAILED tests/test_typing.py::[mypy]mypy_cint_typing - 
ValueError: Not a valid mypy message
FAILED tests/test_typing.py::[mypy]mypy_tcp_typing - 
ValueError: Not a valid mypy message
FAILED tests/test_typing.py::[mypy]mypy_instance_typing - 
ValueError: Not a valid mypy message
======= 15 failed, 572 passed, 1 skipped, 
1 warning in 68.51s (0:01:08) ========
E: pybuild pybuild:389: test: plugin pyproject failed with: exit code=1: cd 
/<<PKGBUILDDIR>>/.pybuild/cpython3_3.13_traitlets/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:8: binary] Error 25
dpkg-buildpackage: error: debian/rules binary subprocess returned exit status 2
--------------------------------------------------------------------------------

Reply via email to