Bug 1382273 - Implement daily update of priority/whiteboard for triage; r=jmaher
--- a/woo_commenter.py
+++ b/woo_commenter.py
@@ -166,17 +166,17 @@ def main():
testruncount=testruncount,
rank=rank,
priority=priority,
failure_rate=round(counts['total']/float(testruncount), 3),
repositories=dict_to_sorted_list(counts['per_repository']),
platforms=dict_to_sorted_list(counts['per_platform']))
params = {'comment': {'body': text} }
# DOM triage updates to priority and whiteboard
- if options.weekly_mode and (counts['total'] >= PRIORITY2_THRESHOLD):
+ if (counts['total'] >= PRIORITY2_THRESHOLD) or (not options.weekly_mode):
bug_info = get_triage_info_for_bug(bmo_session, bug_id)
bug_info = bug_info['bugs'][0]
if ((bug_info['product'] in products) and
(bug_info['component'] in components) and
('intermittent-failure' in bug_info['keywords'])):
# do not update priority on bugs already awaiting triage or
# already a high priority (P1 should be re-triaged weekly)
if ((bug_info['priority'] != '--') and