Question: Feature request: test isolation and storage engine cache
Nobody has claimed this yet.
- Dominant language
- Python
- Stars
- 4.2k
- Forks
- 1.4k
- Avg merge
- 2d 15h
- Merged PRs (30d)
- 14
Description
Is your feature request related to a problem?
We have several tests that write and/or read test datasets using a common name, using open_zarr and to_zarr. Run individually, they work. However, when (e.g.) writing twice, we have errors as the zarr storage is trying to check to see which variables we may have updated, when in fact it is a new dataset.
Describe the solution you'd like
We would like a method to ensure there is no cached state between tests.
Describe alternatives you've considered
If there is an undocumented way to clear cached state, would be grateful for a pointer (and suggest inclusion in the documentation).
Additional context
No response
Contributor guide
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.
Research direction
Start by reproducing the failure with tests that read and write datasets using open_zarr and to_zarr, especially repeated writes with a common name. Trace the storage engine's cached state during the second write; done means tests can use the same dataset name independently without stale cache errors, or the documented cache-clearing method is verified.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- testing
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 35/100