* [bitbake][kirkstone][2.0][PATCH 0/3] Patch review
@ 2022-05-23 14:40 Steve Sakoman
0 siblings, 0 replies; 5+ messages in thread
From: Steve Sakoman @ 2022-05-23 14:40 UTC (permalink / raw)
To: bitbake-devel
Please review this set of patches for kirkstone/2.0 and have comments back
by end of day Wednesday.
Passed a-full on autobuilder:
https://autobuilder.yoctoproject.org/typhoon/#/builders/83/builds/3692
The following changes since commit 59c16ae6c55c607c56efd2287537a1b97ba2bf52:
fetch/git : Use cat as pager (2022-05-12 13:41:35 +0100)
are available in the Git repository at:
git://git.openembedded.org/bitbake-contrib stable/2.0-nut
http://cgit.openembedded.org/bitbake-contrib/log/?h=stable/2.0-nut
Gunjan Gupta (1):
fetch2/osc: Small fixes for osc fetcher
Richard Purdie (1):
build: Add clean_stamp API function to allow removal of task stamps
Tomasz Dziendzielski (1):
data: Do not depend on vardepvalueexclude flag
lib/bb/build.py | 14 +++++++++-----
lib/bb/data.py | 2 ++
lib/bb/fetch2/osc.py | 16 ++++++++++------
3 files changed, 21 insertions(+), 11 deletions(-)
--
2.25.1
^ permalink raw reply [flat|nested] 5+ messages in thread
* [bitbake][kirkstone][2.0][PATCH 0/3] Patch review
@ 2023-11-08 22:57 Steve Sakoman
2023-11-08 22:57 ` [bitbake][kirkstone][2.0][PATCH 1/3] bitbake-getvar: Make --quiet work with --recipe Steve Sakoman
` (2 more replies)
0 siblings, 3 replies; 5+ messages in thread
From: Steve Sakoman @ 2023-11-08 22:57 UTC (permalink / raw)
To: bitbake-devel
Please review this set of changes for 2.0/kirkstone and have comments back
by end of day Friday, November 10
Passed a-full on autobuilder:
https://autobuilder.yoctoproject.org/typhoon/#/builders/83/builds/6158
The following changes since commit 6c1ffa9091d0c53a100e8c8c15122d28642034bd:
SECURITY.md: add file (2023-10-24 12:50:43 +0100)
are available in the Git repository at:
https://git.openembedded.org/bitbake-contrib stable/2.0-nut
https://git.openembedded.org/bitbake-contrib/log/?h=stable/2.0-nut
Denys Dmytriyenko (1):
runqueue: convert deferral messages from bb.note to bb.debug
Peter Kjellerstedt (2):
bitbake-getvar: Make --quiet work with --recipe
tinfoil: Do not fail when logging is disabled and full config is used
bin/bitbake-getvar | 5 +++--
lib/bb/runqueue.py | 6 +++---
lib/bb/tinfoil.py | 2 +-
3 files changed, 7 insertions(+), 6 deletions(-)
--
2.34.1
^ permalink raw reply [flat|nested] 5+ messages in thread
* [bitbake][kirkstone][2.0][PATCH 1/3] bitbake-getvar: Make --quiet work with --recipe
2023-11-08 22:57 [bitbake][kirkstone][2.0][PATCH 0/3] Patch review Steve Sakoman
@ 2023-11-08 22:57 ` Steve Sakoman
2023-11-08 22:57 ` [bitbake][kirkstone][2.0][PATCH 2/3] tinfoil: Do not fail when logging is disabled and full config is used Steve Sakoman
2023-11-08 22:57 ` [bitbake][kirkstone][2.0][PATCH 3/3] runqueue: convert deferral messages from bb.note to bb.debug Steve Sakoman
2 siblings, 0 replies; 5+ messages in thread
From: Steve Sakoman @ 2023-11-08 22:57 UTC (permalink / raw)
To: bitbake-devel
From: Peter Kjellerstedt <peter.kjellerstedt@axis.com>
Initializing Tinfoil with setup_logging = False only has an effect when
recipe parsing is not needed. To make it work regardless of if --recipe
is used, manipulate the quiet parameter to Tinfoil.prepare() instead.
Signed-off-by: Peter Kjellerstedt <peter.kjellerstedt@axis.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit 71ee69a20f21f3d37f4f060a7d8e87d9f1dc6aa1)
Signed-off-by: Steve Sakoman <steve@sakoman.com>
---
bin/bitbake-getvar | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/bin/bitbake-getvar b/bin/bitbake-getvar
index 4a9eb4f3..13a317e1 100755
--- a/bin/bitbake-getvar
+++ b/bin/bitbake-getvar
@@ -36,9 +36,10 @@ if __name__ == "__main__":
print("--flag only makes sense with --value")
sys.exit(1)
- with bb.tinfoil.Tinfoil(tracking=True, setup_logging=not args.quiet) as tinfoil:
+ quiet = args.quiet
+ with bb.tinfoil.Tinfoil(tracking=True, setup_logging=not quiet) as tinfoil:
if args.recipe:
- tinfoil.prepare(quiet=2)
+ tinfoil.prepare(quiet=3 if quiet else 2)
d = tinfoil.parse_recipe(args.recipe)
else:
tinfoil.prepare(quiet=2, config_only=True)
--
2.34.1
^ permalink raw reply related [flat|nested] 5+ messages in thread
* [bitbake][kirkstone][2.0][PATCH 2/3] tinfoil: Do not fail when logging is disabled and full config is used
2023-11-08 22:57 [bitbake][kirkstone][2.0][PATCH 0/3] Patch review Steve Sakoman
2023-11-08 22:57 ` [bitbake][kirkstone][2.0][PATCH 1/3] bitbake-getvar: Make --quiet work with --recipe Steve Sakoman
@ 2023-11-08 22:57 ` Steve Sakoman
2023-11-08 22:57 ` [bitbake][kirkstone][2.0][PATCH 3/3] runqueue: convert deferral messages from bb.note to bb.debug Steve Sakoman
2 siblings, 0 replies; 5+ messages in thread
From: Steve Sakoman @ 2023-11-08 22:57 UTC (permalink / raw)
To: bitbake-devel
From: Peter Kjellerstedt <peter.kjellerstedt@axis.com>
If Tinfoil is initialized with setup_logging = False and
Tinfoil.prepare() is called with config_only = False, then it fails
because self.localhandlers is only initialized when
setup_logging = True.
This is seen with, e.g., `bitbake-getvar -q -r busybox MACHINE`:
Traceback (most recent call last):
File ".../bitbake/bin/bitbake-getvar", line 41, in <module>
tinfoil.prepare(quiet=2)
File ".../bitbake/lib/bb/tinfoil.py", line 390, in prepare
for handler in self.localhandlers:
AttributeError: 'Tinfoil' object has no attribute 'localhandlers'.
Did you mean: 'oldhandlers'?
Signed-off-by: Peter Kjellerstedt <peter.kjellerstedt@axis.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit 616101ddb630e2c9975022068b52a87c4cf647f6)
Signed-off-by: Steve Sakoman <steve@sakoman.com>
---
lib/bb/tinfoil.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/lib/bb/tinfoil.py b/lib/bb/tinfoil.py
index e68a3b87..fa29b930 100644
--- a/lib/bb/tinfoil.py
+++ b/lib/bb/tinfoil.py
@@ -324,11 +324,11 @@ class Tinfoil:
self.recipes_parsed = False
self.quiet = 0
self.oldhandlers = self.logger.handlers[:]
+ self.localhandlers = []
if setup_logging:
# This is the *client-side* logger, nothing to do with
# logging messages from the server
bb.msg.logger_create('BitBake', output)
- self.localhandlers = []
for handler in self.logger.handlers:
if handler not in self.oldhandlers:
self.localhandlers.append(handler)
--
2.34.1
^ permalink raw reply related [flat|nested] 5+ messages in thread
* [bitbake][kirkstone][2.0][PATCH 3/3] runqueue: convert deferral messages from bb.note to bb.debug
2023-11-08 22:57 [bitbake][kirkstone][2.0][PATCH 0/3] Patch review Steve Sakoman
2023-11-08 22:57 ` [bitbake][kirkstone][2.0][PATCH 1/3] bitbake-getvar: Make --quiet work with --recipe Steve Sakoman
2023-11-08 22:57 ` [bitbake][kirkstone][2.0][PATCH 2/3] tinfoil: Do not fail when logging is disabled and full config is used Steve Sakoman
@ 2023-11-08 22:57 ` Steve Sakoman
2 siblings, 0 replies; 5+ messages in thread
From: Steve Sakoman @ 2023-11-08 22:57 UTC (permalink / raw)
To: bitbake-devel
From: Denys Dmytriyenko <denis@denix.org>
Using multiconfig to target baremetal pieces of the system and building
corresponding toolchains for them results in hundreds and hundreds of
"Deferring %s after %s" and "Deferred task %s now buildable".
To clean up the output and to reduce risk of missing important warnings,
convert these notice messages to debug messages.
Signed-off-by: Denys Dmytriyenko <denis@denix.org>
Signed-off-by: Denys Dmytriyenko <denys@konsulko.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit 64bc00a46d1aacc23fe7e8d9a46a126f3a4bc318)
Signed-off-by: Steve Sakoman <steve@sakoman.com>
---
lib/bb/runqueue.py | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/lib/bb/runqueue.py b/lib/bb/runqueue.py
index 46ff30a7..8605c46c 100644
--- a/lib/bb/runqueue.py
+++ b/lib/bb/runqueue.py
@@ -1980,12 +1980,12 @@ class RunQueueExecute:
# Allow the next deferred task to run. Any other deferred tasks should be deferred after that task.
# We shouldn't allow all to run at once as it is prone to races.
if not found:
- bb.note("Deferred task %s now buildable" % t)
+ bb.debug(1, "Deferred task %s now buildable" % t)
del self.sq_deferred[t]
update_scenequeue_data([t], self.sqdata, self.rqdata, self.rq, self.cooker, self.stampcache, self, summary=False)
found = t
else:
- bb.note("Deferring %s after %s" % (t, found))
+ bb.debug(1, "Deferring %s after %s" % (t, found))
self.sq_deferred[t] = found
def task_complete(self, task):
@@ -2892,7 +2892,7 @@ def build_scenequeue_data(sqdata, rqdata, rq, cooker, stampcache, sqrq):
sqdata.hashes[h] = tid
else:
sqrq.sq_deferred[tid] = sqdata.hashes[h]
- bb.note("Deferring %s after %s" % (tid, sqdata.hashes[h]))
+ bb.debug(1, "Deferring %s after %s" % (tid, sqdata.hashes[h]))
update_scenequeue_data(sqdata.sq_revdeps, sqdata, rqdata, rq, cooker, stampcache, sqrq, summary=True)
--
2.34.1
^ permalink raw reply related [flat|nested] 5+ messages in thread
end of thread, other threads:[~2023-11-08 22:57 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-11-08 22:57 [bitbake][kirkstone][2.0][PATCH 0/3] Patch review Steve Sakoman
2023-11-08 22:57 ` [bitbake][kirkstone][2.0][PATCH 1/3] bitbake-getvar: Make --quiet work with --recipe Steve Sakoman
2023-11-08 22:57 ` [bitbake][kirkstone][2.0][PATCH 2/3] tinfoil: Do not fail when logging is disabled and full config is used Steve Sakoman
2023-11-08 22:57 ` [bitbake][kirkstone][2.0][PATCH 3/3] runqueue: convert deferral messages from bb.note to bb.debug Steve Sakoman
-- strict thread matches above, loose matches on Subject: below --
2022-05-23 14:40 [bitbake][kirkstone][2.0][PATCH 0/3] Patch review Steve Sakoman
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox