From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by yocto-www.yoctoproject.org (Postfix, from userid 118) id 8C27CE00C8D; Mon, 21 Mar 2016 12:54:40 -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 * [192.55.52.88 listed in list.dnswl.org] * -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% * [score: 0.0000] Received: from mga01.intel.com (mga01.intel.com [192.55.52.88]) by yocto-www.yoctoproject.org (Postfix) with ESMTP id E5004E00B9C for ; Mon, 21 Mar 2016 12:54:36 -0700 (PDT) Received: from fmsmga002.fm.intel.com ([10.253.24.26]) by fmsmga101.fm.intel.com with ESMTP; 21 Mar 2016 12:54:09 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.24,373,1455004800"; d="scan'208";a="942053855" Received: from jsanz-mobl2.ger.corp.intel.com (HELO lp.ger.corp.intel.com) ([10.252.5.136]) by fmsmga002.fm.intel.com with ESMTP; 21 Mar 2016 12:54:08 -0700 From: Elliot Smith To: toaster@yoctoproject.org Date: Mon, 21 Mar 2016 19:53:52 +0000 Message-Id: <1458590033-4724-2-git-send-email-elliot.smith@intel.com> X-Mailer: git-send-email 1.9.3 In-Reply-To: <1458590033-4724-1-git-send-email-elliot.smith@intel.com> References: <1458590033-4724-1-git-send-email-elliot.smith@intel.com> Subject: [PATCH 1/2] toaster: adjust build dashboard for failed builds 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: Mon, 21 Mar 2016 19:54:40 -0000 Remove the side bar and build details modules for failed builds. Modify templates so that the span is moved out of the individual elements and into the container. This makes it simpler to change the width of the main container, depending on whether the build failed or not (which in turn hides or shows the left-hand menu). [YOCTO #8443] Signed-off-by: Elliot Smith --- bitbake/lib/toaster/orm/models.py | 15 ++ .../toastergui/templates/basebuildpage.html | 148 ++++++++-------- .../lib/toaster/toastergui/templates/bpackage.html | 2 - .../toastergui/templates/builddashboard.html | 174 +++++++++--------- .../toastergui/templates/configuration.html | 4 +- .../toaster/toastergui/templates/configvars.html | 4 +- .../lib/toaster/toastergui/templates/dirinfo.html | 105 ++++++----- .../lib/toaster/toastergui/templates/recipes.html | 2 - .../lib/toaster/toastergui/templates/target.html | 6 +- .../lib/toaster/toastergui/templates/tasks.html | 196 ++++++++++----------- bitbake/lib/toaster/toastergui/views.py | 1 + 11 files changed, 332 insertions(+), 325 deletions(-) diff --git a/bitbake/lib/toaster/orm/models.py b/bitbake/lib/toaster/orm/models.py index 3c98c0b..1d69c24 100644 --- a/bitbake/lib/toaster/orm/models.py +++ b/bitbake/lib/toaster/orm/models.py @@ -516,6 +516,21 @@ class Build(models.Model): return target_labels + def started(self): + """ + As build variables are only added for a build when its BuildStarted event + is received, a build with no build variables is counted as + "in preparation" and not properly started yet. This method + will return False if a build has no build variables (it never properly + started), or True otherwise. + + Note that this is a temporary workaround for the fact that we don't + have a fine-grained state variable on a build which would allow us + to record "in progress" (BuildStarted received) vs. "in preparation". + """ + variables = Variable.objects.filter(build=self) + return len(variables) > 0 + def get_current_status(self): """ get the status string from the build request if the build diff --git a/bitbake/lib/toaster/toastergui/templates/basebuildpage.html b/bitbake/lib/toaster/toastergui/templates/basebuildpage.html index ff9433e..7762210 100644 --- a/bitbake/lib/toaster/toastergui/templates/basebuildpage.html +++ b/bitbake/lib/toaster/toastergui/templates/basebuildpage.html @@ -2,89 +2,81 @@ {% load projecttags %} {% load project_url_tag %} {% load humanize %} -{% block pagecontent %} +{% block pagecontent %} + +
+ + +
-
- -
-