Skip to content

Commit

Permalink
Increase timeouts for actions that rely on actions (again)
Browse files Browse the repository at this point in the history
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 <[email protected]>
  • Loading branch information
edmorley committed Jul 4, 2024
1 parent 3a20773 commit 531163e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions registry/request-add-entry/cmd/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -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() {
Expand All @@ -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,
Expand Down
4 changes: 2 additions & 2 deletions registry/request-yank-entry/cmd/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -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() {
Expand All @@ -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,
Expand Down

0 comments on commit 531163e

Please sign in to comment.