Skip to content

perf: setup-chromeのinstall-dependenciesを無効化 - #10

Merged
sgash708 merged 1 commit into
mainfrom
perf/skip-chrome-deps
Aug 9, 2026
Merged

perf: setup-chromeのinstall-dependenciesを無効化#10
sgash708 merged 1 commit into
mainfrom
perf/skip-chrome-deps

Conversation

@sgash708

@sgash708 sgash708 commented Aug 9, 2026

Copy link
Copy Markdown
Owner

概要

「速さで戦う」施策の続き。前回のキャッシュ化後もSetup Chrome for Testingステップが7.7秒かかっており、詳細ログを見るとChrome自体はキャッシュヒットしているのに install-dependencies: true が毎回 apt-get update を走らせているのが原因と判明(パッケージリスト取得だけで約7秒)。

インストール対象の依存ライブラリ(libnss3, libatk等)はログ上すべて already the newest version — GitHub-hosted ubuntu-latestランナーに標準で揃っており、このapt処理自体が実質不要だった。

変更内容

  • install-dependencies: truefalse

実機検証(chromagic-demoでブランチ直接参照)

  • Setup Chrome for Testing: 7.7秒 → 0.35秒
  • storycapが8枚(4story×2viewport)すべて正常に撮影(Screenshot was ended successfully)、エラーなし
  • run success

累計の効果(未キャッシュ状態との比較)

状態 chromagicステップ全体
未キャッシュ(初回) 約31〜42秒
Chrome+依存+フォントキャッシュ 約23秒
+ install-dependencies無効化 約16秒

初回比で約60%以上の短縮。

リスク

GitHub-hosted ubuntu-latestランナーの将来のイメージ更新で依存ライブラリが欠ける可能性はゼロではないが、現状はプリインストール済み。壊れた場合はこのコミットをrevertすれば元に戻せる。

動作確認

  • actionlint OK (exit 0)
  • chromagic-demoで実機検証、エラーなし

🤖 Generated with Claude Code

apt-get updateだけで約7秒かかっており、依存ライブラリは全てGitHub-hosted
ubuntu-latestに標準で入っている(already the newest version)ことをログで
確認済み。chromagic-demoでブランチ直接参照して実際にstorycapが動くか
検証してからマージする。
@sgash708
sgash708 merged commit 1ccd3b8 into main Aug 9, 2026
2 checks passed
@sgash708
sgash708 deleted the perf/skip-chrome-deps branch August 9, 2026 02:41
@github-actions

github-actions Bot commented Aug 9, 2026

Copy link
Copy Markdown

🎉 This PR is included in version 1.2.3 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant