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] Enable .py files with AlgorithmConfig objects in them to be run by our run_regression_test.py script. #29974

Conversation

sven1977
Copy link
Contributor

@sven1977 sven1977 commented Nov 3, 2022

Signed-off-by: sven1977 [email protected]

Enable .py files with AlgorithmConfig objects in them to be run by our run_regression_test.py script.

  • In preparation of converting CI learning tests to .py files (and thus making it easier to configure multi-agent and callbacks settings).

Why are these changes needed?

Related issue number

Checks

  • I've signed off every commit(by using the -s flag, i.e., git commit -s) in this PR.
  • 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 :(

Signed-off-by: sven1977 <[email protected]>
Signed-off-by: sven1977 <[email protected]>
Signed-off-by: sven1977 <[email protected]>
Signed-off-by: sven1977 <[email protected]>
@sven1977 sven1977 added the tests-ok The tagger certifies test failures are unrelated and assumes personal liability. label Nov 3, 2022
# Path given -> Get all yaml files in there via rglob.
elif os.path.isdir(abs_path):
files = rllib_dir.rglob(args.dir + "/*.yaml")
Copy link
Contributor

Choose a reason for hiding this comment

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

shouldn't this also look for py files? or do we want to make this a follow-up?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Oh, great catch! Let me fix 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.

Fixed, pending tests ...

# `load_experiments_from_file` function (everything from "/ray/rllib" on).
if file.endswith(".py"):
file = re.sub("^.*/ray/rllib/", "ray/rllib/", file)
experiments = load_experiments_from_file(file, SupportedFileType.python)
Copy link
Contributor

Choose a reason for hiding this comment

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

awesome!

Copy link
Contributor

@maxpumperla maxpumperla left a comment

Choose a reason for hiding this comment

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

cool, just a quick question for my understanding!

Signed-off-by: sven1977 <[email protected]>
@sven1977 sven1977 merged commit 5883e9a into ray-project:master Nov 4, 2022
WeichenXu123 pushed a commit to WeichenXu123/ray that referenced this pull request Dec 19, 2022
…un by our `run_regression_test.py` script. (ray-project#29974)

Signed-off-by: Weichen Xu <[email protected]>
@sven1977 sven1977 deleted the run_regression_test_should_handle_py_files branch June 2, 2023 20:18
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