Repository navigation
feat(bench): gate expected linker coverage; mark reld pending, not silent n/a (#63) - #64
Merged
Merged
Conversation
…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]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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 failedn/a.What changed
reld-bench(--reld-pending <reason>)pending(carrying the reason as an HTML comment) instead of a baren/a. A workingld.reldshim always wins over the flag. Applies to both the synthetic and--replay-corpuspaths.ci/benchmark_stats.pypendingdistinctly (chart = amber outline+label, HTML =pendingcell) and emits a new per-resultstatus(measured|pending|na) inlatest.json/history.jsonl.schema_version2 to 3.ci/benchmark_coverage.py(new) — the gate{bfd, lld, mold, wild, reld}, windows{link.exe, lld}, macOS{ld, ld64.lld}.n/a— including a partial per-scenarion/a— or if a pending-by-design linker slips to a baren/a.$GITHUB_STEP_SUMMARY(ASCII-only, so the Windows leg's cp1252 stdout can't crash it).Workflows
benchmark-stats.yml: runs the gate on every platform leg; passes--reld-pendingon Windows/macOS.ci.yml: the PR benchmark smokes now mark reldpendingand assert it (PR-visible RED to GREEN).README: documents the
pendingstate and the per-platform gate.Acceptance criteria (#63)
n/a.latest.json/ charts distinguish pending from failedn/a.n/a).test_expected_linker_na_fails_the_gate(and the macOSld64.lldcase from bench: ld64.lld always n/a on macOS — clang maps -fuse-ld=ld64.lld to nonexistent ld.ld64.lld #60) fail with a silentn/aand pass once honest.Testing
pytest ci/tests— 66 passed (coverage gate RED to GREEN, pending parse/render, workflow-lint wiring).resolve_fuse_ldregression matrix + pending-comment safety).--checkand clippy--all-targets -D warningsclean.🤖 Generated with Claude Code