From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dan.rpsys.net (dan.rpsys.net [93.97.175.187]) by mail.openembedded.org (Postfix) with ESMTP id BBC7A6D136 for ; Mon, 4 Nov 2013 09:16:42 +0000 (UTC) Received: from localhost (dan.rpsys.net [127.0.0.1]) by dan.rpsys.net (8.14.4/8.14.4/Debian-2.1ubuntu1) with ESMTP id rA49GVV4004440; Mon, 4 Nov 2013 09:16:31 GMT X-Virus-Scanned: Debian amavisd-new at dan.rpsys.net 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 cSNEdGud5CF5; Mon, 4 Nov 2013 09:16:31 +0000 (GMT) Received: from [192.168.3.10] (rpvlan0 [192.168.3.10]) (authenticated bits=0) by dan.rpsys.net (8.14.4/8.14.4/Debian-2.1ubuntu1) with ESMTP id rA49GRpZ004435 (version=TLSv1/SSLv3 cipher=DHE-RSA-CAMELLIA256-SHA bits=256 verify=NOT); Mon, 4 Nov 2013 09:16:28 GMT Message-ID: <1383556582.6271.98.camel@ted> From: Richard Purdie To: "Stoicescu, CorneliuX" Date: Mon, 04 Nov 2013 09:16:22 +0000 In-Reply-To: <33115ABC4887814E8A92A08FBC93416B0A1A9E54@IRSMSX103.ger.corp.intel.com> References: <1383329028-24348-1-git-send-email-corneliux.stoicescu@intel.com> <1383329237.6271.62.camel@ted> <33115ABC4887814E8A92A08FBC93416B0A1A9E54@IRSMSX103.ger.corp.intel.com> X-Mailer: Evolution 3.6.4-0ubuntu1 Mime-Version: 1.0 Cc: "openembedded-core@lists.openembedded.org" Subject: Re: [PATCH] Modify buildstats to be merged inside buildhistory X-BeenThere: openembedded-core@lists.openembedded.org X-Mailman-Version: 2.1.12 Precedence: list List-Id: Patches and discussions about the oe-core layer List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 04 Nov 2013 09:16:44 -0000 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit On Sun, 2013-11-03 at 11:37 +0000, Stoicescu, CorneliuX wrote: > > > +BUILDSTATS_BASE = "${BUILDHISTORY_DIR}/buildstats" > > > BNFILE = "${BUILDSTATS_BASE}/.buildname" > > > DEVFILE = "${BUILDSTATS_BASE}/.device" > > > > so when buildhistory is used, buildstats automatically becomes part of it? > > > > > @@ -33,7 +33,7 @@ def set_bn(e): > > > > > > def get_bn(e): > > > with open(e.data.getVar('BNFILE', True)) as f: > > > - bn = f.readline() > > > + bn = str(f.readline()).split("/")[0] > > > return bn > > > > > > def set_device(e): > > > @@ -175,6 +175,10 @@ python run_buildstats () { > > > # set the buildname > > > > > ############################################################## > > ########## > > > try: > > > + bb.utils.remove(e.data.getVar('BUILDSTATS_BASE', True), > > > + recurse=True) > > > > > > Do we need to remove this? > > > > By reworking the buildstats directory structure to not use the build > date to separate builds, if we don't remove buildstats each time we > make a new build the information from multiple builds will merge and > tools like bybootchartguy.py will not work anymore with buildstats. I'd have expected that separate directories for each build are still maintained. Testing locally here, I can use pybootchartgui in the form: scripts/pybootchartgui/pybootchartgui.py build/tmp/buildstats/core-image-sato-qemux86/201309302155/ and I'd have thought a similar command would still work in buildhistory since we'd still have the timestamped directory there? Cheers, Richard