Cache always misses for hidden directories
See original GitHub issueI’ve noticed that in one of my private repos, the cache is never hit even though the cache is small and at the end of each run it says it successfully saved.
Cache not found for input keys: Linux-eslint-e2e650427648991b0a4acaf9d0a8af37ce90a05d, Linux-eslint-.
Post job cleanup.
/bin/tar -cz -f /home/runner/work/_temp/random-hash/cache.tgz -C /home/runner/work/myproject/myproject/.cache/eslint .
Cache saved successfully
Here’s the workflow step:
- name: cache eslint
uses: actions/cache@v1
with:
path: ./.cache/eslint
key: ${{ runner.os }}-eslint-${{ github.sha }}
restore-keys: |
${{ runner.os }}-eslint-
Are there any reasons for this? I’m assuming caching isn’t supported in free-tier private repos yet but I haven’t seen that anywhere in the documentation.
Issue Analytics
- State:
- Created 4 years ago
- Comments:9 (3 by maintainers)
Top Results From Across the Web
Application Data: Cache-only Share or Hidden Folder?
Hidden folders do have the disadvantage of not being shown sometimes, for example when using some GUI to browse. Just tried it with...
Read more >How to Uncover and Delete Hidden Files Cluttering Your Mac ...
Discover how to reclaim disk space on your Mac by uncovering and deleting unneeded, hidden files cluttering your Mac.
Read more >560 GB of missing storage space - Microsoft Community
Problem 1: Lack of free space. Press Windows key + R Type: C:\Windows\Logs\CBS Hit Enter Delete any log files found in that folder....
Read more >How to Get More Value From Your File System Directory Cache
A miss in the PCC can indicate a permission denied or that the permission check has not executed recently. Figure 4: Optimized Linux...
Read more >Backup your home directory with rsync and skip useless folders
Could try this if directories and files within are all you want backing-up. Excludes all hidden directories. rsync -aP --exclude=.* /home/$USER/ ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
That would make sense. It would be nice to be able to download caches on our end in order to debug runs and see what’s being restored.
I’ve figured it out after hours. 😫
For some reason,
actions/cache
does not like hidden directories being cached. That is,.cache
in my case. It’s okay with zipping up and saving them, but the restore always 204s (no content).Renaming
.cache
to justcache
or something else fixes it. But I guess this is a bug likely in the backend since the POST goes through fine with the correct size.EDIT: I had some issues with hidden files too, but might be unrelated to this.