From 531163eca4100d546196b1b54c721fd148927bd0 Mon Sep 17 00:00:00 2001 From: Ed Morley <501702+edmorley@users.noreply.github.com> Date: Thu, 4 Jul 2024 22:12:22 +0100 Subject: [PATCH] Increase timeouts for actions that rely on actions (again) In #214 the timeouts for Actions that rely on other Actions was bumped from 2 minutes to 8 minutes. However, there are still occasionally instances where the registry request issue isn't processed for up to 15-16 minutes due to delays in the GitHub Actions runner being started. As such this raises the timeout again, from 8 minutes to 20 minutes. Signed-off-by: Ed Morley <501702+edmorley@users.noreply.github.com> --- registry/request-add-entry/cmd/main.go | 4 ++-- registry/request-yank-entry/cmd/main.go | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/registry/request-add-entry/cmd/main.go b/registry/request-add-entry/cmd/main.go index 526db1b..5dad757 100644 --- a/registry/request-add-entry/cmd/main.go +++ b/registry/request-add-entry/cmd/main.go @@ -27,7 +27,7 @@ import ( "gopkg.in/retry.v1" "github.com/buildpacks/github-actions/internal/toolkit" - "github.com/buildpacks/github-actions/registry/request-add-entry" + entry "github.com/buildpacks/github-actions/registry/request-add-entry" ) func main() { @@ -41,7 +41,7 @@ func main() { gh := github.NewClient(oauth2.NewClient(context.Background(), oauth2.StaticTokenSource(&oauth2.Token{AccessToken: t}))) - strategy := retry.LimitTime(8*time.Minute, + strategy := retry.LimitTime(20*time.Minute, retry.Exponential{ Initial: time.Second, MaxDelay: 30 * time.Second, diff --git a/registry/request-yank-entry/cmd/main.go b/registry/request-yank-entry/cmd/main.go index 24ca781..267e937 100644 --- a/registry/request-yank-entry/cmd/main.go +++ b/registry/request-yank-entry/cmd/main.go @@ -27,7 +27,7 @@ import ( "gopkg.in/retry.v1" "github.com/buildpacks/github-actions/internal/toolkit" - "github.com/buildpacks/github-actions/registry/request-yank-entry" + entry "github.com/buildpacks/github-actions/registry/request-yank-entry" ) func main() { @@ -41,7 +41,7 @@ func main() { gh := github.NewClient(oauth2.NewClient(context.Background(), oauth2.StaticTokenSource(&oauth2.Token{AccessToken: t}))) - strategy := retry.LimitTime(8*time.Minute, + strategy := retry.LimitTime(20*time.Minute, retry.Exponential{ Initial: time.Second, MaxDelay: 30 * time.Second,