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