[bitbake-devel] [PATCH] runqueue: Add a progress meter for checking the task stamps

Peter Kjellerstedt peter.kjellerstedt at axis.com
Fri Aug 16 10:47:49 UTC 2019


> -----Original Message-----
> From: bitbake-devel-bounces at lists.openembedded.org <bitbake-devel-bounces at lists.openembedded.org> On Behalf Of Peter Kjellerstedt
> Sent: den 16 augusti 2019 12:42
> To: bitbake-devel at lists.openembedded.org
> Subject: [bitbake-devel] [PATCH] runqueue: Add a progress meter for checking the task stamps
> 
> Signed-off-by: Peter Kjellerstedt <peter.kjellerstedt at axis.com>
> ---
>  bitbake/lib/bb/runqueue.py | 8 ++++++++
>  1 file changed, 8 insertions(+)
> 
> diff --git a/bitbake/lib/bb/runqueue.py b/bitbake/lib/bb/runqueue.py
> index 7fa074f679..61ef864649 100644
> --- a/bitbake/lib/bb/runqueue.py
> +++ b/bitbake/lib/bb/runqueue.py
> @@ -2672,9 +2672,16 @@ def build_scenequeue_data(sqdata, rqdata, rq, cooker, stampcache, sqrq):
>          stamppresent = []
>          tocheck = set()
> 
> +        msg = "Check task stamps"

I do not know if this message makes sense. The commit message is 
also on the short side. Feel free to modify them or suggest 
improvements.

> +        bb.event.fire(bb.event.ProcessStarted(msg, len(sqdata.sq_revdeps)), cooker.data)
> +
> +        checked = 0
>          for tid in sorted(sqdata.sq_revdeps):
>              (mc, fn, taskname, taskfn) = split_tid_mcfn(tid)
> 
> +            checked = checked + 1
> +            bb.event.fire(bb.event.ProcessProgress(msg, checked), cooker.data)
> +
>              taskdep = rqdata.dataCaches[mc].task_deps[taskfn]
> 
>              if 'noexec' in taskdep and taskname in taskdep['noexec']:
> @@ -2696,6 +2703,7 @@ def build_scenequeue_data(sqdata, rqdata, rq, cooker, stampcache, sqrq):
>                  continue
> 
>              tocheck.add(tid)
> +        bb.event.fire(bb.event.ProcessFinished(msg), cooker.data)
> 
>          valid = rq.validate_hashes(tocheck, cooker.data, len(stamppresent), False)
> 
> --
> 2.21.0

//Peter



More information about the bitbake-devel mailing list