Skip to content

Add new mindeps build with all optional dependencies  #10038

Closed

Description

@jrbourbeau

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.

Activity

  1. added
    tests
    enhancement
    on Mar 8, 2023
  2. jrbourbeau commented on Apr 3, 2023

    @jrbourbeau
    MemberAuthor

    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.

  3. charlesbluca commented on Apr 5, 2023

    @charlesbluca
    Member

    Happy to take a look at this later this week!

  4. jrbourbeau commented on Apr 5, 2023

    @jrbourbeau
    MemberAuthor

    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

  5. charlesbluca commented on Apr 6, 2023

    @charlesbluca
    Member

    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?

  6. jrbourbeau commented on Apr 6, 2023

    @jrbourbeau
    MemberAuthor

    more something like the full python 3.8 CI environment with all of the aforementioned packages pinned to their minimum versions?

    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 is

  7. charlesbluca commented on Apr 6, 2023

    @charlesbluca
    Member

    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:

    cloudpickle
    cupyx
    tlz
    h5py
    xxhash
    click
    jinja2
    dask_ml
    pytest
    tornado
    rmm
    tblib
    fastparquet
    cityhash
    matplotlib
    pandas
    fsspec
    psutil
    scipy
    packaging
    dask_cudf
    tables
    tiledb
    yaml
    zarr
    mimesis
    sqlalchemy
    ipycytoscape
    graphviz
    importlib_metadata
    partd
    skimage
    pyarrow
    ipywidgets
    cachey
    sparse
    mmh3
    bokeh
    numba
    typing_extensions
    class_impl
    fastavro
    versioneer
    sphinx_autosummary_accessors
    cupy
    setuptools
    numpy
    cudf
    distributed
    s3fs
    crick
    IPython
    

    Then I cut off any packages that:

    • 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:

    cytoolz
    h5py
    xxhash
    dask-ml
    tblib
    fastparquet
    cityhash
    matplotlib
    psutil
    scipy
    tiledb-py
    zarr
    mimesis
    sqlalchemy
    ipycytoscape
    python-graphviz
    scikit-image
    pyarrow
    cachey
    sparse
    mmh3
    fastavro
    s3fs
    crick
    IPython
    

    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.

  8. jrbourbeau commented on Apr 6, 2023

    @jrbourbeau
    MemberAuthor

    +1 for including jinja2 and bokeh

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementtests

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions