Return-Path: Received: by yocto-www.yoctoproject.org (Postfix, from userid 118) id 0E8BBE00E63; Mon, 13 Jun 2016 02:25:51 -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=-1.1 required=5.0 tests=BAYES_00,RCVD_IN_SORBS_WEB autolearn=no version=3.3.1 X-Spam-HAM-Report: * 0.8 RCVD_IN_SORBS_WEB RBL: SORBS: sender is an abusable web server * [213.46.252.136 listed in dnsbl.sorbs.net] * -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% * [score: 0.0000] X-Greylist: delayed 2216 seconds by postgrey-1.32 at yocto-www; Mon, 13 Jun 2016 02:25:47 PDT Received: from nv-egress-001.mailchannels.net (seahorse.cherry.relay.mailchannels.net [23.83.223.161]) by yocto-www.yoctoproject.org (Postfix) with ESMTP id F2058E00CD3 for ; Mon, 13 Jun 2016 02:25:46 -0700 (PDT) X-Sender-Id: hostpapa|x-authuser|pidge@toganlabs.com Received: from relay.mailchannels.net (localhost [127.0.0.1]) by relay.mailchannels.net (Postfix) with ESMTP id 1F36F122F52; Mon, 13 Jun 2016 08:48:42 +0000 (UTC) Received: from hp181.hostpapa.com (ip-10-123-105-117.us-west-2.compute.internal [10.123.105.117]) by relay.mailchannels.net (Postfix) with ESMTPA id 2A8FC12202A; Mon, 13 Jun 2016 08:48:41 +0000 (UTC) X-Sender-Id: hostpapa|x-authuser|pidge@toganlabs.com Received: from hp181.hostpapa.com (hp181.hostpapa.com [10.223.11.100]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384) by 0.0.0.0:2500 (trex/5.6.14); Mon, 13 Jun 2016 08:48:42 +0000 X-MC-Relay: Neutral X-MailChannels-SenderId: hostpapa|x-authuser|pidge@toganlabs.com X-MailChannels-Auth-Id: hostpapa X-MC-Loop-Signature: 1465807721785:152335048 X-MC-Ingress-Time: 1465807721785 Received: from [213.46.252.136] (port=12482 helo=[192.168.224.79]) by hp181.hostpapa.com with esmtpsa (TLSv1.2:ECDHE-RSA-AES128-GCM-SHA256:128) (Exim 4.86_1) (envelope-from ) id 1bCNXy-001BJ8-5j; Mon, 13 Jun 2016 10:48:39 +0200 Message-ID: <1465807715.4615.14.camel@toganlabs.com> From: Beth 'pidge' Flanagan To: =?ISO-8859-1?Q?An=EDbal_Lim=F3n?= , "Randle, William C" , "Lock, Joshua G" Date: Mon, 13 Jun 2016 09:48:35 +0100 In-Reply-To: <5759DE3F.9040002@linux.intel.com> References: <5759DE3F.9040002@linux.intel.com> Organization: toganlabs.com X-Mailer: Evolution 3.18.5.2-0ubuntu3 Mime-Version: 1.0 X-OutGoing-Spam-Status: No, score=-1.0 X-AuthUser: pidge@toganlabs.com Cc: "yocto@yoctoproject.org" Subject: Re: [yocto-autobuilder] [RFC] Add support for generate bitbake error reports X-BeenThere: yocto@yoctoproject.org X-Mailman-Version: 2.1.13 Precedence: list Reply-To: pidge@toganlabs.com List-Id: Discussion of all things Yocto Project List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 13 Jun 2016 09:25:51 -0000 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Thu, 2016-06-09 at 16:23 -0500, An=C3=ADbal Lim=C3=B3n wrote: > Hi folks, >=20 > Currently we support to send error reports to errors.yoctoproject.org > about failing tasks on bitbake using SendErrorReport buildstep but we > have a lack of bitbake related errors like exceptions. >=20 > A bug exist to implement this support into Error report web [1], i'm > working on it but for generate bitbake error reports there's a need > of > some process monitoring the bitbake output in this case the Yocto > Autobuilder. >=20 > This email is for review my current implementation for generate > bitbake > error reports in the Autobuilder [2] next i'll try to explain how it > works. >=20 > I aadded a BitbakeShellCommand [3] class for use in the buildsteps > that > executes bitbake the main objective of this class is to have common > operations to be made in bitbake commands like create error reports > if > fails. >=20 > For create error reports this class add an stdio observer to look at > bitbake output and if bitbake fails review the bitbake output for > identify if the failure is an non-related task error [4]. If the > observer found bitbake error creates an Error report with the > information in the master controller. >=20 > In order to send the bitbake error to Error report web the controller > transfer the report to the worker using a new DownloadDirectory > implementation that i made [5], the SendErrorReport buildstep works > on > the worker side so it's easy to transfer the reports from master to > worker instead of send it by master. >=20 > Finally to complete with the job of have the bitbake errors reports > the > Error report web changes need=C2=A0=C2=A0(i'm working on it) to be inte= grated > first in order to don't break anything. >=20 > Please review it and provide me feedback. >=20 1. fix the commit message to ea1d5b35bc77bad5d2 2. in same, why are you removing buildset-config.controller/poky- tiny.conf? I believe this is still supported (and even if it isn't in master, we maintain backwards compatibility) As a whole, I like what is being done here. I would like this put on the devel cluster before bringing it into production, just to smoke test this, both with nightly builds and single builds. I can't see anything that would obviously blow up though. cheers, -b --=20 Beth 'pidge' Flanagan toganlabs.com > Cheers, > alimon >=20 > [1] https://bugzilla.yoctoproject.org/show_bug.cgi?id=3D7583 > [2] > http://git.yoctoproject.org/cgit/cgit.cgi/yocto-autobuilder/log/?h=3Dco > ntrib/alimon/devel > [3] > http://git.yoctoproject.org/cgit/cgit.cgi/yocto-autobuilder/tree/lib/ > python2.7/site- > packages/autobuilder/lib/buildsteps.py?h=3Dcontrib/alimon/devel#n92 > [4] > http://git.yoctoproject.org/cgit/cgit.cgi/yocto-autobuilder/tree/lib/ > python2.7/site- > packages/autobuilder/lib/buildsteps.py?h=3Dcontrib/alimon/devel#n53 > [5] > http://git.yoctoproject.org/cgit/cgit.cgi/yocto-autobuilder/commit/?h > =3Dcontrib/alimon/devel&id=3D4022920bb0e56d1eef3dfe7c5e9b4699f801cdf1 >=20