<?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>7327</bug_id>
          
          <creation_ts>2015-02-16 17:38:23 +0000</creation_ts>
          <short_desc>Add git hook to update bug status</short_desc>
          <delta_ts>2024-11-14 16:22:00 +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>NEW</bug_status>
          <resolution></resolution>
          
          <see_also>https://bugzilla.yoctoproject.org/show_bug.cgi?id=9817</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="Michael Wood">michael.g.wood</reporter>
          <assigned_to name="Ross Burton">ross.burton</assigned_to>
          <cc>alex.kanavin</cc>
    
    <cc>bluelightning</cc>
    
    <cc>infras.bug.watcher</cc>
    
    <cc>Infras.watcher</cc>
    
    <cc>mhalstead</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>48870</commentid>
    <comment_count>0</comment_count>
    <who name="Michael Wood">michael.g.wood</who>
    <bug_when>2015-02-16 17:38:23 +0000</bug_when>
    <thetext>I&apos;d be useful if bug status were automatically updated once the patch is in tree. Not just because it&apos;s time saved updating bug status but also for the value in the email notification generated for QA fixer.

It should be fairly easy to scrape the commit message body for [YOCTO #nnnn] and then the bug number parsed.

Various tools exist to update the bug status such as pybugz http://www.liquidx.net/pybugz/</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>48932</commentid>
    <comment_count>1</comment_count>
    <who name="Paul Eggleton">bluelightning</who>
    <bug_when>2015-02-19 15:48:00 +0000</bug_when>
    <thetext>The consensus is that we wouldn&apos;t want to mark bugs resolved automatically, however we should be at the very least adding a comment to the bug with a link to the commit.

Richard raised another concern that this should not impose additional time on his process of pushing changes, so it would have to be either completely independent of the pushing client, or a process that simply gets triggered at the end of pushing and asynchronously does the bugzilla updates on a server somewhere.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>56605</commentid>
    <comment_count>2</comment_count>
    <who name="Paul Eggleton">bluelightning</who>
    <bug_when>2015-11-18 22:24:16 +0000</bug_when>
    <thetext>We may do this from patchwork rather than from a separate script, since that&apos;s already triggered when commits are pushed to the git repository.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>69728</commentid>
    <comment_count>3</comment_count>
    <who name="Ross Burton">ross.burton</who>
    <bug_when>2017-01-11 17:19:44 +0000</bug_when>
    <thetext>I was reminded about this by looking at a bug in glibc, which does comment in bugs when a commit references the bug.  As we agreed it doesn&apos;t do anything apart from leave a comment:

https://sourceware.org/bugzilla/show_bug.cgi?id=20019#c14

Gitzilla (https://github.com/gera/gitzilla) appears to make this fairly simple, and the reminder that a patch has landed will be very useful to ensure bugs are closed and alert users that their bugs are resolved.

Is there any chance we can get this done sooner rather than later?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>82124</commentid>
    <comment_count>4</comment_count>
    <who name="Michael Halstead">mhalstead</who>
    <bug_when>2018-11-09 15:30:32 +0000</bug_when>
    <thetext>Would you expect the bugzilla entry to be similar to the sourceware comment you linked to?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>82128</commentid>
    <comment_count>5</comment_count>
    <who name="Ross Burton">ross.burton</who>
    <bug_when>2018-11-09 15:47:55 +0000</bug_when>
    <thetext>Yes, similar, the commit log and patch summary would be good to help identify what landed.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>88561</commentid>
    <comment_count>6</comment_count>
    <who name="Ross Burton">ross.burton</who>
    <bug_when>2020-11-05 08:10:57 +0000</bug_when>
    <thetext>*** Bug 9817 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>94400</commentid>
    <comment_count>7</comment_count>
    <who name="Randy MacLeod">randy.macleod</who>
    <bug_when>2022-11-10 15:55:57 +0000</bug_when>
    <thetext>A script rather than a git hook is what people prefer. Ross claims to have a starting point.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>94401</commentid>
    <comment_count>8</comment_count>
    <who name="Ross Burton">ross.burton</who>
    <bug_when>2022-11-10 15:57:57 +0000</bug_when>
    <thetext>So some time ago I wrote a little script that looks through the git history (up to a certain point), looking for mentioned bugs that are still open:

https://github.com/rossburton/ross-tools/blob/master/git-find-bugs

No idea if it still works...</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>