From 0304899bb860b5ee330cec0a52922a52090eb5d9 Mon Sep 17 00:00:00 2001 From: Dmitry Vyukov Date: Mon, 13 Dec 2021 07:10:05 +0100 Subject: pkg/build: increase bazel aquery timeout We've got a timeout of "bazel aquery". It's currently set to 1 minute. On an overloaded machine it can fire falsely, I guess bazel can start only for 1 minute. Increase to 10 minutes. --- pkg/osutil/osutil.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'pkg/osutil') diff --git a/pkg/osutil/osutil.go b/pkg/osutil/osutil.go index cbace37c6..0194a616e 100644 --- a/pkg/osutil/osutil.go +++ b/pkg/osutil/osutil.go @@ -62,7 +62,7 @@ func Run(timeout time.Duration, cmd *exec.Cmd) ([]byte, error) { if err != nil { text := fmt.Sprintf("failed to run %q: %v", cmd.Args, err) if <-timedout { - text = fmt.Sprintf("timedout %q", cmd.Args) + text = fmt.Sprintf("timedout after %v %q", timeout, cmd.Args) } exitCode := 0 if exitErr, ok := err.(*exec.ExitError); ok { -- cgit mrf-deployment