ci: ci_run_n_monitor.py: fail when job is not found

Acked-by: Emma Anholt <emma@anholt.net>
Signed-off-by: David Heidelberg <david.heidelberg@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/19902>
This commit is contained in:
David Heidelberg 2022-11-19 21:30:39 +01:00 committed by Marge Bot
parent 50c7abefa6
commit c415d8f08b
1 changed files with 3 additions and 0 deletions

View File

@ -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()