From 964ecac0a45efa54a9d87763ae67671bcfd0e3f9 Mon Sep 17 00:00:00 2001 From: Eric Engestrom Date: Wed, 17 Jul 2024 13:34:29 +0200 Subject: [PATCH] bin/ci_run_n_monitor: add text labels next to the emojis IMO emojis are nice to add next to the information to recognize things easily in cases where they are visible, but they should not *replace* the information. This adds a readable text next to all emojis (some already had one, like the "job duration" ones). Part-of: --- bin/ci/ci_run_n_monitor.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/bin/ci/ci_run_n_monitor.py b/bin/ci/ci_run_n_monitor.py index ce943467278..1be5fe97399 100755 --- a/bin/ci/ci_run_n_monitor.py +++ b/bin/ci/ci_run_n_monitor.py @@ -81,7 +81,7 @@ def print_job_status( print( STATUS_COLORS[job.status] - + "🞋 job " # U+1F78B Round target + + "🞋 target job " # U+1F78B Round target + link2print(job.web_url, job.name, job_name_field_pad) + (f"has new status: {job.status}" if new_status else f"{job.status}") + (f" ({pretty_duration(duration)})" if job.started_at else "") @@ -254,11 +254,11 @@ def enable_job( job = get_pipeline_job(pipeline, pjob.id) if action_type == "target": - jtype = "🞋" # U+1F78B Round target + jtype = "🞋 target" # U+1F78B Round target elif action_type == "retry": - jtype = "↻" # U+21BB Clockwise open circle arrow + jtype = "↻ retrying" # U+21BB Clockwise open circle arrow else: - jtype = "↪" # U+21AA Left Arrow Curving Right + jtype = "↪ dependency" # U+21AA Left Arrow Curving Right job_name_field_pad = len(job.name) if job_name_field_pad < 1 else job_name_field_pad print(Fore.MAGENTA + f"{jtype} job {job.name:{job_name_field_pad}}manually enabled" + Style.RESET_ALL) @@ -543,7 +543,7 @@ def main() -> None: target = '|'.join(args.target) target = target.strip() - print("🞋 job: " + Fore.BLUE + target + Style.RESET_ALL) # U+1F78B Round target + print("🞋 target job: " + Fore.BLUE + target + Style.RESET_ALL) # U+1F78B Round target # Implicitly include `parallel:` jobs target = f'({target})' + r'( \d+/\d+)?'