[Piuparts-commits] [piuparts] 01/01: gather_bts_stats: differate between rc and non-rc bugs

Holger Levsen holger at moszumanska.debian.org
Mon May 19 23:29:01 UTC 2014


This is an automated email from the git hooks/post-receive script.

holger pushed a commit to branch develop
in repository piuparts.

commit 51aec4c518cd0e274a5309355f6817733d6a4000
Author: Holger Levsen <holger at layer-acht.org>
Date:   Tue May 20 01:28:56 2014 +0200

    gather_bts_stats: differate between rc and non-rc bugs
---
 master-bin/gather_bts_stats.in | 19 +++++++++++++------
 1 file changed, 13 insertions(+), 6 deletions(-)

diff --git a/master-bin/gather_bts_stats.in b/master-bin/gather_bts_stats.in
index f6e4986..103c019 100755
--- a/master-bin/gather_bts_stats.in
+++ b/master-bin/gather_bts_stats.in
@@ -34,18 +34,25 @@ if $(grep -q ^$TODAY $BTS_STATS 2>/dev/null) ; then
 fi
 
 # query bts
-ALL=$(bts select usertag:piuparts users:debian-qa at lists.debian.org archive:both 2>/dev/null|wc -l)
-OPEN=$(bts select usertag:piuparts users:debian-qa at lists.debian.org status:open 2>/dev/null|wc -l)
+RC="severity:serious severity:grave severity:critical"
+OTHER="severity:wishlist severity:minor severity:normal severity:important"
+DONE_RC=$(bts select usertag:piuparts users:debian-qa at lists.debian.org status:done archive:both $RC 2>/dev/null|wc -l)
+OPEN_RC=$(bts select usertag:piuparts users:debian-qa at lists.debian.org status:open status:forwarded $RC 2>/dev/null|wc -l)
+DONE_OTHER=$(bts select usertag:piuparts users:debian-qa at lists.debian.org status:done archive:both $OTHER 2>/dev/null|wc -l)
+OPEN_OTHER=$(bts select usertag:piuparts users:debian-qa at lists.debian.org status:open status:forwarded $OTHER 2>/dev/null|wc -l)
 
 # test if both values are integers
-if ! ( [[ $ALL =~ ^-?[0-9]+$ ]] && [[ $OPEN =~ ^-?[0-9]+$ ]] ) ; then
-	echo "Non-integer value detected, exiting. ALL: $ALL OPEN: $OPEN"
+if ! ( [[ $DONE_RC =~ ^-?[0-9]+$ ]] && [[ $OPEN_RC =~ ^-?[0-9]+$ ]] && [[ $DONE_OTHER =~ ^-?[0-9]+$ ]] && [[ $OPEN_OTHER =~ ^-?[0-9]+$ ]] ) ; then
+	echo "Non-integer value detected, exiting."
+	echo "DONE_RC: $DONE_RC OPEN_RC: $OPEN_RC"
+	echo "DONE_OTHER: $DONE_OTHER OPEN_OTHER: $OPEN_OTHER"
+	exit 1
 fi
 
 # init file if needed
 if [ ! -f $BTS_STATS ] ; then
-	echo "date, all, open" > $BTS_STATS
+	echo "date, done_rc, open_rc, done_other, open_other" > $BTS_STATS
 fi
 
 # finally, write stats
-echo "$TODAY, $ALL, $OPEN" >> $BTS_STATS
+echo "$TODAY, $DONE_RC, $OPEN_RC, $DONE_OTHER, $OPEN_OTHER" >> $BTS_STATS

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/piuparts/piuparts.git



More information about the Piuparts-commits mailing list