• Bug#1059354: xarray-datatree: autopkgtest regression with python-xarray

    From Graham Inggs@21:1/5 to All on Sat Dec 23 11:10:01 2023
    Source: xarray-datatree
    Version: 0.0.13-1
    Severity: serious
    User: debian-ci@lists.debian.org
    Usertags: regression

    Hi Maintainer

    Since the upload of python-xarray 2023.12.0-1, xarray-datatree's
    autopkgtests fail in unstable [1]. I've copied what I hope is the
    relevant part of the log below.

    Regards
    Graham


    [1] https://ci.debian.net/packages/x/xarray-datatree/testing/amd64/


    53s ==================================== ERRORS ====================================
    53s __________________ ERROR collecting tests/test_dataset_api.py __________________
    53s ImportError while importing test module '/usr/lib/python3/dist-packages/datatree/tests/test_dataset_api.py'.
    53s Hint: make sure your test modules/packages have valid Python names.
    53s Traceback:
    53s /usr/lib/python3.11/importlib/__init__.py:126: in import_module
    53s return _bootstrap._gcd_import(name[level:], package, level)
    53s /usr/lib/python3/dist-packages/datatree/tests/test_dataset_api.py:5:
    in <module>
    53s from datatree.testing import assert_equal
    53s /usr/lib/python3/dist-packages/datatree/testing.py:1: in <module>
    53s from xarray.testing import ensure_warnings
    53s E ImportError: cannot import name 'ensure_warnings' from
    'xarray.testing'
    (/usr/lib/python3/dist-packages/xarray/testing/__init__.py)
    53s ___________________ ERROR collecting tests/test_datatree.py ____________________
    53s ImportError while importing test module '/usr/lib/python3/dist-packages/datatree/tests/test_datatree.py'.
    53s Hint: make sure your test modules/packages have valid Python names.
    53s Traceback:
    53s /usr/lib/python3.11/importlib/__init__.py:126: in import_module
    53s return _bootstrap._gcd_import(name[level:], package, level)
    53s /usr/lib/python3/dist-packages/datatree/tests/test_datatree.py:9:
    in <module>
    53s import datatree.testing as dtt
    53s /usr/lib/python3/dist-packages/datatree/testing.py:1: in <module>
    53s from xarray.testing import ensure_warnings
    53s E ImportError: cannot import name 'ensure_warnings' from
    'xarray.testing'
    (/usr/lib/python3/dist-packages/xarray/testing/__init__.py)
    53s ______________________ ERROR collecting tests/test_io.py _______________________
    53s ImportError while importing test module '/usr/lib/python3/dist-packages/datatree/tests/test_io.py'.
    53s Hint: make sure your test modules/packages have valid Python names.
    53s Traceback:
    53s /usr/lib/python3.11/importlib/__init__.py:126: in import_module
    53s return _bootstrap._gcd_import(name[level:], package, level)
    53s /usr/lib/python3/dist-packages/datatree/tests/test_io.py:4: in <module>
    53s from datatree.testing import assert_equal
    53s /usr/lib/python3/dist-packages/datatree/testing.py:1: in <module>
    53s from xarray.testing import ensure_warnings
    53s E ImportError: cannot import name 'ensure_warnings' from
    'xarray.testing'
    (/usr/lib/python3/dist-packages/xarray/testing/__init__.py)
    53s ____________________ ERROR collecting tests/test_mapping.py ____________________
    53s ImportError while importing test module '/usr/lib/python3/dist-packages/datatree/tests/test_mapping.py'.
    53s Hint: make sure your test modules/packages have valid Python names.
    53s Traceback:
    53s /usr/lib/python3.11/importlib/__init__.py:126: in import_module
    53s return _bootstrap._gcd_import(name[level:], package, level)
    53s /usr/lib/python3/dist-packages/datatree/tests/test_mapping.py:7: in <module>
    53s from datatree.testing import assert_equal
    53s /usr/lib/python3/dist-packages/datatree/testing.py:1: in <module>
    53s from xarray.testing import ensure_warnings
    53s E ImportError: cannot import name 'ensure_warnings' from
    'xarray.testing'
    (/usr/lib/python3/dist-packages/xarray/testing/__init__.py)
    53s =============================== warnings summary ===============================
    53s ../../../../../usr/lib/python3/dist-packages/xarray/tests/__init__.py:152 53s /usr/lib/python3/dist-packages/xarray/tests/__init__.py:152: PytestUnknownMarkWarning: Unknown pytest.mark.flaky - is this a typo?
    You can register custom marks to avoid this warning - for details, see https://docs.pytest.org/en/stable/how-to/mark.html
    53s flaky = pytest.mark.flaky
    53s
    53s ../../../../../usr/lib/python3/dist-packages/xarray/tests/__init__.py:153 53s /usr/lib/python3/dist-packages/xarray/tests/__init__.py:153: PytestUnknownMarkWarning: Unknown pytest.mark.network - is this a
    typo? You can register custom marks to avoid this warning - for
    details, see https://docs.pytest.org/en/stable/how-to/mark.html
    53s network = pytest.mark.network
    53s
    53s -- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html
    53s =========================== short test summary info ============================
    53s ERROR tests/test_dataset_api.py
    53s ERROR tests/test_datatree.py
    53s ERROR tests/test_io.py
    53s ERROR tests/test_mapping.py
    53s !!!!!!!!!!!!!!!!!!! Interrupted: 4 errors during collection !!!!!!!!!!!!!!!!!!!!
    53s ======================== 2 warnings, 4 errors in 0.54s =========================
    53s E: pybuild pybuild:395: test: plugin pyproject failed with: exit
    code=2: cd /tmp/autopkgtest-lxc.9pfjle7f/downtmp/autopkgtest_tmp/build; python3.11 -m pytest --pyargs datatree

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Debian Bug Tracking System@21:1/5 to All on Sat Dec 23 20:10:01 2023
    This is a multi-part message in MIME format...

    Your message dated Sat, 23 Dec 2023 19:06:12 +0000
    with message-id <E1rH7K8-004MKv-Gf@fasolo.debian.org>
    and subject line Bug#1059354: fixed in xarray-datatree 0.0.13-2
    has caused the Debian Bug report #1059354,
    regarding xarray-datatree: autopkgtest regression with python-xarray 2023.12.0-1
    to be marked as done.

    This means that you claim that the problem has been dealt with.
    If this is not the case it is now your responsibility to reopen the
    Bug report if necessary, and/or fix the problem forthwith.

    (NB: If you are a system administrator and have no idea what this
    message is talking about, this may indicate a serious mail system misconfiguration somewhere. Please contact owner@bugs.debian.org
    immediately.)


    --
    1059354: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1059354
    Debian Bug Tracking System
    Contact owner@bugs.debian.org with problems

    Received: (at submit) by bugs.debian.org; 23 Dec 2023 10:02:48 +0000 X-Spam-Checker-Version: SpamAssassin 3.4.6-bugs.debian.org_2005_01_02
    (2021-04-09) on buxtehude.debian.org
    X-Spam-Level:
    X-Spam-Status: No, score=-5.8 required=4.0 tests=BAYES_00,FROMDEVELOPER,
    FUZZY_CPILL,RCVD_IN_DNSWL_LOW,SPF_HELO_PASS,SPF_NONE,
    T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no
    version=3.4.6-bugs.debian.org_2005_01_02
    X-Spam-Bayes: score:0.0000 Tokens: new, 21; hammy, 150; neutral, 101; spammy,
    0. spammytokens: hammytokens:0.000-+--python3, 0.000-+--autopkgtest,
    0.000-+--pybuild, 0.000-+--cidebiannet, 0.000-+--UD:ci.debian.net Return-path: <ginggs@debian.org>
    Received: from mx0.riseup.net ([198.252.153.6]:58576)
    by buxtehude.debian.org with esmtps (TLS1.3:ECDHE_X25519__RSA_PSS_RSAE_SHA256__AES_256_GCM:256)
    (Exim 4.94.2)
    (envelope-from <ginggs@debian.