<?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>10720</bug_id>
          
          <creation_ts>2016-11-24 02:32:43 +0000</creation_ts>
          <short_desc>patchtest: Create a script for OE-Core to fetch and set up environment for patchtest</short_desc>
          <delta_ts>2017-12-06 17:18:34 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>6</classification_id>
          <classification>Yocto Project Subprojects</classification>
          <product>Patchwork/Patchtest</product>
          <component>Patchtest</component>
          <version>unspecified</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>enhancement</bug_severity>
          <target_milestone>2.4 M2</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Paul Eggleton">bluelightning</reporter>
          <assigned_to name="Leonardo Sandoval Gonzalez">leonardo.sandoval.gonzalez</assigned_to>
          <cc>ross.burton</cc>
          
          
          <cf_os>---</cf_os>
          <cf_regression_type>---</cf_regression_type>
          
          <cf_docchange>Yes (doc changes required)</cf_docchange>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>68566</commentid>
    <comment_count>0</comment_count>
    <who name="Paul Eggleton">bluelightning</who>
    <bug_when>2016-11-24 02:32:43 +0000</bug_when>
    <thetext>When I originally envisaged what became patchtest, I thought it would go into OE-Core itself so that users could easily run it over their patches before sending. For good reasons we didn&apos;t end up going down that route, instead having the mostly generic patchtest with the OE-specific parts in patchtest-oe. However we still want people to be able to easily run the tests locally.

Probably the simplest way of enabling this is to have a simple script that downloads the latest version of patchtest and patchtest-oe, sets up a virtualenv with the right contents (based on requirements.txt from each one) and then activates the virtualenv. It should also be runnable not just on initial setup but to update patchwork/patchtest and set up the environment each time you want to use it.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>68580</commentid>
    <comment_count>1</comment_count>
    <who name="Leonardo Sandoval Gonzalez">leonardo.sandoval.gonzalez</who>
    <bug_when>2016-11-24 16:49:13 +0000</bug_when>
    <thetext>(In reply to comment #0)
&gt; When I originally envisaged what became patchtest, I thought it would go
&gt; into OE-Core itself so that users could easily run it over their patches
&gt; before sending. For good reasons we didn&apos;t end up going down that route,
&gt; instead having the mostly generic patchtest with the OE-specific parts in
&gt; patchtest-oe. However we still want people to be able to easily run the
&gt; tests locally.
&gt; 
&gt; Probably the simplest way of enabling this is to have a simple script that
&gt; downloads the latest version of patchtest and patchtest-oe, sets up a
&gt; virtualenv with the right contents (based on requirements.txt from each one)
&gt; and then activates the virtualenv. 

Right, we should have some easy way to install.


&gt;It should also be runnable not just on
&gt; initial setup but to update patchwork/patchtest and set up the environment
&gt; each time you want to use it.

what about a git-hook to do the update related repos and execute oe-tests? This can be quite intrusive but once the hook is set (with the setup script), no need to worry again.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>68583</commentid>
    <comment_count>2</comment_count>
    <who name="Paul Eggleton">bluelightning</who>
    <bug_when>2016-11-24 19:02:34 +0000</bug_when>
    <thetext>Maybe, but that would be an additional step beyond - I&apos;d want the ability to run the tests on-demand before we do that.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>70643</commentid>
    <comment_count>3</comment_count>
    <who name="Leonardo Sandoval Gonzalez">leonardo.sandoval.gonzalez</who>
    <bug_when>2017-02-10 22:41:22 +0000</bug_when>
    <thetext>Patch sent to the ML:

http://lists.openembedded.org/pipermail/openembedded-core/2017-February/132592.html</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>71211</commentid>
    <comment_count>4</comment_count>
    <who name="Leonardo Sandoval Gonzalez">leonardo.sandoval.gonzalez</who>
    <bug_when>2017-03-13 17:14:42 +0000</bug_when>
    <thetext>Not merged during M3, so moving to next enhancement merge window.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>73886</commentid>
    <comment_count>5</comment_count>
    <who name="Leonardo Sandoval Gonzalez">leonardo.sandoval.gonzalez</who>
    <bug_when>2017-06-08 13:56:00 +0000</bug_when>
    <thetext>Ross, this is pending for merging in master. Patch URL can be found on comment 3</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>74156</commentid>
    <comment_count>6</comment_count>
    <who name="Leonardo Sandoval Gonzalez">leonardo.sandoval.gonzalez</who>
    <bug_when>2017-06-14 17:08:48 +0000</bug_when>
    <thetext>Patch sent some time ago but still not merged</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>74875</commentid>
    <comment_count>7</comment_count>
    <who name="Leonardo Sandoval Gonzalez">leonardo.sandoval.gonzalez</who>
    <bug_when>2017-07-07 17:20:29 +0000</bug_when>
    <thetext>Patch merged at: (From OE-Core rev: 4ba1334ab7c9b32502a4f8b3e656fb4f8242ccdd)</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>