<?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>9997</bug_id>
          
          <creation_ts>2016-07-21 21:09:09 +0000</creation_ts>
          <short_desc>oe-selftest: make available unittest-xml-reporting at the autobuilder workers</short_desc>
          <delta_ts>2017-12-06 17:04:06 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>5</classification_id>
          <classification>Infrastructure</classification>
          <product>AutoBuilder</product>
          <component>autobuilder</component>
          <version>2.2</version>
          <rep_platform>x86</rep_platform>
          <op_sys>Multiple</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          <see_also>https://bugzilla.yoctoproject.org/show_bug.cgi?id=9682</see_also>
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>Medium</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>2.3 M2</target_milestone>
          <dependson>10162</dependson>
          <blocked>10580</blocked>
          <everconfirmed>1</everconfirmed>
          <reporter name="Benjamin Esquivel">benjamin.esquivel</reporter>
          <assigned_to name="Michael Halstead">mhalstead</assigned_to>
          <cc>benjamin.esquivel</cc>
    
    <cc>infras.ab.watcher</cc>
    
    <cc>Infras.watcher</cc>
    
    <cc>joshuagloe</cc>
    
    <cc>mariano.lopez</cc>
    
    <cc>markus.lehtonen</cc>
    
    <cc>mhalstead</cc>
    
    <cc>monserratx.sedeno.bustos</cc>
    
    <cc>pidge</cc>
    
    <cc>sgw</cc>
    
    <cc>srifenbark</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>64314</commentid>
    <comment_count>0</comment_count>
    <who name="Benjamin Esquivel">benjamin.esquivel</who>
    <bug_when>2016-07-21 21:09:09 +0000</bug_when>
    <thetext>to make use of the xml results exporting feature of oe-selftest, the xmlrunner[1] module has to be available there.

One option is to install it there. Make sure it is installed via python3.

[1] https://github.com/xmlrunner/unittest-xml-reporting</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>64359</commentid>
    <comment_count>1</comment_count>
    <who name="Bill Randle">bill.randle</who>
    <bug_when>2016-07-22 15:38:33 +0000</bug_when>
    <thetext>Another AB installation requirement.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>64363</commentid>
    <comment_count>2</comment_count>
    <who name="Benjamin Esquivel">benjamin.esquivel</who>
    <bug_when>2016-07-22 15:52:29 +0000</bug_when>
    <thetext>And this would also be a documentation change at the oe-selftest pre-requisites. CC&apos;ing Scott</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>64375</commentid>
    <comment_count>3</comment_count>
    <who name="Scott Rifenbark">srifenbark</who>
    <bug_when>2016-07-22 17:05:03 +0000</bug_when>
    <thetext>Would this be applicable for all the supported distros?

So adding xmlrunner as a package to the four distros shown here http://www.yoctoproject.org/docs/2.2/ref-manual/ref-manual.html#required-packages-for-the-host-development-system would cover it?

Thanks, 
Scott</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>64649</commentid>
    <comment_count>4</comment_count>
    <who name="Benjamin Esquivel">benjamin.esquivel</who>
    <bug_when>2016-07-29 14:57:20 +0000</bug_when>
    <thetext>Indeed Scott, it applies for all supported distros as it is a python module. Now the interesting part is whether we have a section for installing python modules that do not come from the distro (not from dnf, zypper, apt-get, etc).

Also, this package adds functionality (exporting reports to xml) and while it is essential to the YoctoProject plans, it is not required for the regular user. So this is an optional thing.

Assigning it to you while in needinfo so we can continue the conversation.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>64694</commentid>
    <comment_count>5</comment_count>
    <who name="Scott Rifenbark">srifenbark</who>
    <bug_when>2016-07-29 23:34:15 +0000</bug_when>
    <thetext>Thanks Benjamin, 

So it sounds like it is still not clear as to whether I can simply add the &quot;xmlrunner&quot; package to the four sections for oe_selftest that list the required packages.  I guess I will wait for further clarification. 

Thanks, 
Scott</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>64733</commentid>
    <comment_count>6</comment_count>
    <who name="Benjamin Esquivel">benjamin.esquivel</who>
    <bug_when>2016-08-01 17:32:27 +0000</bug_when>
    <thetext>(In reply to comment #5)
&gt; Thanks Benjamin, 
&gt; 
&gt; So it sounds like it is still not clear as to whether I can simply add the
&gt; &quot;xmlrunner&quot; package to the four sections for oe_selftest that list the
&gt; required packages.  I guess I will wait for further clarification. 
&gt; 
&gt; Thanks, 
&gt; Scott

that&apos;s the thing about the package, there is no xmlrunner distro package. However, there is a python package that can be installed via pip. Or the manual installation way.

Is there a python specific installs section at the manual? my guess is not. If so, should we add it for other things that will eventually show-up in the same way?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>64745</commentid>
    <comment_count>7</comment_count>
    <who name="Scott Rifenbark">srifenbark</who>
    <bug_when>2016-08-01 19:02:39 +0000</bug_when>
    <thetext>Hi, 

The nearest thing we have is this section that lays out the minimal requirements for some stuff, which includes Python - http://www.yoctoproject.org/docs/2.2/ref-manual/ref-manual.html#required-git-tar-and-python-versions.  We have nothing beyond this information.

Scott</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>65112</commentid>
    <comment_count>8</comment_count>
    <who name="Benjamin Esquivel">benjamin.esquivel</who>
    <bug_when>2016-08-11 22:30:06 +0000</bug_when>
    <thetext>I will remove the dependency on documentation for this bug since it is not being offered yet as a user feature. When the test reporting is documented as a feature in the manual it will need to contain the xmlrunner dependency resolving via: pip install xmlrunner.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>65140</commentid>
    <comment_count>9</comment_count>
    <who name="Scott Rifenbark">srifenbark</who>
    <bug_when>2016-08-12 17:27:42 +0000</bug_when>
    <thetext>Thanks Benjamin.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>65205</commentid>
    <comment_count>10</comment_count>
    <who name="Benjamin Esquivel">benjamin.esquivel</who>
    <bug_when>2016-08-15 21:30:38 +0000</bug_when>
    <thetext>all instances of xmlrunner in this bug should be taken as unittest-xml-reporting. xmlrunner is another package which confuses the installation process.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>65323</commentid>
    <comment_count>11</comment_count>
    <who name="Benjamin Esquivel">benjamin.esquivel</who>
    <bug_when>2016-08-18 19:33:56 +0000</bug_when>
    <thetext>bug 10162 is blocking this one as it causes oe-selftest problems.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>65324</commentid>
    <comment_count>12</comment_count>
    <who name="Bill Randle">bill.randle</who>
    <bug_when>2016-08-18 19:54:17 +0000</bug_when>
    <thetext>Michael, did we install this on the ABs (using Python3)? If not, can we? Pypi seems to have a package for it; that might be easier to deal with than the git repo.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>65325</commentid>
    <comment_count>13</comment_count>
    <who name="Benjamin Esquivel">benjamin.esquivel</who>
    <bug_when>2016-08-18 20:14:25 +0000</bug_when>
    <thetext>I would advice against installing this until bug 10162 is resolved. unittest-xml-reporting introduces an error at a subset of the tests.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>65327</commentid>
    <comment_count>14</comment_count>
    <who name="Michael Halstead">mhalstead</who>
    <bug_when>2016-08-18 20:58:06 +0000</bug_when>
    <thetext>No not installed yet. I&apos;ll wait for an update from Benjamin.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>67937</commentid>
    <comment_count>15</comment_count>
    <who name="Benjamin Esquivel">benjamin.esquivel</who>
    <bug_when>2016-11-03 20:59:11 +0000</bug_when>
    <thetext>this was tested in a staging autobuilder instance and it seems safe to enable it now.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>67938</commentid>
    <comment_count>16</comment_count>
    <who name="Benjamin Esquivel">benjamin.esquivel</who>
    <bug_when>2016-11-03 21:00:29 +0000</bug_when>
    <thetext>changing the target milestone as it blocks a bug for M2.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>70059</commentid>
    <comment_count>17</comment_count>
    <who name="Michael Halstead">mhalstead</who>
    <bug_when>2017-01-23 22:35:12 +0000</bug_when>
    <thetext>This is now available for the default python3 used by pokybuild on all workers. Both .yoctoproject.org and yocto.io.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>