mirror of
https://github.com/vale981/ray
synced 2025-03-06 18:41:40 -05:00

* Create a core set of algorithms tests to run nightly. * Run release tests under tf, tf2, and torch frameworks. * Fix * Add eager_tracing option for tf2 framework. * make sure core tests can run in parallel. * cql * Report progress while running nightly/weekly tests. * Innclude SAC in nightly lineup. * Revert changes to learning_tests * rebrand to performance test. * update build_pipeline.py with new performance_tests name. * Record stats. * bug fix, need to populate experiments dict. * Alphabetize yaml files. * Allow specifying frameworks. And do not run tf2 by default. * remove some debugging code. * fix * Undo testing changes. * Do not run CQL regression for now. * LINT. Co-authored-by: sven1977 <svenmika1977@gmail.com>
29 lines
913 B
Python
29 lines
913 B
Python
"""Core Learning regression tests for RLlib (torch and tf).
|
|
|
|
Runs Atari/PyBullet benchmarks for the most popular algorithms.
|
|
"""
|
|
|
|
import json
|
|
import os
|
|
from pathlib import Path
|
|
|
|
from ray.rllib.utils.test_utils import run_learning_tests_from_yaml
|
|
|
|
if __name__ == "__main__":
|
|
# Get path of this very script to look for yaml files.
|
|
abs_yaml_path = Path(__file__).parent
|
|
print("abs_yaml_path={}".format(abs_yaml_path))
|
|
|
|
yaml_files = abs_yaml_path.rglob("*.yaml")
|
|
yaml_files = sorted(
|
|
map(lambda path: str(path.absolute()), yaml_files), reverse=True)
|
|
|
|
# Run all tests in the found yaml files.
|
|
results = run_learning_tests_from_yaml(yaml_files=yaml_files)
|
|
|
|
test_output_json = os.environ.get("TEST_OUTPUT_JSON",
|
|
"/tmp/rllib_learning_test_core.json")
|
|
with open(test_output_json, "wt") as f:
|
|
json.dump(results, f)
|
|
|
|
print("Ok.")
|