Skip to content

feat(bench): gate expected linker coverage; mark reld pending, not silent n/a (#63) - #64

Merged
zackees merged 1 commit into
mainfrom
feat/benchmark-coverage-integrity
Aug 7, 2026
Merged

zackees merged 1 commit into
mainfrom
feat/benchmark-coverage-integrity

Conversation

@zackees

@zackees zackees commented Aug 7, 2026

Copy link
Copy Markdown
Collaborator

Resolves #63 — makes benchmark linker-coverage provable and honest: it is now structurally impossible for an expected linker to silently drop to n/a, and a documented gap (reld's bridge on Windows/macOS) is an explicit pending state distinct from a failed n/a.

What changed

reld-bench (--reld-pending <reason>)

  • When reld can't be measured but is declared pending-by-design, the reld cell renders pending (carrying the reason as an HTML comment) instead of a bare n/a. A working ld.reld shim always wins over the flag. Applies to both the synthetic and --replay-corpus paths.

ci/benchmark_stats.py

  • Parses/renders pending distinctly (chart = amber outline+label, HTML = pending cell) and emits a new per-result status (measured | pending | na) in latest.json/history.jsonl. schema_version 2 to 3.

ci/benchmark_coverage.py (new) — the gate

Workflows

  • benchmark-stats.yml: runs the gate on every platform leg; passes --reld-pending on Windows/macOS.
  • ci.yml: the PR benchmark smokes now mark reld pending and assert it (PR-visible RED to GREEN).

README: documents the pending state and the per-platform gate.

Acceptance criteria (#63)

Testing

  • pytest ci/tests — 66 passed (coverage gate RED to GREEN, pending parse/render, workflow-lint wiring).
  • reld-bench unit tests — 17 passed (adds resolve_fuse_ld regression matrix + pending-comment safety).
  • rustfmt --check and clippy --all-targets -D warnings clean.

🤖 Generated with Claude Code

…lent n/a (#63)

Make benchmark coverage provable and honest: an expected linker can no longer
silently drop to `n/a`, and a documented gap (reld's bridge on Windows/macOS)
renders as an explicit `pending` state distinct from a failed `n/a`.

- reld-bench: add `--reld-pending <reason>`; when reld can't be measured but is
  declared pending-by-design, render `pending` (carrying the reason as an HTML
  comment) instead of a bare `n/a`. A working shim always wins over the flag.
- benchmark_stats.py: parse/render `pending` distinctly (chart, HTML, and a new
  per-result `status` field in latest.json/history); schema_version 2 -> 3.
- ci/benchmark_coverage.py: per-platform expected-linkers gate. Fails CI if any
  expected linker reports n/a (including a partial per-scenario n/a) or if a
  pending-by-design linker slips to a bare n/a. Prints expected-vs-measured
  coverage to the log and $GITHUB_STEP_SUMMARY (ASCII-only for the Windows leg).
- Workflows: benchmark-stats.yml runs the gate on every leg and passes
  --reld-pending on Windows/macOS; ci.yml's PR benchmark smokes mark reld
  pending and assert it. README documents the pending state and the gate.
- Tests: coverage gate RED->GREEN (expected linker n/a fails; reld pending
  passes), pending parse/render, and a resolve_fuse_ld regression matrix.

Closes #63

Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>
@zackees
zackees merged commit 6fc6e93 into main Aug 7, 2026
24 checks passed
@zackees
zackees deleted the feat/benchmark-coverage-integrity branch August 7, 2026 17:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

meta: benchmark linker-coverage integrity — no silent n/a (gate expected linkers, mark pending explicitly)

1 participant