-
Notifications
You must be signed in to change notification settings - Fork 370
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
Unable to reserve cache with key _state #1090
Comments
Hello @kamaradclimber , i see the log message To remove the cache manually, please click |
Hello @dsame thanks for your reply. |
I got a bit further this time:
Now the cache file exist correctly
so my understanding is that the method checking for cache existence is not working as expected because I would have assumed the cache to be found on the second run (and it did exist). |
I was recently hitting the same thing using the latest
fixed it for me. I'm not entirely sure, but what I think is happening is that these calls are using an octokit client with the I think giving it |
Indeed the workaround is correct:
Thanks @jonstacks . I’ll keep the permission until there is a fix in the action. |
Hello @kamaradclimber , i suspect
as it mentioned in the README could be enough since the action was tested with it. Thank you @jonstacks for the note, but the |
Ok I’ll try with those options as well. Readme was unclear about the fact it might be required to have those write permissions for statefulness. |
@dsame, sorry for the confusion. I worded it poorly, but didn't mean to suggest that the From the github docs,
I think this means that the permissions for the GITHUB_TOKEN might work without adding |
Hello @jonstacks , much thanks for the clarification. The problem is @action/cache uses undocumented limited API that is different from GitHub API and the using of 2 different clients is an known flaw caused by the limitation of the cache API and it is planned to be fixed. But, for now, to have Did this answer helps? |
@jonstacks i am closing the issue as resolved with workaround, but please feel free to reopen it or create new one if the problem still exists |
This is required to allow stateful operation as per actions/stale#1090
This is required to allow stateful operation as per actions/stale#1090
For people coming from google: I needed to add |
Description:
Processed issue cache cannot be saved, leading to going over same PRs over and over.
Action version:
b69b346
Platform:
Runner type:
Repro steps:
Just wait for the action to launch
Expected behavior:
Cache being used to go over all PR (1000+ in our repo).
Actual behavior:
Action go over the same 500PR.
In the action logs:
Cache file
_state
does exist but has been created once and never updated apparently.The text was updated successfully, but these errors were encountered: