Skip to contentSkip to conversation

increase waiting time for bitbake

PATCH In review brian avery 1 participant 3 messages Sep 9, 2015

lore
Share & tools
lore
#0 lore raw

cover increase waiting time for bitbake

this increases the time toaster waits for bitbake to start to 25 seconds

The following changes since commit db92bc23880794be77373b0f2d8c26279dcecb84:

bitbake: toaster: replace ETA with % of tasks done (2015-09-08 23:54:15 +0100)

are available in the git repository at:

git://git.yoctoproject.org/poky-contrib bavery/submit/ed/20150908_increase-waiting-time-bitbake
http://git.yoctoproject.org/cgit.cgi/poky-contrib/log/?h=bavery/submit/ed/20150908_increase-waiting-time-bitbake

Ed Bartosh (1):
toaster: increase waiting time

 lib/toaster/bldcontrol/localhostbecontroller.py | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
Signature · 1 line
1.9.1
#1 lore raw

PATCH 1/1 toaster: increase waiting time

From: Ed Bartosh <[email protected]>

Increased waiting time for toasterUI from 10 to 25 seconds. Bitbake takes longer time to start, so toaster should wait longer.

[YOCTO #8240]

---
 lib/toaster/bldcontrol/localhostbecontroller.py | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
lib/toaster/bldcontrol/localhostbecontroller.py +2 -2
index 231a7d3..a9909b8 100644
@@ -140,7 +140,7 @@ class LocalhostBEController(BuildEnvironmentController):
 
         retries = 0
         started = False
-        while not started and retries < 10:
+        while not started and retries < 50:
             started = _toaster_ui_started(toaster_ui_log_filepath, toaster_ui_log_filelength)
             import time
             logger.debug("localhostbecontroller: Waiting bitbake server to start")
@@ -150,7 +150,7 @@ class LocalhostBEController(BuildEnvironmentController):
         if not started:
             toaster_ui_log = open(os.path.join(self.be.builddir, "toaster_ui.log"), "r").read()
             toaster_server_log = open(os.path.join(self.be.builddir, "toaster_server.log"), "r").read()
-            raise BuildSetupException("localhostbecontroller: Bitbake server did not start in 5 seconds, aborting (Error: '%s' '%s')" % (toaster_ui_log, toaster_server_log))
+            raise BuildSetupException("localhostbecontroller: Bitbake server did not start in 25 seconds, aborting (Error: '%s' '%s')" % (toaster_ui_log, toaster_server_log))
 
         logger.debug("localhostbecontroller: Started bitbake server")
 
Signature · 1 line
1.9.1
#2 lore raw

Re: [PATCH 1/1] toaster: increase waiting time

submitted upstream.
-b

Quoted 38 lines · brian avery

From: Ed Bartosh <[email protected]>

Increased waiting time for toasterUI from 10 to 25 seconds. Bitbake takes longer time to start, so toaster should wait longer.

[YOCTO #8240]

---
 lib/toaster/bldcontrol/localhostbecontroller.py | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
lib/toaster/bldcontrol/localhostbecontroller.py +2 -3
index 231a7d3..a9909b8 100644
@@ -140,7 +140,7 @@ class LocalhostBEController(BuildEnvironmentController):
 
         retries = 0
         started = False
-        while not started and retries < 10:
+        while not started and retries < 50:
             started = _toaster_ui_started(toaster_ui_log_filepath, toaster_ui_log_filelength)
             import time
             logger.debug("localhostbecontroller: Waiting bitbake server to start")
@@ -150,7 +150,7 @@ class LocalhostBEController(BuildEnvironmentController):
         if not started:
             toaster_ui_log = open(os.path.join(self.be.builddir, "toaster_ui.log"), "r").read()
             toaster_server_log = open(os.path.join(self.be.builddir, "toaster_server.log"), "r").read()
-            raise BuildSetupException("localhostbecontroller: Bitbake server did not start in 5 seconds, aborting (Error: '%s' '%s')" % (toaster_ui_log, toaster_server_log))
+            raise BuildSetupException("localhostbecontroller: Bitbake server did not start in 25 seconds, aborting (Error: '%s' '%s')" % (toaster_ui_log, toaster_server_log))
 
         logger.debug("localhostbecontroller: Started bitbake server")
 
--

1.9.1