diff mbox

[v3] scripts: Add a script to check for bug URLs in the git log

Message ID 775d6051-c03a-847a-2988-a07344367ea6@redhat.com
State New
Headers show

Commit Message

Paolo Bonzini Sept. 21, 2016, 8:08 p.m. UTC
On 21/09/2016 21:42, Thomas Huth wrote:
> Basic idea of this script is to check the git log for URLs
> to the QEMU bugtracker at launchpad.net and to figure out
> whether the related bug has been marked there as "Fix released"
> (i.e. closed) already. So this script can e.g. be used after
> each public release of QEMU to check whether there are any
> bug tickets that could be moved from "Fix committed" (or another
> state if the author of the patch forgot to update the bug ticket)
> to "Fix released".
> 
> Signed-off-by: Thomas Huth <thuth@redhat.com>
> ---
>  v3: Adressed Eric's review comments from v2 (fixed bashisms, more
>      POSIX compliance, use lower-case variable names, etc.)

Queued with this squashed in:

Comments

Thomas Huth Sept. 22, 2016, 7:02 a.m. UTC | #1
On Wed, 21 Sep 2016 22:08:10 +0200
Paolo Bonzini <pbonzini@redhat.com> wrote:

> On 21/09/2016 21:42, Thomas Huth wrote:
> > Basic idea of this script is to check the git log for URLs
> > to the QEMU bugtracker at launchpad.net and to figure out
> > whether the related bug has been marked there as "Fix released"
> > (i.e. closed) already. So this script can e.g. be used after
> > each public release of QEMU to check whether there are any
> > bug tickets that could be moved from "Fix committed" (or another
> > state if the author of the patch forgot to update the bug ticket)
> > to "Fix released".
> > 
> > Signed-off-by: Thomas Huth <thuth@redhat.com>
> > ---
> >  v3: Adressed Eric's review comments from v2 (fixed bashisms, more
> >      POSIX compliance, use lower-case variable names, etc.)
> 
> Queued with this squashed in:

Thanks a lot for the fixup. But...

> diff --git a/scripts/show-fixed-bugs.sh b/scripts/show-fixed-bugs.sh
> index 9dcc0f7..6e64edd 100755
> --- a/scripts/show-fixed-bugs.sh
> +++ b/scripts/show-fixed-bugs.sh
> @@ -23,7 +23,7 @@ while getopts "s:e:cbh" opt; do
>  done
>  
>  if [ "x$start" = "x" ]; then
> -    start=`git tag -l 'v[0-9]*\.[0-9]*.0' | tail -n 2 | head -n 1`
> +    start=`git tag -l 'v[0-9]*\.[0-9]*\.0' | tail -n 2 | head -n 1`
>  fi
>  if [ "x$end" = "x" ]; then
>      end=`git tag -l  'v[0-9]*\.[0-9]*.0' | tail -n 1`

... could you please also squash in another backslash in the "end=..."
line here?

Thanks,
 Thomas
Paolo Bonzini Sept. 22, 2016, 8:53 a.m. UTC | #2
On 22/09/2016 09:02, Thomas Huth wrote:
> On Wed, 21 Sep 2016 22:08:10 +0200
> Paolo Bonzini <pbonzini@redhat.com> wrote:
> 
>> On 21/09/2016 21:42, Thomas Huth wrote:
>>> Basic idea of this script is to check the git log for URLs
>>> to the QEMU bugtracker at launchpad.net and to figure out
>>> whether the related bug has been marked there as "Fix released"
>>> (i.e. closed) already. So this script can e.g. be used after
>>> each public release of QEMU to check whether there are any
>>> bug tickets that could be moved from "Fix committed" (or another
>>> state if the author of the patch forgot to update the bug ticket)
>>> to "Fix released".
>>>
>>> Signed-off-by: Thomas Huth <thuth@redhat.com>
>>> ---
>>>  v3: Adressed Eric's review comments from v2 (fixed bashisms, more
>>>      POSIX compliance, use lower-case variable names, etc.)
>>
>> Queued with this squashed in:
> 
> Thanks a lot for the fixup. But...
> 
>> diff --git a/scripts/show-fixed-bugs.sh b/scripts/show-fixed-bugs.sh
>> index 9dcc0f7..6e64edd 100755
>> --- a/scripts/show-fixed-bugs.sh
>> +++ b/scripts/show-fixed-bugs.sh
>> @@ -23,7 +23,7 @@ while getopts "s:e:cbh" opt; do
>>  done
>>  
>>  if [ "x$start" = "x" ]; then
>> -    start=`git tag -l 'v[0-9]*\.[0-9]*.0' | tail -n 2 | head -n 1`
>> +    start=`git tag -l 'v[0-9]*\.[0-9]*\.0' | tail -n 2 | head -n 1`
>>  fi
>>  if [ "x$end" = "x" ]; then
>>      end=`git tag -l  'v[0-9]*\.[0-9]*.0' | tail -n 1`
> 
> ... could you please also squash in another backslash in the "end=..."
> line here?

Sure.

Paolo
diff mbox

Patch

diff --git a/scripts/show-fixed-bugs.sh b/scripts/show-fixed-bugs.sh
index 9dcc0f7..6e64edd 100755
--- a/scripts/show-fixed-bugs.sh
+++ b/scripts/show-fixed-bugs.sh
@@ -23,7 +23,7 @@  while getopts "s:e:cbh" opt; do
 done
 
 if [ "x$start" = "x" ]; then
-    start=`git tag -l 'v[0-9]*\.[0-9]*.0' | tail -n 2 | head -n 1`
+    start=`git tag -l 'v[0-9]*\.[0-9]*\.0' | tail -n 2 | head -n 1`
 fi
 if [ "x$end" = "x" ]; then
     end=`git tag -l  'v[0-9]*\.[0-9]*.0' | tail -n 1`
@@ -31,7 +31,7 @@  fi
 
 if [ "x$start" = "x" ] || [ "x$end" = "x" ]; then
     echo "Could not determine start or end revision ... Please note that this"
-    echo "script must be run from a checked out git repository of QEMU!"
+    echo "script must be run from a checked out git repository of QEMU."
     exit 1
 fi
 
@@ -47,7 +47,7 @@  for i in $bug_urls ; do echo " $i" ; done
 
 if [ "x$check_if_open" = "x1" ]; then
     echo
-    echo "Checking which ones are still opened..."
+    echo "Checking which ones are still open..."
     for i in $bug_urls ; do
         if ! curl -s -L "$i" | grep "value status" | grep -q "Fix Released" ; then
             echo " $i"