Skip to content

fix(host): build fctl for macOS again, and check it in CI - #450

Merged
kalaspuff merged 1 commit into
mainfrom
fctl/894-error-on-a-release-step-yesterday-when-i
Nov 7, 2026
Merged

kalaspuff merged 1 commit into
mainfrom
fctl/894-error-on-a-release-step-yesterday-when-i

Conversation

@fctl-sh

@fctl-sh fctl-sh Bot commented Nov 7, 2026 •

Copy link
Copy Markdown
Contributor

Summary

The v0.30.2 release failed building fctl for aarch64-apple-darwin: the Firecracker driver (#439, #444) uses fallocate, O_PATH and statvfs's ST_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 without O_PATH). A Linux-only helper in docker_access.rs moved into its linux module, 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 warnings on a macos-15 runner, and the required "cargo xtask check" waits for it. docs/development.md says 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 (and x86_64-apple-darwin) with zig and the pinned cargo-zigbuild, which built both binaries; Clippy with -D warnings passes for macOS and Linux, and fctl-host's firecracker and docker_access tests and xtask's tests pass.

Worth confirming

  • Decision: the macOS job gates "cargo xtask check", which 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.
  • Decision: the fix doesn't cut a release itself; the next release (v0.30.3 or later) builds from main once 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 check now 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 statvfs ST_NODEV flag) 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 warnings over fctl and fctl-host on a macos-15 runner, so Linux-only code fails a pull request instead of a release. docs/development.md explains 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

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.
@fctl-sh
fctl-sh Bot requested a review from kalaspuff as a code owner November 7, 2026 12:15
@kalaspuff
kalaspuff merged commit 8673f96 into main Nov 7, 2026
13 checks passed
@kalaspuff
kalaspuff deleted the fctl/894-error-on-a-release-step-yesterday-when-i branch November 7, 2026 12:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

1 participant