Repository navigation
Conversation
…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>
This was referenced Dec 3, 2026
…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>
Owner
Author
|
🤖 AI text below 🤖 Review rounds 3 and 4, which the description refers to.
|
d-v-b
marked this pull request as ready for review
December 3, 2026 12:47
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>
Owner
Author
|
🤖 AI text below 🤖 Review record for
|
…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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
🤖 AI text below 🤖
Add
zarr-storage, a package for zarr-python's storage code.zarr_storage.legacyholds the store interface of zarr-python 3 and its stores, without a dependency onzarr;zarrwill depend on it. Until then it is a copy of the code inzarr, kept identical by a script.This is steps 1 and 2 of zarr-developers#4682, and the first half of the split of #488. The second half, the new store API in
zarr_storage.experimental, is stacked on this PR. Merge this one first. It does what zarr-developers#4318 does, but without importingzarr, which step 3 (zarr depends on this package) needs.Maintainer setup needed before the first release, as for the other sub-packages:
zarr-storageGitHub label (the labeler applies it);zarr-storagewhose configuration file ispackages/zarr-storage/.readthedocs.yaml;zarr-storage-release.yml, with environmentszarr-storage-releasesandzarr-storage-releases-test.What is in
zarr_storage.legacyzarr.Xiszarr_storage.legacy.X. Copied whole, apart from imports and documentation links:abc/{buffer,store,url_pipeline},storage/*,experimental/cache_store,buffer/*,core/{_coalesce,_json,sync},core/buffer/*,errors,testing/{buffer,store,utils}.core/common,core/config(the keysasync,threading,buffer,ndbuffer),registry(buffers and URL adapters),codecs/bytes(EndianLiteral),testing/strategies(keys and key ranges) andtesting/stateful(ZarrStoreStateMachine).zarr_storage.legacyexports the public names ofzarr.abc.storeandzarr.storage.gpumarker that the conformance suite uses, as zarr's does, without importing the stores.Keeping the copy identical
packages/zarr-storage/scripts/sync_legacy.pywrites the copy fromsrc/zarr(just zarr-storage sync-legacy), and thelegacy in sync with zarrCI job runs it with--checkwhensrc/zarror the package changes. It fails on a difference in any file, on a new import of a zarr module that isn't copied, on a read of a configuration key the copy lacks, and on a change to the two pieces of zarr code that the script has its own version of. So a store fix is made once, insrc/zarr. The script goes away with step 3.Testing
mkdocs build --strictare clean. The sdist's tests passed unpacked, before the review fixes.Review record
The agent ran adversarial reviews with fresh reviewer agents, and confirmed findings before fixing them.
Round 1 found no behavior difference in the copied code. Fixed:
ZarrStoreStateMachinewas missing;legacy.Not fixed: no CI job runs the declared dependency floors (the reviewer ran the suite on them: 3281 passed, without the S3 tests).
Round 2 (the fixes). Serious, fixed: warning filters applied per test made some subsets fail when the garbage collector ran late; they are session-wide again, as in the root configuration. Minor, fixed: extracted definitions skipped the import check, relative imports weren't rejected, a new argument to zarr's
Config(...)was ignored, and one test missed its branch. Not fixed: the configuration-key check only sees a variable namedconfig.Round 3 (the fixes of round 2): see the comment below.
🤖 Generated with Claude Code