zarr-developers / zarr-python

An implementation of chunked, compressed, N-dimensional arrays for Python.
https://zarr.readthedocs.io
MIT License
1.54k stars 286 forks source link

Additional fsspec tests #1328

Open joshmoore opened 1 year ago

joshmoore commented 1 year ago

Originally posted by @joshmoore in https://github.com/zarr-developers/zarr-python/issues/1324#issuecomment-1396725745

jakirkham commented 1 year ago

Thanks for raising Josh! Was thinking the same thing

That and/or setting up some kind of regression testing with fsspec. Something useful along these lines would be Numba's texasbbq project

joshmoore commented 1 year ago

That's nice! So in this case, @jakirkham, you'd create a zarr-integration-testing repo and add in tifffile or were you thinking an fsspec-integration-testing with zarr?

cc: @cgohlke @martindurant

AkashS20 commented 1 year ago

Hi, I would like to contribute to this. I'm new to open source so if you could please guide me on solving this it will be of great help.

forman commented 1 year ago

@joshmoore @jakirkham

For example, FSMap of fsspec 2022.3.0 no longer has an attribute check (unfortunately without former deprecation), but current Zarr still uses it: https://github.com/zarr-developers/zarr-python/blob/main/zarr/storage.py#L148. @AkashS20, I guess, this is where regression testing applies, e.g., checking if fsspec interface are as expected.

Unfortunately, our latest xcube release is broken due to this:

image

EDIT

Unfortunately, our latest xcube ...

It's only broken when used used with fsspec >=2023.2.

martindurant commented 1 year ago

fsspec' FSMap does still have check=: https://github.com/fsspec/filesystem_spec/blob/master/fsspec/mapping.py#L37 and indeed it sets mapper.check a few lines later.

Furthermore, fsspec runs one simple xarray/zarr roundtrip (with s3 local mock) as part of its "downstream" CI job, which might catch this sort of thing.

joshmoore commented 1 year ago

@forman: what version of Zarr?

@martindurant: any idea on what the cause might be there then?

martindurant commented 1 year ago

No, I don't know, and I don't see a failure on xcube either :|