Skip to content
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

Add modin tests #16260

Merged
merged 26 commits into from
Jun 11, 2021
Merged

Add modin tests #16260

merged 26 commits into from
Jun 11, 2021

Conversation

ckw017
Copy link
Member

@ckw017 ckw017 commented Jun 4, 2021

Why are these changes needed?

Adds modin tests that run with and without ray client. For reviewers: most of test_modin.py is copied from modin's unit tests that cover basic dataframe operations. The parts added in to run with ray client are in this section.

Currently we need to install a commit from modin's master branch, since one of the fixes that gets it to work with client isn't in a release yet. We can change this to be modin >= 0.10 once its released.

Related issue number

Covers ray's end of modin-project/modin#3085

Checks

  • I've run scripts/format.sh to lint the changes in this PR.
  • I've included any doc changes needed for https://docs.ray.io/en/master/.
  • I've made sure the tests are passing. Note that there might be a few flaky tests, see the recent failures at https://flakey-tests.ray.io/
  • Testing Strategy
    • Unit tests
    • Release tests
    • This PR is not tested :(

@ckw017 ckw017 changed the title [wip] Add modin tests [testing][modin] Add modin tests Jun 7, 2021
@ckw017 ckw017 changed the title [testing][modin] Add modin tests Add modin tests Jun 7, 2021
@ckw017 ckw017 requested a review from amogkam June 8, 2021 00:00
@amogkam
Copy link
Contributor

amogkam commented Jun 8, 2021

Can you make sure that test_modin is run in the CI? You’d have to add it to one of the build files. You can probably just follow the same as what’s being done for dask.

Also cc @rkooo567

@rkooo567
Copy link
Contributor

rkooo567 commented Jun 8, 2021

Btw how are these tests written? Did we copy from the modin repo?

@ckw017
Copy link
Member Author

ckw017 commented Jun 8, 2021

Yup, they're from here, details are in the license bit at the top of the file and in LICENSE

@ckw017
Copy link
Member Author

ckw017 commented Jun 8, 2021

Oh hmm, do we only run tests on Python 3.6 for linux? The latest versions of Modin only run on 3.7+ because of a pandas dependency. It's passing on the Windows runs though, which uses 3.7

@ckw017
Copy link
Member Author

ckw017 commented Jun 9, 2021

@amogkam Added test_modin to medium tests k to z, and added a skip for what looks like an incorrectly written test in test_mldataset, which I can open an issue for

@AmeerHajAli
Copy link
Contributor

@amogkam , can you please rereview this?

@AmeerHajAli AmeerHajAli self-assigned this Jun 9, 2021
Copy link
Contributor

@amogkam amogkam left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice work @ckw017! This looks really good, but it looks like the test isn't actually being run in the CI right now due to the Python version. I left some comments to address.

Also, @rkooo567, would be great if you could take a look at this as well.

python/ray/tests/test_mldataset.py Show resolved Hide resolved
python/requirements.txt Outdated Show resolved Hide resolved
python/ray/tests/BUILD Outdated Show resolved Hide resolved
python/requirements.txt Outdated Show resolved Hide resolved
python/ray/tests/test_modin.py Outdated Show resolved Hide resolved
@AmeerHajAli AmeerHajAli added the @author-action-required The PR author is responsible for the next step. Remove tag to send back to the reviewer. label Jun 10, 2021
@ckw017
Copy link
Member Author

ckw017 commented Jun 11, 2021

@amogkam made the changes, I'm keeping the updated modin dependency in the the main requirements.txt since it looks like the travis and build kite runs still try to run test_modin as part of Small & Large with 3.6 and 3.7, which would error out because of modin's strict ray versioning requirements if we don't enforce >= 0.10

Copy link
Contributor

@amogkam amogkam left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM! Please ping when tests pass

@amogkam amogkam removed the @author-action-required The PR author is responsible for the next step. Remove tag to send back to the reviewer. label Jun 11, 2021
@ckw017
Copy link
Member Author

ckw017 commented Jun 11, 2021

@amogkam Good to go!

@amogkam amogkam merged commit 3fa9f2e into ray-project:master Jun 11, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants