CI: Include patch version in bundler cache #5221
Draft
+6
−7
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.
What does this PR do?
I wasn't able to reproduce it since the cache has been updated, but I believe that errors is like:
happen because the Ruby version (4.0.0 preview3) changed (to 4.0.0) without a change to the cache parameter.
This PR changes that to now use the full Ruby version string, which in includes patch level information, as well as OS and CPU architecture.
Examples:
ruby 4.0.0 (2025-12-25 revision 553f1675f3) +PRISM [arm64-darwin24]ruby 4.0.0preview3 (2025-12-18 master cfa3e7cf75) +PRISM [arm64-darwin24]truffleruby 23.0.0-preview1, like ruby 3.1.3, GraalVM CE Native [aarch64-darwin]jruby 9.4.0.0 (3.1.0) 2022-11-23 95c0ec159f OpenJDK 64-Bit Server VM 25.472-b08 on 1.8.0_472-b08 [arm64-darwin]Then cache key used by GH actions is not a direct file path, it's just a string, so I chose to simply keep the string as is.
Change log entry
No.
Additional Notes:
How to test the change?