<?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>9309</bug_id>
          
          <creation_ts>2016-03-18 17:12:28 +0000</creation_ts>
          <short_desc>patchtest: detect the target branch from mbox before patching</short_desc>
          <delta_ts>2016-06-20 13:35:49 +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>2.2</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.2 M1</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Leonardo Sandoval Gonzalez">leonardo.sandoval.gonzalez</reporter>
          <assigned_to name="Leonardo Sandoval Gonzalez">leonardo.sandoval.gonzalez</assigned_to>
          <cc>bluelightning</cc>
    
    <cc>jose.perez.carranza</cc>
          
          <qa_contact name="David Rodriguez">david.israelx.rodriguez.castellanos</qa_contact>
          <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>60163</commentid>
    <comment_count>0</comment_count>
    <who name="Leonardo Sandoval Gonzalez">leonardo.sandoval.gonzalez</who>
    <bug_when>2016-03-18 17:12:28 +0000</bug_when>
    <thetext>Currently, patchtest patches series in either the current branch or the one specified in the command line. In an automated process, this is fine if series are intended for just one branch (master), but this is not always the case. patchtest should parse the mbox (email containing the patch) and detect the target patch dynamically.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>60939</commentid>
    <comment_count>1</comment_count>
    <who name="Leonardo Sandoval Gonzalez">leonardo.sandoval.gonzalez</who>
    <bug_when>2016-04-07 20:36:02 +0000</bug_when>
    <thetext>Moving it to the correct product/component</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>61615</commentid>
    <comment_count>2</comment_count>
    <who name="Leonardo Sandoval Gonzalez">leonardo.sandoval.gonzalez</who>
    <bug_when>2016-04-25 14:23:42 +0000</bug_when>
    <thetext>
Doing some parsing on subject&apos;s prefix, I found these diversity of formats:

* fraction only, i.e. [0/10]
* version only, i.e. [v2]
* fraction + branch, i.e. [0/10, fido]
* branch + fraction, i.e. [fido, 0/10]
* fraction + branch + version, i.e. [0/10, fido, v2]
* patch string, i.e. [PATCH]
* patch string + version, i.e. [PATCHv2]
* etc..

[000/116]
[00/10]
[001/100]
[00/14]
[00/15]
[00/16,Fido]
[00/20]
[00/22,Jethro]
[00/24,Jethro,V2]
[00/63]
[0/1]
[01/11]
[01/13]
[01/15]
[01/16]
[01/21]
[03/53]
[0/4]
[0/4,fido]
[0/5]
[05/10]
[05/26]
[0/6]
[0/7]
[07/73]
[0/7,jethro]
[0/8]
[0/9]
[09/20]
[10/14]
[1/1]
[1/2]
[1/2,jethro]
[1/2,v2]
[1/3]
[1/4]
[14/40]
[1/4,jethro]
[1/5]
[1/6]
[16/17]
[1/7]
[1/8]
[1/9]
[21/21]
[2/2]
[2/3]
[2/4]
[2/6, V2]
[2/8]
[3/4]
[4/4]
[4/7]
[5/7]
[5/8]
[6/6]
[6/7]
[7/7]
[dizzy]
[dizzy,1/4]
[fido]
[fido,00/11]
[fido,0/7]
[fido,dizzy]
[jethro]
[Jethro,0/5]
[jethro,1/1]
[Jethro,1/2]
[jethro,fido]
[jethro,master]
[jethro-next,1/1]
[jethro-next,1/8]
[jethro, RFC, 2/2]
[master]
[[master,1/2]
[master,Drown]
[master/jethro]
[master,jethro,fido] 2/2]
[master,jetrho] ]
[meta-oe]
[meta-oe,v3,1/1]
[OE-core] [PATCHv2 2/2]
[oe,v2,2/2]
[PATCH]
[PATCH 10/10]
[PATCH 1/1]
[PATCH 1/2]
[PATCH 1/3]
[PATCH 24/35]
[PATCH 2/5] [glplugin]
[PATCHv2]
[PATCHv2,01/16]
[PATCHv2,08/16]
[PATCHv2,1/2]
[[PATCHv2] 2/2]
[PATCHv2, 3/4]
[PATCHv3]
[PATCHv5]
[RESEND]
[RESEND,1/2]
[RESEND,2/7]
[RESEND,3/7]
[RESEND,v3,1/2]
[RFC]
[RFC,1/9]
[RFC,2/3]
[RFC,3/3]
[RFT]
[v1]
[V1,2/3]
[v2]
[V2]
[v2, 01/28]
[v2,1/1]
[V2,1/1]
[v2,1/2]
[V2,1/2]
[v2, 1/3]
[v2,1/3]
[v2, 1/3, jethro]
[v2, 1/4]
[v2,1/4]
[V2,1/4]
[v2,1/5]
[v2,1/7]
[V2,1/7]
[v2, 2/2]
[v2,2/2]
[v2,3/3]
[V2,Jethro,fido,01/10]
[V2,Jethro,fido,1/3]
[v3]
[v3, 01/22]
[v3,1/1]
[v3, 1/4]
[v3,1/4]
[v3, 2/2]
[v3,2/2]
[V3,2/3]
[v4,1/2]
[v4,1/3]
[v5,1/2]
[v5,1/3]
[v6,1/4]
[v7,1/5]
[wic]
[wic,01/15]
[wic,0/9]
[wic,5/6]
[wic,v2,01/14]
[wic,v3,00/14]</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>61627</commentid>
    <comment_count>3</comment_count>
    <who name="Leonardo Sandoval Gonzalez">leonardo.sandoval.gonzalez</who>
    <bug_when>2016-04-25 15:16:40 +0000</bug_when>
    <thetext>Feature has been implemented. This the pseudocode considered:

- if the subject has a prefix, meaning a string between brackets, then
    - remove non-branches strings (patch, v2, 1/10, etc)
    - check if branch is actually present on repo
    - if present, then 
        - use the subject&apos;s branch on patchtest testing
    - else
        - use current repo branch on patchtest testing
- else
    - use current repo branch on patchtest testing</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>