old_contents: # Copyright (c) 2011 The Chromium Authors. All rights reserved.
  # Use of this source code is governed by a BSD-style license that can be
  # found in the LICENSE file.
  
  from master import gatekeeper
  from master import master_utils
  
  # This is the list of the builder categories and the corresponding critical
  # steps. If one critical step fails, gatekeeper will close the tree
  # automatically.
  # Note: don't include 'update scripts' since we can't do much about it when
  # it's failing and the tree is still technically fine.
  categories_steps = {
    '': ['update'],
    'testers': [
      'base_unittests',
      'cacheinvalidation_unittests',
      'content_unittests',
      'courgette_unittests',
      'crypto_unittests',
      'googleurl_unittests',
      'ipc_tests',
      'installer_util_unittests',
      'jingle_unittests',
      'media_unittests',
      'mini_installer_test',
      'nacl_integration',
      'net_unittests',
      'plugin_tests',
      'printing_unittests',
      'remoting_unittests',
      'sql_unittests',
      'test_shell_tests',
      'unit_tests',
     ],
    'compile': ['compile']
  }
  
  forgiving_steps = ['update_scripts', 'update']
  
  def Update(config, active_master, c):
    c['status'].append(gatekeeper.GateKeeper(
        fromaddr=active_master.from_address,
        categories_steps=categories_steps,
        exclusions=exclusions,
        relayhost=config.Master.smtp,
        subject='buildbot %(result)s in %(projectName)s on %(builder)s, '
                'revision %(revision)s',
        extraRecipients=active_master.tree_closing_notification_recipients,
        lookup=master_utils.FilterDomain(),
        forgiving_steps=forgiving_steps,
        tree_status_url=active_master.tree_status_url,
        use_getname=True))
  
new_contents: # Copyright (c) 2011 The Chromium Authors. All rights reserved.
  # Use of this source code is governed by a BSD-style license that can be
  # found in the LICENSE file.
  
  from master import gatekeeper
  from master import master_utils
  
  # This is the list of the builder categories and the corresponding critical
  # steps. If one critical step fails, gatekeeper will close the tree
  # automatically.
  # Note: don't include 'update scripts' since we can't do much about it when
  # it's failing and the tree is still technically fine.
  categories_steps = {
    '': ['update'],
    'testers': [
      'base_unittests',
      'cacheinvalidation_unittests',
      'content_unittests',
      'courgette_unittests',
      'crypto_unittests',
      'googleurl_unittests',
      'ipc_tests',
      'installer_util_unittests',
      'jingle_unittests',
      'media_unittests',
      'mini_installer_test',
      'nacl_integration',
      'net_unittests',
      'plugin_tests',
      'printing_unittests',
      'remoting_unittests',
      'sql_unittests',
      'test_shell_tests',
      'unit_tests',
     ],
    'compile': ['compile']
  }
  
  exclusions = {
  }
  
  forgiving_steps = ['update_scripts', 'update']
  
  def Update(config, active_master, c):
    c['status'].append(gatekeeper.GateKeeper(
        fromaddr=active_master.from_address,
        categories_steps=categories_steps,
        exclusions=exclusions,
        relayhost=config.Master.smtp,
        subject='buildbot %(result)s in %(projectName)s on %(builder)s, '
                'revision %(revision)s',
        extraRecipients=active_master.tree_closing_notification_recipients,
        lookup=master_utils.FilterDomain(),
        forgiving_steps=forgiving_steps,
        tree_status_url=active_master.tree_status_url,
        use_getname=True))
  
subject: Add empty exclusions.