zarr-python icon indicating copy to clipboard operation
zarr-python copied to clipboard

Adapt storage tests for changes in fsspec (#1819) (#1679)

Open AdamWill opened this issue 1 year ago • 1 comments

This is adapted from the fixes that were rolled into https://github.com/zarr-developers/zarr-python/pull/1785 for the v3 branch.

TODO:

  • [ ] GitHub Actions have all passed
  • [ ] Test coverage is 100% (Codecov passes)

Deleted TODO items are not applicable as this changes no code, only tests.

AdamWill avatar Jun 17 '24 17:06 AdamWill

On v3 the check in test_hierarchy was commented out entirely, but that seems excessive to me. The comment # no exception raised if path does not exist or is leaf indicates the primary point of these checks is to make sure the listdir calls run without causing an assertion, and we can still do that, and check that the result is one of the two we know are possible.

AdamWill avatar Jun 17 '24 17:06 AdamWill

Thanks for this! To get the tests passing, I think the version of fsspec in requirements_dev_optional.txt will need increasing to a version that's compatible with the new tests.

dstansby avatar Aug 15 '24 09:08 dstansby

ugh, it's been a while, but I think the change is supposed to work with both old and new fsspec? I'll try and find a minute to remember it...

AdamWill avatar Aug 15 '24 17:08 AdamWill

I'm going to close this as stale. Folks should feel free to reopen if there is interest in continuing this work.

jhamman avatar Oct 11 '24 23:10 jhamman

yeah, looking at it again, this is intended to work both ways.

AdamWill avatar Oct 11 '24 23:10 AdamWill

eh, but looking at the test results, it didn't. not sure why not, i'd have to remember all this stuff again. sigh.

AdamWill avatar Oct 11 '24 23:10 AdamWill