<html xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40"><head><meta http-equiv=Content-Type content="text/html; charset=utf-8"><meta name=Generator content="Microsoft Word 15 (filtered medium)"><style><!--
/* Font Definitions */
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri",sans-serif;}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:#954F72;
        text-decoration:underline;}
p.MsoListParagraph, li.MsoListParagraph, div.MsoListParagraph
        {mso-style-priority:34;
        margin-top:0in;
        margin-right:0in;
        margin-bottom:0in;
        margin-left:.5in;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri",sans-serif;}
.MsoChpDefault
        {mso-style-type:export-only;}
@page WordSection1
        {size:8.5in 11.0in;
        margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
        {page:WordSection1;}
/* List Definitions */
@list l0
        {mso-list-id:1054623226;
        mso-list-type:hybrid;
        mso-list-template-ids:916519522 67698703 67698713 67698715 67698703 67698713 67698715 67698703 67698713 67698715;}
@list l0:level1
        {mso-level-tab-stop:none;
        mso-level-number-position:left;
        text-indent:-.25in;}
@list l0:level2
        {mso-level-number-format:alpha-lower;
        mso-level-tab-stop:none;
        mso-level-number-position:left;
        text-indent:-.25in;}
@list l0:level3
        {mso-level-number-format:roman-lower;
        mso-level-tab-stop:none;
        mso-level-number-position:right;
        text-indent:-9.0pt;}
@list l0:level4
        {mso-level-tab-stop:none;
        mso-level-number-position:left;
        text-indent:-.25in;}
@list l0:level5
        {mso-level-number-format:alpha-lower;
        mso-level-tab-stop:none;
        mso-level-number-position:left;
        text-indent:-.25in;}
@list l0:level6
        {mso-level-number-format:roman-lower;
        mso-level-tab-stop:none;
        mso-level-number-position:right;
        text-indent:-9.0pt;}
@list l0:level7
        {mso-level-tab-stop:none;
        mso-level-number-position:left;
        text-indent:-.25in;}
@list l0:level8
        {mso-level-number-format:alpha-lower;
        mso-level-tab-stop:none;
        mso-level-number-position:left;
        text-indent:-.25in;}
@list l0:level9
        {mso-level-number-format:roman-lower;
        mso-level-tab-stop:none;
        mso-level-number-position:right;
        text-indent:-9.0pt;}
ol
        {margin-bottom:0in;}
ul
        {margin-bottom:0in;}
--></style></head><body lang=EN-US link=blue vlink="#954F72"><div class=WordSection1><p class=MsoNormal>Hi Mark,<br><br>Thanks for the response!</p><p class=MsoNormal><o:p> </o:p></p><ol style='margin-top:0in' start=1 type=1><li class=MsoListParagraph style='margin-left:0in;mso-list:l0 level1 lfo1'><i>Code coverage <br><br><o:p></o:p></i></li></ol><p class=MsoNormal>We’ll try to generate the report locally for now and then investigate how to use CI for automatic report generation. Once we have some updates it would be great to have a call to discuss them. <br><br></p><ol style='margin-top:0in' start=2 type=1><li class=MsoListParagraph style='margin-left:0in;mso-list:l0 level1 lfo1'><i>Blacklist Mesa CI files<br><br><o:p></o:p></i></li></ol><p class=MsoNormal>Based on your answer, we’ll monitor such tests from our side and will create the MRs in the future.<br>In regard to the reported ones, we’ve created the corresponding MRs. </p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>Please let us know if anything from our side is needed. Thanks!<br><br></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>Best Regards,</p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal style='background:white'><b><span style='font-size:9.0pt;font-family:"Arial",sans-serif'>Daria Kartavtseva | Associate Manager</span></b><br><span style='font-size:9.0pt;font-family:"Arial",sans-serif'>GlobalLogic</span><br><span style='font-size:9.0pt;font-family:"Arial",sans-serif'>M +38 066 887 65 88  S kartavceva_darya<o:p></o:p></span></p><p class=MsoNormal style='background:white'><a href="http://www.globallogic.com/" target="_blank"><span style='font-size:9.0pt;font-family:"Arial",sans-serif;color:#1155CC'>www.globallogic.com</span></a><span style='font-size:10.0pt'><br><br></span><a href="http://www.globallogic.com/email_disclaimer.txt" target="_blank"><span style='font-size:8.5pt;font-family:"Arial",sans-serif;color:#1155CC'>http://www.globallogic.com/email_disclaimer.txt</span></a><span style='font-size:10.5pt;font-family:"Arial",sans-serif;color:#172B4D'><o:p></o:p></span></p><p class=MsoNormal><o:p> </o:p></p><div style='mso-element:para-border-div;border:none;border-top:solid #E1E1E1 1.0pt;padding:3.0pt 0in 0in 0in'><p class=MsoNormal style='border:none;padding:0in'><b>From: </b><a href="mailto:mark.a.janes@intel.com">Mark Janes</a><br><b>Sent: </b>Friday, May 24, 2019 7:54 PM<br><b>To: </b><a href="mailto:denys.kostin@globallogic.com">Denys</a>; <a href="mailto:mesa-ci-intel@lists.freedesktop.org">mesa-ci-intel@lists.freedesktop.org</a><br><b>Cc: </b><a href="mailto:Intel-Graphics-Dev@globallogic.com">Intel-Graphics-Dev@globallogic.com</a>; <a href="mailto:luis.strano@intel.com">Strano, Luis</a><br><b>Subject: </b>Re: [Mesa-ci-intel] [Intel CI]. Questions related to integration codecoverage report into the CI and workflow for blacklisted cases</p></div><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>Denys <denys.kostin@globallogic.com> writes:</p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>> Hello Clayton and Intel team!</p><p class=MsoNormal>><o:p> </o:p></p><p class=MsoNormal>><o:p> </o:p></p><p class=MsoNormal>> We have several points that we'd like to share and discuss with you.</p><p class=MsoNormal>><o:p> </o:p></p><p class=MsoNormal>> 1) Code coverage</p><p class=MsoNormal>><o:p> </o:p></p><p class=MsoNormal>> Currently, we're working on a code quality improvement by measuring code </p><p class=MsoNormal>> coverage and detecting the parts of the Mesa code which aren't covered </p><p class=MsoNormal>> enough with the tests.</p><p class=MsoNormal>><o:p> </o:p></p><p class=MsoNormal>> To start with, we've measured code coverage with the tests using only </p><p class=MsoNormal>> one architecture (Kabylake). Though, there are a lot of code paths which </p><p class=MsoNormal>> are architecture specific. So, to get the complete report we need to </p><p class=MsoNormal>> take into account all of them as well as all possible test frameworks used.</p><p class=MsoNormal>><o:p> </o:p></p><p class=MsoNormal>> The best option here is to use Intel CI for report generating since it </p><p class=MsoNormal>> already runs all the available tests at all processor's architectures.</p><p class=MsoNormal>><o:p> </o:p></p><p class=MsoNormal>> So, the question is whether it is possible to generate a code coverage </p><p class=MsoNormal>> report using CI or maybe you have any other tools which might help with </p><p class=MsoNormal>> this issue.</p><p class=MsoNormal>><o:p> </o:p></p><p class=MsoNormal>><o:p> </o:p></p><p class=MsoNormal>> 2) Blacklist Mesa CI files</p><p class=MsoNormal>><o:p> </o:p></p><p class=MsoNormal>> If we understand correctly there are the files with the skipped tests </p><p class=MsoNormal>> (the ones which won't be run) in Blacklist Mesa CI files.</p><p class=MsoNormal>><o:p> </o:p></p><p class=MsoNormal>> If so, we're wondering what is the process of moving the tests out from </p><p class=MsoNormal>> the list? Can we create the corresponding MRs if we confirm the test </p><p class=MsoNormal>> cases became stable and not lead to the problems anymore?</p><p class=MsoNormal>><o:p> </o:p></p><p class=MsoNormal>> For now, we've tested several test cases for x32 and x64 Mesa versions </p><p class=MsoNormal>> (iris) locally and they look good (they were fixed with a patch below):</p><p class=MsoNormal>><o:p> </o:p></p><p class=MsoNormal>><o:p> </o:p></p><p class=MsoNormal>> # these crash on iris on m64 and fail on m32</p><p class=MsoNormal>> piglit.spec.ext_image_dma_buf_import.ext_image_dma_buf_import-sample_nv12</p><p class=MsoNormal>> piglit.spec.ext_image_dma_buf_import.ext_image_dma_buf_import-sample_yuv420</p><p class=MsoNormal>> piglit.spec.ext_image_dma_buf_import.ext_image_dma_buf_import-sample_yvu420</p><p class=MsoNormal>><o:p> </o:p></p><p class=MsoNormal>> Fix:</p><p class=MsoNormal>> https://gitlab.freedesktop.org/mesa/mesa/commit/4b5e8eb3c8d709bd7c6d1a33a114bf4b002548f8</p><p class=MsoNormal>><o:p> </o:p></p><p class=MsoNormal>><o:p> </o:p></p><p class=MsoNormal>> And these test cases (checked on 19.2.0-devel-21.05-810b95e02c5-DEBUG </p><p class=MsoNormal>> Mesa version x32 and x64, on KBL - both tests are passing):</p><p class=MsoNormal>><o:p> </o:p></p><p class=MsoNormal>> MESA_LOADER_DRIVER_OVERRIDE=iris ./point-vertex-id gl_VertexID divisor </p><p class=MsoNormal>> -auto -fbo</p><p class=MsoNormal>> MESA_LOADER_DRIVER_OVERRIDE=iris ./glslparsertest </p><p class=MsoNormal>> /home/den/repository/piglit/tests/glslparsertest/shaders/CorrectFull.frag </p><p class=MsoNormal>> pass 1.10</p><p class=MsoNormal>><o:p> </o:p></p><p class=MsoNormal>><o:p> </o:p></p><p class=MsoNormal>> To summarize, our questions are:</p><p class=MsoNormal>><o:p> </o:p></p><p class=MsoNormal>><o:p> </o:p></p><p class=MsoNormal>> Is it possible to generate the code coverage report by using Intel CI </p><p class=MsoNormal>> and if it's already available can you please share it with us?</p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>It's unlikely that the CI can be used for this purpose, given our</p><p class=MsoNormal>current staffing levels.</p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>You could generate these reports locally, using Mesa CI automation.  The</p><p class=MsoNormal>configuration for a debian-testing installation is documented, and the</p><p class=MsoNormal>mesa_ci/scripts/build_local.py script will compile/run any of the target</p><p class=MsoNormal>suites in the same manner as the CI.</p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>If you want to hack the automation to generate coverage reports, we can</p><p class=MsoNormal>get you started.</p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>> What is the process of moving these tests out of the blacklist?</p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>We don't have a good process.  We try to write up bugs for each</p><p class=MsoNormal>blacklisted test, to ensure it isn't forgotten.  Ideally the test would</p><p class=MsoNormal>be manually re-enabled when the bug is closed.  Typically, problems are</p><p class=MsoNormal>fixed without resolving things in bugzilla, or the developer resolves in</p><p class=MsoNormal>bugzilla without re-enabling the test.</p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>A robust process would involve periodically emptying the blacklists, and</p><p class=MsoNormal>re-creating them based on current test behavior.  Creating blacklists is</p><p class=MsoNormal>a time-consuming process, because flaky tests may fail 1% of the time --</p><p class=MsoNormal>generating significant CI noise for developers until the tests are fully</p><p class=MsoNormal>disabled.</p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>> Can we send the MRs if we confirm that the tests should be moved from </p><p class=MsoNormal>> the blacklist back to the config file?</p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>Yes please.  This will help us.</p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>> Looking forward to your prompt response.</p><p class=MsoNormal>><o:p> </o:p></p><p class=MsoNormal>> Thanks!</p><p class=MsoNormal>><o:p> </o:p></p><p class=MsoNormal>> -- </p><p class=MsoNormal>> Denys Kostin | QA engineer</p><p class=MsoNormal>> GlobalLogic Inc.</p><p class=MsoNormal>> S evalle363</p><p class=MsoNormal>> www.globallogic.com</p><p class=MsoNormal>>   </p><p class=MsoNormal>> http://www.globallogic.com/email_disclaimer.txt</p><p class=MsoNormal>><o:p> </o:p></p><p class=MsoNormal>> _______________________________________________</p><p class=MsoNormal>> Mesa-ci-intel mailing list</p><p class=MsoNormal>> Mesa-ci-intel@lists.freedesktop.org</p><p class=MsoNormal>> https://lists.freedesktop.org/mailman/listinfo/mesa-ci-intel</p><p class=MsoNormal><o:p> </o:p></p></div></body></html>