You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Multiple backend service versions used in same workflow execution #1547
Yesterday our workflows started failing when some steps were unable to restore from cache. Rerunning the workflow with debugging enabled revealed that action/cache@v4 was using different versions of its backing service— sometimes v1, other times v2. It seems the failure occurs when one version of the backing service is used to save the cache, and another version is used to restore from cache.
All the steps in the workflow are using the same version of the action (v4).
Incidentally, downgrading to action/cache@v4.1.2 seemed to solve the problem, but that version is deprecated and so was affected by the brownout today.
A workaround that unblocked us was adding ACTIONS_CACHE_SERVICE_V2: true environment variable. It isn't documented with the action, but was mentioned here. Since setting this var, the action has been using the v2 service consistently.
Reacted by Daniel François, Simoouqas, Robert Miller, mahdi-torabi and Matthew Gregg
Activity
admangum commentedon Feb 12, 2025
A workaround that unblocked us was adding
ACTIONS_CACHE_SERVICE_V2: trueenvironment variable. It isn't documented with the action, but was mentioned here. Since setting this var, the action has been using the v2 service consistently.aryairani commentedon Feb 13, 2025
Thank you.