Skip to content

fix(firecracker-ctl): add sccache mount for chisel builder compatibility#9581

Merged
h0lybyte merged 1 commit intodevfrom
trunk/fix-fc-docker3-1775241437
Apr 3, 2026
Merged

fix(firecracker-ctl): add sccache mount for chisel builder compatibility#9581
h0lybyte merged 1 commit intodevfrom
trunk/fix-fc-docker3-1775241437

Conversation

@h0lybyte
Copy link
Copy Markdown
Member

@h0lybyte h0lybyte commented Apr 3, 2026

Summary

Add --mount=type=cache,target=/usr/local/sccache,id=sccache to all cargo steps and ENV CARGO_INCREMENTAL=0 to build stages, matching all other Axum services.

Root cause

The chisel builder image (ghcr.io/kbve/chisel-ubuntu-axum:24.04-builder) has RUSTC_WRAPPER=sccache baked in. Without an sccache cache mount target, cargo metadata (called by cargo chef prepare) fails because sccache can't write its cache. The other Axum Dockerfiles all include this mount — firecracker-ctl was missing it.

Fixes #9571

Test plan

  • CI Docker build passes for firecracker-ctl

The chisel builder image has RUSTC_WRAPPER=sccache baked in. Without
an sccache cache mount, cargo metadata fails at the planner stage.
Add --mount=type=cache,target=/usr/local/sccache,id=sccache to all
cargo steps and ENV CARGO_INCREMENTAL=0, matching other Axum services.
@h0lybyte h0lybyte force-pushed the trunk/fix-fc-docker3-1775241437 branch from 9a68899 to 641f15d Compare April 3, 2026 19:54
@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented Apr 3, 2026

Dependency Review

✅ No vulnerabilities or license issues or OpenSSF Scorecard issues found.

Snapshot Warnings

⚠️: No snapshots were found for the head SHA 641f15d.
Ensure that dependencies are being submitted on PR branches and consider enabling retry-on-snapshot-warnings. See the documentation for more information and troubleshooting advice.

Scanned Files

None

@h0lybyte h0lybyte merged commit ea1e425 into dev Apr 3, 2026
1 check passed
@h0lybyte h0lybyte deleted the trunk/fix-fc-docker3-1775241437 branch April 3, 2026 19:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant