Commit 656960d
authored
fix(ci): rebuild cdylib with ffi feature before FFI tests [PECOBLR-2086] (#365)
## Summary
- Fixes CI failure where `cargo test --features ffi` fails with
"undefined symbol: AdbcDriverInit" when run after `cargo test` (without
ffi feature)
- Adds `cargo build --locked --features ffi` before the FFI test step to
force a cdylib rebuild with the correct symbols
- Root cause: Cargo doesn't always rebuild the cdylib target when only
feature flags change in incremental builds
## Test plan
- [ ] CI passes: `cargo test --locked` followed by `cargo test --locked
--features ffi` both succeed
- [ ] Verify with `nm -D target/debug/libdatabricks_adbc.so | grep
AdbcDriverInit` that the symbol is present after the build step
This pull request was AI-assisted by Isaac.1 parent cd544ce commit 656960d
1 file changed
+1
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
173 | 173 | | |
174 | 174 | | |
175 | 175 | | |
| 176 | + | |
176 | 177 | | |
177 | 178 | | |
178 | 179 | | |
| |||
0 commit comments