@actions/cache Package Deprecation Notice. Upgrade to the latest 4.0.0
or higher before February 1st 2025
#1890
Replies: 3 comments 5 replies
-
@Link- Can I put a request to keep the fallback mechanism for save/restore V1 in toolkit/packages/cache/src/cache.ts Lines 73 to 104 in b7a00a3 This is used in quite a few places to transparently replace the Azure backend with another one (overriding the
With v2, the calls go directly through the azure blob sdk, which would be harder to replace. |
Beta Was this translation helpful? Give feedback.
This comment was marked as spam.
This comment was marked as spam.
-
Updating to twirp-ts is apparently unmaintained |
Beta Was this translation helpful? Give feedback.
-
Context
The cache backend service has been rewritten from the ground up for improved performance and reliability. In version
4.0.0
of the @actions/cache package, we introduced a more consistent API contract with the cache backend service.The new service will decrease the cache upload duration by up to
~80%
when using GitHub Hosted Runners. The cache download performance will be the same. If you’re using self-hosted runners the upload duration is expected to improve, or in the worst-case stay the same. Cache upload/download performance depends on your network topology, hardware and geographical region used for hosting among other factors.We will start rolling out the new backend service gradually as of February 1st, 2025. We will issue further guidance as we approach this deadline.
The legacy backend service will be sunset shortly after February 1st, 2025. We will not support both services at the same time. Refer to the migration guide below for further information on how to prevent disruption to your teams.
Migration guide
How to upgrade
The new changes to the @actions/cache package should be seamless and fully backward compatible. You are not expected to change anything in your code to use the new service.
In order to upgrade, simply bump up the version of
@actions/cache
in yourpackage.json
to4.0.0
(or above). We will be releasing bug fixes and improvements throughout the period leading to February 1st, 2025.Here is a sample
package.json
for your reference.Maintainers of solutions that depend on @actions/cache
Please upgrade the @actions/cache package to
4.0.0
or higher and release new versions of your solutions as soon as possible.The API changes are backward compatible and enabled via feature flags to facilitate the gradual & safe rollout of the new service.
If you are a maintainer of any
setup-*
action, please comment on this discussion and we will look into enabling the new service for you on a test repository, so that you can test the change before it's rolled out globally.All of the previously released versions in the list below are now deprecated:
GitHub Enterprise Server
This deprecation will not impact any existing versions of GitHub Enterprise Server that are currently in use.
Beta Was this translation helpful? Give feedback.
All reactions