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

Unified Diff: scripts/slave/recipe_modules/chromium/chromium_perf.py

Issue 1185693002: Move builders.py and steps.py to chromium_tests. (Closed) Base URL: https://chromium.googlesource.com/chromium/tools/build.git@master
Patch Set: Address review comments. Created 5 years, 6 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 side-by-side diff with in-line comments
Download patch
Index: scripts/slave/recipe_modules/chromium/chromium_perf.py
diff --git a/scripts/slave/recipe_modules/chromium/chromium_perf.py b/scripts/slave/recipe_modules/chromium/chromium_perf.py
deleted file mode 100644
index 31864a9a4da4a323106dbf2aeb84bce0387595cd..0000000000000000000000000000000000000000
--- a/scripts/slave/recipe_modules/chromium/chromium_perf.py
+++ /dev/null
@@ -1,297 +0,0 @@
-# Copyright 2014 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.
-
-from . import steps
-
-
-def _GetTargetName(platform, target_bits):
- return ('Release_x64' if platform is 'win' and target_bits is 64
- else 'Release')
-
-def _Spec(platform, parent_builder, perf_id, index, num_shards, target_bits):
- return {
- 'disable_tests': False,
- 'bot_type': 'tester',
- 'chromium_config_kwargs': {
- 'BUILD_CONFIG': 'Release',
- 'TARGET_BITS': target_bits,
- },
- 'parent_buildername': parent_builder,
- 'chromium_config': 'chromium_official',
- 'gclient_config': 'perf',
- 'testing': {
- 'platform': platform,
- },
- 'test_spec_file': 'chromium.perf.json',
- 'test_generators': [
- steps.generate_script,
- ],
- 'tests': [
- steps.DynamicPerfTests(
- _GetTargetName(platform, target_bits).lower(),
- perf_id, index, num_shards),
- ],
- 'perf-id': perf_id,
- 'results-url': 'https://chromeperf.appspot.com',
- }
-
-
-def _AddBotSpec(name, platform, parent_builder, perf_id, target_bits,
- num_shards):
- if num_shards > 1:
- for i in range(0, num_shards):
- builder_name = "%s (%d)" % (name, i + 1)
- SPEC['builders'][builder_name] = _Spec(platform, parent_builder, perf_id,
- i, num_shards, target_bits)
- else:
- SPEC['builders'][name] = _Spec(platform, parent_builder, perf_id,
- 0, 1, target_bits)
-
-
-SPEC = {
- 'settings': {
- 'build_gs_bucket': 'chrome-perf',
- },
- 'builders': {
- 'Linux Builder': {
- 'disable_tests': True,
- 'chromium_config': 'chromium_official',
- 'gclient_config': 'chromium',
- 'gclient_apply_config': ['chrome_internal'],
- 'chromium_config_kwargs': {
- 'BUILD_CONFIG': 'Release',
- 'TARGET_BITS': 64,
- },
- 'bot_type': 'builder',
- 'compile_targets': [
- 'chromium_builder_perf',
- ],
- 'testing': {
- 'platform': 'linux',
- },
- 'chromium_apply_config': ['chromium_perf', 'goma_hermetic_fallback']
- },
- 'Win Builder': {
- 'disable_tests': True,
- 'chromium_config': 'chromium_official',
- 'gclient_config': 'chromium',
- 'gclient_apply_config': ['chrome_internal'],
- 'chromium_config_kwargs': {
- 'BUILD_CONFIG': 'Release',
- 'TARGET_BITS': 32,
- },
- 'bot_type': 'builder',
- 'compile_targets': [
- 'chromium_builder_perf',
- ],
- 'testing': {
- 'platform': 'win',
- },
- 'chromium_apply_config': ['chromium_perf', 'goma_hermetic_fallback']
- },
- 'Win x64 Builder': {
- 'disable_tests': True,
- 'chromium_config': 'chromium_official',
- 'gclient_config': 'chromium',
- 'gclient_apply_config': ['chrome_internal'],
- 'chromium_config_kwargs': {
- 'BUILD_CONFIG': 'Release',
- 'TARGET_BITS': 64,
- },
- 'bot_type': 'builder',
- 'compile_targets': [
- 'chromium_builder_perf',
- ],
- 'testing': {
- 'platform': 'win',
- },
- 'chromium_apply_config': ['chromium_perf', 'goma_hermetic_fallback']
- },
- 'Mac Builder': {
- 'disable_tests': True,
- 'chromium_config': 'chromium_official',
- 'gclient_config': 'chromium',
- 'gclient_apply_config': ['chrome_internal'],
- 'chromium_config_kwargs': {
- 'BUILD_CONFIG': 'Release',
- 'TARGET_BITS': 64,
- },
- 'bot_type': 'builder',
- 'compile_targets': [
- 'chromium_builder_perf',
- ],
- 'testing': {
- 'platform': 'mac',
- },
- 'chromium_apply_config': ['chromium_perf', 'goma_hermetic_fallback']
- },
- 'Android Builder': {
- 'disable_tests': True,
- 'chromium_config': 'chromium_official',
- 'gclient_config': 'chromium',
- 'chromium_config_kwargs': {
- 'BUILD_CONFIG': 'Release',
- 'TARGET_BITS': 32,
- 'TARGET_ARCH': 'arm',
- },
- 'bot_type': 'builder',
- 'testing': {
- 'platform': 'linux',
- },
- 'chromium_apply_config': [
- 'chromium_perf', 'android', 'goma_hermetic_fallback',
- ],
- 'gclient_apply_config': ['android', 'perf'],
- },
- 'Android arm64 Builder': {
- 'disable_tests': True,
- 'chromium_config': 'chromium_official',
- 'gclient_config': 'chromium',
- 'chromium_config_kwargs': {
- 'BUILD_CONFIG': 'Release',
- 'TARGET_BITS': 64,
- 'TARGET_ARCH': 'arm',
- },
- 'bot_type': 'builder',
- 'testing': {
- 'platform': 'linux',
- },
- 'chromium_apply_config': [
- 'chromium_perf', 'android', 'goma_hermetic_fallback',
- ],
- 'gclient_apply_config': ['android', 'perf'],
- }
- }
-}
-
-_AddBotSpec(
- name='Linux Perf',
- platform='linux',
- parent_builder='Linux Builder',
- perf_id='linux-release',
- target_bits=64,
- num_shards=5)
-_AddBotSpec(
- name='Win 8 Perf',
- platform='win',
- parent_builder='Win Builder',
- perf_id='chromium-rel-win8-dual',
- target_bits=32,
- num_shards=2)
-_AddBotSpec(
- name='Win 7 Perf',
- platform='win',
- parent_builder='Win Builder',
- perf_id='chromium-rel-win7-dual',
- target_bits=32,
- num_shards=5)
-_AddBotSpec(
- name='Win 7 x64 Perf',
- platform='win',
- parent_builder='Win x64 Builder',
- perf_id='chromium-rel-win7-x64-dual',
- target_bits=64,
- num_shards=2)
-_AddBotSpec(
- name='Win 7 ATI GPU Perf',
- platform='win',
- parent_builder='Win x64 Builder',
- perf_id='chromium-rel-win7-gpu-ati',
- target_bits=64,
- num_shards=5)
-_AddBotSpec(
- name='Win 7 Intel GPU Perf',
- platform='win',
- parent_builder='Win Builder',
- perf_id='chromium-rel-win7-gpu-intel',
- target_bits=32,
- num_shards=1)
-_AddBotSpec(
- name='Win 7 Nvidia GPU Perf',
- platform='win',
- parent_builder='Win x64 Builder',
- perf_id='chromium-rel-win7-gpu-nvidia',
- target_bits=64,
- num_shards=5)
-_AddBotSpec(
- name='Win 7 Low-End Perf',
- platform='win',
- parent_builder='Win Builder',
- perf_id='chromium-rel-win7-single',
- target_bits=32,
- num_shards=2)
-_AddBotSpec(
- name='Win XP Perf',
- platform='win',
- parent_builder='Win Builder',
- perf_id='chromium-rel-xp-dual',
- target_bits=32,
- num_shards=5)
-_AddBotSpec(
- name='Mac 10.9 Perf',
- platform='mac',
- parent_builder='Mac Builder',
- perf_id='chromium-rel-mac9',
- target_bits=64,
- num_shards=5)
-_AddBotSpec(
- name='Mac 10.8 Perf',
- platform='mac',
- parent_builder='Mac Builder',
- perf_id='chromium-rel-mac8',
- target_bits=64,
- num_shards=5)
-
-_AndroidSpecs = {
- 'Android Nexus4 Perf': {
- 'perf_id': 'android-nexus4',
- 'num_device_shards': 8,
- },
- 'Android Nexus5 Perf': {
- 'perf_id': 'android-nexus5',
- 'num_device_shards': 8,
- },
- 'Android Nexus6 Perf': {
- 'perf_id': 'android-nexus6',
- 'num_device_shards': 8,
- },
- 'Android Nexus7v2 Perf': {
- 'perf_id': 'android-nexus7v2',
- 'num_device_shards': 8,
- },
- 'Android Nexus9 Perf': {
- 'perf_id': 'android-nexus9',
- 'num_device_shards': 8,
- 'target_bits': 64
- },
- 'Android One Perf': {
- 'perf_id': 'android-one',
- 'num_device_shards': 8,
- },
-}
-for k, v in _AndroidSpecs.iteritems():
- bits = v.get('target_bits', 32)
- SPEC['builders'][k] = {
- 'disable_tests': True,
- 'bot_type': 'tester',
- 'chromium_config_kwargs': {
- 'BUILD_CONFIG': 'Release',
- 'TARGET_BITS': bits,
- 'TARGET_PLATFORM': 'android',
- },
- 'gclient_config': 'perf',
- 'gclient_apply_config': ['android'],
- 'parent_buildername': 'Android Builder',
- 'chromium_config': 'chromium_official',
- 'gclient_config': 'perf',
- 'android_config': 'perf',
- 'testing': {
- 'platform': 'linux',
- },
- 'tests': [
- steps.AndroidPerfTests(v['perf_id'], v['num_device_shards']),
- ],
- 'perf-id': v['perf_id'],
- 'results-url': 'https://chromeperf.appspot.com',
- }

Powered by Google App Engine
This is Rietveld 408576698