| 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 master import gatekeeper | 5 from master import gatekeeper |
| 6 from master import master_utils | 6 from master import master_utils |
| 7 | 7 |
| 8 # This is the list of the builder categories and the corresponding critical | 8 # This is the list of the builder categories and the corresponding critical |
| 9 # steps. If one critical step fails, gatekeeper will close the tree | 9 # steps. If one critical step fails, gatekeeper will close the tree |
| 10 # automatically. | 10 # automatically. |
| 11 # Note: don't include 'update scripts' since we can't do much about it when | 11 # Note: don't include 'update scripts' since we can't do much about it when |
| 12 # it's failing and the tree is still technically fine. | 12 # it's failing and the tree is still technically fine. |
| 13 categories_steps = { | 13 categories_steps = { |
| 14 '': ['update', 'runhooks', 'compile'], | 14 '': ['update', 'runhooks', 'compile'], |
| 15 'testers': [ | 15 'testers': [ |
| 16 'Presubmit', | 16 'Presubmit', |
| 17 'Static-Initializers', | 17 'Static-Initializers', |
| 18 'Check', | 18 'Check', |
| 19 'Webkit', | 19 'Webkit', |
| 20 'Test262', | 20 'Test262', |
| 21 'Mozilla', | 21 'Mozilla', |
| 22 'Intl', | |
| 23 'GCMole', | 22 'GCMole', |
| 24 ], | 23 ], |
| 25 } | 24 } |
| 26 | 25 |
| 27 exclusions = { | 26 exclusions = { |
| 28 'V8 Linux - mips - sim': ['compile'], | 27 'V8 Linux - mips - sim': ['compile'], |
| 29 'V8 Linux - recipe': [], | 28 'V8 Linux - recipe': [], |
| 30 } | 29 } |
| 31 | 30 |
| 32 forgiving_steps = ['update_scripts', 'update', 'svnkill', 'taskkill', | 31 forgiving_steps = ['update_scripts', 'update', 'svnkill', 'taskkill', |
| 33 'gclient_revert'] | 32 'gclient_revert'] |
| 34 | 33 |
| 35 def Update(config, active_master, c): | 34 def Update(config, active_master, c): |
| 36 c['status'].append(gatekeeper.GateKeeper( | 35 c['status'].append(gatekeeper.GateKeeper( |
| 37 fromaddr=active_master.from_address, | 36 fromaddr=active_master.from_address, |
| 38 categories_steps=categories_steps, | 37 categories_steps=categories_steps, |
| 39 exclusions=exclusions, | 38 exclusions=exclusions, |
| 40 relayhost=config.Master.smtp, | 39 relayhost=config.Master.smtp, |
| 41 subject='buildbot %(result)s in %(projectName)s on %(builder)s, ' | 40 subject='buildbot %(result)s in %(projectName)s on %(builder)s, ' |
| 42 'revision %(revision)s', | 41 'revision %(revision)s', |
| 43 extraRecipients=active_master.tree_closing_notification_recipients, | 42 extraRecipients=active_master.tree_closing_notification_recipients, |
| 44 lookup='google.com', | 43 lookup='google.com', |
| 45 forgiving_steps=forgiving_steps, | 44 forgiving_steps=forgiving_steps, |
| 46 tree_status_url=active_master.tree_status_url)) | 45 tree_status_url=active_master.tree_status_url)) |
| OLD | NEW |