question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Cache always misses for hidden directories

See original GitHub issue

I’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:closed
  • Created 4 years ago
  • Comments:9 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
jahedcommented, Nov 12, 2019

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.

1reaction
jahedcommented, Nov 10, 2019

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 just cache 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.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found