Multiple workflow jobs with same ruby - Bundler cache issue?
まだ誰も着手していません。
- 主要言語
- JavaScript
- スター
- 990
- フォーク
- 369
- 平均マージ
- 18分
- マージ済み PR(30日)
- 3
説明
Puma runs several workflow files, and there is overlap between the Ruby versions. For example, Ruby head is used in both the Puma CI workflow and a workflow that tests with turbo-rails. The turbo-rails workflow installs Rails.
Recently I noticed logs for the CI run loading a 'close key' match cache, and it logged removing all the Rails gems. Or, with multiple jobs with matching Ruby vesions, the cache may have .misses'.
I added more info to the key with cache-version (see https://github.com/puma/puma/pull/3726/files), but there might be a better way.
Not sure if anyone else has run into this issue.
コントリビューションガイド
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
調査の方向性
まず、Ruby バージョンを共有している workflow ファイルと、issue に記載されているキャッシュ関連のログを確認し、次に pull request #3726 のキャッシュバージョンの変更と比較します。重複するジョブによって互換性のない Rails gems が復元または削除される可能性があるかを判断します。キャッシュの動作が確認され、具体的な修正または説明が文書化されれば完了です。
索引モデルが issue の本文から書いたものです。
評価
- 技術スタック
- github-actions, ruby
- 領域
- ci-cd
- issue の種類
- バグ
- 難易度
- 4/5
- 見積もり時間
- 3〜5日
- 活発さ
- 停滞
- 明瞭さ
- 説明が足りない
- 初心者へのやさしさ
- 25/100