[Tests] determine_tests_to_run.sh has a bug affecting RLlib testing to be skipped sometimes. (#7243)

This commit is contained in:
Sven Mika
2020-02-20 19:02:17 -08:00
committed by GitHub
parent 007333b960
commit cbc808bc6b
2 changed files with 8 additions and 3 deletions
+3 -2
View File
@@ -4,6 +4,7 @@ from __future__ import division
from __future__ import print_function
import os
import re
import subprocess
import sys
from functools import partial
@@ -54,13 +55,13 @@ if __name__ == "__main__":
]
for changed_file in files:
if changed_file.startswith("python/ray/tune/"):
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/"):
elif re.match("^(python/ray/)?rllib/", changed_file):
RAY_CI_RLLIB_AFFECTED = 1
RAY_CI_RLLIB_FULL_AFFECTED = 1
RAY_CI_LINUX_WHEELS_AFFECTED = 1
+5 -1
View File
@@ -7,6 +7,10 @@ A2CAgent = renamed_agent(A2CTrainer)
A3CAgent = renamed_agent(A3CTrainer)
__all__ = [
"A2CAgent", "A3CAgent", "A2CTrainer", "A3CTrainer", "DEFAULT_CONFIG",
"A2CAgent",
"A3CAgent",
"A2CTrainer",
"A3CTrainer",
"DEFAULT_CONFIG",
"A2CPipeline"
]