Package: src:astroid
Version: 3.3.8-2
Severity: serious
Tags: ftbfs forky sid

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/202512/

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:astroid, 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:131: Building wheel for python3.14 with "build" 
module
I: pybuild base:317: python3.14 -m build --skip-dependency-check --no-isolation 
--wheel --outdir /<<PKGBUILDDIR>>/.pybuild/cpython3_3.14_astroid  
* Building wheel...
/usr/lib/python3/dist-packages/setuptools/config/_apply_pyprojecttoml.py:82: 
SetuptoolsDeprecationWarning: `project.license` as a TOML table is deprecated

[... snipped ...]

tests/test_filter_statements.py .                                        [ 29%]
tests/test_group_exceptions.py ...                                       [ 29%]
tests/test_helpers.py ...............                                    [ 30%]
tests/test_inference.py ............................................F... [ 33%]
............................................x...........x......x........ [ 37%]
..................................................x..................... [ 41%]
........................................................................ [ 46%]
................................................x........xx............. [ 50%]
........x...x................................................x.......... [ 54%]
.................................                                        [ 56%]
tests/test_inference_calls.py ........................                   [ 57%]
tests/test_lookup.py ................................................... [ 60%]
....                                                                     [ 61%]
tests/test_manager.py .....................................s.......      [ 63%]
tests/test_modutils.py ................................................. [ 66%]
................s.                                                       [ 67%]
tests/test_nodes.py .................................................... [ 70%]
........................................................................ [ 74%]
................................................................         [ 78%]
tests/test_nodes_lineno.py .......................                       [ 80%]
tests/test_nodes_position.py ...                                         [ 80%]
tests/test_object_model.py x...............x.........s...........        [ 82%]
tests/test_objects.py ......................                             [ 83%]
tests/test_protocols.py .....................                            [ 84%]
tests/test_python3.py ..........................                         [ 86%]
tests/test_raw_building.py .............                                 [ 87%]
tests/test_regrtest.py .............ss............                       [ 88%]
tests/test_scoped_nodes.py ............................................. [ 91%]
........................................................................ [ 95%]
..................................................                       [ 98%]
tests/test_stdlib.py ..                                                  [ 98%]
tests/test_transforms.py .........                                       [ 99%]
tests/test_type_params.py .....                                          [ 99%]
tests/test_utils.py ........                                             [100%]

=================================== FAILURES ===================================
_______________________ TypingBrain.test_has_dunder_args _______________________

self = <tests.brain.test_brain.TypingBrain testMethod=test_has_dunder_args>

    def test_has_dunder_args(self) -> None:
        ast_node = builder.extract_node(
            """
        from typing import Union
        NumericTypes = Union[int, float]
        NumericTypes.__args__ #@
        """
        )
        inferred = next(ast_node.infer())
>       assert isinstance(inferred, nodes.Tuple)
E       AssertionError: assert False
E        +  where False = isinstance(Uninferable, <class 
'astroid.nodes.node_classes.Tuple'>)
E        +    where <class 'astroid.nodes.node_classes.Tuple'> = nodes.Tuple

tests/brain/test_brain.py:747: AssertionError
________________________ TypingBrain.test_typing_types _________________________

self = <tests.brain.test_brain.TypingBrain testMethod=test_typing_types>

    def test_typing_types(self) -> None:
        ast_nodes = builder.extract_node(
            """
        from typing import TypeVar, Iterable, Tuple, NewType, Dict, Union
        TypeVar('MyTypeVar', int, float, complex) #@
        Iterable[Tuple[MyTypeVar, MyTypeVar]] #@
        TypeVar('AnyStr', str, bytes) #@
        NewType('UserId', str) #@
        Dict[str, str] #@
        Union[int, str] #@
        """
        )
        for node in ast_nodes:
            inferred = next(node.infer())
>           self.assertIsInstance(inferred, nodes.ClassDef, node.as_string())
E           AssertionError: Uninferable is not an instance of <class 
'astroid.nodes.scoped_nodes.scoped_nodes.ClassDef'> : Union[int, str]

tests/brain/test_brain.py:561: AssertionError
____________________________ test_inference_parents ____________________________

    def test_inference_parents() -> None:
        """Test inference of ``pathlib.Path.parents``."""
        name_node = astroid.extract_node(
            """
        from pathlib import Path
    
        current_path = Path().resolve()
        path_parents = current_path.parents
        path_parents
        """
        )
        inferred = name_node.inferred()
        assert len(inferred) == 1
        assert isinstance(inferred[0], bases.Instance)
        if PY313_PLUS:
>           assert inferred[0].qname() == "builtins.tuple"
E           AssertionError: assert 'pathlib._PathParents' == 'builtins.tuple'
E             
E             - builtins.tuple
E             + pathlib._PathParents

tests/brain/test_pathlib.py:27: AssertionError
____________________ test_inference_parents_subscript_index ____________________

    def test_inference_parents_subscript_index() -> None:
        """Test inference of ``pathlib.Path.parents``, accessed by index."""
        path = astroid.extract_node(
            """
        from pathlib import Path
    
        current_path = Path().resolve()
        current_path.parents[2]  #@
        """
        )
    
        inferred = path.inferred()
        assert len(inferred) == 1
        assert isinstance(inferred[0], bases.Instance)
        if PY313_PLUS:
>           assert inferred[0].qname() == "pathlib._local.Path"
E           AssertionError: assert 'builtins.tuple' == 'pathlib._local.Path'
E             
E             - pathlib._local.Path
E             + builtins.tuple

tests/brain/test_pathlib.py:47: AssertionError
__________________ InferenceTest.test_binary_op_or_union_type __________________

self = <tests.test_inference.InferenceTest 
testMethod=test_binary_op_or_union_type>

    def test_binary_op_or_union_type(self) -> None:
        """Binary or union is only defined for Python 3.10+."""
        code = """
        class A: ...
    
        int | 2  #@
        int | "Hello"  #@
        int | ...  #@
        int | A()  #@
        int | None | 2  #@
        """
        ast_nodes = extract_node(code)
        for n in ast_nodes:
            assert n.inferred() == [util.Uninferable]
    
        code = """
        from typing import List
    
        class A: ...
        class B: ...
    
        int | None  #@
        int | str  #@
        int | str | None  #@
        A | B  #@
        A | None  #@
        List[int] | int  #@
        tuple | int  #@
        """
        ast_nodes = extract_node(code)
        if not PY310_PLUS:
            for n in ast_nodes:
                assert n.inferred() == [util.Uninferable]
        else:
            i0 = ast_nodes[0].inferred()[0]
            assert isinstance(i0, UnionType)
            assert isinstance(i0.left, nodes.ClassDef)
            assert i0.left.name == "int"
            assert isinstance(i0.right, nodes.Const)
            assert i0.right.value is None
    
            # Assert basic UnionType properties and methods
            assert i0.callable() is False
            assert i0.bool_value() is True
            assert i0.pytype() == "types.UnionType"
            assert i0.display_type() == "UnionType"
>           assert str(i0) == "UnionType(UnionType)"
E           AssertionError: assert 'UnionType(Union)' == 'UnionType(UnionType)'
E             
E             - UnionType(UnionType)
E             ?                ----
E             + UnionType(Union)

tests/test_inference.py:1309: AssertionError
=========================== short test summary info ============================
FAILED tests/brain/test_brain.py::TypingBrain::test_has_dunder_args - Asserti...
FAILED tests/brain/test_brain.py::TypingBrain::test_typing_types - AssertionE...
FAILED tests/brain/test_pathlib.py::test_inference_parents - AssertionError: ...
FAILED tests/brain/test_pathlib.py::test_inference_parents_subscript_index - ...
FAILED tests/test_inference.py::InferenceTest::test_binary_op_or_union_type
=========== 5 failed, 1626 passed, 62 skipped, 15 xfailed in 16.19s ============
E: pybuild pybuild:389: test: plugin pyproject failed with: exit code=1: cd 
/<<PKGBUILDDIR>>/.pybuild/cpython3_3.14_astroid/build; python3.14 -m pytest 
tests
I: pybuild base:317: cd /<<PKGBUILDDIR>>/.pybuild/cpython3_3.13_astroid/build; 
python3.13 -m pytest tests
============================= test session starts ==============================
platform linux -- Python 3.13.11, pytest-9.0.2, pluggy-1.6.0
rootdir: /<<PKGBUILDDIR>>/.pybuild/cpython3_3.13_astroid/build
configfile: pyproject.toml
plugins: typeguard-4.4.4
collected 1708 items

tests/brain/numpy/test_core_einsumfunc.py ss                             [  0%]
tests/brain/numpy/test_core_fromnumeric.py s                             [  0%]
tests/brain/numpy/test_core_function_base.py s                           [  0%]
tests/brain/numpy/test_core_multiarray.py sssss                          [  0%]
tests/brain/numpy/test_core_numeric.py sssss                             [  0%]
tests/brain/numpy/test_core_numerictypes.py sssssss..                    [  1%]
tests/brain/numpy/test_core_umath.py ssssssss                            [  1%]
tests/brain/numpy/test_ma.py ssss                                        [  2%]
tests/brain/numpy/test_ndarray.py sss                                    [  2%]
tests/brain/numpy/test_random_mtrand.py ss                               [  2%]
tests/brain/test_argparse.py .                                           [  2%]
tests/brain/test_attr.py sssssss                                         [  2%]
tests/brain/test_brain.py ......s.....ss................................ [  5%]
............s.........................................................x. [  9%]
..............s......                                                    [ 10%]
tests/brain/test_builtin.py ..................                           [ 12%]
tests/brain/test_ctypes.py ....x........................                 [ 13%]
tests/brain/test_dataclasses.py ........................................ [ 16%]
......................................x...                               [ 18%]
tests/brain/test_dateutil.py s                                           [ 18%]
tests/brain/test_enum.py .............................                   [ 20%]
tests/brain/test_hashlib.py ...                                          [ 20%]
tests/brain/test_multiprocessing.py ...                                  [ 20%]
tests/brain/test_named_tuple.py .......................                  [ 21%]
tests/brain/test_nose.py s                                               [ 22%]
tests/brain/test_pathlib.py ....                                         [ 22%]
tests/brain/test_pytest.py .                                             [ 22%]
tests/brain/test_qt.py sss                                               [ 22%]
tests/brain/test_regex.py ss                                             [ 22%]
tests/brain/test_signal.py ...                                           [ 22%]
tests/brain/test_six.py .......                                          [ 23%]
tests/brain/test_ssl.py ..                                               [ 23%]
tests/brain/test_threading.py ....                                       [ 23%]
tests/brain/test_typing.py .....                                         [ 23%]
tests/brain/test_typing_extensions.py .                                  [ 23%]
tests/brain/test_unittest.py .                                           [ 23%]
tests/test_builder.py .................................................. [ 26%]
........                                                                 [ 27%]
tests/test_constraint.py ...................................             [ 29%]
tests/test_decorators.py ...                                             [ 29%]
tests/test_filter_statements.py .                                        [ 29%]
tests/test_group_exceptions.py ...                                       [ 29%]
tests/test_helpers.py ...............                                    [ 30%]
tests/test_inference.py ................................................ [ 33%]
............................................x...........x......x........ [ 37%]
..................................................x..................... [ 41%]
........................................................................ [ 46%]
................................................x........xx............. [ 50%]
........x...x................................................x.......... [ 54%]
.................................                                        [ 56%]
tests/test_inference_calls.py ........................                   [ 57%]
tests/test_lookup.py ................................................... [ 60%]
....                                                                     [ 61%]
tests/test_manager.py .....................................s.......      [ 63%]
tests/test_modutils.py ................................................. [ 66%]
................s.                                                       [ 67%]
tests/test_nodes.py .................................................... [ 70%]
........................................................................ [ 74%]
................................................................         [ 78%]
tests/test_nodes_lineno.py .......................                       [ 80%]
tests/test_nodes_position.py ...                                         [ 80%]
tests/test_object_model.py x...............x.........s...........        [ 82%]
tests/test_objects.py ......................                             [ 83%]
tests/test_protocols.py .....................                            [ 84%]
tests/test_python3.py ..........................                         [ 86%]
tests/test_raw_building.py .............                                 [ 87%]
tests/test_regrtest.py .............ss............                       [ 88%]
tests/test_scoped_nodes.py ............................................. [ 91%]
........................................................................ [ 95%]
..................................................                       [ 98%]
tests/test_stdlib.py ..                                                  [ 98%]
tests/test_transforms.py .........                                       [ 99%]
tests/test_type_params.py .....                                          [ 99%]
tests/test_utils.py ........                                             [100%]

================ 1631 passed, 62 skipped, 15 xfailed in 26.53s =================
dh_auto_test: error: pybuild --test --test-pytest -i python{version} -p "3.14 
3.13" returned exit code 13
make: *** [debian/rules:10: binary] Error 25
dpkg-buildpackage: error: debian/rules binary subprocess returned exit status 2
--------------------------------------------------------------------------------

Reply via email to