Skip to content

feat(zarr-storage): add the zarr-storage package with zarr's store code in zarr_storage.legacy - #4698

Open
d-v-b wants to merge 12 commits into
zarr-developers:mainfrom
d-v-b:feat/zarr-storage-legacy
Open

d-v-b wants to merge 12 commits into
zarr-developers:mainfrom
d-v-b:feat/zarr-storage-legacy

Conversation

@d-v-b

@d-v-b d-v-b commented Dec 4, 2026

Copy link
Copy Markdown
Contributor

Creates a new stand-alone zarr_storage package at packages/zarr-storage. zarr_storage.legacy contains definitions of all the storage routines in zarr. zarr-storage does not depend on zarr. Subsequent PRs will define a dependency relationship where zarr depends on zarr-storage, after zarr-storage is published.

  • I am a human, these are my changes, and I have reviewed and understood every change and can explain why each is correct.

TODO

  • Add unit tests and/or doctests in docstrings
  • Add docstrings and API docs for any new/modified user-facing classes and functions
  • New/modified features documented in docs/user-guide/*.md
  • Changes documented as a new file in changes/
  • GitHub Actions have all passed
  • Test coverage is 100% (Codecov passes)

d-v-b and others added 8 commits December 3, 2026 13:32
…de in zarr_storage.legacy

Steps 1 and 2 of zarr-developers#4682. `zarr_storage.legacy` holds
the store interface of zarr-python 3, its stores, the conformance suite and
state machine for stores, and what they build on (buffers, the buffer and URL
adapter registries, the configuration keys they read, errors), without
importing zarr, so zarr can depend on it. The module `zarr.X` is
`zarr_storage.legacy.X`.

`scripts/sync_legacy.py` writes the copy from `src/zarr`, and CI checks that
the two match, so a store fix is made once until zarr re-exports this code.
No zarr runtime code changes.

Assisted-by: ClaudeCode:claude-opus-5-5
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Assisted-by: ClaudeCode:claude-opus-5-5
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…3.14

Python 3.14 reports a leaked event loop or socket as "Exception ignored
while ..." where earlier versions say "in", so the session's filters missed
them there.

Assisted-by: ClaudeCode:claude-opus-5-5
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The filter for s3fs sessions that were never entered also hid every error in
a weakref callback run by the garbage collector on Python 3.14 (except the
free-threaded build). It now requires "Session was never entered" in all
cases.

Assisted-by: ClaudeCode:claude-opus-5-5
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The three modules logged under `__name__`. `zarr_storage.legacy` holds copies of them, and will be
where the code lives, so their records would leave the `zarr` logger and its settings.

Assisted-by: ClaudeCode:claude-opus-5-5
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Assisted-by: ClaudeCode:claude-opus-5-5
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Assisted-by: ClaudeCode:claude-opus-5-5
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@d-v-b d-v-b changed the title Feat/zarr storage legacy feat(zarr-storage): add the zarr-storage package with zarr's store code in zarr_storage.legacy Dec 4, 2026
@codecov

codecov Bot commented Dec 4, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 95.06%. Comparing base (12b4721) to head (0b7e9f6).

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #4698   +/-   ##
=======================================
  Coverage   95.06%   95.06%           
=======================================
  Files          96       96           
  Lines       14126    14126           
=======================================
  Hits        13429    13429           
  Misses        697      697           
Files with missing lines Coverage Δ
src/zarr/core/sync.py 94.23% <100.00%> (ø)
src/zarr/experimental/cache_store.py 92.99% <100.00%> (ø)
src/zarr/storage/_memory.py 96.18% <100.00%> (ø)
🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

d-v-b and others added 3 commits December 4, 2026 16:19
…gacy copy

zarr-developers#4696 changed `zarr.experimental.cache_store`, so the legacy copy and the
"legacy in sync with zarr" check fell behind. Regenerated, with that PR's store-level tests added
to the copy of the test module.

Assisted-by: ClaudeCode:claude-opus-5-5
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Assisted-by: ClaudeCode:claude-opus-5-5
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Assisted-by: ClaudeCode:claude-opus-5-5
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant