| 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 from skia_master_scripts import factory as skia_factory |    7 from skia_master_scripts import factory as skia_factory | 
|    8 from skia_master_scripts import housekeeping_percommit_factory |  | 
|    9 from skia_master_scripts import housekeeping_periodic_factory |  | 
|   10 from skia_master_scripts import utils |    8 from skia_master_scripts import utils | 
|   11 from skia_master_scripts.utils import MakeBuilderSet, MakeAndroidBuilderSet, \ |    9 from skia_master_scripts.utils import MakeBuilderSet, \ | 
|   12                                       MakeChromeOSBuilderSet, MakeIOSBuilderSet |   10                                       MakeAndroidBuilderSet, \ | 
 |   11                                       MakeChromeOSBuilderSet, \ | 
 |   12                                       MakeIOSBuilderSet, \ | 
 |   13                                       MakeHousekeeperBuilderSet | 
|   13  |   14  | 
|   14 # Directory where we want to record performance data |   15 # Directory where we want to record performance data | 
|   15 # |   16 # | 
|   16 # TODO(epoger): consider changing to reuse existing config.Master.perf_base_url, |   17 # TODO(epoger): consider changing to reuse existing config.Master.perf_base_url, | 
|   17 # config.Master.perf_report_url_suffix, etc. |   18 # config.Master.perf_report_url_suffix, etc. | 
|   18 perf_output_basedir_linux = '../../../../perfdata' |   19 perf_output_basedir_linux = '../../../../perfdata' | 
|   19 perf_output_basedir_mac = perf_output_basedir_linux |   20 perf_output_basedir_mac = perf_output_basedir_linux | 
|   20 perf_output_basedir_windows = '..\\..\\..\\..\\perfdata' |   21 perf_output_basedir_windows = '..\\..\\..\\..\\perfdata' | 
|   21  |   22  | 
|   22 defaults = {} |   23 defaults = {} | 
|   23  |   24  | 
|   24 def Update(config, active_master, c): |   25 def Update(config, active_master, c): | 
|   25   helper = utils.SkiaHelper(defaults) |   26   helper = utils.SkiaHelper(defaults) | 
|   26   B = helper.Builder |  | 
|   27   F = helper.Factory |  | 
|   28  |   27  | 
|   29   # |   28   # | 
|   30   # Default (per-commit) Scheduler for Skia. Only use this for builders which |   29   # Default (per-commit) Scheduler for Skia. Only use this for builders which | 
|   31   # do not care about commits outside of SKIA_PRIMARY_SUBDIRS. |   30   # do not care about commits outside of SKIA_PRIMARY_SUBDIRS. | 
|   32   # |   31   # | 
|   33   helper.AnyBranchScheduler('skia_rel', branches=utils.SKIA_PRIMARY_SUBDIRS) |   32   helper.AnyBranchScheduler('skia_rel', branches=utils.SKIA_PRIMARY_SUBDIRS) | 
|   34  |   33  | 
|   35   # |   34   # | 
|   36   # Periodic Scheduler for Skia. The buildbot master follows UTC. |   35   # Periodic Scheduler for Skia. The buildbot master follows UTC. | 
|   37   # Setting it to 7AM UTC (2 AM EST). |   36   # Setting it to 7AM UTC (2 AM EST). | 
| (...skipping 228 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
|  266       do_upload_results=do_upload_results, |  265       do_upload_results=do_upload_results, | 
|  267       target_platform=skia_factory.TARGET_PLATFORM_MAC, |  266       target_platform=skia_factory.TARGET_PLATFORM_MAC, | 
|  268       environment_variables={'GYP_DEFINES': 'skia_os=ios'}, |  267       environment_variables={'GYP_DEFINES': 'skia_os=ios'}, | 
|  269       gm_image_subdir=None, |  268       gm_image_subdir=None, | 
|  270       perf_output_basedir=None, |  269       perf_output_basedir=None, | 
|  271       do_release=False, |  270       do_release=False, | 
|  272       do_bench=False) |  271       do_bench=False) | 
|  273  |  272  | 
|  274   # House Keeping |  273   # House Keeping | 
|  275   defaults['category'] = ' housekeeping' |  274   defaults['category'] = ' housekeeping' | 
|  276   B('Skia_PerCommit_House_Keeping', 'f_skia_percommit_house_keeping', |  275   MakeHousekeeperBuilderSet( | 
|  277       scheduler='skia_rel') |  276       helper=helper, | 
|  278   F('f_skia_percommit_house_keeping', |  277       do_trybots=True, | 
|  279       housekeeping_percommit_factory.HouseKeepingPerCommitFactory( |  278       do_upload_results=do_upload_results) | 
|  280         do_upload_results=do_upload_results, |  | 
|  281         target_platform=skia_factory.TARGET_PLATFORM_LINUX, |  | 
|  282         builder_name='Skia_PerCommit_House_Keeping', |  | 
|  283       ).Build()) |  | 
|  284   B('Skia_Periodic_House_Keeping', 'f_skia_periodic_house_keeping', |  | 
|  285       scheduler='skia_periodic') |  | 
|  286   F('f_skia_periodic_house_keeping', |  | 
|  287       housekeeping_periodic_factory.HouseKeepingPeriodicFactory( |  | 
|  288         do_upload_results=do_upload_results, |  | 
|  289         target_platform=skia_factory.TARGET_PLATFORM_LINUX, |  | 
|  290         builder_name='Skia_Periodic_House_Keeping', |  | 
|  291       ).Build()) |  | 
|  292  |  279  | 
|  293   # "Special" bots, running on Linux |  280   # "Special" bots, running on Linux | 
|  294   defaults['category'] = 'Linux-Special' |  281   defaults['category'] = 'Linux-Special' | 
|  295   MakeBuilderSet( |  282   MakeBuilderSet( | 
|  296       helper=helper, |  283       helper=helper, | 
|  297       builder_base_name='Skia_Linux_NoGPU_%s_32', |  284       builder_base_name='Skia_Linux_NoGPU_%s_32', | 
|  298       do_upload_results=do_upload_results, |  285       do_upload_results=do_upload_results, | 
|  299       target_platform=skia_factory.TARGET_PLATFORM_LINUX, |  286       target_platform=skia_factory.TARGET_PLATFORM_LINUX, | 
|  300       environment_variables= |  287       environment_variables= | 
|  301           {'GYP_DEFINES': 'skia_scalar=float skia_gpu=0 skia_arch_width=64'}, |  288           {'GYP_DEFINES': 'skia_scalar=float skia_gpu=0 skia_arch_width=64'}, | 
| (...skipping 12 matching lines...) Expand all  Loading... | 
|  314       target_platform=skia_factory.TARGET_PLATFORM_LINUX, |  301       target_platform=skia_factory.TARGET_PLATFORM_LINUX, | 
|  315       environment_variables= |  302       environment_variables= | 
|  316           {'GYP_DEFINES': 'skia_arch_width=32 skia_gpu=0'}, |  303           {'GYP_DEFINES': 'skia_arch_width=32 skia_gpu=0'}, | 
|  317       gm_image_subdir=None, |  304       gm_image_subdir=None, | 
|  318       perf_output_basedir=None, # no perf measurement for debug builds |  305       perf_output_basedir=None, # no perf measurement for debug builds | 
|  319       bench_pictures_cfg='no_gpu', |  306       bench_pictures_cfg='no_gpu', | 
|  320       do_release=False, |  307       do_release=False, | 
|  321       do_bench=False) |  308       do_bench=False) | 
|  322  |  309  | 
|  323   return helper.Update(c) |  310   return helper.Update(c) | 
| OLD | NEW |