mirror of
https://github.com/wassname/ray.git
synced 2026-08-12 12:20:11 +08:00
[rllib] Only run one set of tests unless rllib or tune dirs are changed. (#7179)
* full filter * lint
This commit is contained in:
@@ -33,6 +33,7 @@ if __name__ == "__main__":
|
||||
|
||||
RAY_CI_TUNE_AFFECTED = 0
|
||||
RAY_CI_RLLIB_AFFECTED = 0
|
||||
RAY_CI_RLLIB_FULL_AFFECTED = 0
|
||||
RAY_CI_SERVE_AFFECTED = 0
|
||||
RAY_CI_JAVA_AFFECTED = 0
|
||||
RAY_CI_PYTHON_AFFECTED = 0
|
||||
@@ -56,10 +57,12 @@ if __name__ == "__main__":
|
||||
if changed_file.startswith("python/ray/tune/"):
|
||||
RAY_CI_TUNE_AFFECTED = 1
|
||||
RAY_CI_RLLIB_AFFECTED = 1
|
||||
RAY_CI_RLLIB_FULL_AFFECTED = 1
|
||||
RAY_CI_LINUX_WHEELS_AFFECTED = 1
|
||||
RAY_CI_MACOS_WHEELS_AFFECTED = 1
|
||||
elif changed_file.startswith("python/ray/rllib/"):
|
||||
RAY_CI_RLLIB_AFFECTED = 1
|
||||
RAY_CI_RLLIB_FULL_AFFECTED = 1
|
||||
RAY_CI_LINUX_WHEELS_AFFECTED = 1
|
||||
RAY_CI_MACOS_WHEELS_AFFECTED = 1
|
||||
elif changed_file.startswith("python/ray/experimental/serve"):
|
||||
@@ -115,6 +118,7 @@ if __name__ == "__main__":
|
||||
else:
|
||||
RAY_CI_TUNE_AFFECTED = 1
|
||||
RAY_CI_RLLIB_AFFECTED = 1
|
||||
RAY_CI_RLLIB_FULL_AFFECTED = 1
|
||||
RAY_CI_SERVE_AFFECTED = 1
|
||||
RAY_CI_JAVA_AFFECTED = 1
|
||||
RAY_CI_PYTHON_AFFECTED = 1
|
||||
@@ -129,6 +133,8 @@ if __name__ == "__main__":
|
||||
_print = partial(print, file=output_stream)
|
||||
_print("export RAY_CI_TUNE_AFFECTED={}".format(RAY_CI_TUNE_AFFECTED))
|
||||
_print("export RAY_CI_RLLIB_AFFECTED={}".format(RAY_CI_RLLIB_AFFECTED))
|
||||
_print("export RAY_CI_RLLIB_FULL_AFFECTED={}".format(
|
||||
RAY_CI_RLLIB_FULL_AFFECTED))
|
||||
_print("export RAY_CI_SERVE_AFFECTED={}".format(RAY_CI_SERVE_AFFECTED))
|
||||
_print("export RAY_CI_JAVA_AFFECTED={}".format(RAY_CI_JAVA_AFFECTED))
|
||||
_print(
|
||||
|
||||
Reference in New Issue
Block a user