3 ms·
The cache action section focuses on GHES which is a shame, since the GitHub.com cache action is also pretty bad. - can't manually delete cache (although they'r
by judge2020 5y ago
The cache action section focuses on GHES which is a shame, since the GitHub.com cache action is also pretty bad.
- can't manually delete cache (although they're considering changing that[0])
- only saves cache at the end of a workflow, and only if the workflow succeeds. This could be solved with CircleCI's approach of having a save-cache step and a restore-cache step.
- Cache is super slow for self-hosted runners, so it makes more sense to have a local cache instead of using the action
- only 5gb of storage size. This was supposed to be increased via billable cache storage[1], but it's been on the backburner since July 2020
- In addition to the above, you can't use a different storage backend on the official action (which would allow storing over 5GB of cache via your own storage). The best workaround is to use a user-provided action which utilizes the s3 api[2].
0: https://github.com/actions/cache/issues/632 https://github.com/actions/cache/issues/632
1: https://github.com/github/roadmap/issues/66 https://github.com/github/roadmap/issues/66
2: https://github.com/actions/cache/issues/354#issuecomment-854762521 https://github.com/actions/cache/issues/354#issuecomment-854...
2>
- trulyme 5y ago- can't cache on tags [0] Caching is a joke. But then again, comparing GHA to GitLab CI is like comparing a pogo stick to a bicycle. Sure, both can be used to get there, but one ride is a bit... bumpy. (I use both and I am not affiliated to either.) [0] https://github.com/actions/cache/issues/556 https://github.com/actions/cache/issues/556
- codys 5y agoI'm heavily using cache on self hosted runners that are running in ec2 machines on aws. It's my experience that the cache isn't "super slow". Because of a bug (in my action) I was pushing/pulling gigabytes of data into the cache. On large files I was seeing ~125MB/s (that's Byte) download speeds. I haven't used the GitHub hosted runners much so I'm not sure how it compares though.
- judge2020 5y agoThe hosted runners seem to be very varied in performance. Just today an actions/checkout action on GitHub's hosted Linux box went down to 1 megabit per second and was going to take 30+ minutes to clone a 3gb repository. Re-running the workflow an hour later had it running fine.