[PATCH] cmd/dist: increase default timeout scale for arm
authorBalint Reczey <balint.reczey@canonical.com>
Mon, 31 Aug 2020 11:14:51 +0000 (13:14 +0200)
committerWilliam 'jawn-smith' Wilson <jawn-smith@ubuntu.com>
Tue, 6 Sep 2022 20:05:10 +0000 (21:05 +0100)
Forwarded: https://github.com/golang/go/issues/43002

Most developers use (faster) amd64 machines setting the test timeouts,
but test may run on slower arm ones and also different tests may suffer
different relative slowdown on the arm CPUs.

Due to those two varying factors it is safer to allow a higher timeout
scale on arm to avoid tests timing out.

Gbp-Pq: Name 0003-cmd-dist-increase-default-timeout-scale-for-arm.patch

src/cmd/dist/test.go

index d9eb9c3862ef917bfc962dcfd61de8c39779e0c3..c82d746580f03783dd0fa9742a841d6996d96e30 100644 (file)
@@ -173,7 +173,7 @@ func (t *tester) run() {
        t.timeoutScale = 1
        switch goarch {
        case "arm":
-               t.timeoutScale = 2
+               t.timeoutScale = 3
        case "mips", "mipsle", "mips64", "mips64le":
                t.timeoutScale = 4
        }