-
Notifications
You must be signed in to change notification settings - Fork 102
Stop fetching caches if it takes a lot of time #369
Comments
There's clearly an issue with Ideally, the |
@JavierSegoviaCordoba I've spiked a solution to this issue in this commit. The timeout is currently not configurable and is hard-coded to 2 minutes. I haven't tested this extensively, but it would be great if you could test it out with your project. In case of a cache restore timeout you'll see an extra warning in the GitHub Actions console as well as in the caching summary rendered in the Job Summary window. To test this out, simply reference the (unreleased) version as: |
@bigdaz the problem about testing this is not depending on me, it is more about the state of GitHub actions cache. Maybe I can see this issue multiple times on the same day that I can't see it for months, so I can put that commit but not being able to check if it works in an undetermined time. |
Understood. I'll do some local testing with a shorter timeout value, but I'm really interested in how it copes with the real-world case of a cache-restore that hangs. If you are able to switch to that branch version I'd appreciate it. I'll keep it rebased on the latest patch release of the action. |
@bigdaz I was able to still get the issue using |
@trask Thanks for testing. I'll continue to investigate. |
This issue has been reported as fixed in the |
Yeah I read it and I thought that 1h timeout has no sense as default value... |
Hi @bigdaz, @JavierSegoviaCordoba 👋🏽 I am from the |
@kotewar thank you for the explanation 🙂 |
Hi @kotewar @JavierSegoviaCordoba : From my understanding the timeout configuration is already available in the gradle-build-action/src/cache-utils.ts Lines 156 to 158 in 8f9b7c7
|
GitHub Actions Cache can have issues where it takes almost forever to download them.
I think if after some time, the fetching is still running, Gradle should start to run even without reusing caches and stop trying to finish fetching caches. The previous cache shouldn't be discarded.
Run: https://github.com/JavierSegoviaCordoba/compose-resources-kmp/runs/7390287447
The text was updated successfully, but these errors were encountered: