summaryrefslogtreecommitdiffstats
path: root/bitbake
diff options
context:
space:
mode:
authorRoss Burton <ross@burtonini.com>2022-06-16 15:48:49 +0200
committerRichard Purdie <richard.purdie@linuxfoundation.org>2022-06-26 12:14:22 +0100
commit07eca06c715dc08e1727e1df1b73062bbbc0c63b (patch)
treeeb613ac858b560784915c59447cf88bb8d1441f2 /bitbake
parent9f20f682ffd27827a91c5d36c65676dfc23a0770 (diff)
downloadpoky-07eca06c715dc08e1727e1df1b73062bbbc0c63b.tar.gz
bitbake: knotty: display active tasks when printing keepAlive() message
In interactive bitbake sessions it is obvious what tasks are running when one of them hangs or otherwise takes a long time. However, in non-interactive sessions (such as automated builds) bitbake just prints a message saying that it is "still alive" with no clues as to what tasks are active still. By simply listing the active tasks when printing the keep alive message, we don't need to parse the bitbake log to identify which of the tasks is still active and has presumably hung. (Bitbake rev: 36fe8bae9fec61547ee0b13bcb721033afd3ac0e) 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 30f6c3f175617beea8e8bb75dcf255611e3fc2fd) Signed-off-by: Anuj Mittal <anuj.mittal@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org> Signed-off-by: Steve Sakoman <steve@sakoman.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake')
-rw-r--r--bitbake/lib/bb/ui/knotty.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/bitbake/lib/bb/ui/knotty.py b/bitbake/lib/bb/ui/knotty.py
index e70c246400..71c5a3e9db 100644
--- a/bitbake/lib/bb/ui/knotty.py
+++ b/bitbake/lib/bb/ui/knotty.py
@@ -227,7 +227,9 @@ class TerminalFilter(object):
227 227
228 def keepAlive(self, t): 228 def keepAlive(self, t):
229 if not self.cuu: 229 if not self.cuu:
230 print("Bitbake still alive (%ds)" % t) 230 print("Bitbake still alive (no events for %ds). Active tasks:" % t)
231 for t in self.helper.running_tasks:
232 print(t)
231 sys.stdout.flush() 233 sys.stdout.flush()
232 234
233 def updateFooter(self): 235 def updateFooter(self):