<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugzilla.yoctoproject.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.6"
          urlbase="https://bugzilla.yoctoproject.org/"
          
          maintainer="it-coreprojects-helpdesk@linuxfoundation.org"
>

    <bug>
          <bug_id>12127</bug_id>
          
          <creation_ts>2017-09-26 13:47:26 +0000</creation_ts>
          <short_desc>Duplicate log observed on oe-selftest runs</short_desc>
          <delta_ts>2017-11-09 13:27:22 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>10</classification_id>
          <classification>QA/Testing</classification>
          <product>Build Testing</product>
          <component>general</component>
          <version>2.4</version>
          <rep_platform>x86</rep_platform>
          <op_sys>Multiple</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>Medium+</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>2.5 M1</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Leonardo Sandoval Gonzalez">leonardo.sandoval.gonzalez</reporter>
          <assigned_to name="Jair Gonzalez">jair.de.jesus.gonzalez.plascencia</assigned_to>
          <cc>anibal</cc>
    
    <cc>randy.macleod</cc>
    
    <cc>richard.purdie</cc>
    
    <cc>ross.burton</cc>
          
          
          <cf_os>---</cf_os>
          <cf_regression_type>---</cf_regression_type>
          
          <cf_docchange>No (bug/feature does not impact docs)</cf_docchange>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>77139</commentid>
    <comment_count>0</comment_count>
    <who name="Leonardo Sandoval Gonzalez">leonardo.sandoval.gonzalez</who>
    <bug_when>2017-09-26 13:47:26 +0000</bug_when>
    <thetext>In recent runs, oe-selftest log have duplicate lines as observed in [1]:

https://autobuilder.yocto.io/builders/nightly-oe-selftest/builds/546/steps/Running%20oe-selftest/logs/stdio</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>77140</commentid>
    <comment_count>1</comment_count>
    <who name="Richard Purdie">richard.purdie</who>
    <bug_when>2017-09-26 14:18:12 +0000</bug_when>
    <thetext>They seem to come from runqemu and for each runqemu run, a new level of duplication is added. This happens sometimes and not others, generally on newer autobuilders but doesn&apos;t always happen.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>77737</commentid>
    <comment_count>2</comment_count>
    <who name="Ross Burton">ross.burton</who>
    <bug_when>2017-10-20 14:37:19 +0000</bug_when>
    <thetext>*** Bug 12257 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>78034</commentid>
    <comment_count>3</comment_count>
    <who name="Richard Purdie">richard.purdie</who>
    <bug_when>2017-11-07 17:50:55 +0000</bug_when>
    <thetext>Starting to suspect this happens when there is a server reconnection. Each reconnection adds extra log duplication.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>78035</commentid>
    <comment_count>4</comment_count>
    <who name="Aníbal Limón">anibal</who>
    <bug_when>2017-11-07 18:00:26 +0000</bug_when>
    <thetext>(In reply to comment #3)
&gt; Starting to suspect this happens when there is a server reconnection. Each
&gt; reconnection adds extra log duplication.

The qemu runner adds a new stream handler [1] when is lunched, the testimage class uses the main logger [2] and the oe-selftest script also initialize its own logger [3].

For me the qemu runner needs to use the logger from outside (testimage, selftest), instead of add every time an StreamHandler [3] that cuases the duplication. [4]



[1]  http://git.yoctoproject.org/cgit/cgit.cgi/poky/tree/meta/lib/oeqa/utils/qemurunner.py#n60
[2] http://git.yoctoproject.org/cgit/cgit.cgi/poky/tree/meta/classes/testimage.bbclass#n160
[3] http://git.yoctoproject.org/cgit/cgit.cgi/poky/tree/scripts/oe-selftest#n46
[4] http://git.yoctoproject.org/cgit/cgit.cgi/poky/tree/meta/lib/oeqa/utils/commands.py#n331</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>78100</commentid>
    <comment_count>5</comment_count>
    <who name="Richard Purdie">richard.purdie</who>
    <bug_when>2017-11-09 13:27:22 +0000</bug_when>
    <thetext>http://git.yoctoproject.org/cgit.cgi/poky/commit/?id=a87cae5bb1b0168b29eef7076756ef1d7179ee72 and the preceding 8 commits address this issue. Appears that a python bug was fixed in 3.6 which started exposing these messages.

http://git.yoctoproject.org/cgit.cgi/poky/commit/?id=729b1d3afd3d4b8eed4a4f4ddeb27780db47dcd5 in particular.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>