From c415d8f08b3ebbd276dc95482ede16985c984651 Mon Sep 17 00:00:00 2001 From: David Heidelberg Date: Sat, 19 Nov 2022 21:30:39 +0100 Subject: [PATCH] ci: ci_run_n_monitor.py: fail when job is not found Acked-by: Emma Anholt Signed-off-by: David Heidelberg Part-of: --- .gitlab-ci/bin/ci_run_n_monitor.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.gitlab-ci/bin/ci_run_n_monitor.py b/.gitlab-ci/bin/ci_run_n_monitor.py index 6bdcf6a6caabc..0a516712281da 100755 --- a/.gitlab-ci/bin/ci_run_n_monitor.py +++ b/.gitlab-ci/bin/ci_run_n_monitor.py @@ -256,6 +256,9 @@ def find_dependencies(target_job: str, project_path: str, sha: str) -> set[str]: ) target_dep_dag = filter_dag(dag, target_job) + if not target_dep_dag: + print(Fore.RED + "The job(s) were not found in the pipeline." + Fore.RESET) + sys.exit(1) print(Fore.YELLOW) print("Detected job dependencies:") print()