esc-reporting/qa-tools.py | 21 ++++++++++++++++++++- 1 file changed, 20 insertions(+), 1 deletion(-)
New commits: commit 489a7bae60128c273a228dde4ab618804a5ab07e Author: Xisco Fauli <aniste...@gmail.com> Date: Fri Jul 14 16:22:45 2017 +0200 QA Tools: Warn when last comment in the bug is done by... ... the Commit Notification and the bug is still open after 30 days diff --git a/esc-reporting/qa-tools.py b/esc-reporting/qa-tools.py index 204f502..e4b42a0 100755 --- a/esc-reporting/qa-tools.py +++ b/esc-reporting/qa-tools.py @@ -20,6 +20,8 @@ reportPeriod = '7d' newUsersPeriod = '7d' +lastAction = '30d' + targets_list = ['5.4.0'] periods_list = ['30d', '60d', '90d', '180d'] @@ -567,7 +569,7 @@ def analyze_bugzilla(statList, bugzillaData, cfg): #In case the reporter assigned the bug to himself at creation time if addAssigned or (creationDate >= cfg[reportPeriod] and row['assigned_to'] != 'libreoffice-b...@lists.freedesktop.org' and \ - ( rowStatus == 'NEW' or rowStatus == 'UNCONFIRMED' or rowStatus == 'REOPENED')): + ( rowStatus == 'NEW' or rowStatus == 'UNCONFIRMED' or rowStatus == 'REOPENED')): total += 1 print(str(total) + " - ADD ASSIGNED: https://bugs.documentfoundation.org/show_bug.cgi?id=" + str(rowId)) @@ -579,6 +581,12 @@ def analyze_bugzilla(statList, bugzillaData, cfg): total += 1 print(str(total) + " - BACKPORT ADDED: https://bugs.documentfoundation.org/show_bug.cgi?id=" + str(rowId)) + if isOpen(rowStatus) and commentMail == 'libreoffice-comm...@lists.freedesktop.org' and \ + commentDate < cfg[lastAction] and commentDate >= cfg['diffAction'] and \ + 'easyHack' not in row['keywords']: + total += 1 + print(str(total) + " - FIX BUG PING: https://bugs.documentfoundation.org/show_bug.cgi?id=" + str(rowId)) + for k, v in statList['people'].items(): if not statList['people'][k]['name']: statList['people'][k]['name'] = statList['people'][k]['email'].split('@')[0] @@ -984,6 +992,8 @@ def runCfg(homeDir): cfg['todayDate'] = datetime.datetime.now().replace(hour=0, minute=0,second=0) cfg[reportPeriod] = cfg['todayDate'] - datetime.timedelta(days= int(reportPeriod[:-1])) cfg[newUsersPeriod] = cfg['todayDate'] - datetime.timedelta(days= int(newUsersPeriod[:-1])) + cfg[lastAction] = cfg['todayDate'] - datetime.timedelta(days= int(lastAction[:-1])) + cfg['diffAction'] = cfg['todayDate'] - datetime.timedelta(days= (int(lastAction[:-1]) + int(reportPeriod[:-1]))) for period in periods_list: cfg[period] = cfg['todayDate'] - datetime.timedelta(days= int(period[:-1])) commit ef4bd214e34877cf783b2e74b433d1efa073c18c Author: Xisco Fauli <aniste...@gmail.com> Date: Fri Jul 14 13:27:46 2017 +0200 QA Tools: Warn when backportRequest is added to open bugs diff --git a/esc-reporting/qa-tools.py b/esc-reporting/qa-tools.py index 30da0b4..204f502 100755 --- a/esc-reporting/qa-tools.py +++ b/esc-reporting/qa-tools.py @@ -313,6 +313,7 @@ def analyze_bugzilla(statList, bugzillaData, cfg): movedToFixed = False addAssigned = False removeAssigned = False + backPortAdded = False for action in row['history']: actionMail = action['who'] actionDate = datetime.datetime.strptime(action['when'], "%Y-%m-%dT%H:%M:%SZ") @@ -493,6 +494,10 @@ def analyze_bugzilla(statList, bugzillaData, cfg): statList['detailedReport']['lists']['whiteboard_added'][whiteboard][0].append(key) statList['detailedReport']['lists']['whiteboard_added'][whiteboard][1].append(actionMail) + if isOpen(rowStatus): + backPortAdded = True + + for whiteboard in change['removed'].split(' '): if 'backportrequest' in whiteboard.lower(): util_increase_user_actions(statList, key, actionMail, bugTargets, 'whiteboard_removed', actionDate) @@ -570,6 +575,10 @@ def analyze_bugzilla(statList, bugzillaData, cfg): total += 1 print(str(total) + " - REMOVE ASSIGNED: https://bugs.documentfoundation.org/show_bug.cgi?id=" + str(rowId)) + if backPortAdded: + total += 1 + print(str(total) + " - BACKPORT ADDED: https://bugs.documentfoundation.org/show_bug.cgi?id=" + str(rowId)) + for k, v in statList['people'].items(): if not statList['people'][k]['name']: statList['people'][k]['name'] = statList['people'][k]['email'].split('@')[0] _______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits