Add free-threaded tests with pytest-run-parallel
Nobody has claimed this yet.
Assessment
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Newbie friendliness
- 48/100
- Issue type
- Feature
- Clarity
- Mostly clear
- Activity status
- Quiet
- Tech stack
- python
- Domain
- ci-cd, testing-qa
Research direction
Start by locating the tests that use zarr.create_array and zarr.open_group, then inspect the zarrista-only entry points ArrayBuilder.create, store_chunk, store_metadata, and Array reads. Separate own tests from integration tests, add isolated round-trip coverage compared with numpy, and verify a 3.14t CI job runs only GIL-safe tests without shared-store concurrency flakes.
Written by the indexing model from the issue text.
Description
Follow up from https://github.com/developmentseed/zarrista/pull/69
Claude:
Follow-up: free-threaded (3.14t) CI testing
PR #69 adds the wheel builds for free-threaded CPython 3.14 (cp314-cp314t)
and scaffolds the abi3t (3.15+) wheel. It intentionally does not add CI that
tests zarrista on a free-threaded interpreter — this issue tracks that work,
which turned out to need a test-suite restructure rather than a CI one-liner.
Why it was deferred
Spiking the 3.14t test job surfaced three blockers:
-
numcodecsre-enables the GIL.numcodecs.bloschasn't declared that it
can run without the GIL, so importing it on 3.14t silently turns the GIL back
on:RuntimeWarning: The global interpreter lock (GIL) has been enabled to load module 'numcodecs.blosc' ...Since nearly all tests pull in zarr-python (→ numcodecs), running the current
suite on 3.14t gives a false free-threaded signal — the GIL is on. -
Missing free-threaded wheels → slow / degraded.
icechunkand
numcodecscompile from source on 3.14t (nocp314twheels yet), and
google-crc32c(via icechunk) falls back to its pure-Python implementation:As the c extension couldn't be imported, google-crc32c is using a pure python implementation that is significantly slower. -
Tests use zarr-python as the fixture writer. 8 of 10 test files call
zarr.create_array/zarr.open_groupto produce fixtures, then read them
back with zarrista. These are really interop/integration tests. We have
almost no coverage that exercises zarrista's own read+write round-trip
(ArrayBuilder.create/store_chunk/store_metadata→Arrayread).
Proposed plan
- Split the suite into own tests (zarrista-only read/write) vs
integration tests (zarr-python / icechunk / arro3 interop), via markers
or atests/integration/directory. - Add zarrista-only round-trip tests (create + store chunks + read back,
compared against numpy) so there's real own-code coverage. - Split dependency groups so the free-threaded job installs only GIL-safe
deps (avoid zarr/numcodecs/icechunk). - Add a
3.14tCI job that runs only the own tests on the free-threaded
interpreter. - Revisit
pytest-run-parallelfor genuine thread-safety stress — note it
runs the same test in N threads sharing one fixture, so any test that
mutates shared store state flakes; concurrency tests must use per-thread
isolated stores. - Re-enable integration tests on 3.14t once
numcodecs/icechunkship
free-threaded wheels and declare GIL-safety.
- Dominant language
- Python
- Stars
- 52
- Forks
- 3
- Avg merge
- 36m
- Merged PRs (30d)
- 5
Getting set up
This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from developmentseed/zarrista
-
Difficulty 4/5 3-5 days Newbie friendliness 54/100
developmentseed/zarrista#222 ·
-
Difficulty 5/5 Over a week Newbie friendliness 35/100
developmentseed/zarrista#211 · 1 comment ·
-
Bump to arrow 60Open
Difficulty 2/5 1-3 hours Newbie friendliness 55/100
developmentseed/zarrista#203 ·
-
Read and write icechunk sessions through the zarr-python Store instead of linking the icechunk crateOpen
Difficulty 5/5 Over a week Newbie friendliness 35/100
developmentseed/zarrista#196 ·
-
pyemscripten wheel is unimportable: the Python layer imports async-only classes unconditionallyOpen
Difficulty 3/5 1-2 days Newbie friendliness 57/100
developmentseed/zarrista#189 · 3 comments ·
All issues in developmentseed/zarrista
Similar issues
-
Task select patterns with uppercase letters never matchPossibly taken @manobhisriram claimed this today. Open
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
Maintainers usually reply within 1 day
-
app: scripts status: backlog type: housekeeping
Difficulty 1/5 1-3 hours Newbie friendliness 88/100
netbox-community/netbox-scripts#239 ·
Maintainers usually reply within 1 day
-
Lambda deploys fail once the bundle grows by about 254 KBPossibly taken A pull request linked to this issue is open or already merged. Open
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
developmentseed/titiler-cmr#341 ·
Maintainers usually reply within 1 day
-
Card tables add "..." to every value in a DataFrame column when any value is longer than 30 charactersPossibly taken @omkarbandikatte claimed this today. Open
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
Maintainers usually reply within 1 day