-
Notifications
You must be signed in to change notification settings - Fork 5.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
[RLlib] Enable .py files with AlgorithmConfig objects in them to be run by our run_regression_test.py
script.
#29974
[RLlib] Enable .py files with AlgorithmConfig objects in them to be run by our run_regression_test.py
script.
#29974
Conversation
Signed-off-by: sven1977 <[email protected]>
Signed-off-by: sven1977 <[email protected]>
Signed-off-by: sven1977 <[email protected]>
Signed-off-by: sven1977 <[email protected]>
rllib/tests/run_regression_tests.py
Outdated
# Path given -> Get all yaml files in there via rglob. | ||
elif os.path.isdir(abs_path): | ||
files = rllib_dir.rglob(args.dir + "/*.yaml") |
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.
shouldn't this also look for py
files? or do we want to make this a follow-up?
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.
Oh, great catch! Let me fix this.
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.
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) |
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.
awesome!
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.
cool, just a quick question for my understanding!
Signed-off-by: sven1977 <[email protected]>
…un by our `run_regression_test.py` script. (ray-project#29974) Signed-off-by: Weichen Xu <[email protected]>
Signed-off-by: sven1977 [email protected]
Enable .py files with AlgorithmConfig objects in them to be run by our
run_regression_test.py
script.Why are these changes needed?
Related issue number
Checks
git commit -s
) in this PR.scripts/format.sh
to lint the changes in this PR.