From 3a0d31a0502ef7ca76c1cb4b69e532f15d94fe95 Mon Sep 17 00:00:00 2001 From: Juliusz Sosinowicz Date: Thu, 25 Jun 2026 08:38:09 +0000 Subject: [PATCH] .github/scripts/parallel-make-check.py: emit literal status emoji, not :shortcodes: The summary table is printed to plain stdout (the Actions console log and local terminals) in addition to the GitHub step summary. GitHub emoji :shortcodes: like :heavy_minus_sign: only expand on GitHub's Markdown surfaces, so in the console log they appeared as literal text. Emit the Unicode emoji directly, via \N{...} escapes so the source stays ASCII; the glyphs match what the shortcodes mapped to, leaving the step summary unchanged. --- .github/scripts/parallel-make-check.py | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/.github/scripts/parallel-make-check.py b/.github/scripts/parallel-make-check.py index f22e385f7a..8cc339f247 100755 --- a/.github/scripts/parallel-make-check.py +++ b/.github/scripts/parallel-make-check.py @@ -467,16 +467,19 @@ def summarize(results: list[tuple[Config, str | None, float]], wall_min: float, cpu_min: float, nthreads: int) -> None: lines = ["| Config | Result | Minutes |", "|---|---|---|"] for cfg, failed, minutes in results: + # Literal emoji, not GitHub :shortcodes:, so the status renders in the + # plain stdout log too - shortcodes only expand on GitHub's Markdown + # surfaces (the step summary), not in the console log this also prints. if failed == "aborted": - ok = ":heavy_minus_sign: aborted (fail-fast)" + ok = "\N{HEAVY MINUS SIGN} aborted (fail-fast)" elif failed: - ok = f":x: FAIL ({failed})" + ok = f"\N{CROSS MARK} FAIL ({failed})" else: - ok = ":white_check_mark: pass" + ok = "\N{WHITE HEAVY CHECK MARK} pass" if stale_estimate(cfg, minutes): # Non-fatal nudge mirroring the per-config warning, kept in # the summary next to the Minutes value to copy over. - ok += (f' :warning: "minutes" {cfg.minutes:g} is >50% off, ' + ok += (f' \N{WARNING SIGN}\uFE0F "minutes" {cfg.minutes:g} is >50% off, ' f"update to ~{minutes:.1f}") lines.append(f"| {cfg.name} | {ok} | {minutes:.1f} |") # Two views of how efficiently the pool used the machine: thread