-
Notifications
You must be signed in to change notification settings - Fork 535
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
Add development CI for NumPy 2.0 beta testing #5450
Conversation
I'm not sure that we will need to test 2.0 against all versions of vtk+python in our CI in an ongoing manner, but I think it would be good to test all of them up front. |
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #5450 +/- ##
=======================================
Coverage 96.83% 96.83%
=======================================
Files 139 139
Lines 24051 24051
=======================================
Hits 23290 23290
Misses 761 761 |
|
Currently tests for pyvista/core have 48 failures and many look like simple variable name substitutions even for vtk == 9.1. This looks promising. Tests for pyvista/plotting (and |
If its just |
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.
Generally this looks well implemented though I'm concerned that this will significantly increase our GitHub actions runner usage and we should look into our current usage vs the quota before merging.
I'm wondering if instead of merging this soon here, if we should have a numpy-2.0
development branch until we are ready to support numpy2? Then we'd land changes, fixes, etc for numpy2 compatibility as separable PRs against this branch until we are ready to support numpy2 at which point we could merge this branch into main
.
^ is just a suggestion/thought. @MatthewFlamm, I'm happy to go with what you think will provide the least friction since this sort of upgrade is likely to have enough friction already. Let me know and I'd happy to approve this PR as code-owner so as not to block the merge |
I took a quick look and think we'll be under our quota but let's not leave these on forever |
Let's give packages some time. We just started preparing for this and I put in a PR in |
I'm subconsciously already treating this branch as the development branch. #5453 points here. So let's go with that idea. I will update the description here and change the CI here to show the fails. Any 2.0 fix PRs should use this branch as the base, and additionally we will keep this branch up to date with main. Before we merge this PR with main we will prune the CI to be more manageable, but I think testing on all versions would be useful to do while working out the initial bugs. |
#5460 shows that downstream packages also need us to fix this. So, it might be good to prune the numpy 2.0 tests to something reasonable and merge to main. We will have to ignore failing numpy 2.0 tests in every PR though. |
The most practical way to go here might be to keep this branch for testing and validation and merge small changes like #5460 to |
Co-authored-by: Bane Sullivan <banesullivan@gmail.com>
…ista/pyvista into maint/add-tests-for-numpy2.0
Overview
This PR and branch serve as the development branch for numpy 2.0 testing
fixes. Any fixes for numpy 2.0 should be use branchmaint/add-tests-for-numpy2.0
as the base in a PR.Details
https://numpy.org/devdocs/dev/depending_on_numpy.html#testing-against-the-numpy-main-branch-or-pre-releases