Skip to content

Commit bcfab28

Browse files
ci(kernel-e2e): disable bundled rust-cache in setup-rust-toolchain
actions-rust-lang/setup-rust-toolchain invokes Swatinem/rust-cache internally, which runs `cargo metadata` from the workflow's working directory. Our job's CWD is the connector repo root (no Cargo.toml there — the kernel checkout is in a subdir), so the bundled cache attempt fails with exit 101 and dumps a Node stack trace into the log. It's cosmetic — the action handles its own errors — but reads as a failure on first glance, and the bundled cache races with the explicit rust-cache step we already configure with the correct `workspaces: databricks-sql-kernel` path. Disabling the bundled cache leaves a single, correctly-keyed rust-cache invocation and cleans up the log. Co-authored-by: Isaac Signed-off-by: Vikrant Puppala <vikrant.puppala@databricks.com>
1 parent 1b9ff05 commit bcfab28

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

.github/workflows/kernel-e2e.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -254,6 +254,13 @@ jobs:
254254
# are on PATH when the kernel build step runs.
255255
- name: Set up Rust toolchain
256256
uses: actions-rust-lang/setup-rust-toolchain@1780873c7b576612439a134613cc4cc74ce5538c # v1.15.2
257+
with:
258+
# Disable the bundled Swatinem/rust-cache invocation; it tries
259+
# `cargo metadata` from the connector repo root (no Cargo.toml)
260+
# and dumps a scary-looking exit-101 stack into the log even
261+
# though the action ignores it. We run our own rust-cache step
262+
# below with the correct workspaces path.
263+
cache: false
257264

258265
- name: Cache cargo build artifacts (keyed on kernel SHA)
259266
uses: Swatinem/rust-cache@98c8021b550208e191a6a3145459bfc9fb29c4c0 # v2.8.0

0 commit comments

Comments
 (0)