[Libreoffice-commits] dev-tools.git: 2 commits - qa/bugzillaAutomation.py qa/bugzillaChecker.py qa/bugzillaDataAnalyzer.py qa/common.py qa/createBlogReport.py qa/createWeeklyReport.py qa/createWikiStats.py
Libreoffice Gerrit user
logerrit at kemper.freedesktop.org
Wed Feb 6 17:30:23 UTC 2019
qa/bugzillaAutomation.py | 2 +-
qa/bugzillaChecker.py | 33 ++++++++++++++++-----------------
qa/bugzillaDataAnalyzer.py | 3 +--
qa/common.py | 7 +++----
qa/createBlogReport.py | 11 ++++++++++-
qa/createWeeklyReport.py | 5 ++---
qa/createWikiStats.py | 2 +-
7 files changed, 34 insertions(+), 29 deletions(-)
New commits:
commit fc3716d551caf5a29631386d3aa602f1722910f7
Author: Xisco Fauli <xiscofauli at libreoffice.org>
AuthorDate: Tue Feb 5 20:16:25 2019 +0100
Commit: Xisco Fauli <xiscofauli at libreoffice.org>
CommitDate: Wed Feb 6 18:29:58 2019 +0100
QA: Add old bugs to the list of fix issues
diff --git a/qa/createBlogReport.py b/qa/createBlogReport.py
index afe9dcc..ddfe502 100755
--- a/qa/createBlogReport.py
+++ b/qa/createBlogReport.py
@@ -17,6 +17,7 @@ import matplotlib.pyplot as plt
lKeywords = ['havebacktrace', 'regression', 'bisected']
+oldBugsYears = 4
def util_create_basic_schema():
return {
@@ -33,6 +34,8 @@ def util_create_statList():
'verified': util_create_basic_schema(),
'fixed': util_create_basic_schema(),
'criticalFixed': {},
+ 'crashFixed': {},
+ 'oldBugsFixed': {},
'metabug': util_create_basic_schema(),
'keywords': { k : util_create_basic_schema() for k in lKeywords},
'people' : {},
@@ -376,8 +379,12 @@ def analyze_bugzilla_data(statList, bugzillaData, cfg):
commentDay = commentDate.strftime("%Y-%m-%d")
util_increase_action(statList['fixed'], rowId, author, commentDay, diffTime)
commitNoticiation=True
- if 'crash' in row['summary'].lower() or row['priority'] == "highest":
+ if row['priority'] == "highest":
statList['criticalFixed'][rowId]= {'summary': row['summary'], 'author': author}
+ elif 'crash' in row['summary'].lower():
+ statList['crashFixed'][rowId]= {'summary': row['summary'], 'author': author}
+ elif creationDate < common.util_convert_days_to_datetime(oldBugsYears * 365):
+ statList['oldBugsFixed'][rowId]= {'summary': row['summary'], 'author': author}
if rowId in fixedBugs and not commitNoticiation:
actionDate = fixedBugs[rowId]
@@ -552,6 +559,8 @@ def createReport(statList):
createSection(fp, statList['confirmed'], "Triaged Bugs", "triaged", "Triagers", "gold")
createSection(fp, statList['fixed'], "Fixed Bugs", "fixed", "Fixers", "darksalmon")
createList(fp, statList['criticalFixed'], "List of critical bugs fixed")
+ createList(fp, statList['crashFixed'], "List of crashes fixed")
+ createList(fp, statList['oldBugsFixed'], "List of old bugs ( more than {} years old ) fixed".format(oldBugsYears))
createSection(fp, statList['verified'], "Verified bug fixes", "verified", "Verifiers", "palegreen")
createSection(fp, statList['metabug'], "Categorized Bugs", "categorized with a metabug", "Categorizers", "lightpink")
createSection(fp, statList['keywords']['regression'], "Regression Bugs", "set as regressions", "", "mediumpurple")
commit 6de6c6f730dc92f9fd1e67ade329d3487f9625de
Author: Xisco Fauli <xiscofauli at libreoffice.org>
AuthorDate: Tue Feb 5 19:53:41 2019 +0100
Commit: Xisco Fauli <xiscofauli at libreoffice.org>
CommitDate: Wed Feb 6 18:29:58 2019 +0100
QA: Simplify code
diff --git a/qa/bugzillaAutomation.py b/qa/bugzillaAutomation.py
index d4eee5b..b81e2f9 100755
--- a/qa/bugzillaAutomation.py
+++ b/qa/bugzillaAutomation.py
@@ -144,7 +144,7 @@ def automated_tagging(statList):
def runCfg():
cfg = common.get_config()
- cfg['untouchedPeriod'] = common.util_convert_days_to_datetime(cfg, untouchedPeriodDays)
+ cfg['untouchedPeriod'] = common.util_convert_days_to_datetime(untouchedPeriodDays)
return cfg
diff --git a/qa/bugzillaChecker.py b/qa/bugzillaChecker.py
index 635a22f..189d3d0 100755
--- a/qa/bugzillaChecker.py
+++ b/qa/bugzillaChecker.py
@@ -471,23 +471,22 @@ def analyze_bugzilla_checkers(statList, bugzillaData, cfg):
def runCfg():
cfg = common.get_config()
- cfg['todayDate'] = datetime.datetime.now().replace(hour=0, minute=0,second=0)
- cfg['reportPeriod'] = common.util_convert_days_to_datetime(cfg, reportPeriodDays)
- cfg['coloredReportPeriod'] = common.util_convert_days_to_datetime(cfg, coloredPeriodDays)
- cfg['newUserPeriod'] = common.util_convert_days_to_datetime(cfg, newUserPeriodDays)
- cfg['oldUserPeriod'] = common.util_convert_days_to_datetime(cfg, oldUserPeriodDays)
- cfg['oldUserPeriod2'] = common.util_convert_days_to_datetime(cfg, oldUserPeriodDays + reportPeriodDays)
- cfg['memberPeriod'] = common.util_convert_days_to_datetime(cfg, memberPeriodDays)
- cfg['PingFixedBugPeriod'] = common.util_convert_days_to_datetime(cfg, pingFixedBugPeriodDays)
- cfg['pingFixedBugDiff'] = common.util_convert_days_to_datetime(cfg, pingFixedBugPeriodDays + reportPeriodDays)
- cfg['coloredFixBugPingPeriod'] = common.util_convert_days_to_datetime(cfg, coloredPeriodDays + pingFixedBugPeriodDays)
- cfg['retestUnconfirmedPeriod'] = common.util_convert_days_to_datetime(cfg, retestUnconfirmedPeriodDays)
- cfg['coloredInactiveUnconfirmedPeriod'] = common.util_convert_days_to_datetime(cfg, coloredPeriodDays + inactiveUnconfirmedPeriodDays)
- cfg['inactiveUnconfirmedPeriod'] = common.util_convert_days_to_datetime(cfg, inactiveUnconfirmedPeriodDays)
- cfg['coloredRetestUnconfirmedPeriod'] = common.util_convert_days_to_datetime(cfg, coloredPeriodDays + retestUnconfirmedPeriodDays)
- cfg['retestNeedinfoPeriod'] = common.util_convert_days_to_datetime(cfg, retestNeedinfoPeriodDays)
- cfg['inactiveAssignedPeriod'] = common.util_convert_days_to_datetime(cfg, inactiveAssignedPeriodDays)
- cfg['coloredInactiveAssignedPeriod'] = common.util_convert_days_to_datetime(cfg, coloredPeriodDays + inactiveAssignedPeriodDays)
+ cfg['reportPeriod'] = common.util_convert_days_to_datetime(reportPeriodDays)
+ cfg['coloredReportPeriod'] = common.util_convert_days_to_datetime(coloredPeriodDays)
+ cfg['newUserPeriod'] = common.util_convert_days_to_datetime(newUserPeriodDays)
+ cfg['oldUserPeriod'] = common.util_convert_days_to_datetime(oldUserPeriodDays)
+ cfg['oldUserPeriod2'] = common.util_convert_days_to_datetime(oldUserPeriodDays + reportPeriodDays)
+ cfg['memberPeriod'] = common.util_convert_days_to_datetime(memberPeriodDays)
+ cfg['PingFixedBugPeriod'] = common.util_convert_days_to_datetime(pingFixedBugPeriodDays)
+ cfg['pingFixedBugDiff'] = common.util_convert_days_to_datetime(pingFixedBugPeriodDays + reportPeriodDays)
+ cfg['coloredFixBugPingPeriod'] = common.util_convert_days_to_datetime(coloredPeriodDays + pingFixedBugPeriodDays)
+ cfg['retestUnconfirmedPeriod'] = common.util_convert_days_to_datetime(retestUnconfirmedPeriodDays)
+ cfg['coloredInactiveUnconfirmedPeriod'] = common.util_convert_days_to_datetime(coloredPeriodDays + inactiveUnconfirmedPeriodDays)
+ cfg['inactiveUnconfirmedPeriod'] = common.util_convert_days_to_datetime(inactiveUnconfirmedPeriodDays)
+ cfg['coloredRetestUnconfirmedPeriod'] = common.util_convert_days_to_datetime(coloredPeriodDays + retestUnconfirmedPeriodDays)
+ cfg['retestNeedinfoPeriod'] = common.util_convert_days_to_datetime(retestNeedinfoPeriodDays)
+ cfg['inactiveAssignedPeriod'] = common.util_convert_days_to_datetime(inactiveAssignedPeriodDays)
+ cfg['coloredInactiveAssignedPeriod'] = common.util_convert_days_to_datetime(coloredPeriodDays + inactiveAssignedPeriodDays)
return cfg
if __name__ == '__main__':
diff --git a/qa/bugzillaDataAnalyzer.py b/qa/bugzillaDataAnalyzer.py
index 44c7228..63ce9dd 100755
--- a/qa/bugzillaDataAnalyzer.py
+++ b/qa/bugzillaDataAnalyzer.py
@@ -427,8 +427,7 @@ def data_Report(statList) :
def runCfg():
cfg = {}
- cfg['reportPeriod'] = common.util_convert_days_to_datetime(cfg, reportPeriodDays)
-
+ cfg['reportPeriod'] = common.util_convert_days_to_datetime(reportPeriodDays)
return cfg
if __name__ == '__main__':
diff --git a/qa/common.py b/qa/common.py
index 047a50f..96dae66 100755
--- a/qa/common.py
+++ b/qa/common.py
@@ -18,7 +18,6 @@ dataDir = '/home/xisco/dev-tools/esc-reporting/dump/'
#Path where configQA.json and addObsolete.txt are
configDir = '/home/xisco/dev-tools/qa/'
-
priorities_list = ['highest','high','medium','low','lowest']
severities_list = ['blocker', 'critical', 'major', 'normal', 'minor', 'trivial','enhancement']
@@ -49,9 +48,9 @@ untouchedPingComment = "** Please read this message in its entirety before respo
needInfoPingComment = "Dear Bug Submitter,\n\nThis bug has been in NEEDINFO status with no change for at least"
-def util_convert_days_to_datetime(cfg, period):
- cfg['todayDate'] = datetime.datetime.now().replace(hour=0, minute=0,second=0)
- return cfg['todayDate'] - datetime.timedelta(days= period)
+def util_convert_days_to_datetime(period):
+ todayDate = datetime.datetime.now().replace(hour=0, minute=0,second=0)
+ return todayDate - datetime.timedelta(days= period)
def util_load_file(fileName):
try:
diff --git a/qa/createWeeklyReport.py b/qa/createWeeklyReport.py
index 34896dd..9f9399d 100755
--- a/qa/createWeeklyReport.py
+++ b/qa/createWeeklyReport.py
@@ -423,9 +423,8 @@ def create_weekly_Report(statList) :
fp.close()
def runCfg():
- cfg = common.get_config()
- cfg['todayDate'] = datetime.datetime.now().replace(hour=0, minute=0,second=0)
- cfg['reportPeriod'] = common.util_convert_days_to_datetime(cfg, reportPeriodDays)
+ cfg = {}
+ cfg['reportPeriod'] = common.util_convert_days_to_datetime(reportPeriodDays)
return cfg
diff --git a/qa/createWikiStats.py b/qa/createWikiStats.py
index 7dba64b..db1ef13 100755
--- a/qa/createWikiStats.py
+++ b/qa/createWikiStats.py
@@ -392,7 +392,7 @@ def runCfg():
cfg['todayDate'] = datetime.datetime.now().replace(hour=0, minute=0,second=0)
for period in periods_list:
- cfg[period] = common.util_convert_days_to_datetime(cfg, period)
+ cfg[period] = common.util_convert_days_to_datetime(period)
return cfg
More information about the Libreoffice-commits
mailing list