Skip to content

test(ci): run reld-bench on the Windows and macOS CI legs (BR-4c) - #28

Merged
zackees merged 1 commit into
mainfrom
br4c-bench-smoke
Aug 7, 2026
Merged

zackees merged 1 commit into
mainfrom
br4c-bench-smoke

Conversation

@zackees

@zackees zackees commented Aug 7, 2026

Copy link
Copy Markdown
Collaborator

Implements a step toward the 3-OS graph (phase BR-4, #17). Closes #27. Follows BR-4a (#24) and BR-4b (#26).

What

Proves the benchmark harness runs on the Windows and macOS CI runners — the prerequisite before the published benchmark can trust those runners (the future 3-OS publish matrix). Adds one reld-bench step + one artifact-upload step to each of the windows-msvc and macos-arm64 legs of phase1-native:

  • Runs reld-bench --release --cc clang --linker lld --trials 2 --warmup 1 after that leg's native-tests step (so the binary is already built).
  • Asserts a well-formed table (## Link Benchmark: heading + a | reld | column), failing the step otherwise.
  • Uploads the table as a per-OS artifact (benchmark-windows-msvc / benchmark-macos-arm64).

reld itself charts n/a on these legs — clang can't drive reld off-Linux (reld integrates via rustc -Clinker there); that's honest and expected. Unlike the nightly benchmark-stats.yml, this runs on every PR, so the cross-platform bench path stays continuously verified.

Out of scope

The 3-OS publish/aggregation matrix in benchmark-stats.yml, multi-target rendering, and the Windows/macOS rustc-based reld measurement (so reld shows a real number off-Linux). Those remain separate follow-ups.

Testing

  • Scoped to .github/workflows/ci.yml only (36 insertions, 0 deletions — pure addition). YAML validated.
  • Local Windows run of the same reld-bench command renders correctly: lld measured, reld = honest n/a, table shape intact — both assertions pass on it.
  • Rusqlite ci/e2e/sqlite-bridge regression e2e still links via reld and runs (OK, exit 0) — this change doesn't touch reld.
  • The new steps execute on this PR's own windows-msvc/macos CI legs.

Review

Independent review verified (empirically) that a failed reld-bench run cannot be reported as a pass on either leg ($LASTEXITCODE survives | Tee-Object on Windows; set -o pipefail on macOS), that no other leg or the summary scripts are affected, and that the per-step linker env var from the BR-2 e2e step does not leak into this step. Its one MEDIUM nit — the macOS grep was looser than the Windows check — is fixed here (grep -qE '\| *reld *\|', symmetric with Windows).

🤖 Generated with Claude Code

Prove the benchmark harness works cross-platform ahead of the 3-OS publish
matrix. The windows-msvc and macos-arm64 phase1 legs now run reld-bench with
the installed clang (-fuse-ld=lld), assert a well-formed table (heading + reld
column), and upload it as a per-OS artifact. reld itself charts n/a on these
legs — clang can't drive reld off-Linux (rustc -Clinker path); that's honest
and expected. Runs on every PR, unlike the nightly benchmark, so the
cross-platform bench path stays verified. Other legs and the publish pipeline
are untouched.

Closes #27

Co-Authored-By: Claude Fable 5 <[email protected]>
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.

BR-4c: run reld-bench on the Windows and macOS CI legs (cross-platform bench smoke + artifact)

1 participant