Return-Path: Received: by yocto-www.yoctoproject.org (Postfix, from userid 118) id 3F29BE00A49; Thu, 15 Oct 2015 01:01:45 -0700 (PDT) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on yocto-www.yoctoproject.org X-Spam-Level: X-Spam-Status: No, score=-6.9 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 X-Spam-HAM-Report: * -5.0 RCVD_IN_DNSWL_HI RBL: Sender listed at http://www.dnswl.org/, high * trust * [134.134.136.65 listed in list.dnswl.org] * -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% * [score: 0.0000] Received: from mga03.intel.com (mga03.intel.com [134.134.136.65]) by yocto-www.yoctoproject.org (Postfix) with ESMTP id 28454E006D5 for ; Thu, 15 Oct 2015 01:01:41 -0700 (PDT) Received: from fmsmga003.fm.intel.com ([10.253.24.29]) by orsmga103.jf.intel.com with ESMTP; 15 Oct 2015 01:01:40 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.17,684,1437462000"; d="scan'208";a="581183477" Received: from scotter-mobl1.ger.corp.intel.com (HELO lp.ger.corp.intel.com) ([10.252.22.76]) by FMSMGA003.fm.intel.com with ESMTP; 15 Oct 2015 01:01:39 -0700 From: Elliot Smith To: toaster@yoctoproject.org Date: Thu, 15 Oct 2015 09:01:22 +0100 Message-Id: <1444896084-9521-3-git-send-email-elliot.smith@intel.com> X-Mailer: git-send-email 1.9.3 In-Reply-To: <1444896084-9521-1-git-send-email-elliot.smith@intel.com> References: <1444896084-9521-1-git-send-email-elliot.smith@intel.com> Subject: [review-request][PATCH 2/4] toaster: Remove Toaster exceptions section of build dashboard X-BeenThere: toaster@yoctoproject.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: Web based interface for BitBake List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 15 Oct 2015 08:01:45 -0000 Fatal build errors were displayed as exceptions, and highlighted with less severity than they deserved. Roll back to treating Toaster exceptions as errors by removing the toaster_exceptions member on Build objects and displaying EXCEPTION events in the errors section on the dashboard. [YOCTO #8320] Signed-off-by: Elliot Smith --- bitbake/lib/toaster/orm/models.py | 4 -- .../toastergui/templates/builddashboard.html | 45 ++-------------------- 2 files changed, 4 insertions(+), 45 deletions(-) diff --git a/bitbake/lib/toaster/orm/models.py b/bitbake/lib/toaster/orm/models.py index 6ca45e0..a784b1b 100644 --- a/bitbake/lib/toaster/orm/models.py +++ b/bitbake/lib/toaster/orm/models.py @@ -348,10 +348,6 @@ class Build(models.Model): return Build.BUILD_OUTCOME[int(self.outcome)][1] @property - def toaster_exceptions(self): - return self.logmessage_set.filter(level=LogMessage.EXCEPTION) - - @property def errors(self): return (self.logmessage_set.filter(level=LogMessage.ERROR) | self.logmessage_set.filter(level=LogMessage.EXCEPTION) | diff --git a/bitbake/lib/toaster/toastergui/templates/builddashboard.html b/bitbake/lib/toaster/toastergui/templates/builddashboard.html index fc6cae6..75ca8bc 100644 --- a/bitbake/lib/toaster/toastergui/templates/builddashboard.html +++ b/bitbake/lib/toaster/toastergui/templates/builddashboard.html @@ -44,14 +44,6 @@ {%endif%} - {% if build.toaster_exceptions.count > 0 %} - - {% endif %} @@ -69,12 +61,10 @@
- {% for error in logmessages %} - {% if error.level == 2 or error.level == 3 %} -
-
{{error.message}}
-
- {% endif %} + {% for error in build.errors %} +
+
{{error.message}}
+
{% endfor %}
@@ -271,33 +261,6 @@
{% endif %} - -{% if build.toaster_exceptions.count > 0 %} -
-
- -
-
-
- {% for exception in build.toaster_exceptions %} -
-
{{exception.message}}
-
- {% endfor %} -
-
-
-
-
-{% endif %} -