Repository navigation
Prune downloaded gems before saving the Bundler cache - #983
Open
businessdeveloper69 wants to merge 1 commit into
Open
businessdeveloper69 wants to merge 1 commit into
businessdeveloper69 wants to merge 1 commit into
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes #645.
When
bundler-cachesaves a new archive, the installed gems and the downloaded.gemfiles can both be present invendor/bundle. In a replay of Rack’s CI configuration, the downloads accounted for 3,262,976 bytes across ten files.Use Bundler’s
BUNDLE_PRUNE=cachesetting for the install that precedes a cache save. An explicit environment, project or global setting takes precedence. Exact restores and merge-group jobs skip the settings probe. The added CI test exercises the packaged action with Bundler 4.1.On Ruby head with Bundler 4.1.0, the compressed Rack cache fell from 11,342,609 to 8,138,092 bytes (28.25%). Upgrading an older cache removed only the ten downloads. All 1,254 other files matched by SHA-256. Rack’s 1,309 tests passed with two skips after a fresh restore. Bundler 2.7.2 on CRuby and 2.6.3 on JRuby installed and cached successfully. These checks used the packaged action, real tar/zstd archives and a local cache endpoint. The generated workflows, actionlint and an independent build of the distributed JavaScript also passed. The hosted multi-OS matrix remains to run.
AI assisted.