Repository navigation
ci: build per-platform C-ABI static libraries (all platforms, artifact-only) - #244
msrathore-db wants to merge 4 commits into
Conversation
There was a problem hiding this comment.
Verdict: 1 High · 2 Medium · 1 Low · 1 Nit
New CI workflow to build per-platform C-ABI static libs. One blocking issue: the permissions block grants contents: read, but the release-attach step calls gh release upload, which needs contents: write — so the release path (the workflow's whole purpose) will 403 on tag builds. Also a few asset-naming/checksum-consistency issues worth addressing (esp. the Windows .lib renamed to .a and the .sha256 embedding a filename that won't match the renamed asset).
Other findings
- ⚪ Nit — The comment states 'The header is generated into include/.', but per
src/c_abi/mod.rs:42the header is hand-maintained, not generated. This also means theif [ -f include/databricks_kernel.h ]guard silently no-ops if the committed header is ever moved/renamed rather than surfacing an error — for a file that is expected to exist, a missing header will pass silently. Fixing the comment (and optionally hard-failing when the expected committed header is absent) would avoid shipping an archive with no matching header.
| cancel-in-progress: true | ||
|
|
||
| permissions: | ||
| contents: read |
There was a problem hiding this comment.
🟠 High — The workflow grants only contents: read, but the final step runs gh release upload "$TAG" ... to attach archives to the GitHub release. Uploading release assets requires contents: write; with contents: read the gh release upload call will fail with a 403 on every tag build — the exact path this workflow exists to serve. Other release-oriented workflows in this repo that push/attach use contents: write (e.g. engineer-bot.yml:35, trigger-integration-tests.yml). Either bump the top-level contents to write, or (safer, least-privilege) scope contents: write to just the build job / the attach step.
| contents: read | |
| permissions: | |
| contents: write |
| set -euo pipefail | ||
| TAG="${GITHUB_REF_NAME}" | ||
| cd "dist/${{ matrix.platform }}" | ||
| # Namespace the asset by platform so all five archives coexist on one |
There was a problem hiding this comment.
🟡 Medium — The release asset is unconditionally named libdatabricks_sql_kernel-${platform}.a, but for windows_amd64 matrix.archive is databricks_sql_kernel.lib (an MSVC import/static lib). The cp "${{ matrix.archive }}" "$ASSET" copies the .lib into a file with a .a extension, so the Windows release asset is a .lib masquerading as a .a. A Go/ODBC consumer keying off extension (or expecting a GNU ar archive) will mishandle it. Consider preserving the native extension per platform (e.g. derive the asset suffix from matrix.archive), so Windows publishes ...-windows_amd64.lib.
| TAG="${GITHUB_REF_NAME}" | ||
| cd "dist/${{ matrix.platform }}" | ||
| # Namespace the asset by platform so all five archives coexist on one | ||
| # release without name clashes. |
There was a problem hiding this comment.
🟡 Medium — The .sha256 produced in the staging step records the staged filename (libdatabricks_sql_kernel.a <hash>, or databricks_sql_kernel.lib on Windows), but the release asset is renamed to libdatabricks_sql_kernel-${platform}.a before upload. The uploaded checksum file therefore names a file that does not exist as a release asset, so a consumer running sha256sum -c <file>.sha256 against the downloaded asset will fail the name match. Either rename the archive to its final asset name before computing the checksum, or rewrite the filename inside the .sha256 when renaming.
| # Also emit the C header alongside so the driver can commit a matching | ||
| # header at the same revision. The header is generated into include/. | ||
| if [ -f include/databricks_kernel.h ]; then | ||
| cp include/databricks_kernel.h "$OUT/databricks_kernel.h" |
There was a problem hiding this comment.
🔵 Low — The header databricks_kernel.h is staged into dist/<platform>/ and included in the workflow artifact, but the gh release upload step attaches only $ASSET and ${{ matrix.archive }}.sha256 — the header is never attached to the release. The comment says the driver 'can commit a matching header at the same revision', yet a consumer pulling from the release (the stated preferred path over transient CI artifacts) won't get the header. Consider including the header in the release upload too.
593ae15 to
9e6a7e3
Compare
There was a problem hiding this comment.
Verdict: 1 Medium · 2 Low
New CI-only workflow (no src/ changes); build flags, staticlib crate-type, and tls-rustls feature all check out against Cargo.toml. Main concern is that the release-attach step assumes a GitHub Release already exists for the tag, which nothing in the repo creates (F1, medium); the rest are minor comment/attribution cleanups.
| # release without name clashes. | ||
| ASSET="libdatabricks_sql_kernel-${{ matrix.platform }}.a" | ||
| cp "${{ matrix.archive }}" "$ASSET" | ||
| gh release upload "$TAG" \ |
There was a problem hiding this comment.
🟡 Medium — gh release upload "$TAG" ... requires a GitHub Release to already exist for $TAG — it has no --create behavior and fails with "release not found" otherwise. Nothing in this repo creates a Release on a v* tag: cargo-publish.yml only publishes the crate, and there is no release-creation workflow anywhere under .github/. On the documented canonical path (git tag v0.3.0 && git push --tags), no Release exists, so every build matrix job's Attach to GitHub release step will fail. This only works if a human first creates the Release via the UI (which also creates the tag). Consider creating/ensuring the release first, e.g. gh release create "$TAG" --verify-tag --notes '' || true before the upload (guarded so concurrent matrix jobs don't race), or documenting that a Release must pre-exist.
| fi | ||
| cp "$SRC" "$OUT/${{ matrix.archive }}" | ||
| # Also emit the C header alongside so the driver can commit a matching | ||
| # header at the same revision. The header is generated into include/. |
There was a problem hiding this comment.
🔵 Low — The comment says "The header is generated into include/", but include/databricks_kernel.h is hand-written/hand-maintained (per src/c_abi/mod.rs:41-42 and the header's own line-20 comment), not generated by cargo build. The if [ -f include/databricks_kernel.h ] guard therefore always passes (the file is committed), so the behavior is fine — but the comment is misleading about where the file comes from.
| git config user.name "databricks-ci" | ||
| git config user.email "ci@databricks.com" | ||
| git checkout -b "$branch" | ||
| git add -A |
There was a problem hiding this comment.
🔵 Low — Co-authored-by: Isaac is not a valid trailer — GitHub only recognizes co-authors in the form Co-authored-by: Name <email@example.com>, so this line is silently ignored and adds nothing. Combined with the PR-body line "This pull request and its description were written by Isaac.", these read like leftover placeholder attribution being committed into automated PRs on the public driver repo. Recommend dropping the bare-name trailer and the personal-attribution line, or supplying a proper Name <email> for a bot identity.
There was a problem hiding this comment.
Verdict: 1 High · 1 Medium · 1 Low
CI-only workflow that adds per-platform C-ABI staticlib builds; build flags and staticlib crate-type check out against Cargo.toml. Main concern is the release-asset naming: the per-platform .sha256 files collide and --clobber each other on a tag release (F1, high), plus a checksum-filename mismatch (F2) and a Windows .lib-as-.a extension issue (F3). One stale comment (F4).
| ASSET="libdatabricks_sql_kernel-${{ matrix.platform }}.a" | ||
| cp "${{ matrix.archive }}" "$ASSET" | ||
| gh release upload "$TAG" \ | ||
| "$ASSET" "${{ matrix.archive }}.sha256" \ |
There was a problem hiding this comment.
🟠 High — The release-asset archive is namespaced per platform (libdatabricks_sql_kernel-${{ matrix.platform }}.a), but the checksum file is uploaded under its un-namespaced staged name ${{ matrix.archive }}.sha256. Four of the five matrix entries (darwin_arm64, darwin_amd64, linux_amd64, linux_arm64) all use archive: libdatabricks_sql_kernel.a, so all four upload a checksum asset named libdatabricks_sql_kernel.a.sha256 to the same release. With fail-fast: false (all jobs run) and --clobber, these four uploads overwrite each other — only the last-finishing platform's checksum survives on the release, and which one wins is a race. The archives themselves survive (they're namespaced) but four of them end up with no matching checksum, defeating the driver's stated pre-commit SHA-256 verification.
Namespace the checksum by platform the same way the archive is, e.g. compute/upload it against $ASSET:
ASSET="libdatabricks_sql_kernel-${{ matrix.platform }}.a"
cp "${{ matrix.archive }}" "$ASSET"
sha256sum "$ASSET" > "$ASSET.sha256" # or shasum -a 256, per-platform
gh release upload "$TAG" "$ASSET" "$ASSET.sha256" --repo "$GITHUB_REPOSITORY" --clobber
| cd "dist/${{ matrix.platform }}" | ||
| # Namespace the asset by platform so all five archives coexist on one | ||
| # release without name clashes. | ||
| ASSET="libdatabricks_sql_kernel-${{ matrix.platform }}.a" |
There was a problem hiding this comment.
🟡 Medium — The uploaded .sha256 records the staged filename, not the renamed release asset. sha256sum "${{ matrix.archive }}" writes a line <hash> libdatabricks_sql_kernel.a, but the archive asset attached to the release is renamed to libdatabricks_sql_kernel-${{ matrix.platform }}.a. A consumer that downloads the release asset and runs sha256sum -c libdatabricks_sql_kernel.a.sha256 will fail because no file named libdatabricks_sql_kernel.a exists — they must first rename back. The CI-artifact path (upload-artifact, unrenamed) is consistent, but the release-asset path is not. Recomputing the checksum against $ASSET (see F1) fixes both the collision and this filename mismatch.
| fi | ||
| cp "$SRC" "$OUT/${{ matrix.archive }}" | ||
| # Also emit the C header alongside so the driver can commit a matching | ||
| # header at the same revision. The header is generated into include/. |
There was a problem hiding this comment.
🔵 Low — The comment says "The header is generated into include/", but include/databricks_kernel.h is a committed, hand-maintained header (see include/databricks_kernel.h:20 "Hand-written header" and src/c_abi/mod.rs:41-42 "the header ... is hand-maintained"). The cbindgen-generated header is only a future follow-up. The if [ -f include/databricks_kernel.h ] guard works either way, but the comment is inaccurate and could mislead a maintainer into expecting the build to produce it.
3dee40b to
ed01f37
Compare
There was a problem hiding this comment.
Verdict: 1 High · 1 Medium · 2 Low
Solid, well-documented artifact-only build workflow. One real correctness bug in the release-upload step: the .sha256 asset is not namespaced per platform, so the four .a-producing jobs clobber each other's checksum on the release, and the Windows .lib is published under a .a name while its checksum's internal filename doesn't match — checksum verification against release assets is broken. Plus a stale comment about the header being generated.
| ASSET="libdatabricks_sql_kernel-${{ matrix.platform }}.a" | ||
| cp "${{ matrix.archive }}" "$ASSET" | ||
| gh release upload "$TAG" \ | ||
| "$ASSET" "${{ matrix.archive }}.sha256" \ |
There was a problem hiding this comment.
🟠 High — The archive asset is namespaced per platform (libdatabricks_sql_kernel-${{ matrix.platform }}.a), but the checksum asset is uploaded under its un-namespaced name ${{ matrix.archive }}.sha256. For the four non-Windows platforms that name is identical — libdatabricks_sql_kernel.a.sha256 — so with --clobber each job overwrites the previous platform's checksum on the shared release. The release ends up with a single libdatabricks_sql_kernel.a.sha256 (last-writer-wins across darwin_arm64/darwin_amd64/linux_amd64/linux_arm64), not one per platform.
Worse, the surviving checksum file's internal filename is libdatabricks_sql_kernel.a (the staging name), which matches none of the namespaced release assets, so a downstream sha256sum -c against the release assets cannot succeed. The comment on line 190 explicitly promises 'no name clashes,' but only the .a is namespaced.
Namespace the checksum too and regenerate it against the renamed asset.
| cd "dist/${{ matrix.platform }}" | ||
| # Namespace the asset by platform so all five archives coexist on one | ||
| # release without name clashes. | ||
| ASSET="libdatabricks_sql_kernel-${{ matrix.platform }}.a" |
There was a problem hiding this comment.
🟡 Medium — The release-asset name hardcodes the .a extension for every platform, including windows_amd64, whose archive is the MSVC databricks_sql_kernel.lib. The Windows release asset therefore becomes libdatabricks_sql_kernel-windows_amd64.a — a MSVC static/import .lib masquerading under a Unix .a extension. The staged/artifact copy keeps the correct .lib name (the Upload step uses dist/<platform>/ which contains databricks_sql_kernel.lib), so only the release-asset path is affected, creating an inconsistency between the CI artifact (.lib) and the release asset (.a) for the same platform. Derive the extension from matrix.archive (or add a matrix.ext) so Windows publishes ...windows_amd64.lib.
| exit 1 | ||
| fi | ||
| cp "$SRC" "$OUT/${{ matrix.archive }}" | ||
| # Also emit the C header alongside so the driver can commit a matching |
There was a problem hiding this comment.
🔵 Low — The comment states 'The header is generated into include/', but include/databricks_kernel.h is a committed, hand-maintained header (see include/databricks_kernel.h:20 and src/c_abi/mod.rs:42: 'the header at include/databricks_kernel.h is hand-maintained'). Nothing in this workflow generates it — the if [ -f include/databricks_kernel.h ] guard just copies the checked-in file. The 'generated' wording is misleading; consider 'committed into include/' to avoid implying a codegen step that doesn't run here.
| sha256sum "${{ matrix.archive }}" > "${{ matrix.archive }}.sha256" | ||
| elif command -v shasum >/dev/null 2>&1; then | ||
| shasum -a 256 "${{ matrix.archive }}" > "${{ matrix.archive }}.sha256" | ||
| else |
There was a problem hiding this comment.
🔵 Low — The three checksum branches emit different formats: sha256sum/shasum -a 256 write <hash> <filename> (the coreutils format sha256sum -c understands), while the certutil fallback writes only the bare hash (line 2 of certutil output, no filename, and possibly a trailing CR on Windows). A downstream verifier expecting a uniform coreutils-style .sha256 will fail on the certutil-produced file. In practice the windows-latest bash shell ships sha256sum, so the certutil branch is likely dead code — but if it ever fires the format diverges. Either drop the unreachable certutil branch or normalize its output to the <hash> <filename> shape.
There was a problem hiding this comment.
Verdict: 1 Medium · 1 Low
Artifact-only CI workflow to build the C-ABI staticlib per platform; build flags, feature (tls-rustls), lib name, and committed header path all check out against the repo. Two functional concerns on the release path: gh release upload requires a pre-existing release that nothing here creates (medium), and the uploaded .sha256 still names the pre-rename archive (low). The windows-gnu/native-runner and GitHub-hosted-runner-availability caveats are already documented inline in the workflow header, so I'm not re-raising them.
| asset="libdatabricks_sql_kernel-${platform}.a" | ||
| cp "$archive" "$asset" | ||
| cp "$sha" "${asset}.sha256" | ||
| gh release upload "$tag" "$asset" "${asset}.sha256" \ |
There was a problem hiding this comment.
🟡 Medium — gh release upload does not create a release — it fails with release not found if one does not already exist for the tag. On a v* tag push, GitHub does not auto-create a release, and no other workflow in this repo creates one (grep for gh release/release create/action-gh-release finds only this file). So the primary release path — push a v* tag → attach archives — will fail at this step unless a maintainer manually created the release first.
The workflow_dispatch + upload_release: true path is worse: on a branch dispatch GITHUB_REF_NAME is a branch name, so gh release upload <branch> targets a nonexistent release and fails.
Consider creating (or ensuring) the release first, e.g. gh release create "$tag" --generate-notes --verify-tag || true before the upload loop, or use an action that creates-or-updates the release.
| # Namespace the asset by platform so all archives coexist on one | ||
| # release. Keep the .a extension — every platform's archive IS a .a. | ||
| asset="libdatabricks_sql_kernel-${platform}.a" | ||
| cp "$archive" "$asset" |
There was a problem hiding this comment.
🔵 Low — The staged checksum file is generated over the archive named libdatabricks_sql_kernel.a (e.g. sha256sum libdatabricks_sql_kernel.a), so its contents embed that filename. When the asset is renamed to libdatabricks_sql_kernel-${platform}.a and its .sha256 uploaded alongside, the checksum file still references the old, un-namespaced name. A consumer running sha256sum -c libdatabricks_sql_kernel-<platform>.a.sha256 will fail because the filename recorded in the file no longer matches the asset on disk (the hash is still correct, but -c keys on the name). Consider regenerating/rewriting the .sha256 to reference the renamed asset, or documenting that only the hash value (not the filename) is authoritative.
There was a problem hiding this comment.
Verdict: 1 Medium
Solid, well-documented workflow; build/staging steps are consistent with the crate (staticlib crate-type, databricks_sql_kernel lib name, tls-rustls feature, and the committed include/databricks_kernel.h all verified). One medium concern: the release-assets upload step derives the release target from GITHUB_REF_NAME, which breaks the documented workflow_dispatch+upload_release path (branch name, not a tag) and also assumes a Release already exists for a pushed v* tag.
| set -euo pipefail | ||
| tag="${GITHUB_REF_NAME}" | ||
| shopt -s nullglob | ||
| uploaded=0 |
There was a problem hiding this comment.
🟡 Medium — The upload step derives the release target from GITHUB_REF_NAME, but that value is only a tag on the push/v* path. The workflow_dispatch + upload_release: true branch is a documented, first-class trigger for this job (see the if: at L219 and the input at L82), yet on a manual dispatch GITHUB_REF_NAME is the branch the workflow ran on (e.g. main), not a tag. gh release upload "main" ... then fails with "release not found", so the upload_release input can never actually succeed as described — there is no way for a dispatch run to name the release/tag to attach to.
Separately, even on the tag path this assumes a GitHub Release already exists for the tag. A bare git push of a v* tag does not create a Release; gh release upload errors on a missing release rather than creating one. Unless a prior release-creation step/workflow runs first, the advertised "push a v* tag → assets attached automatically" flow will fail on its first run.
Consider: (a) gating the upload on github.ref_type == 'tag' (or adding a tag workflow_dispatch input) so a dispatch run can't target a branch name, and (b) using gh release create "$tag" ... || true before upload, or gh release upload --clobber against a release you ensure exists.
Add build-c-abi-libs.yml with two jobs: 1. build: a native-runner matrix (darwin arm64/amd64, linux amd64/arm64, windows amd64) that builds libdatabricks_sql_kernel.a with the same flags as the Go driver's kernel-lib.sh (--release --locked --no-default-features --features tls-rustls), checksums each archive, and uploads them as workflow artifacts plus release assets on a v* tag. 2. publish-to-driver: gathers all platform archives and PUSHES them into the public databricks-sql-go repo — placing each into its nested internal/backend/kernel/kernellib/<platform> module, refreshing the committed header, moving KERNEL_REV to the tag commit, and opening a sync PR. Push (not pull) keeps the only cross-repo credential — a token with PR-write on the PUBLIC driver (DRIVER_PR_TOKEN, stored in this private repo) — out of the public repo, so no credential that could read this repo's SOURCE ever lives in the public driver. Only the compiled archive crosses the boundary. A kernel opt-in 'go get' build then links a committed archive with no Rust toolchain and no make kernel-lib step. Native runners avoid error-prone cross-compilation of a Rust staticlib with C++ transitive deps. Co-authored-by: Isaac Signed-off-by: Madhavendra Rathore <madhavendra.rathore@databricks.com>
Keep the all-platform native-runner matrix that builds libdatabricks_sql_kernel.a for darwin arm64/amd64, linux amd64/arm64, and windows amd64, checksums each, and uploads them as workflow artifacts + release assets on a v* tag. Remove the publish-to-driver job: this workflow no longer pushes into any other repo. Getting the archives into databricks-sql-kernel-bindings (one nested Go module per platform, lib/<platform>/) is a deliberate maintainer step — download the kernel-c-abi-<platform> artifact/asset and commit it — not automated cross-repo pushing. This removes the need for a cross-repo token. Co-authored-by: Isaac Signed-off-by: Madhavendra Rathore <madhavendra.rathore@databricks.com>
…t release job) Fix six correctness issues found on review: 1. Explicit --target per matrix entry (never host-inferred); staging reads the archive from target/<triple>/release/ accordingly. 2. Windows builds x86_64-pc-windows-GNU (MinGW), not the msvc default. cgo links a GNU .a, never an MSVC .lib (see the driver's cgo_windows.go). All five targets now emit a uniformly named libdatabricks_sql_kernel.a. 3. Release upload uses that uniform .a name (no more mislabeling a .lib as .a). 4. Release upload moved to a separate release-assets job that holds contents:write and runs once; the build job stays contents:read + id-token (top-level default is contents:read — least privilege). 5. Header copy hard-fails if include/databricks_kernel.h is missing (was a silent skip); confirmed the header is committed, not generated. 6. Dropped the fragile certutil SHA path for an openssl fallback. workflow_dispatch input is now a real boolean (type: boolean + inputs.*). Header documents the one unverifiable pre-merge assumption: this is the first workflow here to request GitHub-hosted macos/windows/arm runners — confirm the org allows those labels (fail-fast:false isolates any disallowed leg). Co-authored-by: Isaac Signed-off-by: Madhavendra Rathore <madhavendra.rathore@databricks.com>
… today Correct a wrong assumption after checking databricks-odbc: the databricks org enforces an IP allow list, so GitHub-hosted runners CANNOT be used at all (actions/checkout 403s before auth). The prior matrix used GitHub-hosted macos-*/ubuntu-*/windows-latest labels — every leg would have failed. Verified reality (databricks-odbc + this repo): the protected group has exactly two labels — linux-ubuntu-latest and windows-server-latest. No macOS label (self-hosted macOS ~Oct 2026; ODBC's macos.yml is dormant for this) and no arm64/Graviton label. So: - linux_amd64 -> group/linux-ubuntu-latest (runs now) - windows_amd64 -> group/windows-server-latest (runs now) - darwin_arm64 / darwin_amd64 / linux_arm64: commented out in the matrix until those labels exist (one-line uncomment each). darwin_arm64's real .a is already committed to the bindings repo separately (built on a mac). Windows still targets x86_64-pc-windows-gnu (Go cgo needs a MinGW .a, unlike ODBC's msvc C++ build) — but whether windows-server-latest has MinGW gcc is UNVERIFIED and flagged in the header; first Windows run confirms. Co-authored-by: Isaac Signed-off-by: Madhavendra Rathore <madhavendra.rathore@databricks.com>
0c398a5 to
06d73ec
Compare
There was a problem hiding this comment.
Verdict: 1 Medium · 1 Low
Solid, well-documented artifact-only build workflow; crate-type/header/setup-jfrog usage all check out. One medium concern: gh release upload requires a pre-existing release that nothing in the repo creates for v* tags, so the tag-push path will likely fail until a release is created; plus a low edge case where upload_release from a branch uses the branch name as the tag.
| asset="libdatabricks_sql_kernel-${platform}.a" | ||
| cp "$archive" "$asset" | ||
| cp "$sha" "${asset}.sha256" | ||
| gh release upload "$tag" "$asset" "${asset}.sha256" \ |
There was a problem hiding this comment.
🟡 Medium — gh release upload "$tag" ... uploads assets to an existing GitHub release — it does not create one. On a v* tag push, GitHub does not auto-create a release object, and no other workflow in this repo creates one for the tag (verified: only cargo-publish.yml and this file trigger on v* tags, neither runs gh release create). So the primary trigger — a tag push — will fail this step with release not found on the first asset unless a maintainer has already created the release manually.
Consider ensuring the release exists first, e.g.:
gh release view "$tag" --repo "$GITHUB_REPOSITORY" >/dev/null 2>&1 \
|| gh release create "$tag" --repo "$GITHUB_REPOSITORY" --generate-notes --verify-tagbefore the upload loop. Otherwise document that a release must be created out-of-band before this workflow runs.
| archive="$dir/libdatabricks_sql_kernel.a" | ||
| sha="$dir/libdatabricks_sql_kernel.a.sha256" | ||
| if [ ! -f "$archive" ]; then | ||
| echo "::error::missing archive for ${platform} at ${archive}" |
There was a problem hiding this comment.
🔵 Low — When triggered via workflow_dispatch with upload_release: true from a branch (the documented "run after merge" path), the release-assets job runs but tag="${GITHUB_REF_NAME}" resolves to the branch name (e.g. main), not a v* tag. gh release upload main ... will then fail because there is no release named after the branch. The upload_release dispatch option is therefore only usable when dispatching from a tag ref. Worth either guarding the job to tag refs only, or validating that $tag looks like a release tag before attempting upload.
|
Retiring this PR. The kernel C-ABI archive build+publish is moving to a dedicated release workflow in |
What
Adds
.github/workflows/build-c-abi-libs.yml: a native-runner matrix that builds the kernel C-ABI static library (libdatabricks_sql_kernel.a) for all five supported platforms and publishes them as workflow artifacts + release assets.Why
These archives are the per-platform Go bindings consumed by
databricks-sql-kernel-bindings(one nested Go module per platform), which the Go driver requires so a kernel opt-ingo getbuild links a prebuilt archive with no Rust toolchain and nomake kernel-libstep.Design
.ais built on its real OS/arch (cross-toolchains are error-prone for a Rust staticlib with C++ transitive deps like BoringSSL).build/kernel-lib.sh:cargo build --release --locked --no-default-features --features tls-rustls.kernel-c-abi-<platform>artifacts, each with the.a, its.sha256, and the header; release assets on av*tag). Getting archives into the bindings repo is a deliberate maintainer step (download → commit), not automated pushing — so no cross-repo token is needed.setup-jfrogOIDC,databricks-protected-runner-group..ais compiled + checksummed on its native runner.How to run after merge
workflow_dispatchfrom the Actions tab (or push av*tag). Requires the workflow to be on the default branch (this PR) and a user withworkflowscope.Verification status
This pull request and its description were written by Isaac.