| OLD | NEW |
| (Empty) |
| 1 # Copyright (c) 2012 The Chromium Authors. All rights reserved. | |
| 2 # Use of this source code is governed by a BSD-style license that can be | |
| 3 # found in the LICENSE file. | |
| 4 | |
| 5 from master import failures_notifier | |
| 6 from master import master_utils | |
| 7 | |
| 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 | |
| 10 # automatically. | |
| 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. | |
| 13 categories_steps = { | |
| 14 '': ['update'], | |
| 15 'memory_tester': [ | |
| 16 # Please keep the list below sorted. | |
| 17 'memory test: app_list', | |
| 18 'memory test: ash_unittests', | |
| 19 'memory test: aura', | |
| 20 'memory test: base_unittests', | |
| 21 'memory test: chromeos_unittests', | |
| 22 'memory test: components', | |
| 23 'memory test: compositor', | |
| 24 'memory test: content', | |
| 25 'memory test: courgette', | |
| 26 'memory test: crypto', | |
| 27 'memory test: device_unittests', | |
| 28 'memory test: display_unittests', | |
| 29 'memory test: extensions_unittests', | |
| 30 'memory test: gpu', | |
| 31 'memory test: jingle', | |
| 32 'memory test: ipc_tests', | |
| 33 'memory test: media', | |
| 34 'memory test: message_center', | |
| 35 'memory test: net', | |
| 36 'memory test: printing', | |
| 37 'memory test: ppapi_unittests', | |
| 38 'memory test: remoting', | |
| 39 'memory test: reliability', | |
| 40 # Running two times with different tools on the same bot, hence _1 version. | |
| 41 'memory test: reliability_1', | |
| 42 'memory test: sandbox', | |
| 43 'memory test: sql', | |
| 44 'memory test: sync', | |
| 45 'memory test: sync_unit_tests', | |
| 46 'memory test: ui_base_unittests', | |
| 47 'memory test: unit', | |
| 48 'memory test: unit_1', # it's sharded on TSan Linux | |
| 49 'memory test: url', | |
| 50 'memory test: views', | |
| 51 ], | |
| 52 'windows': ['svnkill', 'taskkill'], | |
| 53 'compile': ['check_deps', 'compile', 'archive_build'] | |
| 54 } | |
| 55 | |
| 56 exclusions = { | |
| 57 } | |
| 58 | |
| 59 forgiving_steps = ['update_scripts', 'update', 'svnkill', 'taskkill', | |
| 60 'archive_build'] | |
| 61 | |
| 62 def Update(config, active_master, c): | |
| 63 c['status'].append(failures_notifier.FailuresNotifier( | |
| 64 fromaddr=active_master.from_address, | |
| 65 categories_steps=categories_steps, | |
| 66 exclusions=exclusions, | |
| 67 relayhost=config.Master.smtp, | |
| 68 subject='buildbot %(result)s in %(projectName)s on %(builder)s, ' | |
| 69 'revision %(revision)s', | |
| 70 extraRecipients=active_master.tree_closing_notification_recipients, | |
| 71 lookup=master_utils.FilterDomain(), | |
| 72 forgiving_steps=forgiving_steps, | |
| 73 use_getname=True, | |
| 74 public_html='../master.chromium/public_html', | |
| 75 sheriffs=['sheriff_memory'], | |
| 76 status_header='Failure notification for "%(steps)s" on "%(builder)s".\n' | |
| 77 'Please see if the failures are related to your commit and take ' | |
| 78 'appropriate actions (e.g. revert, update suppressions, notify ' | |
| 79 'sheriff, etc.).\n\n' | |
| 80 'For more info on the memory waterfall please see these links:\n' | |
| 81 'http://dev.chromium.org/developers/tree-sheriffs/sheriff-details-chro
mium/memory-sheriff\n' | |
| 82 'http://dev.chromium.org/developers/how-tos/using-valgrind/threadsanit
izer\n' | |
| 83 '\nBy the way, the current memory sheriff is on the CC list.' | |
| 84 )) | |
| 85 | |
| 86 # Set up a separate notifier for the Dr.Memory bots. | |
| 87 # TODO(timurrrr); merge this with the main notifier once DrMemory is verified | |
| 88 # to send few e-mails. | |
| 89 drm_categories_steps = { | |
| 90 'drmemory_tester': [ | |
| 91 # Please keep this list sorted. | |
| 92 'memory test: base_unittests', | |
| 93 'memory test: components', | |
| 94 'memory test: content', | |
| 95 'memory test: crypto', | |
| 96 'memory test: display_unittests', | |
| 97 'memory test: extensions_unittests', | |
| 98 'memory test: ipc_tests', | |
| 99 'memory test: media', | |
| 100 'memory test: net', | |
| 101 'memory test: printing', | |
| 102 'memory test: remoting', | |
| 103 'memory test: sql', | |
| 104 'memory test: sync', | |
| 105 'memory test: sync_unit_tests', | |
| 106 'memory test: ui_base_unittests', | |
| 107 'memory test: unit', # unit_tests might be sharded | |
| 108 'memory test: unit_1', | |
| 109 'memory test: unit_2', | |
| 110 'memory test: url', | |
| 111 ], | |
| 112 } | |
| 113 c['status'].append(failures_notifier.FailuresNotifier( | |
| 114 fromaddr=active_master.from_address, | |
| 115 categories_steps=drm_categories_steps, | |
| 116 exclusions=exclusions, | |
| 117 relayhost=config.Master.smtp, | |
| 118 subject='drmemory buildbot %(result)s in %(projectName)s on ' | |
| 119 '%(builder)s, revision %(revision)s', | |
| 120 sendToInterestedUsers=True, | |
| 121 extraRecipients=( | |
| 122 active_master.tree_closing_notification_recipients + | |
| 123 # Also send e-mails to the Dr.Memory team. | |
| 124 ['bruening+drmfailure@google.com', | |
| 125 'zhaoqin+drmfailure@google.com', | |
| 126 ]), | |
| 127 lookup=master_utils.FilterDomain(), | |
| 128 forgiving_steps=forgiving_steps, | |
| 129 use_getname=True, | |
| 130 public_html='../master.chromium/public_html', | |
| 131 sheriffs=['sheriff_memory'], | |
| 132 status_header='Failure notification for "%(steps)s" on "%(builder)s".\n\n' | |
| 133 'NOTE: This bot is in testing mode, but most of the failures are ' | |
| 134 'expected to indicate real bugs.\n\n' | |
| 135 'Please see if the failures are related to your commit and take ' | |
| 136 'appropriate actions (e.g. revert, update suppressions, notify ' | |
| 137 'sheriff, etc.).\n\n' | |
| 138 'For more info on Dr.Memory waterfall please see these links:\n' | |
| 139 'http://dev.chromium.org/developers/tree-sheriffs/sheriff-details-chro
mium/memory-sheriff\n' | |
| 140 'http://dev.chromium.org/developers/how-tos/using-drmemory\n' | |
| 141 '\nBy the way, the current memory sheriff is on the CC list.' | |
| 142 )) | |
| OLD | NEW |