Bug 1429899 - Change disable-recommended criteria to 150/21; r=jmaher
authorGeoff Brown <gbrown@mozilla.com>
Fri, 12 Jan 2018 19:44:27 -0700
changeset 349 b65ead85936a58b052c7a5686a10ddebc8bcdef2
parent 348 dd7f41d084f6c0ae3af0d86b49a991860bb611e6
child 350 9af8f4670731f6ff84a8fbe1d7fab064e46f7315
push id296
push usergbrown@mozilla.com
push dateSat, 13 Jan 2018 02:45:06 +0000
reviewersjmaher
bugs1429899
Bug 1429899 - Change disable-recommended criteria to 150/21; r=jmaher Set [stockwell disable-recommended] for bugs with 150+ failures in the last 21 days.
templates/bug_comment.template
woo_commenter.py
--- a/templates/bug_comment.template
+++ b/templates/bug_comment.template
@@ -5,17 +5,17 @@ This is the #{{rank}} most frequent fail
 ** This failure happened more than 75 times this week! Resolving this bug is a very high priority. **
 
 ** Try to resolve this bug as soon as possible. If unresolved for 1 week, the affected test(s) may be disabled. ** {{endif}} {{if priority==2}}
 
 ** This failure happened more than 30 times this week! Resolving this bug is a high priority. **
 
 ** Try to resolve this bug as soon as possible. If unresolved for 2 weeks, the affected test(s) may be disabled. ** {{endif}} {{if priority==3}}
 
-** This test has failed more than 200 times in the last 30 days. It should be disabled until it can be fixed. ** {{endif}}
+** This test has failed more than 150 times in the last 21 days. It should be disabled until it can be fixed. ** {{endif}}
 
 Repository breakdown:
 {{for repository, count in repositories}}
 * {{repository}}: {{count}}
 {{endfor}}
 
 Platform breakdown:
 {{for platform, count in platforms}}
--- a/woo_commenter.py
+++ b/woo_commenter.py
@@ -28,19 +28,19 @@ TEMPLATE_FILE = os.path.join('templates'
 DAILY_THRESHOLD = 15
 WEEKLY_THRESHOLD = 1
 # Include rank for top 50 bugs
 RANK_THRESHOLD = 50
 # Include call-to-action message for bugs with more than 30 failures/week
 # and a more urgent message if more than 75 failures/week
 PRIORITY1_THRESHOLD = 75
 PRIORITY2_THRESHOLD = 30
-# Recommend disabling when more than 200 failures tracked over 30 days
-DISABLE_THRESHOLD = 200
-DISABLE_DAYS = 30
+# Recommend disabling when more than 150 failures tracked over 21 days
+DISABLE_THRESHOLD = 150
+DISABLE_DAYS = 21
 # Change [stockwell needswork] to [stockwell unknown] when failure rate
 # drops below 20 failures/week
 UNKNOWN_THRESHOLD = 20
 
 WHITEBOARD_DISABLE_RECOMMENDED = "[stockwell disable-recommended]"
 WHITEBOARD_NEEDSWORK_OWNER = "[stockwell needswork:owner]"
 WHITEBOARD_UNKNOWN = "[stockwell unknown]"