diff options
author | David Reyna <David.Reyna@windriver.com> | 2017-06-27 13:44:29 -0700 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2017-06-28 16:02:15 +0100 |
commit | 43aaa802c35ecc9d972f3b9adcd060033de1d9de (patch) | |
tree | bd8e0fd2ec8c01df2316538ac07527fe67823e6b /bitbake/lib/toaster/toastergui/static/js/mrbsection.js | |
parent | d74bcbeaf241a67871d62b7e2c17900ae900642e (diff) | |
download | poky-43aaa802c35ecc9d972f3b9adcd060033de1d9de.tar.gz |
bitbake: toaster: git clone progress bar
If a project has a lot of additional layers, the build may
appear to hang while those layers are checked out.
This patch adds a clone progress bar that is visible before
the parsing progress appears.
[YOCTO #9916]
(Bitbake rev: 0c94d947b74c4dee23d7b9d255facd3cf839ccbe)
Signed-off-by: David Reyna <David.Reyna@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake/lib/toaster/toastergui/static/js/mrbsection.js')
-rw-r--r-- | bitbake/lib/toaster/toastergui/static/js/mrbsection.js | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/bitbake/lib/toaster/toastergui/static/js/mrbsection.js b/bitbake/lib/toaster/toastergui/static/js/mrbsection.js index 73d0935fa5..c0c5fa9589 100644 --- a/bitbake/lib/toaster/toastergui/static/js/mrbsection.js +++ b/bitbake/lib/toaster/toastergui/static/js/mrbsection.js | |||
@@ -61,6 +61,12 @@ function mrbSectionInit(ctx){ | |||
61 | return (cached.recipes_parsed_percentage !== build.recipes_parsed_percentage); | 61 | return (cached.recipes_parsed_percentage !== build.recipes_parsed_percentage); |
62 | } | 62 | } |
63 | 63 | ||
64 | // returns true if the number of repos cloned/to clone changed | ||
65 | function cloneProgressChanged(build) { | ||
66 | var cached = getCached(build); | ||
67 | return (cached.repos_cloned_percentage !== build.repos_cloned_percentage); | ||
68 | } | ||
69 | |||
64 | function refreshMostRecentBuilds(){ | 70 | function refreshMostRecentBuilds(){ |
65 | libtoaster.getMostRecentBuilds( | 71 | libtoaster.getMostRecentBuilds( |
66 | libtoaster.ctx.mostRecentBuildsUrl, | 72 | libtoaster.ctx.mostRecentBuildsUrl, |
@@ -100,6 +106,15 @@ function mrbSectionInit(ctx){ | |||
100 | 106 | ||
101 | container.html(html); | 107 | container.html(html); |
102 | } | 108 | } |
109 | else if (cloneProgressChanged(build)) { | ||
110 | // update the clone progress text | ||
111 | selector = '#repos-cloned-percentage-' + build.id; | ||
112 | $(selector).html(build.repos_cloned_percentage); | ||
113 | |||
114 | // update the recipe progress bar | ||
115 | selector = '#repos-cloned-percentage-bar-' + build.id; | ||
116 | $(selector).width(build.repos_cloned_percentage + '%'); | ||
117 | } | ||
103 | else if (tasksProgressChanged(build)) { | 118 | else if (tasksProgressChanged(build)) { |
104 | // update the task progress text | 119 | // update the task progress text |
105 | selector = '#build-pc-done-' + build.id; | 120 | selector = '#build-pc-done-' + build.id; |