Skip to content

ci: free runner disk space and pin the update runner to ubuntu-26.04 - #161

Merged
satotek merged 1 commit into
mainfrom
ci/free-runner-disk-space
Nov 4, 2026
Merged

satotek merged 1 commit into
mainfrom
ci/free-runner-disk-space

Conversation

@satotek

@satotek satotek commented Nov 4, 2026

Copy link
Copy Markdown
Owner

背景

今日(2026-11-04)の Bot: Update AI agent inputs が失敗していました。

these 639 paths will be fetched (380.0 MiB download, 12.5 GiB unpacked)
error: write of 12344 bytes: No space left on device

検証 step(nix build .#homeConfigurations."nosuke@linux-x86_64".activationPackage)が展開に 12.5 GiB を要求し、ubuntu-24.04 ランナーの空き(約 14 GiB)を超えました。前日は 11.8 GiB でギリギリ通っていた状態です。ログ中の codex-0.166.0 ... no substituter はディスク不足による巻き添えで、キャッシュには存在します。

変更

  • Free disk space step を追加: Nix 導入前に /usr/local/lib/android・/usr/share/dotnet・/opt/ghc・CodeQL・Docker イメージを削除。24.04 相当のランナーでも余裕ができます。
  • runs-on を ubuntu-26.04 に固定: ubuntu-latest は 2026-11 中(〜11/19)に 24.04 から 26.04 へ移行中で、世代が予告なく変わるため明示します。26.04 は 9 月に GA 済みです。

両方の flake 更新ワークフロー(AI / stable)に同じ変更を入れています。

検証

一時ワークフローで ubuntu-26.04 ランナー上での実行を確認済み(その後削除):

  • ディスク: 145 GB / 空き 88 GB(不要物削除後 110 GB、ビルド後 92 GB)— 24.04 の約 14 GB とは桁違い
  • nix build ... activationPackage が 3分42秒で成功
  • zizmor / actionlint による指摘なし(actionlint は 26.04 ラベルを知らない古い定義のため警告のみ、CI では未使用)

The validation build unpacks a 12.5 GiB closure and overflowed the
hosted runner's free space, so the 2026-11-04 AI input update stopped
before creating its PR. Remove the large preinstalled toolchains before
installing Nix, and pin the image to ubuntu-26.04 (GA since September)
so the disk size stays predictable while ubuntu-latest migrates.
@satotek
satotek merged commit da0fb4c into main Nov 4, 2026
2 checks passed
@satotek
satotek deleted the ci/free-runner-disk-space branch November 4, 2026 06:58
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