Repository navigation
ci: cache gem downloads - #3247
Conversation
There was a problem hiding this comment.
Cursor Bugbot has reviewed your changes using default effort and found 1 potential issue.
❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.
Reviewed by Cursor Bugbot for commit 6a3a2f8. Configure here.
| uses: actions/cache/save@55cc8345863c7cc4c66a329aec7e433d2d1c52a9 # v6.1.0 | ||
| with: | ||
| path: ~/.bundle/cache | ||
| key: ${{ steps.lookup.outputs.cache-primary-key }} |
There was a problem hiding this comment.
Cache job failure fails the tests
Medium Severity
The new gem-cache job is not in test.needs, so spec jobs run in parallel, but it still counts toward the reusable workflow result. A timeout, bundle install flake, or cache save error fails the caller test job and skips codecov, even when every spec cell passed. That contradicts the intended fallback path where tests proceed from the previous cache.
Reviewed by Cursor Bugbot for commit 6a3a2f8. Configure here.
6a3a2f8 to
137ac19
Compare
PR risk: mediumFor commit The model rated this change low. It was raised to medium because:
This label is a hint for reviewers, not an approval. |
137ac19 to
7ecb1ac
Compare


Every test job re-downloaded its gems from rubygems.org, cloned
ruby/debugfrom GitHub and recompiled native extensions.BUNDLE_GLOBAL_GEM_CACHE=true, so Bundler keeps gems, compiled extensions, git checkouts and the index in~/.bundle/cache.gem-cachejob per gem installs every cell once (bin/test --install-only) and saves one cache, keyed by the gem's lockfiles. It only does this when the lockfiles change.With a warm cache,
bundle installtakes about 3s instead of 20–70s. It downloads no gems and no git checkouts, and compiles nothing; only the index metadata is checked. The median job time drops from 52s to 18s. The caches total about 555 MB across the seven gems.