1 # Copyright 2014 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.
5 # FIXME: Master name is deprecated. Remove it once all the bots have stopped
6 # uploading with that name.
8 # FIXME: The concept of groups is being deprecated. Once it's removed from
9 # the flakiness dashboard, this whole map can go away.
11 'chromium.chromiumos': {
12 'name': 'ChromiumChromiumOS',
13 'groups': ['@ToT ChromeOS']
16 'name': 'ChromiumFYI',
17 'groups': ['@ToT Chromium FYI']
20 'name': 'ChromiumGPU',
21 'groups': ['@ToT Chromium']
24 'name': 'ChromiumGPUFYI',
25 'groups': ['@ToT Chromium FYI']
28 'name': 'ChromiumLinux',
29 'groups': ['@ToT Chromium']
32 'name': 'ChromiumMac',
33 'groups': ['@ToT Chromium']
36 'name': 'ChromiumWebkit',
37 'groups': ['@ToT Chromium', '@ToT Blink'],
40 'name': 'ChromiumWin',
41 'groups': ['@ToT Chromium']
43 'tryserver.chromium.gpu': {
44 'name': 'GpuTryServer',
45 'groups': ['TryServers']
53 _master_name_to_url_name = dict((v['name'], k) for k, v in _masters.items())
56 def getMaster(url_name):
57 result = _masters.get(url_name)
59 # Note: we copy off result['groups'] to ensure a full deep copy of the data.
60 return { 'name': result['name'], 'url_name': url_name, 'groups': result['groups'][:] }
63 def getMasterByMasterName(master_name):
64 url_name = _master_name_to_url_name.get(master_name)
66 return getMaster(url_name)
70 for master in _masters:
71 yield getMaster(master)