[Libreoffice-commits] dev-tools.git: 2 commits - qa/bugzillaAutomation.py uitest/mass-testing
Xisco Fauli (via logerrit)
logerrit at kemper.freedesktop.org
Mon Jan 27 19:56:45 UTC 2020
qa/bugzillaAutomation.py | 27 +++++++++++++++++++++++----
uitest/mass-testing/run.py | 2 +-
2 files changed, 24 insertions(+), 5 deletions(-)
New commits:
commit 96b7217971b02de9789b70e988aa8d03846b6c90
Author: Xisco Fauli <xiscofauli at libreoffice.org>
AuthorDate: Mon Jan 27 20:54:32 2020 +0100
Commit: Xisco Fauli <xiscofauli at libreoffice.org>
CommitDate: Mon Jan 27 20:55:46 2020 +0100
mass-uitesting: use python 3 instead of 3.5
diff --git a/uitest/mass-testing/run.py b/uitest/mass-testing/run.py
index 3d5bf28..f29c2bb 100755
--- a/uitest/mass-testing/run.py
+++ b/uitest/mass-testing/run.py
@@ -113,7 +113,7 @@ def run_tests_and_get_results(liboPath, listFiles, isDebug, isResume):
#TODO: Find a better way to pass fileName parameter
os.environ["TESTFILENAME"] = fileName
- process = Popen(["python3.5",
+ process = Popen(["python3",
liboPath + "uitest/test_main.py",
"--debug",
"--soffice=path:" + sofficePath,
commit d080dd9b6542437e6a3aaa359a9b35f4ae275a26
Author: Xisco Fauli <xiscofauli at libreoffice.org>
AuthorDate: Thu Jan 23 13:13:11 2020 +0100
Commit: Xisco Fauli <xiscofauli at libreoffice.org>
CommitDate: Mon Jan 27 20:55:46 2020 +0100
QA: add needsUXEval automatically
diff --git a/qa/bugzillaAutomation.py b/qa/bugzillaAutomation.py
index 182fe18..91003bf 100755
--- a/qa/bugzillaAutomation.py
+++ b/qa/bugzillaAutomation.py
@@ -50,6 +50,10 @@ def util_create_statList():
{
'add': {},
'remove': {}
+ },
+ 'needsUXEval':
+ {
+ 'add': {}
}
}
def analyze_bugzilla(statList, bugzillaData, cfg):
@@ -113,9 +117,13 @@ def analyze_bugzilla(statList, bugzillaData, cfg):
if bSameAuthor and comment['creator'] != row['creator']:
bSameAuthor = False
- if bSameAuthor and rowStatus == 'UNCONFIRMED' and needsCommentTag not in row['whiteboard'] and \
- datetime.datetime.strptime(row['last_change_time'], "%Y-%m-%dT%H:%M:%SZ") < cfg['needsCommentPeriod']:
- statList['needsComment']['add'][rowId] = needsCommentTag
+ if bSameAuthor and rowStatus == 'UNCONFIRMED':
+ if row['component'] == 'UI' and row['severity'] == 'enhancement' and 'needsUXEval' not in rowKeywords:
+ statList['needsUXEval']['add'][rowId] = 'needsUXEval'
+
+ elif needsCommentTag not in row['whiteboard'] and \
+ datetime.datetime.strptime(row['last_change_time'], "%Y-%m-%dT%H:%M:%SZ") < cfg['needsCommentPeriod']:
+ statList['needsComment']['add'][rowId] = needsCommentTag
elif not bSameAuthor and needsCommentTag in row['whiteboard']:
statList['needsComment']['remove'][rowId] = needsCommentTag
@@ -191,7 +199,7 @@ def post_comment(statList, keyInStatList, commentId, comment, addFirstLine, chan
print('Bug: ' + bugId + ' - ' + changeCommand)
rPut.close()
-def update_field(statList, field, whiteboardTag):
+def update_field(statList, field, whiteboardTag, add_cc = False):
for action, listOfBugs in statList[whiteboardTag].items():
for bugId, tag in listOfBugs.items():
bugId = str(bugId)
@@ -225,6 +233,16 @@ def update_field(statList, field, whiteboardTag):
print('Bug: ' + bugId + ' - ' + command)
rPut.close()
+ if add_cc:
+ command = '{"cc": {"add": ["libreoffice-ux-advise at lists.freedesktop.org"]}}'
+ rPut = requests.put(urlPut, command.encode('utf-8'))
+ print('Bug: ' + bugId + ' - ' + command)
+ rPut.close()
+
+def automated_needsUXEval(statList):
+ print('== add needsUXEval ==')
+ update_field(statList, "keywords", "needsUXEval", True)
+
def automated_tagRegression(statList):
print('== Tag Regression ==')
update_field(statList, "keywords", "tagRegression")
@@ -325,3 +343,4 @@ if __name__ == '__main__':
automated_needsCommentFromQA(statList)
automated_cleanupBackportRequests(statList)
automated_tagRegression(statList)
+ automated_needsUXEval(statList)
More information about the Libreoffice-commits
mailing list