Return-Path: Received: from smtp105.biz.mail.ne1.yahoo.com (smtp105.biz.mail.ne1.yahoo.com [98.138.207.12]) by yocto-www.yoctoproject.org (Postfix) with SMTP id 326BFE00883 for ; Mon, 3 Mar 2014 07:26:59 -0800 (PST) Received: (qmail 65602 invoked from network); 3 Mar 2014 15:26:58 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s1024; t=1393860418; bh=68AdXIdQaxFZGsWQXYHsRr5Olhg4pPYNklO1s4PbTNY=; h=X-Yahoo-Newman-Property:X-YMail-OSG:X-Yahoo-SMTP:X-Rocket-Received:Date:From:To:Message-ID:In-Reply-To:References:Subject:X-Mailer:MIME-Version:Content-Type; b=nB2oacR+Yli/xIljisdfaHsO13s7kfo4NIngOE5VucW4gfQrBdi3ogyFAPDTbyb5rOxRvgnc2qAZw5/X6o90V3jhOA1oU5AOEPBfpNslnczfyJLvyljqiXiUJcKIVbeBCwSX7EwSbzwiaukoMDUjA+heU0F8rM+dhp3U09tQFlM= X-Yahoo-Newman-Property: ymail-3 X-YMail-OSG: 7WWql0oVM1lsrU2uE_P1xfk0q2PblNxobsfAC4JOYQQg0GK tT.xCfx2IiNYrcaUiH7fz9Ur.PdeB2vdhjYg87BchcdKnO0a3V72tIsB.nXH luudDMn1kWjTmwVAN0tsG43SgTFfNVUOKsiB2lr5vcQ0agpVMaxjuFYf3ZjP V3veuldEEt4LRbIY.twkLEBvT80qg98eXoAjuTDm5ZwbLSH5K857KZT8ZXgz _Tl4TvUkiYj2_jrp5NSsgkVSrSUc3wH_kddqfcyT6iBFesyveXpC407E.NZK 0cUF7ZCrCRmv3.XEAoBPmaEh8HnVLuf.lFkyV77MCytNbbkzIpRRbSweM38k f83kxb6_7v_p8FVK8enPNgGoWSQFp26i4LU6qRKBm2U.U__wJsMsObA6M8Xt 0jMwsCNtLMxAdfgVDqIkTQFedd4E9Eqxq5ycR9AFMz9t9RDooYeqd.cjm0XY amraldnRZQiXVAkAan9dnYybZeDfDEhx3WggI2OytCb0RP15pcP4atLFOYLY agtzeq1wDxvEUVmyk3Kgwb74MVVEGJtA9s2Kw0m3KgXsEIoL7PBcZ4VGDvmQ HssCoM0NDswzt3te4xpvJscPKR9tN8VQL.OXI2Prr74d9L8t6_9Ms5FHtCgf .C5JyzPUS5Q6C X-Yahoo-SMTP: _KFOQbSswBD8XdZFdQ3D6oUnpaHu X-Rocket-Received: from Amits-MacBook-Pro.local (amit@14.141.85.66 with plain [98.138.105.25]) by smtp105.biz.mail.ne1.yahoo.com with SMTP; 03 Mar 2014 07:26:58 -0800 PST Date: Mon, 3 Mar 2014 20:56:52 +0530 From: Amit Kumar Chaudhary To: "=?utf-8?Q?toaster=40yoctoproject.org?=" , =?utf-8?Q?Barros_Pena=2C_Belen?= Message-ID: In-Reply-To: References: X-Mailer: Airmail (223) MIME-Version: 1.0 Subject: Re: Errors and Warnings listing on the dashboard page. 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, 03 Mar 2014 15:27:02 -0000 Content-Type: multipart/alternative; boundary="53149f3d_5577f8e1_3d6e" --53149f3d_5577f8e1_3d6e Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Hello Belen, Pushed achaudhary/errors=5Fwarnings=5Fondashboard=5Fv2 http://git.yoctoproject.org/cgit/cgit.cgi/poky-contrib/commit/=3Fh=3Dacha= udhary/errors=5Fwarnings=5Fondashboard=5Fv2&id=3D89f5fa173857d582d6631f3f= c151dcabde9968f9 It fixes the first problem of zero errors being displayed, when no errors= are present, thanks for the test data, that helped.=C2=A0 If there are no warnings in a build, the build dashboard is showing a=C2=A0= warnings section saying '0 warnings'. Instead, the warnings section shoul= d=C2=A0 not exist when there are no warnings.=C2=A0 Yes, this should be an easy fix. I should=E2=80=99ve noticed this on othe= r prototype pages :), thanks for pointing this out. Should not show zero warnings anymore. >=46rom an interface standpoint, this is looking pretty good. I am howeve= r=C2=A0 >seeing some mismatch between the number of warnings and the number of=C2= =A0 >messages shown in the warnings section. It looks like the number of=C2=A0= >warnings is displaying the overall number of entries in the orm=5Flogmes= sage=C2=A0 >table.=C2=A0 >=C2=A0 >The number of warnings should be the number of entries in the=C2=A0 >orm=5Flogmessage table with level =3D 1. The number of errors should be = the=C2=A0 >number of entries with level =3D 2.=C2=A0 >=C2=A0 >Any chance you could verify is this what's is being shown in the=C2=A0 >interface=3F=C2=A0 Yes, there is a problem, I will take a look. This appears to be a problem rooted in the way the table is being read, I= have one error in my log file that doesn=E2=80=99t get picked up. ERROR: Nothing PROVIDES 'core-image-install'. Close matches: =C2=A0 core-image-minimal core-image-sato core-image-rt Could it be that certain type of errors are not supposed to be picked up=3F= for example the one above occurs while the build is being launched (It i= s in the bitbake command parameter itself that launches the build). There= is code as well that seems to be doing something about it, in lib/bb/ui/= toastergui.py =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 if isinstance(event, bb.event.N= oProvider): =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 return=5Fvalue =3D= 1 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 errors =3D errors= + 1 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 if event.=5Frunti= me: =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 r =3D= =22R=22 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 else: =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 r =3D= =E2=80=9C=22 =E2=80=A6 Investigating this right now. Also, is it possible you could send me the = log file using which you saw the errors and warnings number mismatch, tha= t will give me more cases to better make sense of the code and the proble= m as well. (The log file I am talking about is build/tmp/log/cooker/qemux= 86/20140213121357.log for me) Thanks=21 =E2=80=94amit =E2=80=94amit >=C2=A0 >Thanks=21=C2=A0 >=C2=A0 >Bel=C3=A9n=C2=A0 >=C2=A0 >=C2=A0 >>=C2=A0 >>=C2=A0 >>Thanks=21=C2=A0 >>=C2=A0 >>=C2=A0 >>--=C2=A0 >>Amit Kumar Chaudhary=C2=A0 >>=C2=A0 >>=C2=A0 >>=C2=A0 >>On 24 =46ebruary 2014 at 8:46:21 pm, Amit Kumar Chaudhary=C2=A0 >>(amit=40floatingpondtech.com ) wr= ote:=C2=A0 >>=C2=A0 >>Thanks Alex,=C2=A0 >>=C2=A0 >>=C2=A0 >>=22The LogMessage table is designed to hold logs coming from the build=C2= =A0 >>process itself=C2=B2=C2=A0 >>=C2=A0 >>=C2=A0 >>This is the part I was trying to figure out. I have got the handle on h= ow=C2=A0 >>to retrieve the messages from the table, (how those were put in there i= n=C2=A0 >>the first place is still a mystery),=C2=A0 >> I have added the following code to 'builddashboard(request, build=5Fid= )=C2=B9=C2=A0 >>function defined in toastergui/views.py=C2=A0 >>=C2=A0 >>=C2=A0 >> context =3D =7B=C2=A0 >> 'build' : Build.objects.filter(pk=3Dbuild=5Fid)=5B0=5D,=C2=A0 >>- 'recipecount' :=C2=A0 >>Recipe.objects.filter(layer=5Fversion=5F=5Fid=5F=5Fin=3DLayer=5FVersion= .objects.filter(=C2=A0 >>b=C2=A0 >>uild=3Dbuild=5Fid)).count()=C2=A0 >>+ 'recipecount' :=C2=A0 >>Recipe.objects.filter(layer=5Fversion=5F=5Fid=5F=5Fin=3DLayer=5FVersion= .objects.filter(=C2=A0 >>b=C2=A0 >>uild=3Dbuild=5Fid)).count(),=C2=A0 >>+ 'logmessages': LogMessage.objects.filter(build=3Dbuild=5Fid),=C2=A0 >> =7D=C2=A0 >> return render(request, template, context)=C2=A0 >>=C2=A0 >>=C2=A0 >>now I can use the logmessages in=C2=A0 >>toastergui/templates/builddashboard.html, using the html code I was=C2=A0= >>trying to re-use below. I have a patch that nearly works, I will clean=C2= =A0 >>that up a bit and post it for giving a better picture.=C2=A0 >>=C2=A0 >>=C2=A0 >>Thanks for all the insights.=C2=A0 >>=C2=A0 >>=C2=A0 >>--=C2=A0 >>Amit Kumar Chaudhary=C2=A0 >>=C2=A0 >>=C2=A0 >>=C2=A0 >>On 20 =46ebruary 2014 at 8:34:36 pm, Damian, Alexandru=C2=A0 >>(alexandru.damian=40intel.com ) = wrote:=C2=A0 >>=C2=A0 >>Hello,=C2=A0 >>=C2=A0 >>=C2=A0 >>The LogMessage table is designed to hold logs coming from the build=C2=A0= >>process itself, and not logs that result from normal task execution.=C2= =A0 >>It is the difference between the output displayed from the bitbake=C2=A0= >>command, and the output from the =22make=22 command in a =22do=5Fcompil= e=22 task.=C2=A0 >>=C2=A0 >>=C2=A0 >>=46or the latter case, we currently do not hold/save the content of suc= h=C2=A0 >>log files. We do not have yet a strategy on determining what log files=C2= =A0 >>are important, and saving everything may be=C2=A0 >> a prohibitive cost in terms of storage.=C2=A0 >>=C2=A0 >>=C2=A0 >>Hope this helps,=C2=A0 >>Alex=C2=A0 >>=C2=A0 >>=C2=A0 >>=C2=A0 >>On Thu, =46eb 20, 2014 at 11:18 AM, Amit Kumar Chaudhary=C2=A0 >> wrote:=C2=A0 >>=C2=A0 >>Hello,=C2=A0 >>=C2=A0 >>=C2=A0 >>I am just beginning with the toaster and web apps in general, and I am=C2= =A0 >>trying to add errors and warning listing to the build dashboard page, a= s=C2=A0 >>prototyped at=C2=A0 >>=C2=A0 >>=C2=A0 >>https://www.yoctoproject.org/toaster/build-dashboard-failed.html=23erro= rs=C2=A0 >>=C2=A0 >>=C2=A0 >>I am trying to re-use the following code --=C2=A0 >>=C2=A0 >>=C2=A0 >>=C2=A0 >>=7B=7Bbuild.errors=5Fno=7D=7D:=7B% if build.errors=5Fno %=7D=7B% fo= r error in logs=C2=A0 >>%=7D=7B% if error.build =3D=3D build %=7D=7B% if error.level =3D=3D 2=C2= =A0 >>%=7D

=7B=7Berror.message=7D=7D

=7B% endif %=7D=7B% endif %=7D=7B% = endfor %=7D=7B% else=C2=A0 >>%=7DNone=7B% endif %=7D=C2=A0 >>=C2=A0 >>=C2=A0 >>from=C2=A0 >>=7E/poky-contrib/bitbake/lib/toaster/bldviewer/templates/simple=5Fbuild= .html.=C2=A0 >>=C2=A0 >>=C2=A0 >>And, I am expecting the logs, for example at=C2=A0 >>=7E/poky-contrib/build/tmp/log/cooker/qemux86/20140213120738.log=C2=A0 >>=C2=A0 >>=C2=A0 >>to be read via LogMessage class below=C2=A0 >>=C2=A0 >>=C2=A0 >>class LogMessage(models.Model):=C2=A0 >> IN=46O =3D 0=C2=A0 >> WARNING =3D 1=C2=A0 >> ERROR =3D 2=C2=A0 >>=C2=A0 >>=C2=A0 >> LOG=5FLEVEL =3D ( (IN=46O, =22info=22),=C2=A0 >> (WARNING, =22warn=22),=C2=A0 >> (ERROR, =22error=22) )=C2=A0 >>=C2=A0 >>=C2=A0 >> build =3D models.=46oreignKey(Build)=C2=A0 >> level =3D models.Integer=46ield(choices=3DLOG=5FLEVEL, default=3DIN=46= O)=C2=A0 >>=E2=80=B9> message=3Dmodels.Char=46ield(max=5Flength=3D240)=C2=A0 >> pathname =3D models.=46ilePath=46ield(max=5Flength=3D255, blank=3DTrue= )=C2=A0 >> lineno =3D models.Integer=46ield(null=3DTrue)=C2=A0 >>=C2=A0 >>=C2=A0 >>implemented in =7E/poky-contrib/bitbake/lib/toaster/orm/models.py.=C2=A0= >>=C2=A0 >>=C2=A0 >>But, I can=C2=B9t seem to find the code that does it, reading from the = log=C2=A0 >>file to the sqlite table. Could someone please point me to the files/pa= th=C2=A0 >>that might contain this code, or such code for other tables.=C2=A0 >>=C2=A0 >>=C2=A0 >>Thanks=21=C2=A0 >>=C2=A0 >>=C2=A0 >>=C2=A0 >>--=C2=A0 >>Amit Kumar Chaudhary=C2=A0 >>=C2=A0 >>=C2=A0 >>=C2=A0 >>=C2=A0 >>=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F= =5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=C2=A0= >>toaster mailing list=C2=A0 >>toaster=40yoctoproject.org=C2=A0 >>https://lists.yoctoproject.org/listinfo/toaster=C2=A0 >>=C2=A0 >>=C2=A0 >>=C2=A0 >>=C2=A0 >>=C2=A0 >>=C2=A0 >>=C2=A0 >>=C2=A0 >>--=C2=A0 >>Alex Damian=C2=A0 >>Yocto Project=C2=A0 >>=C2=A0 >>SSG / OTC=C2=A0 >>=C2=A0 >>=C2=A0 >>=C2=A0 >>=C2=A0 >>=C2=A0 >>=C2=A0 >>=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F= =5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=C2=A0= >>toaster mailing list=C2=A0 >>toaster=40yoctoproject.org=C2=A0 >>https://lists.yoctoproject.org/listinfo/toaster=C2=A0 >>=C2=A0 >>=C2=A0 >>=C2=A0 >>=C2=A0 >=C2=A0 >=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F= =5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=C2=A0= >toaster mailing list=C2=A0 >toaster=40yoctoproject.org=C2=A0 >https://lists.yoctoproject.org/listinfo/toaster=C2=A0 =5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F= =5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=C2=A0 toaster mailing list=C2=A0 toaster=40yoctoproject.org=C2=A0 https://lists.yoctoproject.org/listinfo/toaster=C2=A0 --53149f3d_5577f8e1_3d6e Content-Type: text/html; charset="utf-8" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline