Skip to content

Add a test with up to date dependencies & fix zarr-python v2 #2973

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

Merged
merged 5 commits into from
Apr 9, 2025

Conversation

dstansby
Copy link
Contributor

@dstansby dstansby commented Apr 8, 2025

Currently on the v2 branch the dependencies in the test are pinned in requirements_*.txt files at the root of the repository, and these pins are bumped by dependabot periodically (I think weekly?). This means when a new version of a dependency is released, there is a period where we don't test against it. This prevents us from catching issues such as in #2965.

This PR adds a new workflow that creates a fresh conda environment, then pip installs zarr-python. This emulates how a user installs, and will automatically pick up the latest versions of dependencies.

Hopefully this will initially fail, because it will pull in numcodecs 0.16. Then I plan to introduce the (correct...) pin, and hopefully that will fix the new test.

EDIT: everything seems to have worked, so I think this is good to review

@dstansby
Copy link
Contributor Author

dstansby commented Apr 8, 2025

Good news, the new CI job fails as expected.

@dstansby
Copy link
Contributor Author

dstansby commented Apr 8, 2025

🎉 and with the correct numcodecs pin, the latest deps job passes now.

@dstansby dstansby changed the title Add a test with up to date dependencies Add a test with up to date dependencies & fix zarr-python v2 Apr 8, 2025
@dstansby dstansby requested a review from a team April 8, 2025 15:29
@dstansby
Copy link
Contributor Author

dstansby commented Apr 9, 2025

Going to self merge and do a release to unbreak v2

@dstansby dstansby merged commit 3ad97b9 into zarr-developers:support/v2 Apr 9, 2025
17 checks passed
@dstansby dstansby deleted the test-latest-deps branch April 9, 2025 07:58
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