From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from smtp102.biz.mail.bf1.yahoo.com (smtp102.biz.mail.bf1.yahoo.com [98.139.221.61]) by yocto-www.yoctoproject.org (Postfix) with SMTP id 74F67E007AE for ; Wed, 26 Feb 2014 04:13:55 -0800 (PST) Received: (qmail 3434 invoked from network); 26 Feb 2014 12:13:54 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s1024; t=1393416834; bh=95kENixnRj8nrQxLXuE7iBq6qPfXcaZuE2OpABl63gg=; h=X-Yahoo-Newman-Property:X-YMail-OSG:X-Yahoo-SMTP:X-Rocket-Received:Date:From:To:Cc:Message-ID:In-Reply-To:References:Subject:X-Mailer:MIME-Version:Content-Type; b=q0wJLSYZJJDbWP2phxPE1FrOrTJFhztFeqvFHX9kEW/MFXFnxuaMgYUIOCQcqK3fS6tu3C1Udp5hvbW/y8LMFpX+R7zUxDTB9mfMkTDaoHBEPuUHvqr+opzXf1pYrhpI9RqZsCWFOgfvn4oeqImEFuPVtsgEG7y4Pb8F+5xi+eg= X-Yahoo-Newman-Property: ymail-3 X-YMail-OSG: GpVa1zUVM1nmu7Z5lPRiHFlWJQPa7n5wkYrFpBYFB7s7FD_ UE.UxsqH8eCLTiIE30RMi7Dzj7klUTOBtQLV0jsxF_BdKQ0lzsXMPdWYssox 7zCCvkgDoXPZsL4AdXT5T_F9K3ZsOa.f1pic2bAtvA__6a.IM7dlq.BmoNsw m.MLMNOTRJulwtAjRr6nkEVvv__kZNMKCB1dkwjhL3ukQvB8_TbsRCGleKCE W4KgdpcO3epV0xn_laJuhRN4tL4YtF8w9b0tCzAdSoyoxo4JTa3fh56b99c9 V2MCMauDUiXiHB9cO4ZGpHGThzlQZ1Qxq18o3sTwOD99RpftwfCCzBXde0k6 68FCvPQk85z.kbBf1sBLIcJ6GXEOnSDxt8nNdeLd.wf2BDa1SUVXu0fdDeAM 8vYpyIWk7DQaDs05WRtbrdRIrg7pY.PtIvkszc3xbQdRh7Z_Qr.utGu2sU_. zWI1E0i15LwHWellze3hYs08dsif4k7v0Cm3VYS6E5dBLoM0WiO5uc8klORF lUcVH7vS5XTweiwI18S7h4G2kvrcOIHsBn1AR89WaRzxEI3lwKUn2zfu.THd zycnZc5gR2HkAzZ6ZDGRVr53VShwspUxdz8VUmZj8LFXu.f171qoBytLhA0K u91RflsX2uaooaw-- X-Yahoo-SMTP: _KFOQbSswBD8XdZFdQ3D6oUnpaHu X-Rocket-Received: from Amits-MacBook-Pro.local (amit@103.6.159.103 with plain [98.139.221.242]) by smtp102.biz.mail.bf1.yahoo.com with SMTP; 26 Feb 2014 04:13:54 -0800 PST Date: Wed, 26 Feb 2014 17:43:52 +0530 From: Amit Kumar Chaudhary To: "=?utf-8?Q?toaster=40yoctoproject.org?=" 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: Wed, 26 Feb 2014 12:13:57 -0000 Content-Type: multipart/alternative; boundary="530dda80_6b68079a_3d6e" --530dda80_6b68079a_3d6e Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Hello,=C2=A0 This is the patch I had been working on, It is complete now and works as = expected (as the prototype page), can you please review=3F http://git.yoctoproject.org/cgit/cgit.cgi/poky-contrib/commit/=3Fh=3Dacha= udhary/errors=5Fwarning=5Fon=5Fbuilddashboard&id=3D1aaada41ec2129bd9bc31c= c591b75f6d9bcb7251 Thanks=21 --=C2=A0 Amit Kumar Chaudhary On 24 =46ebruary 2014 at 8:46:21 pm, Amit Kumar Chaudhary (amit=40floatin= gpondtech.com) wrote: Thanks Alex, =22The LogMessage table is designed to hold logs coming from the build pr= ocess itself=E2=80=9D This is the part I was trying to figure out. I have got the handle on how= to retrieve the messages from the table, (how those were put in there in= the first place is still a mystery), I have added the following code to = 'builddashboard(request, build=5Fid)=E2=80=99 function defined in toaster= gui/views.py=C2=A0 =C2=A0=C2=A0 =C2=A0 context =3D =7B =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0'build' : Build.objects.f= ilter(pk=3Dbuild=5Fid)=5B0=5D, - =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0'recipecount' : Recipe.objects= .filter(layer=5Fversion=5F=5Fid=5F=5Fin=3DLayer=5FVersion.objects.filter(= build=3Dbuild=5Fid)).count() + =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0'recipecount' : Recipe.objects= .filter(layer=5Fversion=5F=5Fid=5F=5Fin=3DLayer=5FVersion.objects.filter(= build=3Dbuild=5Fid)).count(), + =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0'logmessages': LogMessage.obje= cts.filter(build=3Dbuild=5Fid), =C2=A0 =C2=A0 =C2=A0=7D =C2=A0 =C2=A0 =C2=A0return render(request, template, context) now I can use the logmessages in toastergui/templates/builddashboard.html= , using the html code I was trying to re-use below. I have a patch that n= early works, I will clean that up a bit and post it for giving a better p= icture. Thanks for all the insights. --=C2=A0 Amit Kumar Chaudhary On 20 =46ebruary 2014 at 8:34:36 pm, Damian, Alexandru (alexandru.damian=40= intel.com) wrote: Hello, The LogMessage table is designed to hold logs coming from the build proce= ss itself, and not logs that result from normal task execution.=C2=A0 It is the difference between the output displayed from the bitbake comman= d, and the output from the =22make=22 command in a =22do=5Fcompile=22 tas= k. =46or the latter case, we currently do not hold/save the content of such = log files. We do not have yet a strategy on determining what log files ar= e important, and saving everything may be a prohibitive cost in terms of = storage. Hope this helps, Alex On Thu, =46eb 20, 2014 at 11:18 AM, Amit Kumar Chaudhary wrote: Hello,=C2=A0 I am just beginning with the toaster and web apps in general, and I am tr= ying to add errors and warning listing to the build dashboard page, as pr= ototyped at https://www.yoctoproject.org/toaster/build-dashboard-failed.html=23errors= I am trying to re-use the following code -- =7B=7Bbuild.errors=5Fno=7D=7D:=7B% if =C2=A0build.errors=5Fno %=7D=7B= % for error in logs %=7D=7B% if error.build =3D=3D build %=7D=7B% if erro= r.level =3D=3D 2 %=7D

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

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