actions / cache

Cache dependencies and build outputs in GitHub Actions
MIT License
4.45k stars 1.18k forks source link

MacOS Pods Cache restore gets stuck indefinitely for the size more than 3gb #1136

Closed Ananthakr-Jupiter closed 9 months ago

Ananthakr-Jupiter commented 1 year ago

The macos cache restore process gets stuck for a long time(more than 1hr) and gets timed out. We have been facing this problem recently when our pods cache size jumped from 1.8gb to 3gb.

Screenshot 2023-03-16 at 1 58 15 PM Screenshot 2023-03-16 at 2 02 07 PM

We couldn't find any possible reason why this happens and also not sure if we are hitting any storage limitations in the runner machines. May be related to this issue(https://github.com/actions/cache/issues/1115), but in our case the job gets cancelled automatically after 1.5hrs.

Let me know if any more information is needed

dexpota commented 1 year ago

It's likely the same issue as #1115. Anyway I solved this issue by manually cloning the Specs repository and removing the caching mechanism altogether. It's more fast this way. This is the workflow's step.

- name: Add CocoaPods Specs
  run: |
    mkdir -p ~/.cocoapods/repos/cocoapods
    git clone --depth 1 -b master https://github.com/CocoaPods/Specs.git ~/.cocoapods/repos/cocoapods

When you use pod then you specify this repository between the sources, like in the following command line.

pod lib lint --allow-warnings --verbose --sources=cocoapods
numandev1 commented 1 year ago

@vsvipul is there any update?

vsvipul commented 1 year ago

@numandev1 I'm no longer working at GitHub. Please contact people on https://github.com/actions/toolkit to check who is the new owner for cache.

github-actions[bot] commented 9 months ago

This issue is stale because it has been open for 200 days with no activity. Leave a comment to avoid closing this issue in 5 days.

github-actions[bot] commented 9 months ago

This issue was closed because it has been inactive for 5 days since being marked as stale.