Skip to content

chore: drop the cloudpickle test and tidy changelog fragments for the VerboseModule removal - #408

Open
d-v-b wants to merge 2 commits into
fix/4029-pickle-storage-modulefrom
chore/4505-followup
Open

d-v-b wants to merge 2 commits into
fix/4029-pickle-storage-modulefrom
chore/4505-followup

Conversation

@d-v-b

@d-v-b d-v-b commented Oct 19, 2026 •

Copy link
Copy Markdown
Owner

🤖 AI text below 🤖

The zarr.storage module can now be serialized with cloudpickle. Setting zarr.storage.default_compressor no longer emits a deprecation warning; configure array.v2_default_compressor through zarr.config instead.

This PR cleans up loose ends from zarr-developers#4505 (the VerboseModule removal, closing zarr-developers#4029):

  • Drop test_storage_module_is_picklable, along with the cloudpickle pin it added to the test dependency group and the matching uv.lock entries. The test checked that zarr.storage is a plain ModuleType, which only guards against someone re-adding the one-off __class__ swap, and that cloudpickle can pickle a plain module, which is cloudpickle's own behavior. Neither justifies a new pinned test dependency. cloudpickle was not previously in uv.lock, so this is a new dependency rather than an existing indirect one.
  • Rename changes/4029.bugfix.md to changes/4505.bugfix.md. changes/README.md says the fragment prefix is the pull request number, and towncrier links the entry to pull/<number>.
  • Shorten the bugfix fragment to the user-visible effect.
  • Add changes/4505.removal.md. The deprecation policy in docs/contributing.md asks for a removal fragment when a deprecated API is finally removed.

After this PR, the change relative to main is the VerboseModule deletion, the removal of the old deprecation-warning test in tests/test_v2.py, and the two fragments. pyproject.toml, uv.lock, and tests/test_store/test_core.py match main. Ruff, the pre-commit hooks, uv lock --check, and tests/test_store/test_core.py plus tests/test_v2.py pass locally.

Stack bookkeeping

The base branch fix/4029-pickle-storage-module on this fork mirrors the head of zarr-developers#4505 at commit 8bc1b29. Upstream has since merged main into 4505 again (head 9e09101); that merge brings only unrelated dependency and CI updates and does not affect this diff. Retarget this PR to main once 4505 merges upstream, or cherry-pick the two commits onto the 4505 branch.

🤖 Generated with Claude Code

d-v-b and others added 2 commits October 19, 2026 22:19
…ule removal

Rename the changelog fragment from the issue number (4029) to the PR
number (4505), as changes/README.md requires, and shorten it to the
user-visible effect. Add a removal fragment for the dropped
`zarr.storage.default_compressor` deprecation warning, as the
deprecation policy in docs/contributing.md requires when a deprecated
API is finally removed. Replace the comment block in
test_storage_module_is_picklable with a docstring, matching the
neighboring tests.

Assisted-by: ClaudeCode:claude-fable-5-1
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
The test only checked that `zarr.storage` is a plain `ModuleType` and
that cloudpickle can pickle a plain module. The first guards against
re-adding a one-off `__class__` swap; the second tests cloudpickle.
Neither justified a new pinned test dependency, so the test, the
`cloudpickle` pin in the `test` group, and its `uv.lock` entries go.

Assisted-by: ClaudeCode:claude-opus-5-5
@d-v-b d-v-b changed the title chore: tidy changelog fragments and test docstring for the VerboseModule removal chore: drop the cloudpickle test and tidy changelog fragments for the VerboseModule removal Oct 22, 2026

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