Skip to content

test(ci): verify ffi-backend tests + example link on macOS (#119)#221

Merged
kalwalt merged 1 commit into
devfrom
test/macos-ffi-backend-build-119
Jun 26, 2026
Merged

test(ci): verify ffi-backend tests + example link on macOS (#119)#221
kalwalt merged 1 commit into
devfrom
test/macos-ffi-backend-build-119

Conversation

@kalwalt

@kalwalt kalwalt commented Jun 26, 2026

Copy link
Copy Markdown
Member

Add a macOS-gated step to the kpm-build matrix that builds the
ffi-backend integration tests (--no-run) and the generate_patt
example, confirming they link on Apple targets.

PR #117 fixed build.rs to link libc++ (not libstdc++) on Apple
targets after the macOS runner produced ld: library 'stdc++' not found
when building tests/nft_pipeline and the generate_patt example. But
#117's dual-mode CI step was scoped to --lib, so the integration tests
and examples were never re-built on macOS after the fix — leaving open
whether the libc++ change was sufficient (#119).

This step closes that gap: if the macOS leg goes green, the libc++ fix is
confirmed and #119 can be closed as resolved by #117. If it fails with a
different error, we have a reproducible signal to root-cause.

--no-run is deliberate. This verifies linkage only; actually executing
the pose-sensitive assertions cross-platform is out of scope — that
float-drift question is tracked in #118, which keeps test_full_pipeline_pose
gated to Linux. (The library itself already builds with --features ffi-backend on macOS via the existing Build kpm backend step; the gap
was specifically the test + example targets.)

Verification happens in CI itself: the macOS leg of this PR's kpm-build
matrix exercises the new step.

Refs #119

🤖 Generated with Claude Code

PR #117 fixed build.rs to link libc++ (not libstdc++) on Apple targets,
but its dual-mode CI step was scoped to --lib, so the integration tests
and the generate_patt example were never re-built on macOS after the fix.
This left open whether the libc++ fix was sufficient or whether a
separate macOS linker issue remained.

Add a macOS-gated step to the kpm-build matrix that builds the
ffi-backend integration tests (--no-run) and the generate_patt example,
confirming they link against libc++. Use --no-run because executing the
pose-sensitive assertions cross-platform is out of scope — that
float-drift question is tracked in #118, which keeps test_full_pipeline_pose
gated to Linux.

Refs #119

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
@codecov

codecov Bot commented Jun 26, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

@kalwalt
kalwalt merged commit d7d48b1 into dev Jun 26, 2026
21 checks passed
@kalwalt
kalwalt deleted the test/macos-ffi-backend-build-119 branch June 28, 2026 17:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ci/cd enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

test(kpm): verify macOS integration tests + examples build with ffi-backend after #117

1 participant