Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions build_tools/github_actions/fetch_test_configurations.py
Original file line number Diff line number Diff line change
Expand Up @@ -298,13 +298,13 @@ def _get_script_path(script_name: str) -> str:

def run():
platform = os.getenv("RUNNER_OS").lower()
project_to_test = os.getenv("project_to_test", "*")
projects_to_test = os.getenv("PROJECTS_TO_TEST", "*")
amdgpu_families = os.getenv("AMDGPU_FAMILIES")
test_type = os.getenv("TEST_TYPE", "full")
test_labels = json.loads(os.getenv("TEST_LABELS") or "[]")
is_benchmark_workflow = str2bool(os.getenv("IS_BENCHMARK_WORKFLOW", "false"))

logging.info(f"Selecting projects: {project_to_test}")
logging.info(f"Selecting projects: {projects_to_test}")

# Determine which test matrix to use
if is_benchmark_workflow:
Expand All @@ -318,7 +318,7 @@ def run():
selected_matrix = test_matrix.copy()

# This string -> array conversion ensures no partial strings are detected during test selection (ex: "hipblas" in ["hipblaslt", "rocblas"] = false)
project_array = [item.strip() for item in project_to_test.split(",")]
project_array = [item.strip() for item in projects_to_test.split(",")]

output_matrix = []
for key in selected_matrix:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ def setUp(self):
os.environ["TEST_TYPE"] = "full"
os.environ["TEST_LABELS"] = "[]"
os.environ["IS_BENCHMARK_WORKFLOW"] = "false"
os.environ["project_to_test"] = "*"
os.environ["PROJECTS_TO_TEST"] = "*"

# Capture gha_set_output instead of writing to GitHub
self.gha_output = {}
Expand Down Expand Up @@ -51,7 +51,7 @@ def test_linux_jobs_selected(self):
self.assertIn("linux", job["platform"])

def test_single_project_filter(self):
os.environ["project_to_test"] = "hipblas"
os.environ["PROJECTS_TO_TEST"] = "hipblas"

fetch_test_configurations.run()
components = self._get_components()
Expand Down
Loading