-
-
Notifications
You must be signed in to change notification settings - Fork 281
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Automated Bundler caching #52
Comments
#56 is merged, currently it's opt-in: - uses: ruby/setup-ruby@v1
with:
bundler-cache: true |
Is this already deployed and should work? With this step: - name: Setup Ruby
uses: actions/setup-ruby@v1
with:
ruby-version: '${{ matrix.ruby }}'
bundler-cache: true I am getting an error:
|
@DannyBen yes it's implemented and released. It's ruby/setup-ruby, not actions/setup-ruby. |
Oh... I thought it was the official actions/setup-ruby. Got a little confused there - and I see just as I am typing, that an issue "Should we deprecate this action" was linked from |
@DannyBen To clarify, I'm proposing to deprecate |
Yes, I totally understand it, and although the ruby/* action is not the "official by GitHub", it is still "official by Ruby" - which is good (similar to AWS actions that are developed by Amazon team). I expressed my opinion in that other ticket as well, thank you for clarifying. ... and the automatic cache is SUPER nice, makes the workflow file resemble the short and sweet travis YAML files. Thanks for this implementaiton. |
The github provided https://github.com/actions/cache had performance problems until the more recent releases. Does bundler caching use the newest version of that action? I searched the code a bit but I can't really tell. |
@scottjacobsen I think we can understand what versions are used from Line 5 in bdfdb53
Line 55 in bdfdb53
From https://www.npmjs.com/package/@actions/cache, 1.0.2 is the latest, and from https://www.npmjs.com/package/@actions/tool-cache, 1.6.0 is the latest right now. So it does not look like setup-ruby is using the latest versions. If that should be acted on, should perhaps be discussed in a new issue/PR? (EDIT: |
I'm not sure how the node package versions tie in with the versions on the cache action. I'll just point out the issue here that was resolved with version 2.1.0 of the cache action: actions/cache#267 I've been doing custom caching to S3, but would try to use the built in ruby-setup caching if it doesn't have the same slow caching problem that the cache action prior to 2.1.0 had. This appears to be the PR that fixed the cache issue in the node package: actions/toolkit#497 I believe it went out in V1.0 of |
@scottjacobsen My understanding is that the Looks like the action |
Thanks. I've been digging in a little. Working on a PR.
…On Fri, Aug 21, 2020 at 4:05 PM Patrik Ragnarsson ***@***.***> wrote:
@scottjacobsen <https://github.com/scottjacobsen> My understanding is
that the @actions/cache npm package is the way for other actions to
re-use the actions/cache action. See actions/cache#55
<actions/cache#55> (and actions/cache#313
<actions/cache#313>) for background on that.
Looks like the action actions/cache v2.1.1 (
https://github.com/actions/cache/blob/v2.1.1/package.json#L29) is using
@actions/cache 1.0.2. (The code for the npm package lives at
https://github.com/actions/toolkit/tree/main/packages/cache)
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#52 (comment)>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAAVHGGI6KNCHPPMMIDGTJLSB3VT3ANCNFSM4MXF2SCA>
.
--
Scott
|
https://github.com/actions/toolkit/blob/main/packages/cache/RELEASES.md But this action still uses 0.2.1, I see, let's fix that. |
EDIT above: I thought we already used |
This action is not detecting |
Okay, I implemented it, and it's now in master. |
Automated Bundler caching has been implemented for a while now and seems to work well: It's opt-in currently. I might try to enable it by default at some point, if I do so I'll create a new issue about that. |
I'd like to add automated Bundler caching in this action, since caching manually like https://github.com/ruby/setup-ruby/blob/master/README.md#caching-bundle-install is quite verbose and hard to get right (e.g., sass/sassc-ruby#183 (comment)).
It would be optional, not sure about the default yet.
For that to work, we need
actions/cache
to be a package, so this needs actions/cache#55 first.The text was updated successfully, but these errors were encountered: