Skip to content

ci: linux-nvidiaビルドのディスクスペース不足を解消 - #2812

Merged
Hiroshiba merged 5 commits into
mainfrom
copilot/fix-linux-nvidia-build-error
Oct 28, 2025
Merged

ci: linux-nvidiaビルドのディスクスペース不足を解消#2812
Hiroshiba merged 5 commits into
mainfrom
copilot/fix-linux-nvidia-build-error

Conversation

Copilot AI commented Oct 27, 2025

Copy link
Copy Markdown
Contributor

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を作成
  • すべての一時ファイル(releases.json、target.json、.7z.、tmp-extract)をサブディレクトリに配置
  • 展開完了後、Cleanup tempdirステップでrm -rf $TEMPDIRによりサブディレクトリごと削除
  • バージョン情報は削除前に環境変数へ保存

実装

# 変更前: ファイルが$TEMPDIRに散在し、クリーンアップされない
TEMPDIR=${{ runner.temp }}
curl ... > $TEMPDIR/releases.json
7z x -o$TEMPDIR/tmp-extract $TEMPDIR/*.7z.*

# 変更後: サブディレクトリに隔離し、使用後に削除
TEMPDIR=${{ runner.temp }}/download-engine
curl ... > $TEMPDIR/releases.json
7z x -o$TEMPDIR/tmp-extract $TEMPDIR/*.7z.*
rm -rf $TEMPDIR  # 約4GB削減

影響範囲は.github/actions/download-engine/action.ymlのみで、他のビルドターゲットには影響しません。

Co-authored-by: Hiroshiba <4987327+Hiroshiba@users.noreply.github.com>
Copilot AI changed the title [WIP] Fix disk space issue in linux-nvidia build workflow fix: clean up temporary download directory to resolve linux-nvidia build disk space issue Oct 27, 2025
Copilot AI requested a review from Hiroshiba October 27, 2025 17:15
エンジンダウンロード用の一時ディレクトリを作成し、
処理完了後に削除することでディスクスペースを確保する。

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
@Hiroshiba Hiroshiba changed the title fix: clean up temporary download directory to resolve linux-nvidia build disk space issue ci: linux-nvidiaビルドのディスクスペース不足を解消 Oct 27, 2025
@Hiroshiba
Hiroshiba requested a review from Copilot October 27, 2025 17:32

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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-engine subdirectory
  • 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')

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

あとで消しやすいように1つディレクトリを掘るようにしてみました

@Hiroshiba
Hiroshiba marked this pull request as ready for review October 27, 2025 17:36
@Hiroshiba

Hiroshiba commented Oct 27, 2025

Copy link
Copy Markdown
Member

修正を反映したブランチでBuildワークフローを実行しました。

テストが完了し、linux-nvidiaビルドが正常に完了しました。

特にlinux-nvidia-prepackageジョブでディスクスペース不足エラーが発生せず、ビルドが成功しています。

実行結果: https://github.com/VOICEVOX/voicevox/actions/runs/18850444220

@voicevox-preview-pages

Copy link
Copy Markdown

🚀 プレビュー用ページを作成しました 🚀

更新時点でのコミットハッシュ:33db381

@Hiroshiba
Hiroshiba requested a review from Copilot October 27, 2025 18:30

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

Comment thread .github/actions/download-engine/action.yml

@sevenc-nanashi sevenc-nanashi left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

まぁ問題なさそう。

@sevenc-nanashi

Copy link
Copy Markdown
Member

マージします。

@sevenc-nanashi
sevenc-nanashi added this pull request to the merge queue Oct 27, 2025
@github-merge-queue
github-merge-queue Bot removed this pull request from the merge queue due to failed status checks Oct 27, 2025
@sevenc-nanashi
sevenc-nanashi added this pull request to the merge queue Oct 28, 2025
@github-merge-queue
github-merge-queue Bot removed this pull request from the merge queue due to failed status checks Oct 28, 2025
@Hiroshiba
Hiroshiba added this pull request to the merge queue Oct 28, 2025
Merged via the queue into main with commit 8be2253 Oct 28, 2025
27 checks passed
@Hiroshiba
Hiroshiba deleted the copilot/fix-linux-nvidia-build-error branch October 28, 2025 02:52
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.

GitHub ActionsのBuildワークフローでlinux-nvidiaビルドがディスクスペース不足で失敗

4 participants