From 169724fe58e8d7d0b4be6f59ca7c1e0f300399e1 Mon Sep 17 00:00:00 2001 From: Dmitry Vyukov Date: Tue, 21 Sep 2021 05:06:13 +0200 Subject: pkg/build: increse timeout for bazel We've just got a timeout failure for TestCompilerIdentity test: --- FAIL: TestCompilerIdentity (0.00s) --- FAIL: TestCompilerIdentity/bazel (60.19s) build_test.go:24: failed: timedout ["bazel" ""] FAIL --- pkg/build/build.go | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/pkg/build/build.go b/pkg/build/build.go index 0add9451b..dcf2da52d 100644 --- a/pkg/build/build.go +++ b/pkg/build/build.go @@ -162,11 +162,12 @@ func compilerIdentity(compiler string) (string, error) { bazel := strings.HasSuffix(compiler, "bazel") - arg := "--version" + arg, timeout := "--version", time.Minute if bazel { - arg = "" + // Bazel episodically fails with 1 min timeout. + arg, timeout = "", 10*time.Minute } - output, err := osutil.RunCmd(time.Minute, "", compiler, arg) + output, err := osutil.RunCmd(timeout, "", compiler, arg) if err != nil { return "", err } -- cgit mrf-deployment