Openembedded Bitbake Development
 help / color / mirror / Atom feed
* [PATCH 0/2] Toaster web fixes
@ 2014-04-11 16:32 Paul Eggleton
  2014-04-11 16:32 ` [PATCH 1/2] bitbake: toaster: Fix total number of tasks in build dashboard Paul Eggleton
  2014-04-11 16:32 ` [PATCH 2/2] bitbake: toaster: Fix Empty tasks filter Paul Eggleton
  0 siblings, 2 replies; 3+ messages in thread
From: Paul Eggleton @ 2014-04-11 16:32 UTC (permalink / raw)
  To: bitbake-devel

The following changes since commit bb4980c63db386ce7d30d9a6b86e9f3861b3bc3a:

  bitbake: Update to version 1.23.0 for master (2014-04-10 17:55:41 +0100)

are available in the git repository at:

  git://git.yoctoproject.org/poky-contrib paule/toasterfixes4
  http://git.yoctoproject.org/cgit.cgi/poky-contrib/log/?h=paule/toasterfixes4

Belen Barros Pena (2):
  bitbake: toaster: Fix total number of tasks in build dashboard
  bitbake: toaster: Fix Empty tasks filter

 lib/toaster/toastergui/templates/builddashboard.html | 2 +-
 lib/toaster/toastergui/views.py                      | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

-- 
1.9.0



^ permalink raw reply	[flat|nested] 3+ messages in thread

* [PATCH 1/2] bitbake: toaster: Fix total number of tasks in build dashboard
  2014-04-11 16:32 [PATCH 0/2] Toaster web fixes Paul Eggleton
@ 2014-04-11 16:32 ` Paul Eggleton
  2014-04-11 16:32 ` [PATCH 2/2] bitbake: toaster: Fix Empty tasks filter Paul Eggleton
  1 sibling, 0 replies; 3+ messages in thread
From: Paul Eggleton @ 2014-04-11 16:32 UTC (permalink / raw)
  To: bitbake-devel

From: Belen Barros Pena <belen.barros.pena@intel.com>

The total number of tasks in the build dashboard was counting
_setscene tasks, which are not exposed by Toaster as separate
tasks. This patch makes sure that _setscene tasks are not
counted when calculating that number.

[YOCTO #6145]

Signed-off-by: Belen Barros Pena <belen.barros.pena@intel.com>
---
 lib/toaster/toastergui/templates/builddashboard.html | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lib/toaster/toastergui/templates/builddashboard.html b/lib/toaster/toastergui/templates/builddashboard.html
index fa4b194..a01ef3d 100644
--- a/lib/toaster/toastergui/templates/builddashboard.html
+++ b/lib/toaster/toastergui/templates/builddashboard.html
@@ -125,7 +125,7 @@
     <div class="well span4 dashboard-section">
         <h4><a href="{%url 'tasks' build.pk%}">Tasks</a></h4>
             <dl>
-        <dt>Total number of tasks</dt><dd><a href="{% url 'tasks' build.pk %}">{{build.task_build.all.count}}</a></dd>
+        <dt>Total number of tasks</dt><dd><a href="{% url 'tasks' build.pk %}">{% query build.task_build order__gt=0 as alltasks %}{{alltasks.count}}</a></dd>
         <dt>
             Tasks executed
             <i class="icon-question-sign get-help" title="'Executed' tasks are those that need to be run in order to generate the task output"></i>
-- 
1.9.0



^ permalink raw reply related	[flat|nested] 3+ messages in thread

* [PATCH 2/2] bitbake: toaster: Fix Empty tasks filter
  2014-04-11 16:32 [PATCH 0/2] Toaster web fixes Paul Eggleton
  2014-04-11 16:32 ` [PATCH 1/2] bitbake: toaster: Fix total number of tasks in build dashboard Paul Eggleton
@ 2014-04-11 16:32 ` Paul Eggleton
  1 sibling, 0 replies; 3+ messages in thread
From: Paul Eggleton @ 2014-04-11 16:32 UTC (permalink / raw)
  To: bitbake-devel

From: Belen Barros Pena <belen.barros.pena@intel.com>

Somehow the counter was set to count tasks with outcome
'not available', instead of outcome 'empty'. This patch
fixes the problem.

[YOCTO #6146]

Signed-off-by: Belen Barros Pena <belen.barros.pena@intel.com>
---
 lib/toaster/toastergui/views.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lib/toaster/toastergui/views.py b/lib/toaster/toastergui/views.py
index e4ada14..53be967 100644
--- a/lib/toaster/toastergui/views.py
+++ b/lib/toaster/toastergui/views.py
@@ -928,7 +928,7 @@ def tasks_common(request, build_id, variant, task_anchor):
                                ('Cached Tasks', 'outcome:%d'%Task.OUTCOME_CACHED, queryset_with_search.filter(outcome=Task.OUTCOME_CACHED).count(), 'Cached tasks restore output from the <code>sstate-cache</code> directory or mirrors'),
                                ('Prebuilt Tasks', 'outcome:%d'%Task.OUTCOME_PREBUILT, queryset_with_search.filter(outcome=Task.OUTCOME_PREBUILT).count(),'Prebuilt tasks didn\'t need to run because their output was reused from a previous build'),
                                ('Covered Tasks', 'outcome:%d'%Task.OUTCOME_COVERED, queryset_with_search.filter(outcome=Task.OUTCOME_COVERED).count(), 'Covered tasks didn\'t need to run because their output is provided by another task in this build'),
-                               ('Empty Tasks', 'outcome:%d'%Task.OUTCOME_EMPTY, queryset_with_search.filter(outcome=Task.OUTCOME_NA).count(), 'Empty tasks have no executable content'),
+                               ('Empty Tasks', 'outcome:%d'%Task.OUTCOME_EMPTY, queryset_with_search.filter(outcome=Task.OUTCOME_EMPTY).count(), 'Empty tasks have no executable content'),
                                ]
                    }
 
-- 
1.9.0



^ permalink raw reply related	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2014-04-11 16:32 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-04-11 16:32 [PATCH 0/2] Toaster web fixes Paul Eggleton
2014-04-11 16:32 ` [PATCH 1/2] bitbake: toaster: Fix total number of tasks in build dashboard Paul Eggleton
2014-04-11 16:32 ` [PATCH 2/2] bitbake: toaster: Fix Empty tasks filter Paul Eggleton

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox