Repository navigation
feat(build): add release debuginfo profile - #333
Conversation
Add cross-platform staticlib symbol smoke checks and document separate symbol packaging and binary identity matching. Refs #332 Signed-off-by: Vikrant Puppala <vikrant.puppala@databricks.com>
There was a problem hiding this comment.
Verdict: 1 Low
Looks good — a clean build-profile + symbol-verification PR with no kernel logic changes. The release-with-debuginfo profile correctly overrides only debug (no [profile.release] strip override exists to erase it), the C consumer's NULL call to kernel_get_last_error is genuinely hermetic (src/c_abi/error.rs:106 returns false on null), and the header/source anchors the scripts grep for all exist. One low observation posted inline (no paths: gating means every PR runs the hosted-macOS + Windows jobs). Nit: the PowerShell script assigns $profile, which is case-insensitively the same slot as PowerShell's automatic $PROFILE variable — harmless in script scope but worth renaming (e.g. $profileName) to avoid shadowing.
Apple DWARF stores source directories and filenames separately. Validate the named kernel function's DW_AT_decl_file instead of searching for a joined path string. Signed-off-by: Vikrant Puppala <vikrant.puppala@databricks.com>
There was a problem hiding this comment.
Verdict: 1 Low
Looks good — the Cargo profile (release-with-debuginfo inherits release, overrides only debug) is correct, and the smoke scripts' anchors are accurate: kernel_get_last_error lives in src/c_abi/error.rs, returns false on a null pointer (so the consumer's NULL call is genuinely hermetic), and include/databricks_kernel.h exists. One low note about CI scope/cost inline. Nit (summary-only): in .github/scripts/check-release-debuginfo.ps1 the local $profile assignment shadows PowerShell's automatic $PROFILE variable (case-insensitive); harmless here since the script never uses the profile path, but a differently-named variable (e.g. $profileName) would avoid the confusion.
Keep the module-address conversion behavior unchanged while satisfying the function-casts-as-integer lint in current stable Rust. Signed-off-by: Vikrant Puppala <vikrant.puppala@databricks.com>
Signed-off-by: Vikrant Puppala <vikrant.puppala@databricks.com>
There was a problem hiding this comment.
Verdict: 1 Low
Looks good — a well-scoped, well-tested build/CI addition. The only source-code change (src/c_abi/mod.rs) is a semantically-equivalent fn-pointer cast refactor, the new C consumer's kernel_get_last_error(NULL) is verified null-safe, and the release-with-debuginfo profile correctly overrides only debug (no custom [profile.release] exists to conflict). One low CI-cost note inline; nothing blocking.
Summary
release-with-debuginfoCargo profile that inheritsreleaseand changes onlydebug = 2.debug, macOS.dSYM, and Windows linker.pdbartifactsTest plan
cargo rustc --profile release-with-debuginforejects the undefined profilecargo +stable fmt --all -- --checkcargo clippy --all-targets -- -D warningscargo test(full suite, including doc tests; live E2Es remain ignored)Related-pattern audit
PROFILE release-with-debuginfo; the exact downstream wiring is documented here and can land separately in ODBC/ADBC.Closes #332