cache icon indicating copy to clipboard operation
cache copied to clipboard

Post run step for `julia-actions/cache@v1` has mysterious failure

Open omus opened this issue 2 years ago • 2 comments

The step itself doesn't fail but maybe it should?

Post job cleanup.
Post job cleanup.
      Active manifest files: 2 found
      Active artifact files: 9 found
      Active scratchspaces: 1 found
     Deleted no artifacts, repos, packages or scratchspaces
X Failed to get caches: HTTP 403: Resource not accessible by integration (https://api.github.com/repos/x/y/actions/caches?per_page=100&sort=last_accessed_at&direction=desc)
┌ Error: An error occurred while managing existing caches
│   e =
│    failed process: Process(`gh cache list --limit 100 --repo x/y`, ProcessExited(1)) [1]
│    
└ @ Main ~/work/_actions/julia-actions/cache/v1/handle_caches.jl:64
Post job cleanup.
/usr/bin/tar --posix -cf cache.tzst --exclude cache.tzst -P -C /home/runner/work/y/y --files-from manifest.txt --use-compress-program zstdmt
Cache Size: ~46 MB (48449480 B)
Cache saved successfully

omus avatar Dec 13 '23 19:12 omus

It's a soft fail because it's just doing tidyup. Can you try adding the permissions here https://github.com/julia-actions/cache#usage

And if that fixes it I can add that tip to the error message. And perhaps make the error a less alarming warning/info.

IanButterworth avatar Dec 13 '23 20:12 IanButterworth

The options are to either add the permissions as you mentioned or disable cache cleanup with delete-old-caches: false to skip the cleanup.

omus avatar Jan 05 '24 19:01 omus