From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dan.rpsys.net (5751f4a1.skybroadband.com [87.81.244.161]) by mail.openembedded.org (Postfix) with ESMTP id 8BD7C760F4 for ; Mon, 12 Oct 2015 04:55:23 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by dan.rpsys.net (8.14.4/8.14.4/Debian-4.1ubuntu1) with ESMTP id t9C4tHZS016280; Mon, 12 Oct 2015 05:55:17 +0100 Received: from dan.rpsys.net ([127.0.0.1]) by localhost (dan.rpsys.net [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 9HDbNk768hJc; Mon, 12 Oct 2015 05:55:17 +0100 (BST) Received: from [192.168.3.10] ([192.168.3.10]) (authenticated bits=0) by dan.rpsys.net (8.14.4/8.14.4/Debian-4.1ubuntu1) with ESMTP id t9C4sxht016274 (version=TLSv1/SSLv3 cipher=AES128-GCM-SHA256 bits=128 verify=NOT); Mon, 12 Oct 2015 05:55:12 +0100 Message-ID: <1444625699.29375.12.camel@linuxfoundation.org> From: Richard Purdie To: ed.bartosh@linux.intel.com Date: Mon, 12 Oct 2015 05:54:59 +0100 In-Reply-To: <20151011200231.GA25841@linux.intel.com> References: <04c22e69056969f61173107062a4eec82a4bc3ed.1444038048.git.elliot.smith@intel.com> <1444537330.14364.5.camel@linuxfoundation.org> <20151011200231.GA25841@linux.intel.com> X-Mailer: Evolution 3.12.11-0ubuntu3 Mime-Version: 1.0 Cc: bitbake-devel@lists.openembedded.org, "Bartosh, Eduard" Subject: Re: [PATCH 1/6] event: add new property to BuildBase class X-BeenThere: bitbake-devel@lists.openembedded.org X-Mailman-Version: 2.1.12 Precedence: list List-Id: Patches and discussion that advance bitbake development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 12 Oct 2015 04:55:28 -0000 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit On Sun, 2015-10-11 at 23:02 +0300, Ed Bartosh wrote: > On Sun, Oct 11, 2015 at 05:22:10AM +0100, Richard Purdie wrote: > > On Mon, 2015-10-05 at 10:43 +0100, Elliot Smith wrote: > > > From: Ed Bartosh > > > > > > Added 'task' property to the base class of BuildStarted and > > > BuildCompleted classes to store bitbake task if it's specified. > > > > > > This is done as without task Build* events can't fully represent > > > bitbake build. Task information is needed by UI classes to properly > > > show or process Build* events. > > > > This doesn't make sense I'm afraid. There is no one "task" which a build > > start/complete event can correspond to. Consider something like: > > > > "bitbake A:do_fetch B:do_rootfs" > > > > There would be one BuildStarted event but task doesn't have a singular > > value. We therefore don't want to add task information to these events > > as it will ultimately mislead anything building on top of this > > information. > > > > I appreciate there is the -c option, but that just means "if there is no > > specific task specified, use this", i.e. its a default. > > > > OK. can we call it 'default_task' then? > You spotted it's purpose right - it's done to represent the task > specified by -c option. That would certainly be better. I am a little worried how this would be used in the UI though. Can you explain where and why the UI needs this piece of information? Cheers, Richard