OLD | NEW |
1 # Copyright 2014 The LibYuv Project Authors. All rights reserved. | 1 # Copyright 2014 The LibYuv Project Authors. All rights reserved. |
2 # | 2 # |
3 # Use of this source code is governed by a BSD-style license | 3 # Use of this source code is governed by a BSD-style license |
4 # that can be found in the LICENSE file in the root of the source | 4 # that can be found in the LICENSE file in the root of the source |
5 # tree. An additional intellectual property rights grant can be found | 5 # tree. An additional intellectual property rights grant can be found |
6 # in the file PATENTS. All contributing project authors may | 6 # in the file PATENTS. All contributing project authors may |
7 # be found in the AUTHORS file in the root of the source tree. | 7 # be found in the AUTHORS file in the root of the source tree. |
8 | 8 |
9 import re | 9 import re |
10 import sys | 10 import sys |
11 | 11 |
12 | 12 |
13 def GetDefaultTryConfigs(bots=None): | 13 def GetDefaultTryConfigs(bots=None): |
14 """Returns a list of ('bot', set(['tests']), optionally filtered by [bots]. | 14 """Returns a list of ('bot', set(['tests']), optionally filtered by [bots]. |
15 | 15 |
16 For WebRTC purposes, we always return an empty list of tests, since we want | 16 For WebRTC purposes, we always return an empty list of tests, since we want |
17 to run all tests by default on all our trybots. | 17 to run all tests by default on all our trybots. |
18 """ | 18 """ |
19 return { 'tryserver.libyuv': dict((bot, []) for bot in bots)} | 19 return { 'tryserver.libyuv': dict((bot, []) for bot in bots)} |
20 | 20 |
21 | 21 |
22 # pylint: disable=W0613 | 22 # pylint: disable=W0613 |
23 def GetPreferredTryMasters(project, change): | 23 def GetPreferredTryMasters(project, change): |
24 files = change.LocalPaths() | 24 files = change.LocalPaths() |
25 bots = [ | 25 bots = [ |
26 'win', | 26 'win', |
27 'win_rel', | 27 'win_rel', |
28 'win_x64_rel', | 28 'win_x64_rel', |
29 'win_x64_gn', | 29 'win_x64_gyp', |
30 'win_x64_gn_rel', | 30 'win_x64_gyp_rel', |
31 'win_clang', | 31 'win_clang', |
32 'win_clang_rel', | 32 'win_clang_rel', |
33 'win_x64_clang_rel', | 33 'win_x64_clang_rel', |
34 'mac', | 34 'mac', |
35 'mac_rel', | 35 'mac_rel', |
36 'mac_gn', | 36 'mac_gyp', |
37 'mac_gn_rel', | 37 'mac_gyp_rel', |
38 'mac_asan', | 38 'mac_asan', |
39 'ios', | 39 'ios', |
40 'ios_rel', | 40 'ios_rel', |
41 'ios_arm64', | 41 'ios_arm64', |
42 'ios_arm64_rel', | 42 'ios_arm64_rel', |
43 'linux', | 43 'linux', |
44 'linux_rel', | 44 'linux_rel', |
45 'linux_gn', | 45 'linux_gyp', |
46 'linux_gn_rel', | 46 'linux_gyp_rel', |
47 'linux_memcheck', | 47 'linux_memcheck', |
48 'linux_tsan2', | 48 'linux_tsan2', |
49 'linux_asan', | 49 'linux_asan', |
50 'linux_msan', | 50 'linux_msan', |
51 'linux_ubsan', | 51 'linux_ubsan', |
52 'linux_ubsan_vptr', | 52 'linux_ubsan_vptr', |
53 'android', | 53 'android', |
54 'android_rel', | 54 'android_rel', |
55 'android_clang', | 55 'android_clang', |
56 'android_arm64', | 56 'android_arm64', |
57 'android_mips', | 57 'android_mips', |
58 'android_x64', | 58 'android_x64', |
59 'android_x86', | 59 'android_x86', |
60 'android_gn', | 60 'android_gyp', |
61 'android_gn_rel', | 61 'android_gyp_rel', |
62 ] | 62 ] |
63 if not files or all(re.search(r'[\\/]OWNERS$', f) for f in files): | 63 if not files or all(re.search(r'[\\/]OWNERS$', f) for f in files): |
64 return {} | 64 return {} |
65 return GetDefaultTryConfigs(bots) | 65 return GetDefaultTryConfigs(bots) |
OLD | NEW |