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

[RLlib] Upgrade RLlib regression test scripts to new testing tool. #16080

Merged
merged 30 commits into from
Jun 1, 2021

Conversation

sven1977
Copy link
Contributor

@sven1977 sven1977 commented May 26, 2021

This PR translates all existing RLlib release tests to run with the new Releaser tool via anyscale.

Why are these changes needed?

Related issue number

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

@sven1977 sven1977 added the tests-ok The tagger certifies test failures are unrelated and assumes personal liability. label May 28, 2021
Copy link
Contributor

@krfricke krfricke left a comment

Choose a reason for hiding this comment

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

Looks good to me, left a couple of minor comments. Feel free to ignore. Assuming the tests run and pass on the releaser tool, feel free to merge


Overview
--------
There are ??? kinds of tests:
Copy link
Contributor

Choose a reason for hiding this comment

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

Fill out?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

fixed

Comment on lines 23 to 27
#- sudo mkdir -p /data || true
#- sudo chown ray:1000 /data || true
#- rm -rf /data/classification.parquet || true
#- curl -so create_test_data.py https://raw.githubusercontent.com/ray-project/ray/releases/1.3.0/release/xgboost_tests/create_test_data.py
#- python create_test_data.py /data/classification.parquet --seed 1234 --num-rows 1000000 --num-cols 40 --num-partitions 100 --num-classes 2
Copy link
Contributor

Choose a reason for hiding this comment

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

Remove this?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

+1

Copy link
Contributor Author

Choose a reason for hiding this comment

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

done


run:
timeout: 3600
script: unit_gpu_tests/run.sh
Copy link
Contributor

Choose a reason for hiding this comment

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

Does this work? Or do we need to use bash unit_gpu_tests/run.sh? (Is +x set automatically)?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

done

break

# Run remaining experiments.
trials = run_experiments(experiments_to_run, resume=False, verbose=2)
Copy link
Contributor

Choose a reason for hiding this comment

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

Shall we add a ray.tune.utils.release_test_util.ProgressCallback here? Then we could track some progress after kicking off. Not mandatory.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Let's do this for the next release, then. Lot's of changes to the RLlib release tests coming up :)

break

# Run remaining experiments.
trials = run_experiments(experiments_to_run, resume=False, verbose=2)
Copy link
Contributor

Choose a reason for hiding this comment

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

Shall we add a ray.tune.utils.release_test_util.ProgressCallback here? Then we could track some progress after kicking off. Not mandatory.

@sven1977 sven1977 merged commit c9d220b into ray-project:master Jun 1, 2021
@sven1977 sven1977 deleted the rllib_regression_test_scripts branch June 2, 2023 20:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
tests-ok The tagger certifies test failures are unrelated and assumes personal liability.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants