aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorRichard Purdie <richard.purdie@linuxfoundation.org>2018-12-02 19:18:14 +0000
committerRichard Purdie <richard.purdie@linuxfoundation.org>2018-12-07 12:38:30 +0000
commit7a4e105093c3080c1087cd06abc2883852a23e28 (patch)
tree38b10d73ddad92633d9ce4e340605209d5bb4a0b /lib
parent83ece2c6f4b000e906fec9148f25bd1dff66cfb0 (diff)
downloadbitbake-7a4e105093c3080c1087cd06abc2883852a23e28.tar.gz
server/process: Increase server startup time delay
On loaded production systems we've seen bitbake server take over 40s to start up. Increase the timeout to 90s which tries to avoid failures in selftests. The delays come from setting up the inotify watches (31s) so can't really be avoided. After 5s delay we now warn the user we're waiting for 90s so the interactive exeperience shouldn't be much changed and its very unlikely the user would see that anyway. Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'lib')
-rw-r--r--lib/bb/server/process.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/lib/bb/server/process.py b/lib/bb/server/process.py
index 49973d667..1a6a82674 100644
--- a/lib/bb/server/process.py
+++ b/lib/bb/server/process.py
@@ -400,7 +400,10 @@ class BitBakeServer(object):
os.close(self.readypipein)
ready = ConnectionReader(self.readypipe)
- r = ready.poll(30)
+ r = ready.poll(5)
+ if not r:
+ bb.note("Bitbake server didn't start within 5 seconds, waiting for 90")
+ r = ready.poll(90)
if r:
try:
r = ready.get()