ci: linux-nvidiaビルドのディスクスペース不足を解消 - #2812
Conversation
Co-authored-by: Hiroshiba <4987327+Hiroshiba@users.noreply.github.com>
エンジンダウンロード用の一時ディレクトリを作成し、 処理完了後に削除することでディスクスペースを確保する。 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
There was a problem hiding this comment.
Pull Request Overview
This PR resolves disk space issues in the linux-nvidia build by properly cleaning up temporary files created during the engine download process. The GitHub Actions runner image update (ubuntu22/20251021.115) on 2025-10-27 exposed a problem where approximately 4GB of temporary files (2GB of 7z split files + 2GB extracted directory) were left in $TEMPDIR, causing ENOSPC: no space left on device errors during AppImage repackaging.
Key Changes:
- Isolates all temporary download files in a dedicated
$TEMPDIR/download-enginesubdirectory - Adds explicit cleanup step to remove the entire temporary directory after extraction
- Preserves engine version information in environment variable before cleanup
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
| shell: bash | ||
| run: | | ||
| TEMPDIR=$(echo '${{ runner.temp }}' | sed -e 's_\\_/_g') | ||
| TEMPDIR=$(echo '${{ runner.temp }}/download-engine' | sed -e 's_\\_/_g') |
There was a problem hiding this comment.
あとで消しやすいように1つディレクトリを掘るようにしてみました
|
修正を反映したブランチでBuildワークフローを実行しました。 ✅ テストが完了し、linux-nvidiaビルドが正常に完了しました。 特にlinux-nvidia-prepackageジョブでディスクスペース不足エラーが発生せず、ビルドが成功しています。 実行結果: https://github.com/VOICEVOX/voicevox/actions/runs/18850444220 |
|
🚀 プレビュー用ページを作成しました 🚀 更新時点でのコミットハッシュ: |
There was a problem hiding this comment.
Pull Request Overview
Copilot reviewed 1 out of 1 changed files in this pull request and generated 1 comment.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
|
マージします。 |
2025-10-27以降、GitHub Actions Runnerイメージがubuntu22/20251021.115に更新されたことにより、linux-nvidiaビルドが
ENOSPC: no space left on deviceエラーで失敗しています。エンジンダウンロード処理が一時ファイル(7z分割ファイル約2GB + 展開ディレクトリ約2GB)を$TEMPDIRに残したままになっており、AppImage再パッケージ時にディスクスペースが不足していました。変更内容
$TEMPDIR/download-engineを作成Cleanup tempdirステップでrm -rf $TEMPDIRによりサブディレクトリごと削除実装
影響範囲は
.github/actions/download-engine/action.ymlのみで、他のビルドターゲットには影響しません。