Return-Path: Received: by yocto-www.yoctoproject.org (Postfix, from userid 118) id 5157FE00CE5; Fri, 19 Feb 2016 04:16:22 -0800 (PST) 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.24 listed in list.dnswl.org] * -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% * [score: 0.0000] Received: from mga09.intel.com (mga09.intel.com [134.134.136.24]) by yocto-www.yoctoproject.org (Postfix) with ESMTP id B2F4CE00C6A for ; Fri, 19 Feb 2016 04:16:20 -0800 (PST) Received: from fmsmga004.fm.intel.com ([10.253.24.48]) by orsmga102.jf.intel.com with ESMTP; 19 Feb 2016 04:16:19 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.22,470,1449561600"; d="scan'208";a="50840007" Received: from cbyrne3-mobl2.ger.corp.intel.com (HELO lp.ger.corp.intel.com) ([10.252.31.22]) by fmsmga004.fm.intel.com with ESMTP; 19 Feb 2016 04:16:17 -0800 From: Elliot Smith To: toaster@yoctoproject.org Date: Fri, 19 Feb 2016 12:16:12 +0000 Message-Id: <1455884173-11135-1-git-send-email-elliot.smith@intel.com> X-Mailer: git-send-email 1.9.3 Subject: [PATCH][v2] Create Build object earlier in bitbake processing (cover letter) 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: Fri, 19 Feb 2016 12:16:22 -0000 v2: fix fixtures for unit tests which broke because of build_name being removed v1: see https://lists.yoctoproject.org/pipermail/toaster/2016-February/003837.html To capture command-line build failures earlier, add an additional event to the bitbake XMLRPC server which fires just before the buildTargets command is run. This event contains the target and task information required by Toaster for annotating a build so that it displays correctly in the "recent builds" page fragment. Toaster can then capture builds which fail very early in the build process (e.g. due to bitbake misconfiguration or bad targets) and display them intelligibly. To test, try the following on the command line: 1. Set an invalid MACHINE in conf/local.conf and do a build of a valid target, e.g. bitbake zlib. 2. Set an invalid DISTRO in conf/local.conf and do a build of a valid target, e.g. bitbake zlib. 3. Try to build an invalid target, e.g. bitbake zzz. In all cases, the "all builds" pages should show the failed command line builds. Note that fixing bug 8443 will improve how we show these early failed builds. Related bug: https://bugzilla.yoctoproject.org/show_bug.cgi?id=8440 Changes since c0fe43b (toaster-next) are in git://git.yoctoproject.org/poky-contrib, elliot/toaster/failed_builds-8440-v5 http://git.yoctoproject.org/cgit.cgi/poky-contrib/log/?h=elliot/toaster/failed_builds-8440-v5 Elliot Smith (1): toaster: create Build object earlier in bitbake processing bitbake/lib/bb/event.py | 7 +++ bitbake/lib/bb/server/xmlrpc.py | 3 + bitbake/lib/bb/ui/buildinfohelper.py | 73 ++++++++++------------ bitbake/lib/bb/ui/toasterui.py | 21 ++++--- .../orm/migrations/0005_remove_build_build_name.py | 18 ++++++ bitbake/lib/toaster/orm/models.py | 1 - .../fixtures/toastergui-unittest-data.xml | 4 -- 7 files changed, 73 insertions(+), 54 deletions(-) create mode 100644 bitbake/lib/toaster/orm/migrations/0005_remove_build_build_name.py -- Elliot Smith Software Engineer Intel OTC --------------------------------------------------------------------- Intel Corporation (UK) Limited Registered No. 1134945 (England) Registered Office: Pipers Way, Swindon SN3 1RJ VAT No: 860 2173 47 This e-mail and any attachments may contain confidential material for the sole use of the intended recipient(s). Any review or distribution by others is strictly prohibited. If you are not the intended recipient, please contact the sender and delete all copies.