<commit_before># Copyright (c) 2012 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.

# Sets up all the builders we want this buildbot master to run.

from master import master_config
from skia_master_scripts import factory as skia_factory
from skia_master_scripts import housekeeping_percommit_factory
from skia_master_scripts import housekeeping_periodic_factory
from skia_master_scripts import utils
from skia_master_scripts.utils import MakeBuilderSet, MakeAndroidBuilderSet, \
                                      MakeChromeOSBuilderSet, MakeIOSBuilderSet

# Directory where we want to record performance data
#
# TODO(epoger): consider changing to reuse existing config.Master.perf_base_url,
# config.Master.perf_report_url_suffix, etc.
perf_output_basedir_linux = '../../../../perfdata'
perf_output_basedir_mac = perf_output_basedir_linux
perf_output_basedir_windows = '..\\..\\..\\..\\perfdata'

defaults = {}

def Update(config, active_master, c):
  helper = utils.SkiaHelper(defaults)
  B = helper.Builder
  F = helper.Factory

  #
  # Default (per-commit) Scheduler for Skia. Only use this for builders which
  # do not care about commits outside of SKIA_PRIMARY_SUBDIRS.
  #
  helper.AnyBranchScheduler('skia_rel', branches=utils.SKIA_PRIMARY_SUBDIRS)

  #
  # Periodic Scheduler for Skia. The timezone the PeriodicScheduler is run in is
  # the timezone of the buildbot master. Currently this is EST because it runs
  # in Atlanta.
  #
  helper.PeriodicScheduler('skia_periodic', branch='trunk', minute=0, hour=2)

  # Scheduler for Skia trybots.
  helper.TryScheduler('skia_try')

  #
  # Set up all the builders.
  #
  # Don't put spaces or 'funny characters' within the builder names, so that
  # we can safely use the builder name as part of a filepath.
  #
  do_upload_results = active_master.is_production_host

  # Linux (Ubuntu12) on Shuttle with ATI5770 graphics card
  defaults['category'] = 'Shuttle_Ubuntu12_ATI5770'
  MakeBuilderSet(
      helper=helper,
      builder_base_name='Skia_Shuttle_Ubuntu12_ATI5770_Float_%s_64',
      do_upload_results=do_upload_results,
      target_platform=skia_factory.TARGET_PLATFORM_LINUX,
      environment_variables=
          {'GYP_DEFINES': 'skia_scalar=float skia_mesa=0 skia_arch_width=64'},
      gm_image_subdir='base-shuttle_ubuntu12_ati5770',
      perf_output_basedir=perf_output_basedir_linux,
      use_skp_playback_framework=True)
  MakeBuilderSet(
      helper=helper,
      builder_base_name='Skia_Shuttle_Ubuntu12_ATI5770_Float_%s_32',
      do_upload_results=do_upload_results,
      target_platform=skia_factory.TARGET_PLATFORM_LINUX,
      environment_variables=
          {'GYP_DEFINES': 'skia_scalar=float skia_mesa=0 skia_arch_width=32'},
      gm_image_subdir='base-shuttle_ubuntu12_ati5770',
      perf_output_basedir=perf_output_basedir_linux,
      use_skp_playback_framework=True)

  # Android (runs on a Linux buildbot slave)...
  defaults['category'] = 'android'
  MakeAndroidBuilderSet(
      helper=helper,
      builder_base_name='Skia_NexusS_4-1_Float_%s_32',
      device='nexus_s',
      do_upload_results=do_upload_results,
      target_platform=skia_factory.TARGET_PLATFORM_LINUX,
      environment_variables={'GYP_DEFINES': 'skia_scalar=float skia_mesa=0'},
      gm_image_subdir='base-android-nexus-s',
      perf_output_basedir=perf_output_basedir_linux)
  MakeAndroidBuilderSet(
      helper=helper,
      builder_base_name='Skia_Xoom_4-1_Float_%s_32',
      device='xoom',
      do_upload_results=do_upload_results,
      target_platform=skia_factory.TARGET_PLATFORM_LINUX,
      environment_variables={'GYP_DEFINES': 'skia_scalar=float skia_mesa=0'},
      gm_image_subdir='base-android-xoom',
      perf_output_basedir=perf_output_basedir_linux)
  MakeAndroidBuilderSet(
      helper=helper,
      builder_base_name='Skia_GalaxyNexus_4-1_Float_%s_32',
      device='galaxy_nexus',
      do_upload_results=do_upload_results,
      target_platform=skia_factory.TARGET_PLATFORM_LINUX,
      environment_variables={'GYP_DEFINES': 'skia_scalar=float skia_mesa=0'},
      gm_image_subdir='base-android-galaxy-nexus',
      perf_output_basedir=perf_output_basedir_linux)
  MakeAndroidBuilderSet(
      helper=helper,
      builder_base_name='Skia_Nexus4_4-1_Float_%s_32',
      device='nexus_4',
      do_upload_results=do_upload_results,
      target_platform=skia_factory.TARGET_PLATFORM_LINUX,
      environment_variables={'GYP_DEFINES': 'skia_scalar=float skia_mesa=0'},
      gm_image_subdir='base-android-nexus-4',
      perf_output_basedir=perf_output_basedir_linux)
  MakeAndroidBuilderSet(
      helper=helper,
      builder_base_name='Skia_Nexus7_4-1_Float_%s_32',
      device='nexus_7',
      do_upload_results=do_upload_results,
      target_platform=skia_factory.TARGET_PLATFORM_LINUX,
      environment_variables={'GYP_DEFINES': 'skia_scalar=float skia_mesa=0'},
      gm_image_subdir='base-android-nexus-7',
      perf_output_basedir=perf_output_basedir_linux)
  MakeAndroidBuilderSet(
      helper=helper,
      builder_base_name='Skia_Nexus10_4-1_Float_%s_32',
      device='nexus_10',
      do_upload_results=do_upload_results,
      target_platform=skia_factory.TARGET_PLATFORM_LINUX,
      environment_variables={'GYP_DEFINES': 'skia_scalar=float skia_mesa=0'},
      gm_image_subdir='base-android-nexus-10',
      perf_output_basedir=perf_output_basedir_linux)

  # Mac 10.6 (SnowLeopard) ...
  defaults['category'] = 'mac-10.6'
  MakeBuilderSet(
      helper=helper,
      builder_base_name='Skia_Mac_Float_%s_32',
      do_upload_results=do_upload_results,
      target_platform=skia_factory.TARGET_PLATFORM_MAC,
      environment_variables=
          {'GYP_DEFINES': 'skia_osx_sdkroot=macosx10.6 skia_scalar=float skia_mesa=1 skia_arch_width=32'},
      gm_image_subdir='base-macmini',
      perf_output_basedir=perf_output_basedir_mac)
  MakeBuilderSet(
      helper=helper,
      builder_base_name='Skia_Mac_Float_%s_64',
      do_upload_results=do_upload_results,
      target_platform=skia_factory.TARGET_PLATFORM_MAC,
      environment_variables=
          {'GYP_DEFINES': 'skia_osx_sdkroot=macosx10.6 skia_scalar=float skia_mesa=1 skia_arch_width=64'},
      gm_image_subdir='base-macmini',
      perf_output_basedir=perf_output_basedir_mac)

  # Mac 10.7 (Lion) ...
  defaults['category'] = 'mac-10.7'
  MakeBuilderSet(
      helper=helper,
      builder_base_name='Skia_MacMiniLion_Float_%s_32',
      do_upload_results=do_upload_results,
      target_platform=skia_factory.TARGET_PLATFORM_MAC,
      environment_variables=
          {'GYP_DEFINES': 'skia_scalar=float skia_mesa=1 skia_arch_width=32'},
      gm_image_subdir='base-macmini-lion-float',
      perf_output_basedir=perf_output_basedir_mac)
  MakeBuilderSet(
      helper=helper,
      builder_base_name='Skia_MacMiniLion_Float_%s_64',
      do_upload_results=do_upload_results,
      target_platform=skia_factory.TARGET_PLATFORM_MAC,
      environment_variables=
          {'GYP_DEFINES': 'skia_scalar=float skia_mesa=1 skia_arch_width=64'},
      gm_image_subdir='base-macmini-lion-float',
      perf_output_basedir=perf_output_basedir_mac)

  # Windows7 running on Shuttle PC with Intel Core i7-2600 with on-CPU graphics
  defaults['category'] = 'Shuttle_Win7_Intel'
  MakeBuilderSet(
      helper=helper,<commit_msg>Turn on the new Skp playback framework for mac-10.6 and mac-10.7 Review URL: https://codereview.appspot.com/7012045<commit_after># Copyright (c) 2012 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.

# Sets up all the builders we want this buildbot master to run.

from master import master_config
from skia_master_scripts import factory as skia_factory
from skia_master_scripts import housekeeping_percommit_factory
from skia_master_scripts import housekeeping_periodic_factory
from skia_master_scripts import utils
from skia_master_scripts.utils import MakeBuilderSet, MakeAndroidBuilderSet, \
                                      MakeChromeOSBuilderSet, MakeIOSBuilderSet

# Directory where we want to record performance data
#
# TODO(epoger): consider changing to reuse existing config.Master.perf_base_url,
# config.Master.perf_report_url_suffix, etc.
perf_output_basedir_linux = '../../../../perfdata'
perf_output_basedir_mac = perf_output_basedir_linux
perf_output_basedir_windows = '..\\..\\..\\..\\perfdata'

defaults = {}

def Update(config, active_master, c):
  helper = utils.SkiaHelper(defaults)
  B = helper.Builder
  F = helper.Factory

  #
  # Default (per-commit) Scheduler for Skia. Only use this for builders which
  # do not care about commits outside of SKIA_PRIMARY_SUBDIRS.
  #
  helper.AnyBranchScheduler('skia_rel', branches=utils.SKIA_PRIMARY_SUBDIRS)

  #
  # Periodic Scheduler for Skia. The timezone the PeriodicScheduler is run in is
  # the timezone of the buildbot master. Currently this is EST because it runs
  # in Atlanta.
  #
  helper.PeriodicScheduler('skia_periodic', branch='trunk', minute=0, hour=2)

  # Scheduler for Skia trybots.
  helper.TryScheduler('skia_try')

  #
  # Set up all the builders.
  #
  # Don't put spaces or 'funny characters' within the builder names, so that
  # we can safely use the builder name as part of a filepath.
  #
  do_upload_results = active_master.is_production_host

  # Linux (Ubuntu12) on Shuttle with ATI5770 graphics card
  defaults['category'] = 'Shuttle_Ubuntu12_ATI5770'
  MakeBuilderSet(
      helper=helper,
      builder_base_name='Skia_Shuttle_Ubuntu12_ATI5770_Float_%s_64',
      do_upload_results=do_upload_results,
      target_platform=skia_factory.TARGET_PLATFORM_LINUX,
      environment_variables=
          {'GYP_DEFINES': 'skia_scalar=float skia_mesa=0 skia_arch_width=64'},
      gm_image_subdir='base-shuttle_ubuntu12_ati5770',
      perf_output_basedir=perf_output_basedir_linux,
      use_skp_playback_framework=True)
  MakeBuilderSet(
      helper=helper,
      builder_base_name='Skia_Shuttle_Ubuntu12_ATI5770_Float_%s_32',
      do_upload_results=do_upload_results,
      target_platform=skia_factory.TARGET_PLATFORM_LINUX,
      environment_variables=
          {'GYP_DEFINES': 'skia_scalar=float skia_mesa=0 skia_arch_width=32'},
      gm_image_subdir='base-shuttle_ubuntu12_ati5770',
      perf_output_basedir=perf_output_basedir_linux,
      use_skp_playback_framework=True)

  # Android (runs on a Linux buildbot slave)...
  defaults['category'] = 'android'
  MakeAndroidBuilderSet(
      helper=helper,
      builder_base_name='Skia_NexusS_4-1_Float_%s_32',
      device='nexus_s',
      do_upload_results=do_upload_results,
      target_platform=skia_factory.TARGET_PLATFORM_LINUX,
      environment_variables={'GYP_DEFINES': 'skia_scalar=float skia_mesa=0'},
      gm_image_subdir='base-android-nexus-s',
      perf_output_basedir=perf_output_basedir_linux)
  MakeAndroidBuilderSet(
      helper=helper,
      builder_base_name='Skia_Xoom_4-1_Float_%s_32',
      device='xoom',
      do_upload_results=do_upload_results,
      target_platform=skia_factory.TARGET_PLATFORM_LINUX,
      environment_variables={'GYP_DEFINES': 'skia_scalar=float skia_mesa=0'},
      gm_image_subdir='base-android-xoom',
      perf_output_basedir=perf_output_basedir_linux)
  MakeAndroidBuilderSet(
      helper=helper,
      builder_base_name='Skia_GalaxyNexus_4-1_Float_%s_32',
      device='galaxy_nexus',
      do_upload_results=do_upload_results,
      target_platform=skia_factory.TARGET_PLATFORM_LINUX,
      environment_variables={'GYP_DEFINES': 'skia_scalar=float skia_mesa=0'},
      gm_image_subdir='base-android-galaxy-nexus',
      perf_output_basedir=perf_output_basedir_linux)
  MakeAndroidBuilderSet(
      helper=helper,
      builder_base_name='Skia_Nexus4_4-1_Float_%s_32',
      device='nexus_4',
      do_upload_results=do_upload_results,
      target_platform=skia_factory.TARGET_PLATFORM_LINUX,
      environment_variables={'GYP_DEFINES': 'skia_scalar=float skia_mesa=0'},
      gm_image_subdir='base-android-nexus-4',
      perf_output_basedir=perf_output_basedir_linux)
  MakeAndroidBuilderSet(
      helper=helper,
      builder_base_name='Skia_Nexus7_4-1_Float_%s_32',
      device='nexus_7',
      do_upload_results=do_upload_results,
      target_platform=skia_factory.TARGET_PLATFORM_LINUX,
      environment_variables={'GYP_DEFINES': 'skia_scalar=float skia_mesa=0'},
      gm_image_subdir='base-android-nexus-7',
      perf_output_basedir=perf_output_basedir_linux)
  MakeAndroidBuilderSet(
      helper=helper,
      builder_base_name='Skia_Nexus10_4-1_Float_%s_32',
      device='nexus_10',
      do_upload_results=do_upload_results,
      target_platform=skia_factory.TARGET_PLATFORM_LINUX,
      environment_variables={'GYP_DEFINES': 'skia_scalar=float skia_mesa=0'},
      gm_image_subdir='base-android-nexus-10',
      perf_output_basedir=perf_output_basedir_linux)

  # Mac 10.6 (SnowLeopard) ...
  defaults['category'] = 'mac-10.6'
  MakeBuilderSet(
      helper=helper,
      builder_base_name='Skia_Mac_Float_%s_32',
      do_upload_results=do_upload_results,
      target_platform=skia_factory.TARGET_PLATFORM_MAC,
      environment_variables=
          {'GYP_DEFINES': 'skia_osx_sdkroot=macosx10.6 skia_scalar=float skia_mesa=1 skia_arch_width=32'},
      gm_image_subdir='base-macmini',
      perf_output_basedir=perf_output_basedir_mac,
      use_skp_playback_framework=True)
  MakeBuilderSet(
      helper=helper,
      builder_base_name='Skia_Mac_Float_%s_64',
      do_upload_results=do_upload_results,
      target_platform=skia_factory.TARGET_PLATFORM_MAC,
      environment_variables=
          {'GYP_DEFINES': 'skia_osx_sdkroot=macosx10.6 skia_scalar=float skia_mesa=1 skia_arch_width=64'},
      gm_image_subdir='base-macmini',
      perf_output_basedir=perf_output_basedir_mac,
      use_skp_playback_framework=True)

  # Mac 10.7 (Lion) ...
  defaults['category'] = 'mac-10.7'
  MakeBuilderSet(
      helper=helper,
      builder_base_name='Skia_MacMiniLion_Float_%s_32',
      do_upload_results=do_upload_results,
      target_platform=skia_factory.TARGET_PLATFORM_MAC,
      environment_variables=
          {'GYP_DEFINES': 'skia_scalar=float skia_mesa=1 skia_arch_width=32'},
      gm_image_subdir='base-macmini-lion-float',
      perf_output_basedir=perf_output_basedir_mac,
      use_skp_playback_framework=True)
  MakeBuilderSet(
      helper=helper,
      builder_base_name='Skia_MacMiniLion_Float_%s_64',
      do_upload_results=do_upload_results,
      target_platform=skia_factory.TARGET_PLATFORM_MAC,
      environment_variables=
          {'GYP_DEFINES': 'skia_scalar=float skia_mesa=1 skia_arch_width=64'},
      gm_image_subdir='base-macmini-lion-float',
      perf_output_basedir=perf_output_basedir_mac,
      use_skp_playback_framework=True)

  # Windows7 running on Shuttle PC with Intel Core i7-2600 with on-CPU graphics
  defaults['category'] = 'Shuttle_Win7_Intel'
  MakeBuilderSet(
      helper=helper,
{'fraction_non_alphanumeric': 0.08640583554376657, 'fraction_numerical': 0.01929708222811671, 'mean_word_length': 4.663161847540368, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 1, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2108861', 'n_tokens_mistral': 5424, 'n_tokens_neox': 5165, 'n_words': 774}