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: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/30223>
This commit is contained in:

committed by
Marge Bot

parent
032d4a20f9
commit
964ecac0a4
@@ -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+)?'
|
||||
|
Reference in New Issue
Block a user