<?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>9817</bug_id>
          
          <creation_ts>2016-06-23 13:16:27 +0000</creation_ts>
          <short_desc>add a robot that tracks when patches are sent to mailing list for review and merged into master branches</short_desc>
          <delta_ts>2020-11-05 08:10:57 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>5</classification_id>
          <classification>Infrastructure</classification>
          <product>Bugzilla</product>
          <component>bugzilla</component>
          <version>unspecified</version>
          <rep_platform>x86</rep_platform>
          <op_sys>Multiple</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>DUPLICATE</resolution>
          <dup_id>7327</dup_id>
          <see_also>https://bugzilla.yoctoproject.org/show_bug.cgi?id=7327</see_also>
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>Medium</priority>
          <bug_severity>enhancement</bug_severity>
          <target_milestone>Future</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Alexander Kanavin">alex.kanavin</reporter>
          <assigned_to name="Michael Halstead">mhalstead</assigned_to>
          <cc>bluelightning</cc>
    
    <cc>infras.bug.watcher</cc>
    
    <cc>Infras.watcher</cc>
    
    <cc>ross.burton</cc>
    
    <cc>tim.orling</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>63279</commentid>
    <comment_count>0</comment_count>
    <who name="Alexander Kanavin">alex.kanavin</who>
    <bug_when>2016-06-23 13:16:27 +0000</bug_when>
    <thetext>Currently when a patch associated with a bug is posted for review or merged into repository, the bug has to be manually updated with a link to it. Humans are bad at this kind of activity, but it can be entirely automated, because there is already an established practice to include the bug number into the patch.

So the robot would add comments to the bug with a link to either the maillist archive or the git web UI.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>63481</commentid>
    <comment_count>1</comment_count>
    <who name="Michael Halstead">mhalstead</who>
    <bug_when>2016-06-29 19:46:52 +0000</bug_when>
    <thetext>It appears https://github.com/gera/gitzilla will support what we want here. 

Which repos do we need to watch for bug numbers? Is poky enough? 

Does this regex grab all the bug numbers we need?

git log | python -c &quot;import sys,re; bug_id = re.compile(r&apos;.*\[YOCTO[ #]*(\d{3,5})[^]]*\]&apos;); print([bug_id.match(line).group(1) for line in sys.stdin if bug_id.match(line)])&quot;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>63509</commentid>
    <comment_count>2</comment_count>
    <who name="Alexander Kanavin">alex.kanavin</who>
    <bug_when>2016-06-30 13:43:30 +0000</bug_when>
    <thetext>We also need something that would track the mailing lists.

The regex could be simplified:
 - no need to match exactly between 3 and 5 digits (any amount will do, no?)
 - no need to do matching beyond the digits

Ross?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>63510</commentid>
    <comment_count>3</comment_count>
    <who name="Ross Burton">ross.burton</who>
    <bug_when>2016-06-30 13:46:00 +0000</bug_when>
    <thetext>Indeed Gitzilla looks like it should work.

My little tool uses the regex r&quot;(YOCTO|YP) ?#?(?P&lt;bug&gt;[0-9]+)&quot; with re.IGNORECASE.

There&apos;s example of bugs using YP#1234 or Yocto#1234 or YOCTO 1234.  The square brackets are not used consistently enough so I dropped them from the match.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>88560</commentid>
    <comment_count>4</comment_count>
    <who name="Ross Burton">ross.burton</who>
    <bug_when>2020-11-05 08:10:57 +0000</bug_when>
    <thetext>Duplicate

*** This bug has been marked as a duplicate of bug 7327 ***</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>