Multiple workflow jobs with same ruby - Bundler cache issue?
還沒有人認領這個 Issue。
- 主要語言
- JavaScript
- 星號
- 990
- 分支
- 369
- 平均合併
- 18 分鐘
- 30 天內合併 PR
- 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 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
- Fork 儲存庫,在一個分支上完成修改。
- 送出 Pull Request,並在描述裡引用這個 Issue 編號。
研究方向
先檢視共用 Ruby 版本的 workflow 檔案,以及 issue 中描述的快取相關記錄,接著將它們與 pull request #3726 中的快取版本變更進行比較。判斷重疊的 job 是否可能還原或移除不相容的 Rails gems;確認快取行為,並記錄具體修正方案或說明後,即視為完成。
由索引模型根據 Issue 內容生成。
評估
- 技術堆疊
- github-actions, ruby
- 領域
- ci-cd
- Issue 類型
- 缺陷
- 難度
- 4/5
- 預估耗時
- 3-5 天
- 活躍度
- 停滯
- 描述清晰度
- 需要釐清
- 新手友好度
- 25/100