Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cache(gha): add timeout attr for cache export/import #4702

Merged
merged 2 commits into from Feb 28, 2024

Conversation

crazy-max
Copy link
Member

@crazy-max crazy-max commented Feb 27, 2024

related to https://github.com/moby/buildkit/actions/runs/8062307240/job/22024437641?pr=4698#step:7:1683
closes #4705

image

On repositories relying heavily on GitHub Actions Cache backend with BuildKit, it can take more than 5 minutes (current default) for the request to succeed due to GitHub rate limit or if export is quite huge (often sees with mode=max).

This PR adds a timeout attribute for GitHub Actions cache export/import (maybe import is not necessary) so user can specify a custom value if he wants to.

Also increases default timeout to 10 minutes.

If we are not ok with this change, we can just set ignore-error=true in our workflows to avoid failures on this repo, see #4705

@dvdksn Needs docs follow-up if accepted https://docs.docker.com/build/cache/backends/gha/

Signed-off-by: CrazyMax <1951866+crazy-max@users.noreply.github.com>
Signed-off-by: CrazyMax <1951866+crazy-max@users.noreply.github.com>
@tonistiigi tonistiigi merged commit 7b23ff0 into moby:master Feb 28, 2024
73 checks passed
@crazy-max crazy-max deleted the gha-cache-timeout branch February 28, 2024 06:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants