diff options
| author | Dmitry Vyukov <dvyukov@google.com> | 2021-09-21 05:06:13 +0200 |
|---|---|---|
| committer | Dmitry Vyukov <dvyukov@google.com> | 2021-09-21 05:36:50 +0200 |
| commit | 169724fe58e8d7d0b4be6f59ca7c1e0f300399e1 (patch) | |
| tree | 37e4e6268f777ef5f543e068602b19933124dc50 | |
| parent | af796c181d2f26346fd413a8aec4262799a13cd1 (diff) | |
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
| -rw-r--r-- | pkg/build/build.go | 7 |
1 files 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 } |
