From 02cc370e41ab37230fe8ae06b4ea59fb5a4a55b8 Mon Sep 17 00:00:00 2001 From: Jerry Date: Sat, 9 Nov 2019 21:02:40 +0800 Subject: [PATCH] longer timeout for fine machines --- buildbot.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/buildbot.py b/buildbot.py index 21cac8b..e038725 100755 --- a/buildbot.py +++ b/buildbot.py @@ -444,7 +444,7 @@ class updateManager: def __get_package_list(self, dirname, arch): pkgdir = REPO_ROOT / dirname assert pkgdir.exists() - pkglist = nspawn_shell(arch, MAKEPKG_PKGLIST_CMD, cwd=pkgdir) + pkglist = nspawn_shell(arch, MAKEPKG_PKGLIST_CMD, cwd=pkgdir, RUN_CMD_TIMEOUT=5*60) pkglist = pkglist.split('\n') pkglist = [line for line in pkglist if not line.startswith('+')] return pkglist @@ -479,7 +479,7 @@ class updateManager: for scr in getattr(pkg, 'update', list()): if type(scr) is str: mon_nspawn_shell(arch, scr, cwd=pkgdir, seconds=60*60) - mon_nspawn_shell(arch, MAKEPKG_UPD_CMD, cwd=pkgdir, seconds=60*60, + mon_nspawn_shell(arch, MAKEPKG_UPD_CMD, cwd=pkgdir, seconds=5*60*60, logfile = pkgdir / PKG_UPDATE_LOGFILE, short_return = True) if pkg.type in ('git', 'manual'):