]> Cypherpunks repositories - gostls13.git/commitdiff
cmd/go/internal/vcweb: increase script WaitDelay by 30x
authorBryan C. Mills <bcmills@google.com>
Tue, 1 Nov 2022 20:57:56 +0000 (16:57 -0400)
committerGopher Robot <gobot@golang.org>
Tue, 1 Nov 2022 21:32:43 +0000 (21:32 +0000)
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>

src/cmd/go/internal/vcweb/script.go

index 6e8f1589137f00e817b768cd8c8b9ed9805bf1ea..f58a0ac3928ff07ae2b116023c51b83621630501 100644 (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()