Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(43)

Side by Side Diff: PRESUBMIT.py

Issue 1878763002: PRESUBMIT: Add GN bots to default trybots (Closed) Base URL: https://chromium.googlesource.com/libyuv/libyuv@master
Patch Set: Created 4 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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',
30 'win_x64_gn_rel',
29 'mac', 31 'mac',
30 'mac_rel', 32 'mac_rel',
33 'mac_gn',
34 'mac_gn_rel',
35 'mac_asan',
31 'ios', 36 'ios',
32 'ios_rel', 37 'ios_rel',
33 'ios_arm64', 38 'ios_arm64',
34 'ios_arm64_rel', 39 'ios_arm64_rel',
35 'mac_asan',
36 'linux', 40 'linux',
37 'linux_rel', 41 'linux_rel',
42 'linux_gn',
43 'linux_gn_rel',
38 'linux_memcheck', 44 'linux_memcheck',
39 'linux_tsan2', 45 'linux_tsan2',
40 'linux_asan', 46 'linux_asan',
41 'linux_msan', 47 'linux_msan',
42 'linux_ubsan', 48 'linux_ubsan',
43 'linux_ubsan_vptr', 49 'linux_ubsan_vptr',
44 'android', 50 'android',
45 'android_rel', 51 'android_rel',
46 'android_clang', 52 'android_clang',
47 'android_arm64', 53 'android_arm64',
54 'android_gn',
55 'android_gn_rel',
48 ] 56 ]
49 if not files or all(re.search(r'[\\/]OWNERS$', f) for f in files): 57 if not files or all(re.search(r'[\\/]OWNERS$', f) for f in files):
50 return {} 58 return {}
51 return GetDefaultTryConfigs(bots) 59 return GetDefaultTryConfigs(bots)
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698