Skip to content

test(ci): self-host — link reld with reld-link on windows-msvc (#40) - #41

Merged
zackees merged 1 commit into
mainfrom
windows-self-host
Aug 7, 2026
Merged

zackees merged 1 commit into
mainfrom
windows-self-host

Conversation

@zackees

@zackees zackees commented Aug 7, 2026

Copy link
Copy Markdown
Collaborator

Implements #40. Closes #40.

What

Extends the Windows COFF bridge CI coverage from the small rusqlite fixture (BR-2) to a large, real Rust binary — reld itself (~17MB: mimalloc, object, clap, many crates). Self-host is the strongest single correctness signal (P2/#6).

The new windows-msvc step, after the workspace build produces reld-link.exe, sets CARGO_TARGET_X86_64_PC_WINDOWS_MSVC_LINKER to it and cargo build -p reld --bin reld — the linker-env change invalidates reld.exe's link fingerprint, so cargo relinks reld through the bridge (reld-link → lld-link). Then it runs the self-linked reld --version, asserting exit 0 and the Reld marker.

Testing

  • Locally verified end-to-end: built reld.exe with the default linker, then set the reld-link env and rebuilt — reld.exe genuinely relinked through reld-link (mtime changed, real relink), and reld --version → Reld <sha> (compatible with GNU linkers), exit 0. So the step exercises real self-host, not a cached no-op.
  • Rusqlite ci/e2e/sqlite-bridge regression still OK (bridge untouched).
  • YAML valid; scope is only .github/workflows/ci.yml, only the windows-msvc leg.

Review

Independent review: APPROVE — confirmed the linker-env change forces a real relink (empirically verified), three explicit gates prevent a false-green (build exit, run exit, Reld marker), no env leakage to later steps, scope clean.

🤖 Generated with Claude Code

#40)

Extend Windows bridge coverage from the small rusqlite fixture to a large,
real Rust binary: reld itself (~17MB, mimalloc/object/clap/many crates). After
the workspace build produces reld-link.exe, point cargo's msvc linker at it and
`cargo build -p reld --bin reld` — the linker-env change invalidates reld.exe's
link fingerprint, so cargo relinks it through the bridge (reld-link → lld-link).
Then run the self-linked `reld --version` and assert `Reld` + exit 0. Self-host
is the strongest single correctness signal (P2/#6). Other legs unchanged.

Closes #40

Co-Authored-By: Claude Fable 5 <[email protected]>
@zackees
zackees merged commit f7168f3 into main Aug 7, 2026
6 checks passed
@zackees
zackees deleted the windows-self-host branch August 7, 2026 13:13
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.

Windows self-host: link reld with reld-link (bridge) as a CI gate

1 participant