Bug 1382273 - Implement daily update of priority/whiteboard for triage; r=jmaher
authorGeoff Brown <gbrown@mozilla.com>
Tue, 25 Jul 2017 09:43:57 -0600
changeset 336 ba322694a641041ef23aef8dbd3dc030499dca75
parent 335 c7a723042a86da88afade21a7ba1b7f9cfca2bde
child 337 18613447b7e10102cd0556ee5497447c829b8fb3
push id284
push usergbrown@mozilla.com
push dateTue, 25 Jul 2017 15:44:29 +0000
reviewersjmaher
bugs1382273
Bug 1382273 - Implement daily update of priority/whiteboard for triage; r=jmaher
woo_commenter.py
--- 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