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! |
bouweandela
left a comment
There was a problem hiding this comment.
Indeed this is starting to look really good, just a few things left to do.
Co-authored-by: Bouwe Andela <b.andela@esciencecenter.nl>
Co-authored-by: Bouwe Andela <b.andela@esciencecenter.nl>
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.xfailTo do
ESMValTool_sample_datarepo for CircleCICoordinateNotFoundError(Preprocessormultimodel_statisticsfails when data have no horizontal dimension #891)ValueError(Preprocessormultimodel_statisticsfails when data have no time dimension #890)setup.py, change branch tomasterfor sample data repoCONTRIBUTING.mdTasks
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