From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from smtp104.biz.mail.bf1.yahoo.com (smtp104.biz.mail.bf1.yahoo.com [98.139.221.63]) by yocto-www.yoctoproject.org (Postfix) with SMTP id A2445E00563 for ; Thu, 27 Feb 2014 04:59:35 -0800 (PST) Received: (qmail 23614 invoked from network); 27 Feb 2014 12:59:34 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s1024; t=1393505974; bh=kWOHB3QFzhfyZuZ8/I6+ZDzwusZJk47fOkMfFsy9CWE=; h=X-Yahoo-Newman-Property:X-YMail-OSG:X-Yahoo-SMTP:X-Rocket-Received:Date:From:To:Message-ID:Subject:X-Mailer:MIME-Version:Content-Type; b=GojDkIlgvP7+hDrccyyoAK4e8VRYXHwNdS05ZwSzDcHG+PCino5nKbIx/9RI0QM+GqatPLzSbOQl/TY5Q8+jb7bNrn4BnqBOXislaGsMcwME94YwM2YjyvFgIlcumMSVJvEAM2AlFoaffbwB+Oxc/AbFehIyDnqeHfpDw+cANnk= X-Yahoo-Newman-Property: ymail-3 X-YMail-OSG: guJuFPoVM1n0qVu2XZUXFN9vAcI29he5Mo59IkaCLegVDp6 DwKZWpOpkiTi_vyYM9fAxpXsnoRkCu6xCSuuw_sFoN2X1b6VQBFKOwMw4ofs oW0do7M9jHE_L9OeOcK.AZTDX3BhrPk8mNp1XE75qvY3RLP7CT8KmFjVlp_q Kt6ZNCCaVPrXwUEOV6S7XJKLvSPx3ePcYrsox2ihyknlbx.vquMp4udSCx_Z ctyVbbvsFVcCSfrqRXH7wWOV21hejoa4LzzzRwk5kyPbFSr0N2IwwldXauKR SnGVn0OiWuqK9X6KTAvJvjh9bQq18_BbBObjzG4kRMBdfKa3tC41DZjcFLjw ZzcsYpZDpUkOA4U7yRUciYA.uvFS0dmd3L2IqMd_SF.qWzdCdOJs7rbrYw5F kZq1QcL626Z2gySs5YVlX2Dx7ZxLtqmOZ50bkcELH48o7Jg5Vfs1USwQPlp2 Wfs27q6WzvDhymdsgD5cfGa0kNHMlASshsn6yq.ZRGV_pm6f6wrZJBc67FUc oruY6vcgnbW7MV1iuO9bad57dNno2dGSqflO0C66bFjjyAWYfrynMao271j0 GW9EX3VOwvID1B.v4w4IvK9.HA9xXXwl0meI4Mw-- X-Yahoo-SMTP: _KFOQbSswBD8XdZFdQ3D6oUnpaHu X-Rocket-Received: from Amits-MacBook-Pro.local (amit@103.6.159.103 with plain [98.139.221.242]) by smtp104.biz.mail.bf1.yahoo.com with SMTP; 27 Feb 2014 04:59:34 -0800 PST Date: Thu, 27 Feb 2014 18:29:32 +0530 From: Amit Kumar Chaudhary To: "=?utf-8?Q?toaster=40yoctoproject.org?=" , =?utf-8?Q?Barros_Pena=2C_Belen?= Message-ID: 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: Thu, 27 Feb 2014 12:59:39 -0000 Content-Type: multipart/alternative; boundary="530f36b4_721da317_3d6e" --530f36b4_721da317_3d6e Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Thanks Belen, Comments below,=C2=A0 On 26 =46ebruary 2014 at 7:29:05 pm, Barros Pena, Belen (belen.barros.pen= a=40intel.com) wrote: And of course I forgot something: sorry about that.=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. Cheers=C2=A0 Bel=C3=A9n=C2=A0 On 26/02/2014 13:52, =22Barros Pena, Belen=22 =C2=A0 wrote:=C2=A0 >On 26/02/2014 12:13, =22Amit Kumar Chaudhary=22 =C2=A0 >wrote:=C2=A0 >=C2=A0 >>=C2=A0 >>Hello,=C2=A0 >>=C2=A0 >>=C2=A0 >>This is the patch I had been working on, It is complete now and works a= s=C2=A0 >>expected (as the prototype page), can you please review=3F=C2=A0 >>=C2=A0 >>=C2=A0 >>http://git.yoctoproject.org/cgit/cgit.cgi/poky-contrib/commit/=3Fh=3Dac= haudha=C2=A0 >>r=C2=A0 >>y/errors=5Fwarning=5Fon=5Fbuilddashboard&id=3D1aaada41ec2129bd9bc31cc59= 1b75f6d9bc=C2=A0 >>b=C2=A0 >>7251=C2=A0 >=C2=A0 >Hi Amit,=C2=A0 >=C2=A0 >=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. =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 --530f36b4_721da317_3d6e Content-Type: text/html; charset="utf-8" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline --530f36b4_721da317_3d6e--