actions / cache

Cache dependencies and build outputs in GitHub Actions
MIT License
4.39k stars 1.17k forks source link

More granular read timeout #1170

Open martinbonnin opened 1 year ago

martinbonnin commented 1 year ago

We are currently affected by cache read timeouts. The pattern is similar to https://github.com/actions/cache/issues/1141: cache download starts normally and then download stops completely.

There is a SEGMENT_DOWNLOAD_TIMEOUT_MINS environment variable but it only affects a full segment (1 or 2 GB).

Would it be possible to have more granular control over the timeout? Maybe something like:

This way, we don't have to wait 10min if a relatively small entry times out

arkq commented 1 year ago

Actually, we've added the the SEGMENT_DOWNLOAD_TIMEOUT_MINS=3 to our env, but cache restore still gets stuck and timeouts after 10 minutes (due to step timeout). So the question is, whether this env variable works as expected...

See this for example: https://github.com/project-chip/connectedhomeip/actions/runs/5057625376/jobs/9076622982

Or maybe this env variable works in a different way than it's described... Our cache blob do not exceeds 2GB, so as far as I understand, it's downloaded in one segment. So, in case of SEGMENT_DOWNLOAD_TIMEOUT_MINS=3, cache step should run no more than 3 minutes (+ some jiffies).

github-actions[bot] commented 7 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.

martinbonnin commented 7 months ago

This is still valid.

github-actions[bot] commented 1 month 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.

martinbonnin commented 4 weeks ago

bump