Skip to content

fix(ci): Rust の実行ファイルをキャッシュの復元対象から外す - #147

Merged
owayo merged 1 commit into
mainfrom
codex/fix-macos-rustup-cache
Nov 12, 2026
Merged

owayo merged 1 commit into
mainfrom
codex/fix-macos-rustup-cache

Conversation

@owayo

@owayo owayo commented Nov 12, 2026 •

Copy link
Copy Markdown
Owner

macOS の CI が、Rust 導入後のキャッシュ復元を挟むと make setup 内の rustup の SIGKILL で停止していたため、quality と build の Swatinem/rust-cache に cache-bin: false を指定します。mise が使う実行ファイルの上書きを防ぎ、Cargo の依存とビルド結果のキャッシュは維持します。

ログでは mise の導入成功 → ~/.cargo/bin を含むキャッシュの復元 → rustup の SIGKILL を確認しています。macOS のコード署名キャッシュの不整合が有力ですが、署名診断そのものは失敗ログに含まれていません。パス一覧の変更により GitHub cache の version も変わるため、旧 bin 付きキャッシュは復元されません。

英語・日本語の開発文書に、この設定と理由を記載しました。

検証:

Fixes #146

macOS の quality ジョブでは mise による Rust の導入に成功した後、
Cargo bin を含むキャッシュの復元を挟むと make setup 内の rustup が
SIGKILL され、検査と後続のビルドが実行されなくなっていた。

quality と build の rust-cache に cache-bin: false を指定し、
mise が使用する rustup とプロキシの上書きを防ぐ。
レジストリと target のキャッシュ、ビルドのターゲット別キーは維持する。
キャッシュするパスの変更により古い bin 付きのキャッシュとも分離される。
開発文書の英語版と日本語版に設定と理由を追記した。

検証: actionlint 1.7.12 で ci.yml を検査し、git diff --check も成功。
macOS 固有の起動と各ターゲットの検査・ビルドは PR の CI で確認する。

Fixes #146
@coderabbitai

coderabbitai Bot commented Nov 12, 2026 •

Copy link
Copy Markdown
Pre-merge checks: Passed 1 · Inconclusive 1

Failed Failed checks: 1 inconclusive

Check name Status Explanation Resolution
Title check Pending This assessment has not completed. The check will be retried on the next pre-merge check run.
Passed Passed checks: 1 passed

Check name Status Explanation
Description Check Passed Check skipped - CodeRabbit’s high-level summary is enabled.
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

@owayo
owayo merged commit 71f428b into main Nov 12, 2026
8 checks passed
@owayo
owayo deleted the codex/fix-macos-rustup-cache branch November 12, 2026 03:47
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.

macOS CI が Cargo bin キャッシュの復元後に rustup の SIGKILL で失敗する

1 participant