diff --git a/triggerbot/triggerbot_pulse.py b/triggerbot/triggerbot_pulse.py index 53f5713..fd44e2a 100644 --- a/triggerbot/triggerbot_pulse.py +++ b/triggerbot/triggerbot_pulse.py @@ -35,6 +35,8 @@ def extract_payload(payload, key): builder = prop[1] if prop[0] == 'branch': branch = prop[1] + if prop[0] == 'platform': + platform = prop[1] if rev and len(rev) > 12: rev = rev[:12] @@ -57,6 +59,11 @@ def extract_payload(payload, key): branch) match = unittest_re.match(key) + # Bug 1208104: Force triggering off for Windows testers until + # we have control of the backlog. + if platform in ('win64', 'win32'): + match = None + return branch, rev, builder, status, match is not None, comments, user @@ -71,8 +78,6 @@ def handle_message(data, message): is_test]): return - # logger.info('Saw %s at %s with "%s"' % (user, rev, comments)) - tw.handle_message(key, branch, rev, builder, status, comments, user)