-
-
Notifications
You must be signed in to change notification settings - Fork 315
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Deprecate v3 code on v2 branch #2873
Conversation
Codecov ReportAttention: Patch coverage is
❌ Your patch status has failed because the patch coverage (87.50%) is below the target coverage (100.00%). You can increase the patch coverage or adjust the target coverage. Additional details and impacted files@@ Coverage Diff @@
## support/v2 #2873 +/- ##
==============================================
- Coverage 99.95% 92.29% -7.67%
==============================================
Files 38 37 -1
Lines 14672 13614 -1058
==============================================
- Hits 14666 12565 -2101
- Misses 6 1049 +1043
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
- Restart of Windows 3.11 went green. 👍 (Looks like we are hitting periodic limits.)
- I don't have a strong feeling about disabling the tests. I would have likely have left them but 🤷
Co-authored-by: Josh Moore <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I would like to suggest we keep the experimental v3 code as-is in Zarr-Python until we hit the end of 6-month support window following the 3.0. I don't think there is much of a maintenance burden with keeping this in the support branch, is there?
What's the motivation for wanting to keep it around? My thinking was if folks really want it, they can pin to 2.18.x, but it's no longer being developed, maintained, or fixed in the same way as the v3 releases. So I think it's actual quite worthwhile deprecating it and removing it just to prevent folks from using old un-maintained code (that is probably buggy, given all the recent fixes on the v3 branch). In terms of maintenance, I think the less code we have to maintain the easier it will be - things keep periodically breaking in the v2 branch (e.g., the sqlie3 store I skipped the tests of here), and the less surface area we have open the better. |
I managed to fix the sqlite failures at #2880, which is better than the solution this branch which is to skip the tests. |
We are still using it and until there is a complete migration story for datatypes/codecs in v3, we can't fully migrate. Noting that we've also discussed this on Zulip I'll also note that we already have a
Based on the wording here, we've already communicated that the experimental v3 support would be removed in 3.0 -- not 2.18. |
For zarr-python 2.19.0 I thought it would be good to tear out support for partial reads/writes (deprecated in #2844), and any zarr 3 code (this PR). That should make it easier to maintain for at least the next few months.
This PR deprecates v3 code on the v2 branch. It also removes all the v3 tests - since this API is unsupported, I thought the easiest thing to do here was just tear out the tests, instead of trying to keep them but catch deprecation warnings.
I also skipped the sqlite store tests because they are failing (e.g., see this GH actions run from another recent PR). I think debugging/supporting this is pretty low priority, so I'm happy with just plain skipping these to get the v2 tests passing again.