* [1.52][PATCH 0/2] Pull request
@ 2022-04-29 11:15 Anuj Mittal
2022-04-29 11:15 ` [1.52][PATCH 1/2] bitbake: knotty: display active tasks when printing keepAlive() message Anuj Mittal
2022-04-29 11:15 ` [1.52][PATCH 2/2] bitbake: knotty: reduce keep-alive timeout from 5000s (83 minutes) to 10 minutes Anuj Mittal
0 siblings, 2 replies; 3+ messages in thread
From: Anuj Mittal @ 2022-04-29 11:15 UTC (permalink / raw)
To: bitbake-devel
Please review these changes for honister/1.52. Tested with OE-core and
no problems seen while testing.
https://autobuilder.yoctoproject.org/typhoon/#/builders/83/builds/3591
Thanks,
Anuj
The following changes since commit 70ea322a4866f7ef20361a6b146f2be568261c6a:
server/process: Disable gc around critical section (2022-04-16 23:02:05 +0100)
are available in the Git repository at:
git://push.openembedded.org/bitbake-contrib stable/1.52-next
Ross Burton (2):
bitbake: knotty: display active tasks when printing keepAlive()
message
bitbake: knotty: reduce keep-alive timeout from 5000s (83 minutes) to
10 minutes
lib/bb/ui/knotty.py | 11 +++++++----
1 file changed, 7 insertions(+), 4 deletions(-)
--
2.35.1
^ permalink raw reply [flat|nested] 3+ messages in thread
* [1.52][PATCH 1/2] bitbake: knotty: display active tasks when printing keepAlive() message
2022-04-29 11:15 [1.52][PATCH 0/2] Pull request Anuj Mittal
@ 2022-04-29 11:15 ` Anuj Mittal
2022-04-29 11:15 ` [1.52][PATCH 2/2] bitbake: knotty: reduce keep-alive timeout from 5000s (83 minutes) to 10 minutes Anuj Mittal
1 sibling, 0 replies; 3+ messages in thread
From: Anuj Mittal @ 2022-04-29 11:15 UTC (permalink / raw)
To: bitbake-devel
From: Ross Burton <ross@burtonini.com>
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: f9f57fb7d2c8a13df1eb9d5b9766f15e229dcf97)
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>
---
lib/bb/ui/knotty.py | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/lib/bb/ui/knotty.py b/lib/bb/ui/knotty.py
index 484545a6..64e33d81 100644
--- a/lib/bb/ui/knotty.py
+++ b/lib/bb/ui/knotty.py
@@ -228,7 +228,9 @@ class TerminalFilter(object):
def keepAlive(self, t):
if not self.cuu:
- print("Bitbake still alive (%ds)" % t)
+ print("Bitbake still alive (no events for %ds). Active tasks:" % t)
+ for t in self.helper.running_tasks:
+ print(t)
sys.stdout.flush()
def updateFooter(self):
--
2.35.1
^ permalink raw reply related [flat|nested] 3+ messages in thread
* [1.52][PATCH 2/2] bitbake: knotty: reduce keep-alive timeout from 5000s (83 minutes) to 10 minutes
2022-04-29 11:15 [1.52][PATCH 0/2] Pull request Anuj Mittal
2022-04-29 11:15 ` [1.52][PATCH 1/2] bitbake: knotty: display active tasks when printing keepAlive() message Anuj Mittal
@ 2022-04-29 11:15 ` Anuj Mittal
1 sibling, 0 replies; 3+ messages in thread
From: Anuj Mittal @ 2022-04-29 11:15 UTC (permalink / raw)
To: bitbake-devel
From: Ross Burton <ross@burtonini.com>
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: 2e47346b95b09d7ab8f0603e2d62cfb549dc1f5c)
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>
---
lib/bb/ui/knotty.py | 7 ++++---
1 file changed, 4 insertions(+), 3 deletions(-)
diff --git a/lib/bb/ui/knotty.py b/lib/bb/ui/knotty.py
index 64e33d81..3ba5579c 100644
--- a/lib/bb/ui/knotty.py
+++ b/lib/bb/ui/knotty.py
@@ -607,7 +607,8 @@ def main(server, eventHandler, params, tf = TerminalFilter):
warnings = 0
taskfailures = []
- printinterval = 5000
+ printintervaldelta = 10 * 60 # 10 minutes
+ printinterval = printintervaldelta
lastprint = time.time()
termfilter = tf(main, helper, console_handlers, params.options.quiet)
@@ -617,7 +618,7 @@ def main(server, eventHandler, params, tf = TerminalFilter):
try:
if (lastprint + printinterval) <= time.time():
termfilter.keepAlive(printinterval)
- printinterval += 5000
+ printinterval += printintervaldelta
event = eventHandler.waitEvent(0)
if event is None:
if main.shutdown > 1:
@@ -648,7 +649,7 @@ def main(server, eventHandler, params, tf = TerminalFilter):
if isinstance(event, logging.LogRecord):
lastprint = time.time()
- printinterval = 5000
+ printinterval = printintervaldelta
if event.levelno >= bb.msg.BBLogFormatter.ERROR:
errors = errors + 1
return_value = 1
--
2.35.1
^ permalink raw reply related [flat|nested] 3+ messages in thread
end of thread, other threads:[~2022-04-29 11:19 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-04-29 11:15 [1.52][PATCH 0/2] Pull request Anuj Mittal
2022-04-29 11:15 ` [1.52][PATCH 1/2] bitbake: knotty: display active tasks when printing keepAlive() message Anuj Mittal
2022-04-29 11:15 ` [1.52][PATCH 2/2] bitbake: knotty: reduce keep-alive timeout from 5000s (83 minutes) to 10 minutes Anuj Mittal
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.