OLD | NEW |
1 # Copyright (c) 2012 The Chromium Authors. All rights reserved. | 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 | 2 # Use of this source code is governed by a BSD-style license that can be |
3 # found in the LICENSE file. | 3 # found in the LICENSE file. |
4 | 4 |
5 # Sets up all the builders we want this buildbot master to run. | 5 # Sets up all the builders we want this buildbot master to run. |
6 | 6 |
| 7 #pylint: disable=C0301 |
| 8 |
7 from skia_master_scripts import factory as skia_factory | 9 from skia_master_scripts import factory as skia_factory |
| 10 from skia_master_scripts import android_factory |
| 11 from skia_master_scripts import chromeos_factory |
| 12 from skia_master_scripts import housekeeping_percommit_factory |
| 13 from skia_master_scripts import housekeeping_periodic_factory |
| 14 from skia_master_scripts import ios_factory |
| 15 from skia_master_scripts import nacl_factory |
8 from skia_master_scripts import utils | 16 from skia_master_scripts import utils |
9 from skia_master_scripts.utils import MakeBuilderSet, \ | 17 from skia_master_scripts.utils import MakeBuilderSet, \ |
10 MakeAndroidBuilderSet, \ | 18 MakeCompileBuilderSet |
11 MakeChromeOSBuilderSet, \ | |
12 MakeIOSBuilderSet, \ | |
13 MakeHousekeeperBuilderSet, \ | |
14 MakeNaClBuilderSet | |
15 | 19 |
16 # Directory where we want to record performance data | 20 # Directory where we want to record performance data |
17 # | 21 # |
18 # TODO(epoger): consider changing to reuse existing config.Master.perf_base_url, | 22 # TODO(epoger): consider changing to reuse existing config.Master.perf_base_url, |
19 # config.Master.perf_report_url_suffix, etc. | 23 # config.Master.perf_report_url_suffix, etc. |
20 perf_output_basedir_linux = '../../../../perfdata' | 24 perf_output_basedir_linux = '../../../../perfdata' |
21 perf_output_basedir_mac = perf_output_basedir_linux | 25 perf_output_basedir_mac = perf_output_basedir_linux |
22 perf_output_basedir_windows = '..\\..\\..\\..\\perfdata' | 26 perf_output_basedir_windows = '..\\..\\..\\..\\perfdata' |
23 | 27 |
24 defaults = {} | 28 defaults = {} |
25 | 29 |
26 | 30 |
27 def Update(config, active_master, c): | 31 ARCH_TO_GYP_DEFINE = { |
| 32 'x86': 'skia_arch_width=32', |
| 33 'x86_64': 'skia_arch_width=32', |
| 34 'Arm7': 'skia_arch_width=32', |
| 35 'NaCl': None, |
| 36 } |
| 37 |
| 38 |
| 39 def GetExtraFactoryArgs(compile_builder_info): |
| 40 factory_type = compile_builder_info[8] |
| 41 if factory_type == android_factory.AndroidFactory: |
| 42 # AndroidFactory requires a "device" argument. |
| 43 return {'device': utils.AndroidModelToDevice(compile_builder_info[4])} |
| 44 else: |
| 45 return {} |
| 46 |
| 47 |
| 48 def Update(config, active_master, cfg): |
28 helper = utils.SkiaHelper(defaults) | 49 helper = utils.SkiaHelper(defaults) |
29 | 50 |
30 # | 51 # |
31 # Default (per-commit) Scheduler for Skia. Only use this for builders which | 52 # Default (per-commit) Scheduler for Skia. Only use this for builders which |
32 # do not care about commits outside of SKIA_PRIMARY_SUBDIRS. | 53 # do not care about commits outside of SKIA_PRIMARY_SUBDIRS. |
33 # | 54 # |
34 helper.AnyBranchScheduler('skia_rel', branches=utils.SKIA_PRIMARY_SUBDIRS) | 55 helper.AnyBranchScheduler('skia_rel', branches=utils.SKIA_PRIMARY_SUBDIRS) |
35 | 56 |
36 # | 57 # |
37 # Periodic Scheduler for Skia. The buildbot master follows UTC. | 58 # Periodic Scheduler for Skia. The buildbot master follows UTC. |
38 # Setting it to 7AM UTC (2 AM EST). | 59 # Setting it to 7AM UTC (2 AM EST). |
39 # | 60 # |
40 helper.PeriodicScheduler('skia_periodic', branch='trunk', minute=0, hour=7) | 61 helper.PeriodicScheduler('skia_periodic', branch='trunk', minute=0, hour=7) |
41 | 62 |
42 # Schedulers for Skia trybots. | 63 # Schedulers for Skia trybots. |
43 helper.TryJobSubversion(utils.TRY_SCHEDULER_SVN) | 64 helper.TryJobSubversion(utils.TRY_SCHEDULER_SVN) |
44 helper.TryJobRietveld(utils.TRY_SCHEDULER_RIETVELD) | 65 helper.TryJobRietveld(utils.TRY_SCHEDULER_RIETVELD) |
45 | 66 |
46 # | 67 # |
47 # Set up all the builders. | 68 # Set up all the builders. |
48 # | 69 # |
49 # Don't put spaces or 'funny characters' within the builder names, so that | 70 # Don't put spaces or 'funny characters' within the builder names, so that |
50 # we can safely use the builder name as part of a filepath. | 71 # we can safely use the builder name as part of a filepath. |
51 # | 72 # |
52 do_upload_results = active_master.is_production_host | 73 do_upload_results = active_master.is_production_host |
53 | 74 |
54 # Linux (Ubuntu12) on Shuttle with ATI5770 graphics card | 75 gyp_win = 'skia_win_debuggers_path=c:/DbgHelp' |
55 defaults['category'] = 'Linux' | 76 gyp_angle = gyp_win + ' skia_angle=1' |
56 MakeBuilderSet( | 77 gyp_dw = gyp_win + ' skia_directwrite=1' |
57 helper=helper, | 78 gyp_10_6 = 'skia_osx_sdkroot=macosx10.6' |
58 builder_base_name='Skia_Shuttle_Ubuntu12_ATI5770_Float_%s_64', | 79 gyp_10_7 = 'skia_mesa=1' |
59 do_upload_results=do_upload_results, | 80 gyp_ios = 'skia_os=ios' |
60 target_platform=skia_factory.TARGET_PLATFORM_LINUX, | |
61 environment_variables= | |
62 {'GYP_DEFINES': 'skia_scalar=float skia_mesa=0 skia_arch_width=64'}, | |
63 gm_image_subdir='base-shuttle_ubuntu12_ati5770', | |
64 perf_output_basedir=perf_output_basedir_linux) | |
65 MakeBuilderSet( | |
66 helper=helper, | |
67 builder_base_name='Skia_Shuttle_Ubuntu12_ATI5770_Float_%s_32', | |
68 do_upload_results=do_upload_results, | |
69 target_platform=skia_factory.TARGET_PLATFORM_LINUX, | |
70 environment_variables= | |
71 {'GYP_DEFINES': 'skia_scalar=float skia_mesa=0 skia_arch_width=32'}, | |
72 gm_image_subdir='base-shuttle_ubuntu12_ati5770', | |
73 perf_output_basedir=perf_output_basedir_linux) | |
74 | 81 |
75 # Android (runs on a Linux buildbot slave)... | 82 builder_specs = {} |
76 defaults['category'] = 'Android' | 83 # |
77 MakeAndroidBuilderSet( | 84 # COMPILE BUILDERS
TEST AND PERF BUILDERS |
78 helper=helper, | 85 # |
79 builder_base_name='Skia_NexusS_4-1_Float_%s_32', | 86 # OS Compiler Config Arch Extra Config GYP_DEFS W
ERR Role OS Model GPU Extra Config
GM Subdir |
80 device='nexus_s', | 87 # |
81 do_upload_results=do_upload_results, | 88 c = 'Linux' |
82 target_platform=skia_factory.TARGET_PLATFORM_LINUX, | 89 f = skia_factory.SkiaFactory |
83 environment_variables={'GYP_DEFINES': 'skia_scalar=float skia_mesa=0'}, | 90 p = skia_factory.TARGET_PLATFORM_LINUX |
84 gm_image_subdir='base-android-nexus-s', | 91 builder_specs.update({ |
85 perf_output_basedir=perf_output_basedir_linux) | 92 ('Ubuntu12', 'GCC', 'Debug', 'x86', None, None, T
rue, c, f, p) : [('Test', 'Ubuntu12', 'ShuttleA', 'ATI5770', None,
'base-shuttle_ubuntu12_ati5770')], |
86 MakeAndroidBuilderSet( | 93 ('Ubuntu12', 'GCC', 'Release', 'x86', None, None, T
rue, c, f, p) : [('Test', 'Ubuntu12', 'ShuttleA', 'ATI5770', None,
'base-shuttle_ubuntu12_ati5770'), |
87 helper=helper, | 94
('Perf', 'Ubuntu12', 'ShuttleA', 'ATI5770', None,
None)], |
88 builder_base_name='Skia_Xoom_4-1_Float_%s_32', | 95 ('Ubuntu12', 'GCC', 'Debug', 'x86_64', None, None, T
rue, c, f, p) : [('Test', 'Ubuntu12', 'ShuttleA', 'ATI5770', None,
'base-shuttle_ubuntu12_ati5770')], |
89 device='xoom', | 96 ('Ubuntu12', 'GCC', 'Release', 'x86_64', None, None, T
rue, c, f, p) : [('Test', 'Ubuntu12', 'ShuttleA', 'ATI5770', None,
'base-shuttle_ubuntu12_ati5770'), |
90 do_upload_results=do_upload_results, | 97
('Perf', 'Ubuntu12', 'ShuttleA', 'ATI5770', None,
None)],}) |
91 target_platform=skia_factory.TARGET_PLATFORM_LINUX, | 98 c = 'Linux-Special' |
92 environment_variables={'GYP_DEFINES': 'skia_scalar=float skia_mesa=0'}, | 99 builder_specs.update({ |
93 gm_image_subdir='base-android-xoom', | 100 ('Ubuntu12', 'GCC', 'Debug', 'x86_64', 'NoGPU', 'skia_gpu=0', T
rue, c, f, p) : [('Test', 'Ubuntu12', 'ShuttleA', 'NoGPU', None,
'base-shuttle_ubuntu12_ati5770')],}) |
94 perf_output_basedir=perf_output_basedir_linux) | 101 f = nacl_factory.NaClFactory |
95 MakeAndroidBuilderSet( | 102 builder_specs.update({ |
96 helper=helper, | 103 ('Ubuntu12', 'GCC', 'Debug', 'NaCl', None, None, T
rue, c, f, p) : [], |
97 builder_base_name='Skia_GalaxyNexus_4-1_Float_%s_32', | 104 ('Ubuntu12', 'GCC', 'Release', 'NaCl', None, None, T
rue, c, f, p) : [],}) |
98 device='galaxy_nexus', | 105 c = 'Mac-10.6' |
99 do_upload_results=do_upload_results, | 106 p = skia_factory.TARGET_PLATFORM_MAC |
100 target_platform=skia_factory.TARGET_PLATFORM_LINUX, | 107 builder_specs.update({ |
101 environment_variables={'GYP_DEFINES': 'skia_scalar=float skia_mesa=0'}, | 108 ('Mac10.6', 'GCC', 'Debug', 'x86', None, gyp_10_6, T
rue, c, f, p) : [('Test', 'Mac10.6', 'MacMini4.1', 'GeForce320M', None,
'base-macmini')], |
102 gm_image_subdir='base-android-galaxy-nexus', | 109 ('Mac10.6', 'GCC', 'Release', 'x86', None, gyp_10_6, T
rue, c, f, p) : [('Test', 'Mac10.6', 'MacMini4.1', 'GeForce320M', None,
'base-macmini'), |
103 perf_output_basedir=perf_output_basedir_linux) | 110
('Perf', 'Mac10.6', 'MacMini4.1', 'GeForce320M', None,
None)], |
104 MakeAndroidBuilderSet( | 111 ('Mac10.6', 'GCC', 'Debug', 'x86_64', None, gyp_10_6, F
alse, c, f, p) : [('Test', 'Mac10.6', 'MacMini4.1', 'GeForce320M', None,
'base-macmini')], |
105 helper=helper, | 112 ('Mac10.6', 'GCC', 'Release', 'x86_64', None, gyp_10_6, F
alse, c, f, p) : [('Test', 'Mac10.6', 'MacMini4.1', 'GeForce320M', None,
'base-macmini'), |
106 builder_base_name='Skia_Nexus4_4-1_Float_%s_32', | 113
('Perf', 'Mac10.6', 'MacMini4.1', 'GeForce320M', None,
None)],}) |
107 device='nexus_4', | 114 c = 'Mac-10.7' |
108 do_upload_results=do_upload_results, | 115 builder_specs.update({ |
109 target_platform=skia_factory.TARGET_PLATFORM_LINUX, | 116 ('Mac10.7', 'Clang', 'Debug', 'x86', None, gyp_10_7, T
rue, c, f, p) : [('Test', 'Mac10.7', 'MacMini4.1', 'GeForce320M', None,
'base-macminilion')], |
110 environment_variables={'GYP_DEFINES': 'skia_scalar=float skia_mesa=0'}, | 117 ('Mac10.7', 'Clang', 'Release', 'x86', None, gyp_10_7, T
rue, c, f, p) : [('Test', 'Mac10.7', 'MacMini4.1', 'GeForce320M', None,
'base-macminilion'), |
111 gm_image_subdir='base-android-nexus-4', | 118
('Perf', 'Mac10.7', 'MacMini4.1', 'GeForce320M', None,
None)], |
112 perf_output_basedir=perf_output_basedir_linux) | 119 ('Mac10.7', 'Clang', 'Debug', 'x86_64', None, gyp_10_7, F
alse, c, f, p) : [('Test', 'Mac10.7', 'MacMini4.1', 'GeForce320M', None,
'base-macminilion')], |
113 MakeAndroidBuilderSet( | 120 ('Mac10.7', 'Clang', 'Release', 'x86_64', None, gyp_10_7, F
alse, c, f, p) : [('Test', 'Mac10.7', 'MacMini4.1', 'GeForce320M', None,
'base-macminilion'), |
114 helper=helper, | 121
('Perf', 'Mac10.7', 'MacMini4.1', 'GeForce320M', None,
None)],}) |
115 builder_base_name='Skia_Nexus7_4-1_Float_%s_32', | 122 c = 'Mac-10.8' |
116 device='nexus_7', | 123 builder_specs.update({ |
117 do_upload_results=do_upload_results, | 124 ('Mac10.8', 'Clang', 'Debug', 'x86', None, None, T
rue, c, f, p) : [('Test', 'Mac10.8', 'MacMini4.1', 'GeForce320M', None,
None)], |
118 target_platform=skia_factory.TARGET_PLATFORM_LINUX, | 125 ('Mac10.8', 'Clang', 'Release', 'x86', None, None, T
rue, c, f, p) : [('Test', 'Mac10.8', 'MacMini4.1', 'GeForce320M', None,
None), |
119 environment_variables={'GYP_DEFINES': 'skia_scalar=float skia_mesa=0'}, | 126
('Perf', 'Mac10.8', 'MacMini4.1', 'GeForce320M', None,
None)], |
120 gm_image_subdir='base-android-nexus-7', | 127 ('Mac10.8', 'Clang', 'Debug', 'x86_64', None, None, F
alse, c, f, p) : [('Test', 'Mac10.8', 'MacMini4.1', 'GeForce320M', None,
None)], |
121 perf_output_basedir=perf_output_basedir_linux) | 128 ('Mac10.8', 'Clang', 'Release', 'x86_64', None, None, F
alse, c, f, p) : [('Test', 'Mac10.8', 'MacMini4.1', 'GeForce320M', None,
None), |
122 MakeAndroidBuilderSet( | 129
('Perf', 'Mac10.8', 'MacMini4.1', 'GeForce320M', None,
None)],}) |
123 helper=helper, | 130 c = 'Win7' |
124 builder_base_name='Skia_Nexus10_4-1_Float_%s_32', | 131 p = skia_factory.TARGET_PLATFORM_WIN32 |
125 device='nexus_10', | 132 builder_specs.update({ |
126 do_upload_results=do_upload_results, | 133 ('Win7', 'VS2010', 'Debug', 'x86', None, gyp_win, T
rue, c, f, p) : [('Test', 'Win7', 'ShuttleA', 'HD2000', None,
None)], |
127 target_platform=skia_factory.TARGET_PLATFORM_LINUX, | 134 ('Win7', 'VS2010', 'Release', 'x86', None, gyp_win, T
rue, c, f, p) : [('Test', 'Win7', 'ShuttleA', 'HD2000', None,
None), |
128 environment_variables={'GYP_DEFINES': 'skia_scalar=float skia_mesa=0'}, | 135
('Perf', 'Win7', 'ShuttleA', 'HD2000', None,
None)], |
129 gm_image_subdir='base-android-nexus-10', | 136 ('Win7', 'VS2010', 'Debug', 'x86_64', None, gyp_win, F
alse, c, f, p) : [('Test', 'Win7', 'ShuttleA', 'HD2000', None,
None)], |
130 perf_output_basedir=perf_output_basedir_linux) | 137 ('Win7', 'VS2010', 'Release', 'x86_64', None, gyp_win, F
alse, c, f, p) : [('Test', 'Win7', 'ShuttleA', 'HD2000', None,
None), |
131 MakeAndroidBuilderSet( | 138
('Perf', 'Win7', 'ShuttleA', 'HD2000', None,
None)],}) |
132 helper=helper, | 139 c = 'Win7-Special' |
133 builder_base_name='Skia_RazrI_4-1_Float_%s_32', | 140 builder_specs.update({ |
134 device='x86', | 141 ('Win7', 'VS2010', 'Debug', 'x86', 'ANGLE', gyp_angle, T
rue, c, f, p) : [('Test', 'Win7', 'ShuttleA', 'HD2000', 'ANGLE',
None)], |
135 do_upload_results=do_upload_results, | 142 ('Win7', 'VS2010', 'Release', 'x86', 'ANGLE', gyp_angle, T
rue, c, f, p) : [('Test', 'Win7', 'ShuttleA', 'HD2000', 'ANGLE',
None), |
136 target_platform=skia_factory.TARGET_PLATFORM_LINUX, | 143
('Perf', 'Win7', 'ShuttleA', 'HD2000', 'ANGLE',
None)], |
137 environment_variables={'GYP_DEFINES': 'skia_scalar=float skia_mesa=0'}, | 144 ('Win7', 'VS2010', 'Debug', 'x86', 'DirectWrite', gyp_dw, F
alse, c, f, p) : [('Test', 'Win7', 'ShuttleA', 'HD2000', 'DirectWrite
', None)], |
138 gm_image_subdir='base-android-razr-i', | 145 ('Win7', 'VS2010', 'Release', 'x86', 'DirectWrite', gyp_dw, F
alse, c, f, p) : [('Test', 'Win7', 'ShuttleA', 'HD2000', 'DirectWrite
', None), |
139 perf_output_basedir=perf_output_basedir_linux) | 146
('Perf', 'Win7', 'ShuttleA', 'HD2000', 'DirectWrite
', None)],}) |
| 147 c = 'Android' |
| 148 f = android_factory.AndroidFactory |
| 149 p = skia_factory.TARGET_PLATFORM_LINUX |
| 150 builder_specs.update({ |
| 151 ('Ubuntu12', 'GCC', 'Debug', 'Arm7', 'NexusS', None, T
rue, c, f, p) : [('Test', 'Android', 'NexusS', 'SGX540', None,
'base-android-nexus-s')], |
| 152 ('Ubuntu12', 'GCC', 'Release', 'Arm7', 'NexusS', None, T
rue, c, f, p) : [('Test', 'Android', 'NexusS', 'SGX540', None,
'base-android-nexus-s'), |
| 153
('Perf', 'Android', 'NexusS', 'SGX540', None,
None)], |
| 154 ('Ubuntu12', 'GCC', 'Debug', 'Arm7', 'Nexus4', None, T
rue, c, f, p) : [('Test', 'Android', 'Nexus4', 'Adreno320', None,
None)], |
| 155 ('Ubuntu12', 'GCC', 'Release', 'Arm7', 'Nexus4', None, T
rue, c, f, p) : [('Test', 'Android', 'Nexus4', 'Adreno320', None,
None), |
| 156
('Perf', 'Android', 'Nexus4', 'Adreno320', None,
None)], |
| 157 ('Ubuntu12', 'GCC', 'Debug', 'Arm7', 'Nexus7', None, T
rue, c, f, p) : [('Test', 'Android', 'Nexus7', 'Tegra3', None,
None)], |
| 158 ('Ubuntu12', 'GCC', 'Release', 'Arm7', 'Nexus7', None, T
rue, c, f, p) : [('Test', 'Android', 'Nexus7', 'Tegra3', None,
None), |
| 159
('Perf', 'Android', 'Nexus7', 'Tegra3', None,
None)], |
| 160 ('Ubuntu12', 'GCC', 'Debug', 'Arm7', 'Nexus10', None, T
rue, c, f, p) : [('Test', 'Android', 'Nexus10', 'MaliT604', None,
None)], |
| 161 ('Ubuntu12', 'GCC', 'Release', 'Arm7', 'Nexus10', None, T
rue, c, f, p) : [('Test', 'Android', 'Nexus10', 'MaliT604', None,
None), |
| 162
('Perf', 'Android', 'Nexus10', 'MaliT604', None,
None)], |
| 163 ('Ubuntu12', 'GCC', 'Debug', 'Arm7', 'GalaxyNexus', None, T
rue, c, f, p) : [('Test', 'Android', 'GalaxyNexus','SGX540', None,
None)], |
| 164 ('Ubuntu12', 'GCC', 'Release', 'Arm7', 'GalaxyNexus', None, T
rue, c, f, p) : [('Test', 'Android', 'GalaxyNexus','SGX540', None,
None), |
| 165
('Perf', 'Android', 'GalaxyNexus','SGX540', None,
None)], |
| 166 ('Ubuntu12', 'GCC', 'Debug', 'Arm7', 'Xoom', None, T
rue, c, f, p) : [('Test', 'Android', 'Xoom', 'Tegra2', None,
'base-android-xoom')], |
| 167 ('Ubuntu12', 'GCC', 'Release', 'Arm7', 'Xoom', None, T
rue, c, f, p) : [('Test', 'Android', 'Xoom', 'Tegra2', None,
'base-android-xoom'), |
| 168
('Perf', 'Android', 'Xoom', 'Tegra2', None,
None)], |
| 169 ('Ubuntu12', 'GCC', 'Debug', 'x86', 'RazrI', None, T
rue, c, f, p) : [('Test', 'Android', 'RazrI', 'SGX540', None,
None)], |
| 170 ('Ubuntu12', 'GCC', 'Release', 'x86', 'RazrI', None, T
rue, c, f, p) : [('Test', 'Android', 'RazrI', 'SGX540', None,
None), |
| 171
('Perf', 'Android', 'RazrI', 'SGX540', None,
None)],}) |
| 172 c = 'ChromeOS' |
| 173 f = chromeos_factory.ChromeOSFactory |
| 174 builder_specs.update({ |
| 175 ('Ubuntu12', 'GCC', 'Debug', 'x86', 'ChromeOS', 'skia_gpu=0', Tr
ue, c, f, p) : [('Test', 'ChromeOS', 'Alex', 'GMA3150', None,
None)], |
| 176 ('Ubuntu12', 'GCC', 'Release', 'x86', 'ChromeOS', 'skia_gpu=0', Tr
ue, c, f, p) : [('Test', 'ChromeOS', 'Alex', 'GMA3150', None,
None), |
| 177
('Perf', 'ChromeOS', 'Alex', 'GMA3150', None,
None)],}) |
| 178 c = 'iOS' |
| 179 f = ios_factory.iOSFactory |
| 180 p = skia_factory.TARGET_PLATFORM_MAC |
| 181 builder_specs.update({ |
| 182 ('Mac10.7', 'Clang', 'Debug', 'Arm7', 'iOS', gyp_ios, T
rue, c, f, p) : [], |
| 183 ('Mac10.7', 'Clang', 'Release', 'Arm7', 'iOS', gyp_ios, T
rue, c, f, p) : [],}) |
140 | 184 |
141 # Mac 10.6 (SnowLeopard) ... | 185 for compile_builder in builder_specs.keys(): |
142 defaults['category'] = 'Mac-10.6' | 186 factory_type = compile_builder[8] |
143 MakeBuilderSet( | 187 factory_args = GetExtraFactoryArgs(compile_builder) |
144 helper=helper, | 188 target_platform = compile_builder[9] |
145 builder_base_name='Skia_Mac_Float_%s_32', | 189 try: |
146 do_upload_results=do_upload_results, | 190 arch_width_define = ARCH_TO_GYP_DEFINE[compile_builder[3]] |
147 target_platform=skia_factory.TARGET_PLATFORM_MAC, | 191 except KeyError: |
148 environment_variables= | 192 raise Exception('Unknown arch type: %s' % compile_builder[3]) |
149 {'GYP_DEFINES': ('skia_osx_sdkroot=macosx10.6 skia_scalar=float ' | 193 gyp_defines = compile_builder[4] |
150 'skia_arch_width=32')}, | 194 if arch_width_define: |
151 gm_image_subdir='base-macmini', | 195 if not gyp_defines: |
152 perf_output_basedir=perf_output_basedir_mac) | 196 gyp_defines = arch_width_define |
153 MakeBuilderSet( | 197 else: |
154 helper=helper, | 198 if 'skia_arch_width' in gyp_defines: |
155 builder_base_name='Skia_Mac_Float_%s_64', | 199 raise ValueError('Cannot define skia_arch_width; it is derived from ' |
156 do_upload_results=do_upload_results, | 200 'the provided arch type.') |
157 target_platform=skia_factory.TARGET_PLATFORM_MAC, | 201 gyp_defines += ' ' + arch_width_define |
158 environment_variables= | 202 defaults['category'] = ' Build' |
159 {'GYP_DEFINES': ('skia_osx_sdkroot=macosx10.6 skia_scalar=float ' | 203 MakeCompileBuilderSet( |
160 'skia_arch_width=64')}, | 204 helper=helper, |
161 gm_image_subdir='base-macmini', | 205 scheduler='skia_rel', |
162 perf_output_basedir=perf_output_basedir_mac, | 206 os=compile_builder[0], |
163 compile_bot_warnings_as_errors=False) | 207 compiler=compile_builder[1], |
164 | 208 configuration=compile_builder[2], |
165 # Mac 10.7 (Lion) ... | 209 target_arch=compile_builder[3], |
166 defaults['category'] = 'Mac-10.7' | 210 extra_config=compile_builder[4], |
167 MakeBuilderSet( | 211 environment_variables={'GYP_DEFINES': gyp_defines}, |
168 helper=helper, | 212 compile_warnings_as_errors=compile_builder[6], |
169 builder_base_name='Skia_MacMiniLion_Float_%s_32', | 213 factory_type=factory_type, |
170 do_upload_results=do_upload_results, | 214 target_platform=target_platform, |
171 target_platform=skia_factory.TARGET_PLATFORM_MAC, | 215 **factory_args) |
172 environment_variables= | 216 defaults['category'] = compile_builder[7] |
173 {'GYP_DEFINES': 'skia_scalar=float skia_mesa=1 skia_arch_width=32'}, | 217 for dependent_builder in builder_specs[compile_builder]: |
174 gm_image_subdir='base-macmini-lion-float', | 218 if target_platform == skia_factory.TARGET_PLATFORM_LINUX: |
175 perf_output_basedir=perf_output_basedir_mac) | 219 perf_output_basedir = perf_output_basedir_linux |
176 MakeBuilderSet( | 220 elif target_platform == skia_factory.TARGET_PLATFORM_MAC: |
177 helper=helper, | 221 perf_output_basedir = perf_output_basedir_mac |
178 builder_base_name='Skia_MacMiniLion_Float_%s_64', | 222 elif target_platform == skia_factory.TARGET_PLATFORM_WIN32: |
179 do_upload_results=do_upload_results, | 223 perf_output_basedir = perf_output_basedir_windows |
180 target_platform=skia_factory.TARGET_PLATFORM_MAC, | 224 MakeBuilderSet( |
181 environment_variables= | 225 helper=helper, |
182 {'GYP_DEFINES': 'skia_scalar=float skia_mesa=1 skia_arch_width=64'}, | 226 role=dependent_builder[0], |
183 gm_image_subdir='base-macmini-lion-float', | 227 os=dependent_builder[1], |
184 perf_output_basedir=perf_output_basedir_mac, | 228 model=dependent_builder[2], |
185 compile_bot_warnings_as_errors=False) | 229 gpu=dependent_builder[3], |
186 | 230 extra_config=dependent_builder[4], |
187 # Mac 10.8 (Mountain Lion) ... | 231 configuration=compile_builder[2], |
188 defaults['category'] = 'Mac-10.8' | 232 arch=compile_builder[3], |
189 MakeBuilderSet( | 233 environment_variables={'GYP_DEFINES': gyp_defines}, |
190 helper=helper, | 234 factory_type=factory_type, |
191 builder_base_name='Skia_MacMini_10_8_Float_%s_32', | 235 target_platform=target_platform, |
192 do_upload_results=do_upload_results, | 236 gm_image_subdir=dependent_builder[5], |
193 target_platform=skia_factory.TARGET_PLATFORM_MAC, | 237 do_upload_results=do_upload_results, |
194 environment_variables= | 238 perf_output_basedir=perf_output_basedir, |
195 {'GYP_DEFINES': 'skia_scalar=float skia_arch_width=32'}, | 239 compile_warnings_as_errors=False, |
196 gm_image_subdir='base-macmini-10_8', | 240 **factory_args) |
197 perf_output_basedir=perf_output_basedir_mac) | |
198 MakeBuilderSet( | |
199 helper=helper, | |
200 builder_base_name='Skia_MacMini_10_8_Float_%s_64', | |
201 do_upload_results=do_upload_results, | |
202 target_platform=skia_factory.TARGET_PLATFORM_MAC, | |
203 environment_variables= | |
204 {'GYP_DEFINES': 'skia_scalar=float skia_arch_width=64'}, | |
205 gm_image_subdir='base-macmini-10_8', | |
206 perf_output_basedir=perf_output_basedir_mac, | |
207 compile_bot_warnings_as_errors=False) | |
208 | |
209 # Windows7 running on Shuttle PC with Intel Core i7-2600 with on-CPU graphics | |
210 defaults['category'] = 'Win7' | |
211 MakeBuilderSet( | |
212 helper=helper, | |
213 builder_base_name='Skia_Shuttle_Win7_Intel_Float_%s_32', | |
214 do_upload_results=do_upload_results, | |
215 target_platform=skia_factory.TARGET_PLATFORM_WIN32, | |
216 environment_variables= | |
217 {'GYP_DEFINES': ('skia_scalar=float skia_arch_width=32 ' | |
218 'skia_win_debuggers_path=c:/DbgHelp')}, | |
219 gm_image_subdir='base-shuttle-win7-intel-float', | |
220 perf_output_basedir=perf_output_basedir_windows) | |
221 MakeBuilderSet( | |
222 helper=helper, | |
223 builder_base_name='Skia_Shuttle_Win7_Intel_Float_%s_64', | |
224 do_upload_results=do_upload_results, | |
225 target_platform=skia_factory.TARGET_PLATFORM_WIN32, | |
226 environment_variables= | |
227 {'GYP_DEFINES': ('skia_scalar=float skia_arch_width=64 ' | |
228 'skia_win_debuggers_path=c:/DbgHelp')}, | |
229 gm_image_subdir='base-shuttle-win7-intel-float', | |
230 perf_output_basedir=perf_output_basedir_windows, | |
231 compile_bot_warnings_as_errors=False) | |
232 | |
233 # Special-purpose Win7 builders | |
234 defaults['category'] = 'Win7-Special' | |
235 MakeBuilderSet( | |
236 helper=helper, | |
237 builder_base_name='Skia_Shuttle_Win7_Intel_Float_ANGLE_%s_32', | |
238 do_upload_results=do_upload_results, | |
239 target_platform=skia_factory.TARGET_PLATFORM_WIN32, | |
240 environment_variables= | |
241 {'GYP_DEFINES': ('skia_scalar=float skia_angle=1 skia_arch_width=32 ' | |
242 'skia_win_debuggers_path=c:/DbgHelp')}, | |
243 gm_image_subdir='base-shuttle-win7-intel-angle', | |
244 perf_output_basedir=perf_output_basedir_windows, | |
245 gm_args=['--config', 'angle'], | |
246 bench_args=['--config', 'ANGLE'], | |
247 bench_pictures_cfg='angle') | |
248 MakeBuilderSet( | |
249 helper=helper, | |
250 builder_base_name='Skia_Shuttle_Win7_Intel_Float_DirectWrite_%s_32', | |
251 do_upload_results=do_upload_results, | |
252 target_platform=skia_factory.TARGET_PLATFORM_WIN32, | |
253 environment_variables= | |
254 {'GYP_DEFINES': | |
255 ('skia_scalar=float skia_directwrite=1 skia_arch_width=32 ' | |
256 'skia_win_debuggers_path=c:/DbgHelp')}, | |
257 gm_image_subdir='base-shuttle-win7-intel-directwrite', | |
258 perf_output_basedir=perf_output_basedir_windows) | |
259 | |
260 defaults['category'] = 'iOS' | |
261 MakeIOSBuilderSet( | |
262 helper=helper, | |
263 builder_base_name='Skia_iOS_%s_32', | |
264 do_upload_results=do_upload_results, | |
265 target_platform=skia_factory.TARGET_PLATFORM_MAC, | |
266 environment_variables={'GYP_DEFINES': 'skia_os=ios'}, | |
267 gm_image_subdir=None, | |
268 perf_output_basedir=None, | |
269 do_debug=False, | |
270 do_release=False, | |
271 do_bench=False) | |
272 | 241 |
273 # House Keeping | 242 # House Keeping |
274 defaults['category'] = ' Housekeeping' | 243 defaults['category'] = ' Housekeeping' |
275 MakeHousekeeperBuilderSet( | 244 builder_factory_scheduler = [ |
276 helper=helper, | 245 # The Percommit housekeeper |
277 do_trybots=True, | 246 (utils.MakeBuilderName(role='Housekeeper', frequency='PerCommit'), |
278 do_upload_results=do_upload_results) | 247 housekeeping_percommit_factory.HouseKeepingPerCommitFactory, |
| 248 'skia_rel'), |
| 249 # The Periodic housekeeper |
| 250 (utils.MakeBuilderName(role='Housekeeper', frequency='Nightly'), |
| 251 housekeeping_periodic_factory.HouseKeepingPeriodicFactory, |
| 252 'skia_periodic'), |
| 253 ] |
| 254 # Add the corresponding trybot builders to the above list. |
| 255 builder_factory_scheduler.extend([ |
| 256 (builder + utils.BUILDER_NAME_SEP + utils.TRYBOT_NAME_SUFFIX, factory, |
| 257 utils.TRY_SCHEDULERS_STR) |
| 258 for (builder, factory, _scheduler) in builder_factory_scheduler]) |
279 | 259 |
280 # "Special" bots, running on Linux | 260 for (builder_name, factory, scheduler) in builder_factory_scheduler: |
281 defaults['category'] = 'Linux-Special' | 261 helper.Builder(builder_name, 'f_%s' % builder_name, scheduler=scheduler) |
282 MakeBuilderSet( | 262 helper.Factory('f_%s' % builder_name, |
283 helper=helper, | 263 factory( |
284 builder_base_name='Skia_Linux_NoGPU_%s_32', | 264 do_upload_results=do_upload_results, |
285 do_upload_results=do_upload_results, | 265 target_platform=skia_factory.TARGET_PLATFORM_LINUX, |
286 target_platform=skia_factory.TARGET_PLATFORM_LINUX, | 266 builder_name=builder_name, |
287 environment_variables= | 267 do_patch_step=(scheduler == utils.TRY_SCHEDULERS_STR), |
288 {'GYP_DEFINES': 'skia_scalar=float skia_gpu=0 skia_arch_width=64'}, | 268 ).Build()) |
289 gm_image_subdir='base-shuttle_ubuntu12_ati5770', | |
290 perf_output_basedir=None, # no perf measurement for debug builds | |
291 bench_pictures_cfg='no_gpu', | |
292 do_release=False, | |
293 do_bench=False) | |
294 | 269 |
295 MakeNaClBuilderSet( | 270 return helper.Update(cfg) |
296 helper=helper, | |
297 builder_base_name='Skia_Shuttle_Ubuntu12_NaCl_%s', | |
298 do_upload_results=do_upload_results, | |
299 target_platform=skia_factory.TARGET_PLATFORM_LINUX, | |
300 gm_image_subdir=None, | |
301 perf_output_basedir=None, | |
302 do_debug=False, | |
303 do_release=False, | |
304 do_bench=False) | |
305 | |
306 # Chrome OS | |
307 defaults['category'] = 'ChromeOS' | |
308 MakeChromeOSBuilderSet( | |
309 helper=helper, | |
310 builder_base_name='Skia_ChromeOS_Alex_%s_32', | |
311 do_upload_results=do_upload_results, | |
312 target_platform=skia_factory.TARGET_PLATFORM_LINUX, | |
313 environment_variables= | |
314 {'GYP_DEFINES': 'skia_arch_width=32 skia_gpu=0'}, | |
315 gm_image_subdir=None, | |
316 perf_output_basedir=perf_output_basedir_linux, | |
317 bench_pictures_cfg='no_gpu') | |
318 | |
319 return helper.Update(c) | |
OLD | NEW |