[Libreoffice-commits] dev-tools.git: esc-reporting/qa-tools.py
Xisco Fauli
anistenis at gmail.com
Wed Jul 5 09:29:39 UTC 2017
esc-reporting/qa-tools.py | 25 +++++++++++++++++++------
1 file changed, 19 insertions(+), 6 deletions(-)
New commits:
commit ff8f7d5205d6ce8f4802beb77a500a112e0567f2
Author: Xisco Fauli <anistenis at gmail.com>
Date: Wed Jul 5 11:26:39 2017 +0200
QA tools: Warn about bugs moved from NEEDINFO...
to FIXED by the reporter
diff --git a/esc-reporting/qa-tools.py b/esc-reporting/qa-tools.py
index d7f605c..a37cbb5 100755
--- a/esc-reporting/qa-tools.py
+++ b/esc-reporting/qa-tools.py
@@ -16,9 +16,9 @@ import re
homeDir = '/home/xisco/dev-tools/esc-reporting/'
-reportPeriod = '7d'
+reportPeriod = '8d'
-newUsersPeriod = '7d'
+newUsersPeriod = '8d'
targets_list = ['5.4.0']
@@ -93,7 +93,7 @@ def util_create_detailed_person(email):
def util_create_statList():
return {
- 'data':
+ 'data':
{
'bugs':
{
@@ -182,7 +182,7 @@ def util_increase_user_actions(statList, bug, mail, targets, action, actionTime)
for target in targets:
if mail not in statList['targets'][target]['people']:
statList['targets'][target]['people'][mail] = util_create_detailed_person(mail)
-
+
statList['targets'][target]['people'][mail][action] += 1
statList['targets'][target]['people'][mail]['bugs'].append(bug)
@@ -190,7 +190,7 @@ def util_increase_user_actions(statList, bug, mail, targets, action, actionTime)
if actionTime >= cfg[period]:
if mail not in statList['period'][period]['people']:
statList['period'][period]['people'][mail] = util_create_detailed_person(mail)
-
+
statList['period'][period]['people'][mail][action] += 1
statList['period'][period]['people'][mail]['bugs'].append(bug)
@@ -203,7 +203,7 @@ def analyze_bugzilla(statList, bugzillaData, cfg):
total = 0
for key, row in bugzillaData['bugs'].items():
- #Ignore META bugs and deletionrequest bugs.
+ #Ignore META bugs and deletionrequest bugs.
if not row['summary'].lower().startswith('[meta]') and row['component'] != 'deletionrequest':
creationDate = datetime.datetime.strptime(row['creation_time'], "%Y-%m-%dT%H:%M:%SZ")
if creationDate < statOldDate:
@@ -300,6 +300,7 @@ def analyze_bugzilla(statList, bugzillaData, cfg):
everConfirmed = False
oldestVersion = 999999
newerVersion = False
+ movedToFixed = False
for action in row['history']:
actionMail = action['who']
actionDate = datetime.datetime.strptime(action['when'], "%Y-%m-%dT%H:%M:%SZ")
@@ -388,6 +389,14 @@ def analyze_bugzilla(statList, bugzillaData, cfg):
isOpen(rowStatus) and isOpen(addedStatus) and 'bisected' not in keywords:
autoConfirmed = True
+ if movedToFixed and removedStatus == 'RESOLVED':
+ movedToFixed = False
+
+ if creationDate >= cfg[reportPeriod] and actionMail == creatorMail and \
+ addedStatus == 'RESOLVED_FIXED' and rowStatus == 'RESOLVED_FIXED' and \
+ removedStatus == 'NEEDINFO':
+ movedToFixed = True
+
elif newStatus and change['field_name'] == 'resolution':
addedStatus = newStatus + "_" + change['added']
util_increase_user_actions(statList, key, actionMail, bugTargets, 'status_changed', actionDate)
@@ -506,6 +515,10 @@ def analyze_bugzilla(statList, bugzillaData, cfg):
if commentMail == email or actionMail == email:
util_check_bugzilla_mail(statList, email, person['real_name'])
+ if movedToFixed:
+ total += 1
+ print(str(total) + " - MOVED TO FIXED: https://bugs.documentfoundation.org/show_bug.cgi?id=" + str(row['id']))
+
if autoConfirmed:
total += 1
print(str(total) + " - AUTO-CONFIRMED: https://bugs.documentfoundation.org/show_bug.cgi?id=" + str(row['id']))
More information about the Libreoffice-commits
mailing list