You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
reld-bench: surface link failures (emit the linker error) instead of silently charting n/a #38
Diagnostic-enabling improvement, and an honesty fix. Unblocks #37 (why reld charts n/a).
Problem
reld-bench's time_link returns Err when a linker fails to link a workload, and the caller silently charts " n/a |", discarding the linker's stderr. That is how #37 stayed invisible: reld fails every benchmark workload link, but the benchmark shows a bare n/a with no reason. This also contradicts the harness's stated honesty policy ("a missing competitor is visible... rather than quietly improving our numbers") — a failing linker is currently indistinguishable from a slow one and gives no diagnostic.
Fix (crates/reld-testkit/src/bin/reld-bench.rs)
When time_link fails for any linker (competitor or reld), capture the error and emit a comment after the table, e.g.:
<!-- linker reld link failed (large (512 units)): <first line(s) of the linker stderr> -->
Applies to the competitor columns and the reld column alike.
Keep charting n/a in the cell (unchanged table shape / benchmark_stats.py contract), but no longer silently swallow why.
Include enough of the linker stderr to diagnose (first N lines), de-duplicated if the same error repeats across scenarios.
Verification
Unit test the failure-comment formatting (hermetic — no real linker needed; test the formatting helper).
reld-bench emits a comment naming the linker + scenario + error whenever a link fails, instead of a silent n/a; table/JSON contract unchanged; unit test passes. PR merged, issue closed, branch rebased on origin/main.
Activity