summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRoss Burton <ross@burtonini.com>2022-04-29 19:15:38 +0800
committerRichard Purdie <richard.purdie@linuxfoundation.org>2022-04-30 07:33:59 +0100
commitce323dd1a92a5be02571beddd6c240c215258f39 (patch)
tree395475669d376f34bba64aad1c1cae0650056671
parent638c8860eba17b97b66649333e0c94e47d7f0002 (diff)
downloadpoky-ce323dd1a92a5be02571beddd6c240c215258f39.tar.gz
bitbake: knotty: reduce keep-alive timeout from 5000s (83 minutes) to 10 minutes
The keep alive timeout is excessively long at 83 minutes (5000 seconds), reduce this to 10 minutes: this should be long enough that it rarely triggers in normal builds, but when it does it has useful information. (Bitbake rev: c2d8f9b2137bd4a98eb0f51519493131773e7517) Signed-off-by: Ross Burton <ross.burton@arm.com> Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org> (cherry picked from commit dcf52157d3635925491783be656c6b76d1efe1a4) Signed-off-by: Anuj Mittal <anuj.mittal@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r--bitbake/lib/bb/ui/knotty.py7
1 files changed, 4 insertions, 3 deletions
diff --git a/bitbake/lib/bb/ui/knotty.py b/bitbake/lib/bb/ui/knotty.py
index 64e33d81a6..3ba5579ca4 100644
--- a/bitbake/lib/bb/ui/knotty.py
+++ b/bitbake/lib/bb/ui/knotty.py
@@ -607,7 +607,8 @@ def main(server, eventHandler, params, tf = TerminalFilter):
607 warnings = 0 607 warnings = 0
608 taskfailures = [] 608 taskfailures = []
609 609
610 printinterval = 5000 610 printintervaldelta = 10 * 60 # 10 minutes
611 printinterval = printintervaldelta
611 lastprint = time.time() 612 lastprint = time.time()
612 613
613 termfilter = tf(main, helper, console_handlers, params.options.quiet) 614 termfilter = tf(main, helper, console_handlers, params.options.quiet)
@@ -617,7 +618,7 @@ def main(server, eventHandler, params, tf = TerminalFilter):
617 try: 618 try:
618 if (lastprint + printinterval) <= time.time(): 619 if (lastprint + printinterval) <= time.time():
619 termfilter.keepAlive(printinterval) 620 termfilter.keepAlive(printinterval)
620 printinterval += 5000 621 printinterval += printintervaldelta
621 event = eventHandler.waitEvent(0) 622 event = eventHandler.waitEvent(0)
622 if event is None: 623 if event is None:
623 if main.shutdown > 1: 624 if main.shutdown > 1:
@@ -648,7 +649,7 @@ def main(server, eventHandler, params, tf = TerminalFilter):
648 649
649 if isinstance(event, logging.LogRecord): 650 if isinstance(event, logging.LogRecord):
650 lastprint = time.time() 651 lastprint = time.time()
651 printinterval = 5000 652 printinterval = printintervaldelta
652 if event.levelno >= bb.msg.BBLogFormatter.ERROR: 653 if event.levelno >= bb.msg.BBLogFormatter.ERROR:
653 errors = errors + 1 654 errors = errors + 1
654 return_value = 1 655 return_value = 1