From: Paul Eggleton <paul.eggleton@linux.intel.com>
To: openembedded-core@lists.openembedded.org
Subject: [PATCH v2 04/10] classes/sstate: show progress during sstate object availability check
Date: Fri, 24 Jun 2016 00:07:00 +1200 [thread overview]
Message-ID: <6076fa56f94de1a295c6ea23c69bd8cf11400554.1466683248.git.paul.eggleton@linux.intel.com> (raw)
In-Reply-To: <cover.1466683248.git.paul.eggleton@linux.intel.com>
In-Reply-To: <cover.1466683248.git.paul.eggleton@linux.intel.com>
Show progress through bitbake's standard terminal UI when checking for
shared state object availability, since this can take some time if there
are a large number of tasks to be executed and/or the network connection
is slow.
Part of the implementation for [YOCTO #5853].
Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
---
meta/classes/sstate.bbclass | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/meta/classes/sstate.bbclass b/meta/classes/sstate.bbclass
index 994eae6..4e81fc9 100644
--- a/meta/classes/sstate.bbclass
+++ b/meta/classes/sstate.bbclass
@@ -800,7 +800,8 @@ def sstate_checkhashes(sq_fn, sq_task, sq_hash, sq_hashfn, d, siginfo=False):
except:
missed.append(task)
bb.debug(2, "SState: Unsuccessful fetch test for %s" % srcuri)
- pass
+ pass
+ bb.event.fire(bb.event.ProcessProgress("Checking sstate mirror object availability", len(tasklist) - thread_worker.tasks.qsize()), d)
tasklist = []
for task in range(len(sq_fn)):
@@ -811,7 +812,7 @@ def sstate_checkhashes(sq_fn, sq_task, sq_hash, sq_hashfn, d, siginfo=False):
tasklist.append((task, sstatefile))
if tasklist:
- bb.note("Checking sstate mirror object availability (for %s objects)" % len(tasklist))
+ bb.event.fire(bb.event.ProcessStarted("Checking sstate mirror object availability", len(tasklist)), d)
import multiprocessing
nproc = min(multiprocessing.cpu_count(), len(tasklist))
@@ -821,6 +822,7 @@ def sstate_checkhashes(sq_fn, sq_task, sq_hash, sq_hashfn, d, siginfo=False):
pool.add_task(checkstatus, t)
pool.start()
pool.wait_completion()
+ bb.event.fire(bb.event.ProcessFinished("Checking sstate mirror object availability"), d)
inheritlist = d.getVar("INHERIT", True)
if "toaster" in inheritlist:
--
2.5.5
next prev parent reply other threads:[~2016-06-23 12:07 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-06-23 12:06 [PATCH v2 00/10] Show progress during build and eSDK install Paul Eggleton
2016-06-23 12:06 ` [PATCH v2 01/10] bitbake.conf: whitelist progress varflag Paul Eggleton
2016-06-23 12:06 ` [PATCH v2 02/10] classes/cmake: enable progress for do_compile Paul Eggleton
2016-06-27 16:16 ` Burton, Ross
2016-06-27 17:49 ` Paul Eggleton
2016-06-27 18:14 ` Burton, Ross
2016-07-03 20:53 ` Paul Eggleton
2016-06-23 12:06 ` [PATCH v2 03/10] classes/image: implement progress support for do_rootfs Paul Eggleton
2016-06-23 12:07 ` Paul Eggleton [this message]
2016-06-23 12:07 ` [PATCH v2 05/10] classes/sstate: add a mode to error if sstate package unavailable Paul Eggleton
2016-06-23 12:07 ` [PATCH v2 06/10] classes/testsdk: print output correctly on failure Paul Eggleton
2016-06-23 12:07 ` [PATCH v2 07/10] classes/populate_sdk_ext: eliminate double execution on install Paul Eggleton
2016-06-23 22:10 ` Paul Eggleton
2016-06-23 12:07 ` [PATCH v2 08/10] lib/oe/sstatesig: print locked sigs file message only when explicitly called Paul Eggleton
2016-06-23 12:07 ` [PATCH v2 09/10] classes/populate_sdk_ext: show progress when preparing build system Paul Eggleton
2016-06-23 12:07 ` [PATCH v2 10/10] toolchain-shar-extract.sh: allow TERM through into SDK installer env Paul Eggleton
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=6076fa56f94de1a295c6ea23c69bd8cf11400554.1466683248.git.paul.eggleton@linux.intel.com \
--to=paul.eggleton@linux.intel.com \
--cc=openembedded-core@lists.openembedded.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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.