-
Notifications
You must be signed in to change notification settings - Fork 6
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
Plan for extensive unit testing of ESGF data #222
Comments
@alaniwi @cehbrecht @huard: here are my thoughts about building a more automated system for unit test building/running for ESGF datasets. Do you have any thoughts about how we can best do it? |
Not sure I understand the need to template the test builder, but I'm probably missing something. A few ideas in no particular order... One heuristic we can use here to reduce the test volume is to assume that all files are structured identically under a given directory structure. I've used this to "walk" through the catalog, and pick only one dataset per "level". This will make sure that every model is tested, without going through every variable, member and time step for a given model. This single dataset can be randomized to increase coverage over time. Define a few test bounding box for each domain (CORDEX, global), making sure to cover corner cases (the poles, longitude 0 and 180). The DRS should be sufficient to infer what the domain is for each dataset. Use |
Hi @huard: thanks for your response. It's a very good point using Plan for extensive unit testing of ESGF data in "roocs" - with subsetNeed tests per:
Need tests that cover the functionality exposed, and deal with corner cases, e.g.:
Use
|
Some thoughts about how we tackle this problem:
Later, we'll work out the following:
|
Discussing with @cehbrecht, how we might decide which dataset IDs to send into this test... We might assume...:
The process could be:
|
@alaniwi here is the image that I shared today: |
Provide multi-site support as follows:
|
Code for the multi-site support is implemented, and an command-line script https://github.com/roocs/daops/blob/52e32b1697f607eb93828dc509cde6ddd7ab6bad/setup.py#L83-L84 Currently this is in the |
@cehbrecht PR is at roocs/daops#108 but one of the tests is failing. I'll take a look next week. |
See updated (improved) text below...
The text was updated successfully, but these errors were encountered: