Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 # Copyright 2013 The Chromium Authors. All rights reserved. | 1 # Copyright 2013 The Chromium Authors. All rights reserved. |
| 2 # Use of this source code is governed by a BSD-style license that can be | 2 # Use of this source code is governed by a BSD-style license that can be |
| 3 # found in the LICENSE file. | 3 # found in the LICENSE file. |
| 4 | 4 |
| 5 from buildbot.status.builder import FAILURE | 5 from buildbot.status.builder import FAILURE |
| 6 from master import chromium_notifier | 6 from master import chromium_notifier |
| 7 from master import master_utils | 7 from master import master_utils |
| 8 | 8 |
| 9 | 9 |
| 10 v8_steps = [ | 10 v8_steps = [ |
| (...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 54 'V8 Mips - big endian - nosnap - 1': [], | 54 'V8 Mips - big endian - nosnap - 1': [], |
| 55 'V8 Mips - big endian - nosnap - 2': [], | 55 'V8 Mips - big endian - nosnap - 2': [], |
| 56 'V8 Linux - x87 - nosnap - debug builder': [], | 56 'V8 Linux - x87 - nosnap - debug builder': [], |
| 57 'V8 Linux - x87 - nosnap - debug': [], | 57 'V8 Linux - x87 - nosnap - debug': [], |
| 58 'V8 Linux - predictable': [], | 58 'V8 Linux - predictable': [], |
| 59 } | 59 } |
| 60 | 60 |
| 61 forgiving_steps = ['update_scripts', 'update', 'svnkill', 'taskkill', | 61 forgiving_steps = ['update_scripts', 'update', 'svnkill', 'taskkill', |
| 62 'gclient_revert'] | 62 'gclient_revert'] |
| 63 | 63 |
| 64 x87_categories_steps = {'x87': ['runhooks', 'compile', 'Unittests', 'Check']} | |
|
Michael Achenbach
2016/04/05 14:50:03
Removing Unittests when moving the code. The step
Sergiy Byelozyorov
2016/04/05 15:04:09
Acknowledged.
| |
| 65 vtunejit_categories_steps = {'vtunejit': ['runhooks', 'compile']} | 64 vtunejit_categories_steps = {'vtunejit': ['runhooks', 'compile']} |
| 66 mem_sheriff_categories_steps = {'mem_sheriff': v8_steps} | 65 mem_sheriff_categories_steps = {'mem_sheriff': v8_steps} |
| 67 predictable_categories_steps = {'predictable': v8_steps} | 66 predictable_categories_steps = {'predictable': v8_steps} |
| 68 clusterfuzz_categories_steps = {'clusterfuzz': ['check clusterfuzz']} | 67 clusterfuzz_categories_steps = {'clusterfuzz': ['check clusterfuzz']} |
| 69 | 68 |
| 70 class V8Notifier(chromium_notifier.ChromiumNotifier): | 69 class V8Notifier(chromium_notifier.ChromiumNotifier): |
| 71 def isInterestingStep(self, build_status, step_status, results): | 70 def isInterestingStep(self, build_status, step_status, results): |
| 72 """Watch only failing steps.""" | 71 """Watch only failing steps.""" |
| 73 return results[0] == FAILURE | 72 return results[0] == FAILURE |
| 74 | 73 |
| 75 | 74 |
| 76 def Update(config, active_master, c): | 75 def Update(config, active_master, c): |
| 77 c['status'].append(V8Notifier( | 76 c['status'].append(V8Notifier( |
| 78 fromaddr=active_master.from_address, | 77 fromaddr=active_master.from_address, |
| 79 categories_steps=categories_steps, | 78 categories_steps=categories_steps, |
| 80 exclusions=exclusions, | 79 exclusions=exclusions, |
| 81 relayhost=config.Master.smtp, | 80 relayhost=config.Master.smtp, |
| 82 sendToInterestedUsers=True, | 81 sendToInterestedUsers=True, |
| 83 status_header='buildbot failure in %(project)s on %(builder)s, %(steps)s', | 82 status_header='buildbot failure in %(project)s on %(builder)s, %(steps)s', |
| 84 lookup=master_utils.FilterDomain(), | 83 lookup=master_utils.FilterDomain(), |
| 85 forgiving_steps=forgiving_steps)) | 84 forgiving_steps=forgiving_steps)) |
| 86 c['status'].append(V8Notifier( | 85 c['status'].append(V8Notifier( |
| 87 fromaddr=active_master.from_address, | 86 fromaddr=active_master.from_address, |
| 88 categories_steps=x87_categories_steps, | |
| 89 exclusions={}, | |
| 90 relayhost=config.Master.smtp, | |
| 91 sendToInterestedUsers=False, | |
| 92 extraRecipients=[ | |
| 93 'weiliang.lin@intel.com', | |
| 94 'chunyang.dai@intel.com', | |
| 95 'zhengxing.li@intel.com', | |
| 96 ], | |
| 97 status_header='buildbot failure in %(project)s on %(builder)s, %(steps)s', | |
| 98 lookup=master_utils.FilterDomain(), | |
| 99 forgiving_steps=forgiving_steps)) | |
| 100 c['status'].append(V8Notifier( | |
| 101 fromaddr=active_master.from_address, | |
| 102 categories_steps=vtunejit_categories_steps, | 87 categories_steps=vtunejit_categories_steps, |
| 103 exclusions={}, | 88 exclusions={}, |
| 104 relayhost=config.Master.smtp, | 89 relayhost=config.Master.smtp, |
| 105 sendToInterestedUsers=False, | 90 sendToInterestedUsers=False, |
| 106 extraRecipients=['chunyang.dai@intel.com'], | 91 extraRecipients=['chunyang.dai@intel.com'], |
| 107 status_header='buildbot failure in %(project)s on %(builder)s, %(steps)s', | 92 status_header='buildbot failure in %(project)s on %(builder)s, %(steps)s', |
| 108 lookup=master_utils.FilterDomain(), | 93 lookup=master_utils.FilterDomain(), |
| 109 forgiving_steps=forgiving_steps)) | 94 forgiving_steps=forgiving_steps)) |
| 110 c['status'].append(V8Notifier( | 95 c['status'].append(V8Notifier( |
| 111 fromaddr=active_master.from_address, | 96 fromaddr=active_master.from_address, |
| (...skipping 22 matching lines...) Expand all Loading... | |
| 134 relayhost=config.Master.smtp, | 119 relayhost=config.Master.smtp, |
| 135 sendToInterestedUsers=False, | 120 sendToInterestedUsers=False, |
| 136 extraRecipients=[ | 121 extraRecipients=[ |
| 137 'v8-clusterfuzz-sheriff@chromium.org', | 122 'v8-clusterfuzz-sheriff@chromium.org', |
| 138 'machenbach@chromium.org', | 123 'machenbach@chromium.org', |
| 139 ], | 124 ], |
| 140 status_header='buildbot failure in %(project)s on %(builder)s, %(steps)s', | 125 status_header='buildbot failure in %(project)s on %(builder)s, %(steps)s', |
| 141 lookup=master_utils.FilterDomain(), | 126 lookup=master_utils.FilterDomain(), |
| 142 forgiving_steps=forgiving_steps)) | 127 forgiving_steps=forgiving_steps)) |
| 143 | 128 |
| OLD | NEW |