Repository navigation
fix(host): build fctl for macOS again, and check it in CI - #450
Merged
Merged
Conversation
The firecracker driver used fallocate, O_PATH and statvfs's ST_NODEV, which only Linux has, so v0.30.2's release failed building fctl for aarch64-apple-darwin. They are now Linux-only, with stand-ins elsewhere (the driver never runs there). A new CI job runs Clippy over fctl and fctl-host on a Mac, and cargo xtask check waits for it.
kalaspuff
approved these changes
Nov 7, 2026
kalaspuff
deleted the
fctl/894-error-on-a-release-step-yesterday-when-i
branch
November 7, 2026 12:20
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
The v0.30.2 release failed building fctl for
aarch64-apple-darwin: the Firecracker driver (#439, #444) usesfallocate,O_PATHand statvfs'sST_NODEV, which only Linux has, and nothing but the Release workflow ever built fctl for macOS. Those calls are now#[cfg(target_os = "linux")], with stand-ins elsewhere (the driver never runs on a Mac: no zero-page hole punching, no nodev check, files opened withoutO_PATH). A Linux-only helper indocker_access.rsmoved into itslinuxmodule, which left fctl-host free of warnings on macOS.To catch this before the next release, a new CI job, "fctl on macOS", runs
cargo clippy -p fctl -p fctl-host --all-targets -- -D warningson amacos-15runner, and the required "cargo xtask check" waits for it.docs/development.mdsays how to run the same check from Linux.Verified by running the failing release step itself,
cargo xtask dist build fctl --target aarch64-apple-darwin(andx86_64-apple-darwin) with zig and the pinned cargo-zigbuild, which built both binaries; Clippy with-D warningspasses for macOS and Linux, and fctl-host's firecracker and docker_access tests and xtask's tests pass.Worth confirming
main's ruleset requires, so a Linux-only call breaks a pull request instead of a release. It costs a macOS runner (free for public repositories) on every pull request.mainonce this is merged.fctl session
Note
Low risk. The Rust changes only add Linux-only guards around calls the Firecracker driver makes, so Linux behavior is unchanged. The CI change adds a macOS job that the required
cargo xtask checknow waits for.What it does. Fixes the v0.30.2 macOS release build failure by putting the Firecracker driver's Linux-only calls (
fallocate,O_PATH, the statvfsST_NODEVflag) behind#[cfg(target_os = "linux")], with no-op stand-ins on other systems. Adds a "fctl on macOS" CI job that runs Clippy with-D warningsoverfctlandfctl-hoston amacos-15runner, so Linux-only code fails a pull request instead of a release.docs/development.mdexplains how to run the same check from Linux.New required CI job.
cargo xtask check, which main's ruleset requires, now also waits for the macOS job, so every pull request uses a macOS runner and a macOS-only failure blocks merging.fctl review's first look at
e115a03· 5 files, +82 −25 · Review agent settings