1
0
mirror of https://github.com/golang/go synced 2024-09-29 22:34:33 -06:00

cmd/go/internal/vcweb: increase script WaitDelay by 30x

This should reduce spurious VCS failures on slow builders, like the
one observed in
https://build.golang.org/log/e773fe404b2009d67fa34f048e023f0a86663a13

Updates #27494.

Change-Id: Ibb094c8ddf79e0ab481c00fcf501dc955b0da787
Reviewed-on: https://go-review.googlesource.com/c/go/+/447116
Auto-Submit: Bryan Mills <bcmills@google.com>
Reviewed-by: Ian Lance Taylor <iant@google.com>
Run-TryBot: Bryan Mills <bcmills@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
This commit is contained in:
Bryan C. Mills 2022-11-01 16:57:56 -04:00 committed by Gopher Robot
parent 1587c36583
commit 1ae93e4c20

View File

@ -33,7 +33,7 @@ func newScriptEngine() *script.Engine {
conds := script.DefaultConds()
interrupt := func(cmd *exec.Cmd) error { return cmd.Process.Signal(os.Interrupt) }
gracePeriod := 1 * time.Second // arbitrary
gracePeriod := 30 * time.Second // arbitrary
cmds := script.DefaultCmds()
cmds["at"] = scriptAt()