[Buildroot] [PATCH 5/5] utils/genrandconfig: add a 30-minute timeout

Yann E. MORIN yann.morin.1998 at free.fr
Wed Aug 22 21:10:58 UTC 2018


Some autobuilders seem to have difficulties downloading big git trees.
Sicne those are autobuilders, they only test known git sha1s or tags, so
they eventually get cached in our primary mirror, and thus we can expect
that slow autobuilders can eventually fetch them from there.

Add a relatively high timeout, so that those autobuilders are not stuck
forever in downloads.

Should fix autobuild issues like:
    http://autobuild.buildroot.org/results/ddb/ddbc96b24017f2a2b06c6091dea3e19520bf2dd1/

Signed-off-by: "Yann E. MORIN" <yann.morin.1998 at free.fr>
Cc: Hollis Blanchard <hollis_blanchard at mentor.com>
Cc: Maxime Hadjinlian <maxime.hadjinlian at gmail.com>
---
 utils/genrandconfig | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/utils/genrandconfig b/utils/genrandconfig
index 27f84ea555..2dbdc2ccf6 100755
--- a/utils/genrandconfig
+++ b/utils/genrandconfig
@@ -353,6 +353,9 @@ def gen_config(args):
     # Allow hosts with old certificates to download over https
     configlines.append("BR2_WGET=\"wget --passive-ftp -nd -t 3 --no-check-certificate\"")
 
+    # Don't be stuck forever downloading big git trees, timeout after 30 min
+    configlines.append("BR2_DL_TIMEOUT=\"30m\"")
+
     # Amend the configuration with a few things.
     if randint(0, 20) == 0:
         configlines.append("BR2_ENABLE_DEBUG=y\n")
-- 
2.14.1



More information about the buildroot mailing list