-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Cache Save/Restore is not working between GitHub Runner and Container, even with the same absolute path. #1455
Comments
Can confirm the issue: have a similar one in one of my projects |
@sabbott1877 I've found the reason of the issue. The solution for me was to add A better solution might be to allow to explicitly set a compression method via the action parameters. |
@vkuptcov can you sahre what its mean to install zstd can you sahre the steps?
thanks |
ya its working !!! thanks for the help ! |
Thank you for digging in further and finding a solution! I haven't been able to test it yet, but it seems plausible. I would have thought |
It looks like |
Yeah it's really bad. I'm having issues with it too. I read in another issue that making sure your relative path starts with |
See the issue to which I linked in |
Just ran into this problem too when trying to restore a I solved it by adding the following step before using the cache action: - name: Install zstd
run: apt-get update && apt-get install -y zstd |
@breadadams I tried it but didn't work for me |
See actions/cache#1455 (comment) for details
We're too seeing cache restoration issue, however in our case it appears that both runner type and container have effect on the result. I'd done 3 tests:
GitHub runner details
Ubicloud runner details
A workaround in our case was to make sure all jobs that share cache - run in the same type of runner. |
I'm trying to cache files in a standard runner and then access them in a container, but the files aren't being restored as expected.
I noticed the issue mentioned in #1444 (which would be great to have fixed) and read through the guidance in the cross-os-cache docs. From what I understand, the full absolute path for saving and restoring the cache must be identical across environments. In an attempt to address this, I tried placing the files in
/tmp/
, but even when the full absolute path matches and I've setenableCrossOsArchive: 'true'
, it still doesn't work. You can see the failure in this run: https://github.com/sabbott1877/cache-issues/actions/runs/10608423120/job/29402474270.The text was updated successfully, but these errors were encountered: