Skip to contentSkip to conversation

bitbake/runqueue: don't shout about hash updates

PATCH In review Ross Burton 3 participants 3 messages Oct 23, 2019

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 bitbake/runqueue: don't shout about hash updates

With hash equivalency enabled the runqueue logs at level info quite heavily, which spams the console.

Reduce the log level down to debug so it's there if needed but doesn't get in the way.

---
 bitbake/lib/bb/runqueue.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
bitbake/lib/bb/runqueue.py +1 -1
index 18049436fd5..e1eaf49b8cd 100644
@@ -2361,7 +2361,7 @@ class RunQueueExecute:
             if tid in self.build_stamps:
                 del self.build_stamps[tid]
 
-            logger.info("Setscene task %s now valid and being rerun" % tid)
+            logger.debug(2, "Setscene task %s now valid and being rerun" % tid)
             self.sqdone = False
             update_scenequeue_data([tid], self.sqdata, self.rqdata, self.rq, self.cooker, self.stampcache, self)
 
Signature · 1 line
2.20.1
#1 lore raw

This was from a patch the other day:

- bb.warn("Deferring %s after %s" % (tid, sqdata.hashes[h]))
+ bb.note("Deferring %s after %s" % (tid, sqdata.hashes[h]))

Is that also debug, or is it really something to be displayed? (Same file.)

--Mark

Quoted 25 lines · Ross Burton

With hash equivalency enabled the runqueue logs at level info quite heavily, which spams the console.

Reduce the log level down to debug so it's there if needed but doesn't get in the way.

---
 bitbake/lib/bb/runqueue.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
bitbake/lib/bb/runqueue.py +1 -1
index 18049436fd5..e1eaf49b8cd 100644
@@ -2361,7 +2361,7 @@ class RunQueueExecute:
             if tid in self.build_stamps:
                 del self.build_stamps[tid]
 
-            logger.info("Setscene task %s now valid and being rerun" % tid)
+            logger.debug(2, "Setscene task %s now valid and being rerun" % tid)
             self.sqdone = False
             update_scenequeue_data([tid], self.sqdata, self.rqdata, self.rq, self.cooker, self.stampcache, self)
 
#2 lore raw
Quoted 9 lines · Mark Hatle

This was from a patch the other day:

- bb.warn("Deferring %s after %s" % (tid,
sqdata.hashes[h]))
+ bb.note("Deferring %s after %s" % (tid,
sqdata.hashes[h]))

Is that also debug, or is it really something to be displayed? (Same file.)

The more of this we hide on the console, the harder debugging any failures will be. Debugging this code is a total nightmare so if people want help with sorting failures we will have to put up with some verbosity for now.

I merged the above since it is useful to know you have an overlapping build and the code is working.

I agree that bitbake is too chatty about the other message Ross has posted about but I want to ensure we are printing the useful event info we need before I merge that or something similar.

Cheers,

Richard