-
Notifications
You must be signed in to change notification settings - Fork 48
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
Use mamba + pytest-xdist to speed up CI testing #515
Conversation
Wow, that's a great speedup! Makes for quicker development. Always rough when you're waiting on tests to run. Just re-triggered testing since one failed due to pulling data from our |
Locally I remembered that it wasn't too easy to see which test failed and the corresponding error message when using xdist. Do I remember correctly? |
I don't recall trying it honestly. Good thing to look for. Maybe we should force a few tests from different modules to fail, once this is set up and passing. |
It looks like potentially a |
I just added the
Sounds like we have a race condition in Line 102 in 4ce5e3d
I will look into this, and hopefully I will find a fix for this issue. |
@andersy005, maybe there is an issue with multiple instances of the parallel |
Getting closer. Only 3.6 failed this time 😂 . I just re-ran the tests once more.. |
Might be worth just using |
Hehehe.... I disabled pytest-xdist for the time being... Hopefully, we'll figure out a solution in the near future... |
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.
@andersy005 just one question about xesmf
/esmpy
. Agreed to stick with just mamba
now. Thanks for this PR!
Thanks @andersy005! Lots of solid additions to the CI. |
Description
This PR attempts to speed the CI setup by using mamba for conda environment creation.
To-Do List
Feel free to add a checklist of steps to be performed while you are working through creating this PR.
Type of change
Please delete options that are not relevant.
asv
to detect performance changes)How Has This Been Tested?
Please describe the tests that you ran to verify your changes. This could point to a cell in the updated notebooks. Or a snippet of code with accompanying figures here.
Checklist (while developing)
pytest
, if necessary.Pre-Merge Checklist (final steps)
References
Please add any references to manuscripts, textbooks, etc.