mirror of
https://github.com/wolfSSL/wolfssl.git
synced 2026-07-09 05:20:52 +02:00
.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 ➖ 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.
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user