-
Notifications
You must be signed in to change notification settings - Fork 3.8k
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
[ci] [python-package] [dask] some CI jobs broken, others skipping Dask tests #6365
Comments
After switching from But I now see a new issue:
Example stacktrace:
|
Think I've identified the root cause of the issue, and documented it over in dask/dask#11006. To unblock CI, I'm gonna try just LightGBM/tests/python_package_test/test_dask.py Lines 221 to 222 in b27d81e
Those functions aren't testing anything Dask-specific like chunking, types, etc. ... just values. And they're operating on small test inputs, so the extra memory usage from |
The Dask tests are now running and passing on this #6357 🎉 But I found another problem... the check that we run to ensure that
full traceback (click me)
LightGBM/python-package/lightgbm/compat.py Lines 166 to 168 in b27d81e
I put up a proposed change at dask/dask#11007 to fix that. |
This was resolved by #6357. |
Description
All macOS and Linux
regular
CI jobs are failing with this error:Example recent build: (build link)
Reproducible example
Look at any Linux or macOS CI jobs in this project, such as those linked above.
Additional Comments
Why would this happen on macOS?
The
dask
unit tests are skipped on macOS:LightGBM/tests/python_package_test/test_dask.py
Lines 20 to 21 in b27d81e
But the
lightgbm.dask
examples from https://github.com/microsoft/LightGBM/tree/master/examples/python-guide/dask are still run on macOS for CI jobs with names like* regular
.LightGBM/.ci/test.sh
Line 317 in b27d81e
What might the root cause be?
The latest release of
dask
, v2024.3.1., was published to PyPI and conda-forge 2 days ago:As of those releases,
dask-expr
is not a required runtime dependency ofdask
.However, it seems that is now IS a requirement if you want to use
dask.dataframe
🙃Since
dask-expr
wasn't added as a runtime dependency in thedask-core
package onconda-forge
, importing that library inlightgbm
's CI fails, probably causing these errors.It IS a runtime dependency of the
dask
package onconda-forge
(link).So I guess our options for LightGBM's CI environments, assuming we want to keep getting conda packages for
dask
anddistributed
, are:dask-core
conda-forge package +pip install dask-expr
dask-core
conda-forge package + installdask-expr
conda-forge packagedask-core
conda-forge package todask
conda-forge packageReferences
Discussions about how this was rolled out:
dask.dataframe
deprecation dask/dask#10934dask-expr
also adds a requirement ofpandas>=2.0
The text was updated successfully, but these errors were encountered: