From eeba409c54761d48bb5cd26233324e7a0ad9f8ac Mon Sep 17 00:00:00 2001 From: Eric Engestrom Date: Wed, 24 Jan 2024 23:19:33 +0000 Subject: [PATCH] ci_run_n_monitor: drop always-true condition `--target` is mandatory. Part-of: --- bin/ci/ci_run_n_monitor.py | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/bin/ci/ci_run_n_monitor.py b/bin/ci/ci_run_n_monitor.py index 236d7dff537..5cd08a468b4 100755 --- a/bin/ci/ci_run_n_monitor.py +++ b/bin/ci/ci_run_n_monitor.py @@ -384,11 +384,10 @@ if __name__ == "__main__": target_jobs_regex = re.compile(args.target.strip()) deps = set() - if args.target: - print("🞋 job: " + Fore.BLUE + args.target + Style.RESET_ALL) - deps = find_dependencies( - target_jobs_regex=target_jobs_regex, iid=pipe.iid, project_path=cur_project - ) + print("🞋 job: " + Fore.BLUE + args.target + Style.RESET_ALL) + deps = find_dependencies( + target_jobs_regex=target_jobs_regex, iid=pipe.iid, project_path=cur_project + ) target_job_id, ret = monitor_pipeline( cur_project, pipe, target_jobs_regex, deps, args.force_manual, args.stress )