• Bug#1069843: zarr: FTBFS: failing tests (2/2)

    From Santiago Vila@21:1/5 to All on Thu Apr 25 18:40:01 2024
    [continued from previous message]

    4.33s call zarr/tests/test_indexing.py::test_set_orthogonal_selection_3d 1.54s call zarr/tests/test_core.py::TestArrayWithSQLiteStore::test_islice 1.53s call zarr/tests/test_core.py::TestArrayWithSQLiteStore::test_iter 1.52s call zarr/tests/test_storage.py::test_format_compatibility
    1.36s call zarr/tests/test_core.py::TestArrayWithSQLiteStore::test_resize_2d
    1.10s call zarr/tests/test_core.py::TestArrayWithSQLiteStore::test_array_order
    1.09s call zarr/tests/test_core.py::TestArrayWithSQLiteStore::test_append_2d
    1.08s call zarr/tests/test_core.py::TestArrayWithSQLiteStore::test_append_2d_axis
    0.94s call zarr/tests/test_core.py::TestArrayWithFSStorePartialRead::test_non_cont
    0.84s call zarr/tests/test_core.py::TestArrayWithSQLiteStore::test_dtypes =========================== short test summary info ============================
    FAILED zarr/tests/test_storage.py::TestFSStore::test_complex - AssertionError...
    FAILED zarr/tests/test_storage.py::TestN5FSStore::test_complex - AssertionErr...
    = 2 failed, 2222 passed, 2175 skipped, 763 deselected, 4 xfailed, 9 warnings in 51.81s =
    E: pybuild pybuild:389: test: plugin pyproject failed with: exit code=1: cd /<<PKGBUILDDIR>>/.pybuild/cpython3_3.12_zarr/build; python3.12 -m pytest -k "not test_hierarchy and not test_utf8_encoding and not [static_flat] and not [static_nested] and not [
    static_flat_legacy] and not [static_nested_legacy] and not test_meta_prefix_6853" --pyargs zarr
    I: pybuild base:311: cd /<<PKGBUILDDIR>>/.pybuild/cpython3_3.11_zarr/build; python3.11 -m pytest -k "not test_hierarchy and not test_utf8_encoding and not [static_flat] and not [static_nested] and not [static_flat_legacy] and not [static_nested_legacy]
    and not test_meta_prefix_6853" --pyargs zarr
    ============================= test session starts ==============================
    platform linux -- Python 3.11.9, pytest-8.1.1, pluggy-1.5.0
    rootdir: /<<PKGBUILDDIR>>/.pybuild/cpython3_3.11_zarr/build
    configfile: pyproject.toml
    plugins: timeout-2.3.1, doctestplus-1.2.1
    collected 5166 items / 763 deselected / 4403 selected

    zarr/tests/test_attrs.py .................. [ 0%] zarr/tests/test_convenience.py .....ss...................ssssssss.s..... [ 1%] .......................................................sssssssssssssssss [ 2%] ssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssss [ 4%] ssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssss [ 6%] sssssssssssssssssss [ 6%] zarr/tests/test_core.py ................................................ [ 7%] ........................................................................ [ 9%] .....................................................................sss [ 11%] ssssssssssssssssssssssssssssssssssssssssssss............................ [ 12%] ........................................................................ [ 14%] ........................................................................ [ 15%] ..................ssssssssssssssssssssssssssssssssssssssssssssssssssssss [ 17%] ssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssss [ 19%] sssssssssssssss......................................................... [ 20%] ........................................................................ [ 22%] ........................................................................ [ 24%] ........................................................................ [ 25%] ........................................................................ [ 27%] ........................................................................ [ 29%] ........................................................................ [ 30%] .......................................................................s [ 32%] ........................................................................ [ 33%] ........................s..........sssssssssssssssssssssssssssssssssssss [ 35%] ssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssss [ 37%] ssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssss [ 38%] ssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssss [ 40%] ssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssss [ 42%] ssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssss [ 43%] ssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssss [ 45%] ssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssss [ 47%] ssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssss [ 48%] ssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssss [ 50%] ssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssss [ 51%] ssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssss [ 53%] ssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssss [ 55%] ssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssss [ 56%] sssssssssssssssssssss. [ 57%] zarr/tests/test_creation.py ............................................ [ 58%] .......................................ss..... [ 59%] zarr/tests/test_dim_separator.py ..........................x....x [ 60%] zarr/tests/test_filters.py ....... [ 60%] zarr/tests/test_indexing.py ............................................ [ 61%] ...........xx...... [ 61%] zarr/tests/test_info.py .. [ 61%] zarr/tests/test_meta.py ......................... [ 62%] zarr/tests/test_meta_array.py .sss.sss.sss.sss.sss.sss.sss.sss..ssssss.. [ 63%] ssssss..ssssss..ssssss [ 63%] zarr/tests/test_n5.py ..... [ 63%] zarr/tests/test_storage.py ...................s........................s [ 64%] ........................s............................................... [ 66%] ...................F.........ss..............s.......................... [ 68%] ........................................................................ [ 69%] .................F.........ss........................................... [ 71%] ....................s................................................... [ 73%] ....................................ssssssssssssssssssssssss............ [ 74%] ............ssssssssssssssssssssssssssssssssssssssssssssssss............ [ 76%] ......................................ssssssssssssssssssssssssssssssssss [ 77%] ssssssssssssss.............s.................ssssssssssssssssssssssssss. [ 79%] ...... [ 79%] zarr/tests/test_storage_v3.py ssssssssssssssssssssssssssssssssssssssssss [ 80%] ssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssss [ 82%] ssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssss [ 83%] ssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssss [ 85%] ssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssss [ 87%] ssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssss [ 88%] ssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssss [ 90%] ssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssss [ 92%] ssssssssssssssssssssssssssssssssssssssssssssssss [ 93%] zarr/tests/test_sync.py ................................................ [ 94%] ........................................................................ [ 95%] ........................................................................ [ 97%] ........................................................................ [ 99%] ................ [ 99%] zarr/tests/test_util.py .................. [100%]

    =================================== FAILURES ===================================
    ___________________________ TestFSStore.test_complex ___________________________

    self = <zarr.tests.test_storage.TestFSStore object at 0x7ffbc36aea90>

    def test_complex(self):
    path1 = tempfile.mkdtemp()
    path2 = tempfile.mkdtemp()
    store = self.create_store(
    path="simplecache::file://" + path1,
    simplecache={"same_names": True, "cache_storage": path2},
    )
    assert not store
    assert not os.listdir(path1)
    assert not os.listdir(path2)
    store[self.root + "foo"] = b"hello"
    assert "foo" in os.listdir(str(path1) + "/" + self.root)
    assert self.root + "foo" in store
    assert not os.listdir(str(path2))
    E AssertionError: assert not ['foo']
    E + where ['foo'] = <built-in function listdir>('/tmp/tmpb57pytp0')
    E + where <built-in function listdir> = os.listdir
    E + and '/tmp/tmpb57pytp0' = str('/tmp/tmpb57pytp0')

    zarr/tests/test_storage.py:1155: AssertionError
    __________________________ TestN5FSStore.test_complex __________________________

    self = <zarr.tests.test_storage.TestN5FSStore object at 0x7ffbc355d150>

    def test_complex(self):
    path1 = tempfile.mkdtemp()
    path2 = tempfile.mkdtemp()
    store = self.create_store(
    path="simplecache::file://" + path1,
    simplecache={"same_names": True, "cache_storage": path2},
    )
    assert not store
    assert not os.listdir(path1)
    assert not os.listdir(path2)
    store[self.root + "foo"] = b"hello"
    assert "foo" in os.listdir(str(path1) + "/" + self.root)
    assert self.root + "foo" in store
    assert not os.listdir(str(path2))
    E AssertionError: assert not ['foo']
    E + where ['foo'] = <built-in function listdir>('/tmp/tmpjnj_wxks')
    E + where <built-in function listdir> = os.listdir
    E + and '/tmp/tmpjnj_wxks' = str('/tmp/tmpjnj_wxks')

    zarr/tests/test_storage.py:1155: AssertionError
    =============================== warnings summary ===============================
    zarr/tests/test_storage.py::TestZipStore::test_store_and_retrieve_ndarray
    /usr/lib/python3.11/zipfile.py:1566: UserWarning: Duplicate name: 'foo'
    return self._open_to_write(zinfo, force_zip64=force_zip64)

    -- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html ============================= slowest 10 durations =============================
    4.53s call zarr/tests/test_indexing.py::test_set_orthogonal_selection_3d 1.63s call zarr/tests/test_storage.py::test_format_compatibility
    1.63s call zarr/tests/test_core.py::TestArrayWithSQLiteStore::test_iter 1.45s call zarr/tests/test_core.py::TestArrayWithSQLiteStore::test_islice 1.13s call zarr/tests/test_core.py::TestArrayWithSQLiteStore::test_resize_2d
    1.09s call zarr/tests/test_core.py::TestArrayWithSQLiteStore::test_array_order
    1.08s call zarr/tests/test_core.py::TestArrayWithSQLiteStore::test_append_2d_axis
    1.08s call zarr/tests/test_core.py::TestArrayWithSQLiteStore::test_append_2d
    0.90s call zarr/tests/test_core.py::TestArrayWithFSStorePartialRead::test_non_cont
    0.75s call zarr/tests/test_indexing.py::test_set_orthogonal_selection_2d =========================== short test summary info ============================
    FAILED zarr/tests/test_storage.py::TestFSStore::test_complex - AssertionError...
    FAILED zarr/tests/test_storage.py::TestN5FSStore::test_complex - AssertionErr...
    = 2 failed, 2222 passed, 2175 skipped, 763 deselected, 4 xfailed, 1 warning in 52.19s =
    E: pybuild pybuild:389: test: plugin pyproject failed with: exit code=1: cd /<<PKGBUILDDIR>>/.pybuild/cpython3_3.11_zarr/build; python3.11 -m pytest -k "not test_hierarchy and not test_utf8_encoding and not [static_flat] and not [static_nested] and not [
    static_flat_legacy] and not [static_nested_legacy] and not test_meta_prefix_6853" --pyargs zarr
    dh_auto_test: error: pybuild --test --test-pytest -i python{version} -p "3.12 3.11" returned exit code 13
    make: *** [debian/rules:27: binary] Error 25
    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/202404/

    About the archive rebuild: The build was made on virtual machines
    of type m6a.large 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 affects, so that this is still visible in the BTS web
    page for this package.

    Thanks.

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)