Skip to content

fix(actions): reserve space for Linux runner setup - #510

Merged
iainlane merged 1 commit into
mainfrom
fix/linux-runner-space
Oct 21, 2026
Merged

iainlane merged 1 commit into
mainfrom
fix/linux-runner-space

Conversation

@iainlane

Copy link
Copy Markdown
Contributor

The Linux prepare action currently leaves only 1 GiB outside the Nix disk image. On runners where /mnt shares the root filesystem, setup must fit downloaded tools, action dependencies and the Cupboard archive in that reserve. New runner images cache Node 24.22.0 instead of the pinned 24.21.0, so setup downloads another Node installation and then runs out of space while extracting Cupboard.

Set mnt-safe-haven to 4096 MiB so Linux runner setup has 4 GiB outside /nix. This uses the existing Nothing but Nix input and applies whenever maximise-space is enabled.

The failing ARM job and x86 job both exhausted root space before any target builds started, despite retaining more than 80 GiB free under /nix.

Validation:

  • The 189 workflow, toolchain and action-reference tests pass before and after the change.
  • Generated action references remain unchanged.
  • Pre-commit checks, actionlint and the pedantic zizmor audit pass.
  • The full pnpm check run passed every group except remote-store end-to-end tests, which encountered a cache.nixos.org DNS failure and daemon disconnections. All 14 remote-store tests passed on a separate retry.

Nothing but Nix reserves only 1 GiB outside its disk image by default.
When /mnt shares the root filesystem, that reserve must also accommodate
the action dependencies and downloaded tools. Recent runner images no
longer cache our pinned Node version, and installing Node leaves too
little space to extract the Cupboard release archive.

Reserve 4 GiB through mnt-safe-haven in the Linux prepare action. Setup
then has room outside /nix. The root-safe-haven input controls later
expansion and does not affect this initial allocation.
@iainlane
iainlane added this pull request to the merge queue Oct 21, 2026
Merged via the queue into main with commit 84c7f59 Oct 21, 2026
33 checks passed
@iainlane
iainlane deleted the fix/linux-runner-space branch October 21, 2026 17:20
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