Closed
Description
Context
The README embeds three charts from the generated benchmark-stats branch and says Linux measures reld natively while Windows/macOS render reld as explicit pending until their bridge measurements land. The repository now has the schema and coverage policy for that distinction (#63), but the public artifact does not reflect it:
benchmark-statswas last published on 2026-08-07 from source SHA4291003; the README images therefore predate meta: benchmark linker-coverage integrity — no silent n/a (gate expected linkers, mark pending explicitly) #63 and still render Windows/macOS reld asn/arather thanpending.- The latest twelve scheduled Benchmark Stats runs are red. In the current failure (run 32631733499), Windows measures the small and medium scenarios, but both expected reference linkers fail for
large (512 units). The coverage gate correctly rejects the run, so the aggregate job cannot publish any target. - The raw Windows benchmark log reports both failures only as
spawning linker.reld-benchpasses every object path directly throughCommand::args(objects)in both generated and replay modes (crates/reld-testkit/src/bin/reld-bench.rs,link_once/link_once_replay). Because 16 and 128 objects succeed while 512 objects fail at process spawn on Windows, the leading diagnosis is the Windows command-line-length limit. The current top-level-only error formatting hides the underlying OS error, so the fix must preserve the full cause chain and prove the diagnosis RED -> GREEN. - Linux already has real native reld timings in the stale published data. Windows and macOS reld remain intentionally unmeasured:
.github/workflows/benchmark-stats.ymlbuilds/installs a reld shim only on Linux and passes--reld-pendingon the other hosts. This is the unfinished benchmark slice of Bridge linkers: run + benchmark reld on Windows and macOS now by delegating to lld (rust-lld) per platform #17, not evidence that the bridges cannot link; their end-to-end and self-host jobs are already green. - Main CI is independently red after Validate linker modes across Linux, Windows, and macOS #67 (run 32222356951). The focused
linker-plugin-ltotest passes immediately before the aggregate acceptance suite, then the aggregate suite fails because rustc cannot find temporary LTO objects.verify_linker_plugin_requirementsgives every same-architecture invocation the shared output/tmp/rust-{arch}.out, which is unsafe under the parallel acceptance runner. The always-run phase summary then emits a second failure because downstream log files do not exist.
This meta tracks the complete path from red CI and stale/misleading charts to current, continuously published, real reld measurements on all three platforms. It does not weaken the no-silent-n/a policy established by #63.
Proposal
1. Restore a green, diagnosable benchmark pipeline
- Add a response-file path for large object/input lists in
reld-bench; use it in bothlink_onceandlink_once_replayso generated and frozen corpora have identical Windows-safe behavior. - Implement platform-correct response-file quoting/encoding and keep the output path plus linker-selection arguments outside or inside the response file according to the compiler driver's supported contract.
- Preserve the full anyhow/source error chain in benchmark failure comments and job logs (for example, formatted with
{error:#}), while retaining the existing single-line/length/safety sanitization for HTML comments. - Add a focused Windows repro that fails before the change with an oversized link command and turns green with response-file invocation. Add unit coverage for quoting paths containing spaces, quotes, and non-ASCII characters.
- Keep
ci.benchmark_coveragestrict: expected linkers must produce every scenario, pending series must be explicit, and a failed expected series must continue blocking publication. - Dispatch the real three-host workflow after the fix. Confirm all benchmark matrix jobs and aggregation succeed,
benchmark-statsadvances from its 2026-08-07 commit, and the README images resolve to the newly generated artifacts.
2. Repair main CI's parallel LTO verifier race
- Replace
/tmp/rust-{arch}.outinverify_linker_plugin_requirementswith an invocation-unique temporary directory/output that stays alive through the rustc process and is cleaned afterward. - Add a focused concurrent regression test or deterministic stress repro that runs the same-architecture verifier in parallel: RED with the shared output, GREEN with isolated paths.
- Make
ci/phase1_summary.py/ its workflow invocation tolerate explicitly absent downstream logs after an earlier step fails, while still failing for malformed or incomplete logs that were expected to exist on a successful path. - Rerun the full Linux acceptance job, not only the isolated LTO test, and require the post-merge/default-branch CI result to be green.
3. Publish real Windows/macOS reld bridge measurements
Complete the remaining benchmark work in #17 instead of leaving permanent pending cells:
- Provision the target-correct reld front door on each native host:
reld-link.exefor Windows COFF andld64.reld(or the proven host-default Mach-O entry point) for macOS. Do not reuse Linux's hard-codedld.relddiscovery on formats where argv[0] selects a different driver. - Reuse the cross-shipped artifacts proven by ci(perf): cross-build the OS product on Linux via setup-soldr (cook + heavy cache), ship the binary to native runners for tests/benchmarks #59 where practical so scarce Windows/macOS runners download and run the product instead of rebuilding it.
- Use the frozen-corpus/replay architecture from feat(bench): frozen linker-object asset pipeline — manifest + replay (#57) #58/bench: frozen Bevy link corpus — compile once per platform, replay the link every iteration #55: compile and capture inputs once, then time only link-command replay. A rustc-based bridge measurement must not accidentally time Rust compilation.
- Measure both direct lld and reld routing to lld over the same inputs. Execute/validate each produced binary outside the timed loop.
- Record reld as
mode: bridgeplus the concrete selected engine; do not present bridge throughput as native reld codegen. Once measured, real data must override--reld-pending. - Add per-platform gates requiring reld timings for every published scenario. Remove the Windows/macOS pending policy only in the same change that makes those gates green.
4. Make the public result observable and drift-resistant
- Complete ci(bench): print per-OS performance stats in the job + verbose benchmark-stats branch publish #53 so each run prints per-OS timings, coverage state, source SHA, generated timestamp, and publish/skip outcome to the job log and
$GITHUB_STEP_SUMMARY. - Assert freshness in CI or a scheduled monitor: the generated branch must name the current/default-branch source SHA or stay within a documented maximum age; a stale README chart must be loud rather than silently looking current.
- Generate the README benchmark block from the same target manifest used by aggregation, preserving its vertically stacked layout and per-target links. The prose, JSON status, chart labels, and generated timestamp must agree.
- After the synthetic pipeline is stable, connect the real frozen Bevy corpus (bench: frozen Bevy link corpus — compile once per platform, replay the link every iteration #55) and quick/thin/full-LTO sections (bench: quick-link / thin-LTO / full-LTO sections over the frozen corpus (link only, no compile in the loop) #56); these are follow-on slices, not prerequisites for restoring current publication.
5. Close the tracking loop
- Update Bridge linkers: run + benchmark reld on Windows and macOS now by delegating to lld (rust-lld) per platform #17 when bridge measurements land and close only its completed benchmark scope.
- Update P2: Prove Linux — self-host, corpus pass rate, populate the benchmark column #6 with the verified Linux native benchmark evidence; keep its separate real-world correctness/pass-rate work open until delivered.
- Audit Handoff: reld cross-platform linker — state, next work, and how to continue #46/Meta: per-OS benchmark graphs — separate Windows / Linux / macOS charts #47 after this meta lands and close or rewrite stale handoff/meta text that still describes already-completed per-OS graph work.
Acceptance criteria
- RED -> GREEN: a focused Windows repro demonstrates the 512-object direct-argv spawn failure, then passes through the response-file implementation for
link.exe, lld, and the replay path. - Link failures expose the underlying OS/linker cause rather than only
spawning linker; HTML/log sanitization remains bounded and safe. - The Benchmark Stats workflow is green on Linux, Windows, and macOS, including aggregation and default-branch publication.
-
benchmark-statscontains a new commit sourced from currentmain, and all three README charts show a current generated timestamp/source SHA. - Linux publishes measured native reld timings for every scenario.
- Windows and macOS publish measured reld bridge timings for every scenario, labeled
bridgewith the concrete engine; neither platform contains reldpendingor baren/aafter the measurement slice lands. - Every expected linker produces every scenario; deliberately breaking one expected series makes the coverage gate fail and prevents publication.
- RED -> GREEN: concurrent same-architecture LTO verifier invocations reproduce the shared-output collision before the fix and pass with unique temporary outputs afterward.
- The full Linux acceptance job and a post-merge/default-branch CI run are green; the summary path does not emit misleading secondary missing-log failures.
- Job logs and
$GITHUB_STEP_SUMMARYshow per-target timings/status, source SHA, generation time, and whether/where artifacts were published. - A regression test proves stale generated artifacts or disagreement between README prose/chart/JSON status cannot remain silent.
Decisions
- Priority: P0. Public benchmark artifacts are stale, scheduled publishing is continuously red, and default-branch CI is red; correctness and trust take precedence over new benchmark modes or backend work.
- One coordinating meta, independently mergeable slices. The failures interact at the public artifact but response files, LTO temp isolation, bridge measurement, and observability should land as focused PRs with their own RED -> GREEN evidence.
- Keep meta: benchmark linker-coverage integrity — no silent n/a (gate expected linkers, mark pending explicitly) #63 closed and keep its gate strict. The gate is behaving correctly by refusing to publish incomplete expected-linker data; bypassing it would recreate the silent-
n/abug. - Response files are the default fix for large links. Shortening the Windows work directory is only a fragile mitigation and would not protect the larger frozen corpora.
- Bridge numbers are valid but not native numbers. They measure reld's real routing path and overhead, so publish them with explicit
bridge/engine metadata. - No compilation in timed regions. Cross-platform measurement uses captured/frozen link inputs so comparisons remain linker-only.
- Stability before expansion. bench: frozen Bevy link corpus — compile once per platform, replay the link every iteration #55/bench: quick-link / thin-LTO / full-LTO sections over the frozen corpus (link only, no compile in the loop) #56 and chart presentation refinements follow restoration of green, fresh, complete baseline publishing.
Related issues
- meta: benchmark linker-coverage integrity — no silent n/a (gate expected linkers, mark pending explicitly) #63 — closed integrity foundation: gate expected linkers and distinguish pending from failed
n/a. - Bridge linkers: run + benchmark reld on Windows and macOS now by delegating to lld (rust-lld) per platform #17 — unfinished Windows/macOS reld bridge benchmark measurement.
- ci(bench): print per-OS performance stats in the job + verbose benchmark-stats branch publish #53 — benchmark stats and publish observability.
- bench: frozen Bevy link corpus — compile once per platform, replay the link every iteration #55 — real frozen Bevy corpus, building on the response-file-safe replay path.
- bench: quick-link / thin-LTO / full-LTO sections over the frozen corpus (link only, no compile in the loop) #56 — quick/thin/full-LTO benchmark sections after baseline stability.
- ci(perf): cross-build the OS product on Linux via setup-soldr (cook + heavy cache), ship the binary to native runners for tests/benchmarks #59 — cross-build and ship reld binaries to native runners.
- P2: Prove Linux — self-host, corpus pass rate, populate the benchmark column #6 — Linux proof milestone; native benchmark evidence is one completed slice, corpus pass rate remains separate.
Metadata
Metadata
Assignees
Labels
No labels
Activity