Repository navigation
test(ci): prove the Windows COFF bridge links a rusqlite program (BR-2) - #22
Merged
Merged
Conversation
Add a self-contained e2e fixture (ci/e2e/sqlite-bridge): a two-crate, 16-file project with 4 deps including rusqlite `bundled`, which compiles and links the SQLite C amalgamation — exercising C linking through the bridge. It is its own workspace and excluded from the root workspace so root builds, clippy, and cargo-deny never descend into it. Add one windows-msvc CI step that, after the workspace build produces reld-link.exe, points cargo's msvc linker at it (CARGO_TARGET_X86_64_PC_WINDOWS_MSVC_LINKER), builds the fixture, runs it, and asserts exit 0 plus the OK / "linked SQLite" markers. A failed link or a non-zero run fails the job. Other matrix legs are untouched. Closes #21 Co-Authored-By: Claude Fable 5 <[email protected]>
This was referenced Aug 7, 2026
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.
Implements BR-2 of the bridge strategy (#17). Closes #21. Follows BR-1 (#20).
What
Turns the one-time local check of the Windows COFF bridge into a permanent CI gate.
ci/e2e/sqlite-bridge/— a two-crate (libdbcore+ binapp), 16-source-file project with 4 deps:rusqlite(bundled→ compiles + links the SQLite C amalgamation, exercising C linking through the bridge), plusserde/serde_json/anyhow. The app opens an in-memory SQLite DB, seeds/queries rows, does a serde round-trip, printslinked SQLite <ver>andOK, exits 0. It's its own workspace, and added to the root[workspace].exclude, so root builds / clippy / cargo-deny never build it.Cargo.lockcommitted (deps pinned);target/git-ignored.windows-msvcCI step — after the workspace build producesreld-link.exe, it setsCARGO_TARGET_X86_64_PC_WINDOWS_MSVC_LINKERto that binary, builds the fixture, runs it, and asserts exit 0 + theOK/linked SQLitemarkers. A failed link or non-zero run fails the job. Other matrix legs unchanged.Testing
reld-link.exe→linked SQLite 3.46.0 / 3 widgets, 60 units total / OK, exit 0. Proves the bridge links a bundled-SQLite (C) binary that runs.fmt --checkclean; YAML parses; workspace isolation verified (root build does not descend into the fixture); notarget//log artifacts staged.Review
Independent review confirmed no false-green risk in the CI step (
$LASTEXITCODEsurvives theOut-String/finallyidiom — verified empirically), correct step placement/gating, sound workspace isolation, and traced all 16 fixture files. Its one blocking nit (missing fixture.gitignorefortarget/) is fixed in this PR.🤖 Generated with Claude Code