[yocto] [AB PATCH 14/22] yoctogit.py: Fix timeouts.

Elizabeth Flanagan elizabeth.flanagan at intel.com
Wed Mar 19 13:51:12 PDT 2014


From: Beth Flanagan <elizabeth.flanagan at intel.com>

We should really never need this big of a timeout, but
poky-contrib (despite my continual kvetching) can be a
large clone, or an autobuilder can have a large build
directory and the mv across filesystems *which you should
never do!* can go slow.

So let's set this sufficently high enough that we don't
have to have failures from a timeout, but sufficently low
enough that if things go south we don't wait forever to
know about it.

Signed-off-by: Beth Flanagan <elizabeth.flanagan at intel.com>
---
 .../buildbot-0.8.8-py2.7.egg/buildbot/steps/source/yoctogit.py        | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/lib/python2.7/site-packages/buildbot-0.8.8-py2.7.egg/buildbot/steps/source/yoctogit.py b/lib/python2.7/site-packages/buildbot-0.8.8-py2.7.egg/buildbot/steps/source/yoctogit.py
index c5dbf05..98a2fba 100644
--- a/lib/python2.7/site-packages/buildbot-0.8.8-py2.7.egg/buildbot/steps/source/yoctogit.py
+++ b/lib/python2.7/site-packages/buildbot-0.8.8-py2.7.egg/buildbot/steps/source/yoctogit.py
@@ -131,6 +131,7 @@ class YoctoGit(Source):
         self.mode = mode
         self.getDescription = getDescription
         self.config = config
+        self.timeout = 10*60
         # We no longer pass srcdir in. There are way too many ways to hang
         # yourself by doing that.
         if self.mirrordir:
@@ -286,7 +287,8 @@ class YoctoGit(Source):
                                                         str(int(time.time())) + '-'  + 
                                                         str(random.randrange(100, 100000, 2)) + 
                                                         self.layername,
-                                              'logEnviron':self.logEnviron,})
+                                              'logEnviron':self.logEnviron,
+                                              'timeout': self.timeout,})
         cmd.useLog(self.stdio_log, False)
         d = self.runCommand(cmd)
         def evaluateCommand(cmd):
-- 
1.8.1.2




More information about the yocto mailing list