* [PATCH] sstate: replace verbose manifest removal with a single count
@ 2016-01-18 16:26 Ross Burton
2016-01-21 8:33 ` Robert Yang
0 siblings, 1 reply; 3+ messages in thread
From: Ross Burton @ 2016-01-18 16:26 UTC (permalink / raw)
To: openembedded-core
If there are lots of changes between the previous build and the build about to
start bitbake will potentially print pages of:
DEBUG: Stamp $BUILD/stamps/corei7-64-poky-linux/libdrm/2.4.66-r0 is not reachable, removing related manifests
Instead of spamming the console with this list, write the list of manifests only
to the debug log and simply write a count to the console. This way the user
doesn't get spammed but still knows what is happening if bitbake appears to
stall with heavy I/O.
Signed-off-by: Ross Burton <ross.burton@intel.com>
---
meta/classes/sstate.bbclass | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
diff --git a/meta/classes/sstate.bbclass b/meta/classes/sstate.bbclass
index 9bef212..918768f 100644
--- a/meta/classes/sstate.bbclass
+++ b/meta/classes/sstate.bbclass
@@ -952,8 +952,12 @@ python sstate_eventhandler2() {
if stamp not in stamps:
toremove.append(l)
if stamp not in seen:
- bb.note("Stamp %s is not reachable, removing related manifests" % stamp)
+ bb.debug(2, "Stamp %s is not reachable, removing related manifests" % stamp)
seen.append(stamp)
+
+ if toremove:
+ bb.note("There are %d recipes to be removed from the sysroot, removing..." % (len(toremove)))
+
for r in toremove:
(stamp, manifest, workdir) = r.split()
for m in glob.glob(manifest + ".*"):
--
2.6.4
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [PATCH] sstate: replace verbose manifest removal with a single count
2016-01-18 16:26 [PATCH] sstate: replace verbose manifest removal with a single count Ross Burton
@ 2016-01-21 8:33 ` Robert Yang
2016-01-21 12:19 ` Burton, Ross
0 siblings, 1 reply; 3+ messages in thread
From: Robert Yang @ 2016-01-21 8:33 UTC (permalink / raw)
To: Ross Burton, openembedded-core
On 01/19/2016 12:26 AM, Ross Burton wrote:
> If there are lots of changes between the previous build and the build about to
> start bitbake will potentially print pages of:
>
> DEBUG: Stamp $BUILD/stamps/corei7-64-poky-linux/libdrm/2.4.66-r0 is not reachable, removing related manifests
>
> Instead of spamming the console with this list, write the list of manifests only
> to the debug log and simply write a count to the console. This way the user
> doesn't get spammed but still knows what is happening if bitbake appears to
> stall with heavy I/O.
>
> Signed-off-by: Ross Burton <ross.burton@intel.com>
> ---
> meta/classes/sstate.bbclass | 6 +++++-
> 1 file changed, 5 insertions(+), 1 deletion(-)
>
> diff --git a/meta/classes/sstate.bbclass b/meta/classes/sstate.bbclass
> index 9bef212..918768f 100644
> --- a/meta/classes/sstate.bbclass
> +++ b/meta/classes/sstate.bbclass
> @@ -952,8 +952,12 @@ python sstate_eventhandler2() {
> if stamp not in stamps:
> toremove.append(l)
> if stamp not in seen:
> - bb.note("Stamp %s is not reachable, removing related manifests" % stamp)
> + bb.debug(2, "Stamp %s is not reachable, removing related manifests" % stamp)
> seen.append(stamp)
> +
> + if toremove:
> + bb.note("There are %d recipes to be removed from the sysroot, removing..." % (len(toremove)))
> +
Currently, I get:
NOTE: There are 10 recipes to be removed from the sysroot, removing...
NOTE: There are 15 recipes to be removed from the sysroot, removing...
NOTE: There are 30 recipes to be removed from the sysroot, removing...
Can we print more info such as where it is removing, please ? Or
use SSTATE_ARCHS ? For example,:
NOTE: There are 30 recipes to be removed from manifest x86_64, removing...
// Robert
> for r in toremove:
> (stamp, manifest, workdir) = r.split()
> for m in glob.glob(manifest + ".*"):
>
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH] sstate: replace verbose manifest removal with a single count
2016-01-21 8:33 ` Robert Yang
@ 2016-01-21 12:19 ` Burton, Ross
0 siblings, 0 replies; 3+ messages in thread
From: Burton, Ross @ 2016-01-21 12:19 UTC (permalink / raw)
To: Robert Yang; +Cc: OE-core
[-- Attachment #1: Type: text/plain, Size: 346 bytes --]
On 21 January 2016 at 08:33, Robert Yang <liezhi.yang@windriver.com> wrote:
> NOTE: There are 10 recipes to be removed from the sysroot, removing...
> NOTE: There are 15 recipes to be removed from the sysroot, removing...
> NOTE: There are 30 recipes to be removed from the sysroot, removing...
>
Yeah, good point. Patch sent.
Ross
[-- Attachment #2: Type: text/html, Size: 759 bytes --]
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2016-01-21 12:19 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-01-18 16:26 [PATCH] sstate: replace verbose manifest removal with a single count Ross Burton
2016-01-21 8:33 ` Robert Yang
2016-01-21 12:19 ` Burton, Ross
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.