summaryrefslogtreecommitdiffstats
path: root/debian/patches/0005-cmd-dist-increase-default-timeout-scale-for-arm.patch
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-28 13:18:28 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-28 13:18:28 +0000
commitcfc695f201ca61908ace6af625bcace92a42b64b (patch)
tree5809f158344b8cd94632bb3a8c1e7b574439154c /debian/patches/0005-cmd-dist-increase-default-timeout-scale-for-arm.patch
parentAdding upstream version 1.19.8. (diff)
downloadgolang-1.19-cfc695f201ca61908ace6af625bcace92a42b64b.tar.xz
golang-1.19-cfc695f201ca61908ace6af625bcace92a42b64b.zip
Adding debian version 1.19.8-2.debian/1.19.8-2debian
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'debian/patches/0005-cmd-dist-increase-default-timeout-scale-for-arm.patch')
-rw-r--r--debian/patches/0005-cmd-dist-increase-default-timeout-scale-for-arm.patch27
1 files changed, 27 insertions, 0 deletions
diff --git a/debian/patches/0005-cmd-dist-increase-default-timeout-scale-for-arm.patch b/debian/patches/0005-cmd-dist-increase-default-timeout-scale-for-arm.patch
new file mode 100644
index 0000000..9f146a8
--- /dev/null
+++ b/debian/patches/0005-cmd-dist-increase-default-timeout-scale-for-arm.patch
@@ -0,0 +1,27 @@
+From: Balint Reczey <balint.reczey@canonical.com>
+Date: Mon, 31 Aug 2020 13:14:51 +0200
+Subject: [PATCH] cmd/dist: increase default timeout scale for arm
+
+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.
+---
+ src/cmd/dist/test.go | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+--- a/src/cmd/dist/test.go
++++ b/src/cmd/dist/test.go
+@@ -165,7 +165,7 @@
+ t.timeoutScale = 1
+ switch goarch {
+ case "arm":
+- t.timeoutScale = 2
++ t.timeoutScale = 3
+ case "mips", "mipsle", "mips64", "mips64le":
+ t.timeoutScale = 4
+ }