From 1890993634083c0ebd83421e40b4c67bf5b552cb Mon Sep 17 00:00:00 2001 From: Aiden Grossman Date: Tue, 26 Aug 2025 23:38:50 +0000 Subject: [PATCH] [CI] Strip strings from filenames in compute_projects.py This can otherwise mess up some of the path detection logic, particularly around ensuring the premerge checks are run when the workflow YAML file is changed. --- .ci/compute_projects.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.ci/compute_projects.py b/.ci/compute_projects.py index 8567552fa25a6..95351c46fad59 100644 --- a/.ci/compute_projects.py +++ b/.ci/compute_projects.py @@ -333,6 +333,7 @@ def get_env_variables(modified_files: list[str], platform: str) -> Set[str]: current_platform = platform.system() if len(sys.argv) == 2: current_platform = sys.argv[1] - env_variables = get_env_variables(sys.stdin.readlines(), current_platform) + changed_files = [line.strip() for line in sys.stdin.readlines()] + env_variables = get_env_variables(changed_files, current_platform) for env_variable in env_variables: print(f"{env_variable}='{env_variables[env_variable]}'")