Skip to content

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

Closed

Description

@zackees

Meta: benchmark linker-coverage integrity — no silent n/a

The ld64.lld-always-n/a bug (#60) was not a one-off: the benchmark reports a linker as n/a
both when a linker is genuinely not yet supported (fine, if documented) and when it silently
fails to link
due to an invocation/setup bug (not fine — it understates coverage and hides
regressions). Today those two cases look identical in the published charts. This meta issue makes
benchmark coverage provable and honest: every linker we claim to measure on a platform must be
verified to actually link in CI, and any remaining n/a must be an explicit, documented "pending"
state — never an accidental one.

Current state (from the benchmark-stats branch)

Platform Series present Silent / accidental n/a
x86_64-linux bfd, lld, mold, wild, reld (0.0216) none
x86_64-pc-windows-msvc link.exe, lld, reld = n/a reld never measured
aarch64-apple-darwin ld, ld64.lld*, reld = n/a ld64.lld was silently broken (*fixed in #60); reld never measured

Two distinct problems surface here:

  1. Accidental silent n/a from invocation/setup bugs — e.g. ld64.lld (bench: ld64.lld always n/a on macOS — clang maps -fuse-ld=ld64.lld to nonexistent ld.ld64.lld #60: clang maps
    -fuse-ld=ld64.lld to a nonexistent ld.ld64.lld). These must be impossible to ship silently.
  2. reld is n/a on Windows/macOS — the reld driver shim is built only on the Linux
    benchmark-stats leg (ci/install-driver-shims.sh runs under if: runner.os == 'Linux'), so
    reld is never even attempted on the other two. The README documents reld's Windows/macOS numbers
    as honest n/a until the rustc-based bridge measurement lands — but that "pending" status lives
    only in prose, not in the pipeline.

Goal

Make it structurally impossible for an expected linker to silently drop to n/a, and make
pending linkers explicit rather than indistinguishable from failures.

Plan

Acceptance criteria

  • CI fails if any platform's expected linker reports n/a in the benchmark.
  • latest.json / the charts distinguish pending (documented, e.g. reld bridge on
    Windows/macOS until measured) from failed n/a.
  • reld is either measured on Windows/macOS or explicitly marked pending there (no bare n/a).
  • Per-platform expected-vs-measured coverage is printed in the job.
  • RED -> GREEN: a test/CI gate that currently passes with a silently-n/a expected linker, and
    fails after the gate is added (as bench: ld64.lld always n/a on macOS — clang maps -fuse-ld=ld64.lld to nonexistent ld.ld64.lld #60 demonstrated for macOS ld64.lld).

Sub-issues / references

Decisions

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions