-
-
Notifications
You must be signed in to change notification settings - Fork 1.8k
Add Xarray to CI software environment #7338
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
Conversation
|
Would this cause a dependency cycle? Wondering since Xarray also makes use of Dask Also do we do any other downstream dependency testing? If so, how do we handle that currently? If not, are there other downstream dependencies we would want to test and if so how should we manage that? |
xarray doesn't depend on dask, it's an optional import, so should be fine. |
|
There are a few places in Dask where we have some Xarray-specific logic. For example Lines 4109 to 4110 in b4f2e42
Our tests in |
|
Yep agree it's worth testing. Just trying to figure out how best to handle downstream dependencies like Xarray |
|
Gotcha. Today we've mostly been relying on downstream projects to do their own upstream testing (e.g. Xarray does this) and surface errors to us when changes to Dask cause downstream breakages. Overall, this setup has been benefitial -- for example this issue was reported last week and we were able to fix things before releasing. I have less experience on how to do downstream testing well. I know Bokeh has a downstream CI build. We might want to ask them what their experience with that has been like. |
|
I know numba uses this to check on downstream breakage: https://github.com/numba/texasbbq *edit: |
|
Well let's stick with this then to keep things simple for now. If we start collecting downstream test dependencies, we may want to split these out into their own CI job |
|
Sorry I forgot to ask, did we only need to add the dependency for tests to run or are there other changes needed as well? |
|
Just adding Thanks all for reviewing! |
* upstream/main: Change default branch from master to main (dask#7198) Add Xarray to CI software environment (dask#7338) Update repartition argument name in error text (dask#7336) Run upstream tests based on commit message (dask#7329) Use pytest.register_assert_rewrite on util modules (dask#7278) add example on using specific chunk sizes in from_array() (dask#7330) Move numpy skip into test (dask#7247)
This PR adds
xarrayto our CI software environments so that the few tests indask/array/tests/test_xarray.pywill run. FWIW Xarray's dependencies, NumPy, pandas, and setuptools, are already installed in CI so we shouldn't need to pull in any additional packages other than Xarray itself.cc @shoyer @crusaderky for visibility