-
Notifications
You must be signed in to change notification settings - Fork 6.6k
[data] split dask and modin tests #54122
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
as dask tests will require running on python 3.12+ after upgrade; modin does not Signed-off-by: Lonnie Liu <lonnie@anyscale.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
This PR splits the tests for Modin and Dask to accommodate the Python 3.12+ requirements for Dask while keeping Modin tests unaffected.
- Added a new test file (test_ecosystem_modin.py) with Modin-specific tests.
- Removed the Modin tests from the Dask test file (test_ecosystem_dask.py).
- Updated the BUILD file to define separate test targets for Modin and Dask.
Reviewed Changes
Copilot reviewed 3 out of 3 changed files in this pull request and generated 1 comment.
File | Description |
---|---|
python/ray/data/tests/test_ecosystem_modin.py | Introduces dedicated tests for Modin functionality. |
python/ray/data/tests/test_ecosystem_dask.py | Removes Modin test cases, retaining only Dask-related tests. |
python/ray/data/BUILD | Updates test targets to reflect the split between Modin and Dask. |
def test_from_modin(ray_start_regular_shared): | ||
import modin.pandas as mopd | ||
|
||
df = pd.DataFrame( | ||
{"one": list(range(100)), "two": list(range(100))}, | ||
) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[nitpick] The DataFrame initialization logic is repeated in both test_from_modin and test_to_modin. Consider refactoring this into a fixture or helper function to improve code maintainability.
def test_from_modin(ray_start_regular_shared): | |
import modin.pandas as mopd | |
df = pd.DataFrame( | |
{"one": list(range(100)), "two": list(range(100))}, | |
) | |
def _create_test_dataframe(): | |
return pd.DataFrame( | |
{"one": list(range(100)), "two": list(range(100))}, | |
) | |
def test_from_modin(ray_start_regular_shared): | |
import modin.pandas as mopd | |
df = _create_test_dataframe() |
Copilot uses AI. Check for mistakes.
this is required for accepting #52589 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Stamp
as dask tests will require running on python 3.12+ after upgrade; modin does not also adds `dask` tag, for running on a separate test job in the future. Signed-off-by: Lonnie Liu <lonnie@anyscale.com>
as dask tests will require running on python 3.12+ after upgrade; modin does not also adds `dask` tag, for running on a separate test job in the future. Signed-off-by: Lonnie Liu <lonnie@anyscale.com>
as dask tests will require running on python 3.12+ after upgrade; modin does not also adds `dask` tag, for running on a separate test job in the future. Signed-off-by: Lonnie Liu <lonnie@anyscale.com> Signed-off-by: elliot-barn <elliot.barnwell@anyscale.com>
as dask tests will require running on python 3.12+ after upgrade; modin does not also adds `dask` tag, for running on a separate test job in the future. Signed-off-by: Lonnie Liu <lonnie@anyscale.com> Signed-off-by: Goutam V <goutam@anyscale.com>
as dask tests will require running on python 3.12+ after upgrade; modin does not
also adds
dask
tag, for running on a separate test job in the future.