Skip to content

🔒 Require patched Numcodecs for safe Zarr loading - #4051

Open
ebadukhan wants to merge 1 commit into
mainfrom
fix-zarr-pickle-decoding
Open

ebadukhan wants to merge 1 commit into
mainfrom
fix-zarr-pickle-decoding

Conversation

@ebadukhan

@ebadukhan ebadukhan commented Nov 2, 2026 •

Copy link
Copy Markdown
Contributor

Reject vulnerable Numcodecs versions before Zarr access and raise the Zarr v2 dependency minimum. Patched codecs block implicit pickle decoding for eager and backed reads (upstream advisory). Hosted runtime updates: https://github.com/laminlabs/laminhub/pull/6645.

Compatibility: Zarr users need patched Numcodecs and Python 3.11+. Trusted pickle data requires upstream opt-in.

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 2, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-02T14:17:41.402229Z b001cb6 PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: b001cb6f4c

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread pyproject.toml
]
zarr_v2 = [ # remove for lamindb v3
"numcodecs<0.16.0", # 0.16.0 breaks zarr<3.0.*
"numcodecs>=0.15.2,<0.16.0", # 0.16.0 breaks zarr<3.0.*

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Align the Python requirement with the patched dependency

On Python 3.10, which this package still advertises via requires-python = ">=3.10" and its classifier, installing lamindb-core[zarr_v2] now becomes unresolvable because Numcodecs 0.15.2 requires Python 3.11 or newer. Either update the package's supported-Python metadata or provide/document a secure Python 3.10-compatible dependency strategy so a nominally supported environment does not fail during extra installation.

Useful? React with 👍 / 👎.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

we should document clearly that Zarr now requires Python 3.11+

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

hm, maybe we drop python=3.10? @falexwolf what do you think?

@codecov

codecov Bot commented Nov 2, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 89.79%. Comparing base (3a9d727) to head (b001cb6).
⚠️ Report is 2 commits behind head on main.

Additional details and impacted files

Impacted file tree graph

@@            Coverage Diff             @@
##             main    #4051      +/-   ##
==========================================
- Coverage   93.92%   89.79%   -4.14%     
==========================================
  Files          93       93              
  Lines       19333    19384      +51     
==========================================
- Hits        18158    17405     -753     
- Misses       1175     1979     +804     
Files with missing lines Coverage Δ
lamindb/core/storage/_zarr.py 72.22% <100.00%> (-0.25%) ⬇️

... and 12 files with indirect coverage changes

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@github-actions

github-actions Bot commented Nov 2, 2026

Copy link
Copy Markdown

Deployment URL: https://0b58ea21.lamindb.pages.dev

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.

2 participants