Skip to content

Commit c58d44f

Browse files
committed
fp-stability: remove emoji from console + GitHub-summary output (ASCII only)
Replaced the check/cross marks in the results list (PASS/FAIL), the summary table status (PASS/FAIL), and the VPREC 'crash' cell + its comment. No emoji in the toolchain output now.
1 parent a9dbb42 commit c58d44f

2 files changed

Lines changed: 5 additions & 5 deletions

File tree

toolchain/mfc/fp_stability.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -639,8 +639,8 @@ def fp_stability():
639639

640640
cons.print(f"[bold]Results[/bold] ({elapsed:.0f}s): [green]{n_pass} passed[/green] [red]{n_fail} failed[/red]")
641641
for r in results:
642-
mark = "[green][/green]" if r["passed"] else "[red][/red]"
643-
cons.print(f" {mark} {r['name']}")
642+
mark = "[green]PASS[/green]" if r["passed"] else "[red]FAIL[/red]"
643+
cons.print(f" {mark} {r['name']}")
644644

645645
_emit_github_summary(results, n_samples)
646646
_emit_github_annotations(results)

toolchain/mfc/fp_stability_report.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ def _emit_github_summary(results: list, n_samples: int):
8383
md.append("| Case | Status | bits retained | max\\_dev | Float proxy |")
8484
md.append("|------|:------:|:------:|--------:|--------:|")
8585
for r in results:
86-
status = "" if r["passed"] else ""
86+
status = "PASS" if r["passed"] else "FAIL"
8787
bits = f"{r['sig_bits']:.1f}" if r.get("sig_bits") is not None else "—"
8888
fp = f"{r['float_proxy']:.2e}" if r["float_proxy"] is not None else "—"
8989
md.append(f"| `{r['name']}` | {status} | {bits} / {MIN_SIG_BITS} | {r['max_dev']:.2e} | {fp} |")
@@ -119,7 +119,7 @@ def _emit_github_summary(results: list, n_samples: int):
119119
md.append("")
120120

121121
# VPREC sweep — one column per mantissa-bit level showing the L∞ deviation at
122-
# that reduced precision (💥 crash = run diverged/failed, — = not measured).
122+
# that reduced precision ("crash" = run diverged/failed; dash = not measured).
123123
if any(r["vprec"] for r in results):
124124
_labels = {52: "52b", 23: "23b", 16: "16b", 10: "10b"}
125125
header = " | ".join(_labels[b] for b in VPREC_MANTISSA_BITS)
@@ -135,7 +135,7 @@ def _emit_github_summary(results: list, n_samples: int):
135135
if d is None:
136136
cols.append("—")
137137
elif d == float("inf"):
138-
cols.append("💥 crash")
138+
cols.append("crash")
139139
else:
140140
cols.append(f"{d:.2e}")
141141
md.append(f"| `{r['name']}` | {' | '.join(cols)} |")

0 commit comments

Comments
 (0)