-
Notifications
You must be signed in to change notification settings - Fork 38
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 multimodel tests using real data #856
Conversation
i.e. `pytest -m functional`
Ah, shoot, just as I wanted to see the green check for CircleCI, they are having an outage 😅 |
Seems like everything is working, except I don't understand why the conda build fails:
@bouweandela Do you know why is the build also doing tests and how can I add dependencies there? I tried updating the |
Hi @bouweandela , I think this is ready for a first pass. |
After building the package, conda build tests if it actually works as expected by installing it in a new environment and running the tests. The instructions on how to configure that are here. |
Hi @bouweandela , this PR is ready for review.
Part of the regression tests (4/8) fail on CircleCI, and I cannot figure out why. Oddly enough, the other 4 regression tests with different calendars pass on CircleCI:~
I checked the masks, but they are |
Loading sample data takes ~30 seconds. To save some time, store the pytest cache for next time.
@stefsmeets The tests are failing now because you removed the reference netcdf files in c065fb5 |
Ah, shoot. The |
Hi @bouweandela I think this is ready to merge! |
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.
Indeed this is starting to look really good, just a few things left to do.
Co-authored-by: Bouwe Andela <[email protected]>
Co-authored-by: Bouwe Andela <[email protected]>
This PR adds some system tests using real data available in https://github.com/ESMValGroup/ESMValTool_sample_data.
Our first focus is on making tests for the multi-model statistics, because the unit tests do not quite cover all cases, and running recipes manually in ESMValTool is way to labour intensive.
Mini test specification
iris.exceptions.CoordinateNotFoundError: 'Expected to find exactly 1 depth coordinate, but found none.'
ValueError: Cannot guess bounds for a coordinate of length 1.
xfail
To do
ESMValTool_sample_data
repo for CircleCICoordinateNotFoundError
(Preprocessormultimodel_statistics
fails when data have no horizontal dimension #891)ValueError
(Preprocessormultimodel_statistics
fails when data have no time dimension #890)setup.py
, change branch tomaster
for sample data repoCONTRIBUTING.md
Tasks
If you need help with any of the tasks above, please do not hesitate to ask by commenting in the issue or pull request.
Helps with #685 #673 #781
Depends on ESMValGroup/ESMValTool_sample_data#3