You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Add new mindeps build with all optional dependencies #10038
Today we have a few CI builds that test that certain subsets of dask work with their minimum dependencies installed. For example, dask.array tests all pass when core minimum dependecies and numpy=1.21 are installed. However, we don't currently have coverage for all the other optional dependencies that dask supports. For example, we don't test that dask.array tests pass when minimum versions of other optional dependencies like zarr, scipy, etc. are installed. It'd be nice if we has a CI build that covered these cases.
One point that comes to mind is that we don't have an official policy on minimum dependencies. Right now it's an adhoc process. It'd be nice to have such a policy, but I think there's still value in a new CI job that just included optional dependencies for which we already have a documented minimum supported version. I'd do that as a first pass
Just to make sure I'm understanding correctly, is the idea here to run tests against an environment containing just the optional dependencies (so assuming all packages pulled in by dask[complete] along with those specified in the doc link you shared), or were you thinking more something like the full python 3.8 CI environment with all of the aforementioned packages pinned to their minimum versions?
That makes sense to me, though I suppose the line can get a little blurry around what packages are consider the optional installs since some things can get picked up transitively - I installed this neat little tool to quickly grab up all the third-party imports in the package, which gives a pretty long list:
are already core dependencies of Dask or otherwise would get picked up by another optional install that seemed to take precedence (i.e. ipywidgets w.r.t. ipycytoscape)
only get used as part of tests or build process
would only be used on GPUs
And added cytoolz since that gets used transparently (do we know of any other packages like this?); from there, we get a more manageable list:
The only remaining packages I'm interested in are jinja2 and bokeh, which would normally get picked up through pip install dask[diagnostics], but this doesn't have its own mindeps build - not sure if you have a preference on including those here.
Activity
jrbourbeau commentedon Apr 3, 2023
I also noticed our documented list of minimum dependencies is a bit stale https://docs.dask.org/en/stable/install.html#optional-dependencies. It'd be good to update that page too.
charlesbluca commentedon Apr 5, 2023
Happy to take a look at this later this week!
jrbourbeau commentedon Apr 5, 2023
Thanks @charlesbluca!
One point that comes to mind is that we don't have an official policy on minimum dependencies. Right now it's an adhoc process. It'd be nice to have such a policy, but I think there's still value in a new CI job that just included optional dependencies for which we already have a documented minimum supported version. I'd do that as a first pass
charlesbluca commentedon Apr 6, 2023
Just to make sure I'm understanding correctly, is the idea here to run tests against an environment containing just the optional dependencies (so assuming all packages pulled in by
dask[complete]along with those specified in the doc link you shared), or were you thinking more something like the full python 3.8 CI environment with all of the aforementioned packages pinned to their minimum versions?jrbourbeau commentedon Apr 6, 2023
I think this. I was envisioning a new environment file similar to https://github.com/dask/dask/blob/b86786e3e1bd5be37a24d5b9743c6c043b9daffc/continuous_integration/environment-mindeps-non-optional.yaml but that also included all optional dependencies (e.g.
pyarrow,zarr,fastparquet,scipy, etc.) pinned to whatever there minimum supported version ischarlesbluca commentedon Apr 6, 2023
That makes sense to me, though I suppose the line can get a little blurry around what packages are consider the optional installs since some things can get picked up transitively - I installed this neat little tool to quickly grab up all the third-party imports in the package, which gives a pretty long list:
Then I cut off any packages that:
ipywidgetsw.r.t.ipycytoscape)And added
cytoolzsince that gets used transparently (do we know of any other packages like this?); from there, we get a more manageable list:The only remaining packages I'm interested in are
jinja2andbokeh, which would normally get picked up throughpip install dask[diagnostics], but this doesn't have its own mindeps build - not sure if you have a preference on including those here.jrbourbeau commentedon Apr 6, 2023
+1 for including
jinja2andbokeh