diff --git a/internal/relui/workflows.go b/internal/relui/workflows.go index 47a32269..f96b4d25 100644 --- a/internal/relui/workflows.go +++ b/internal/relui/workflows.go @@ -10,6 +10,7 @@ import ( "compress/gzip" "context" "crypto/sha256" + "errors" "fmt" "io" "io/fs" @@ -774,6 +775,10 @@ func (b *BuildReleaseTasks) runAdvisoryTryBot(ctx *wf.TaskContext, bc *dashboard ctx.Printf("Trybot Attempt failed: %v\n", err) } } + if errors.Is(ctx.Context.Err(), context.Canceled) { + ctx.Printf("Advisory TryBot timed out or was canceled\n") + return tryBotResult{bc.Name, passed}, nil + } if !passed { ctx.Printf("Advisory TryBot failed. Check the logs and approve this task if it's okay:\n") return tryBotResult{bc.Name, passed}, b.ApproveAction(ctx)