Commit 8058198c authored by Caleb Rouleau's avatar Caleb Rouleau Committed by Commit Bot

[Benchmarking] Keep track of whether to run reference build in bot_platforms.py.

This allows us to provide better runtime estimates for
the cycletime spreadsheet that we are autogenerating.

Bug: 1030840
Change-Id: I02d50f65f916196f9277ba24a356d5380e07c14d
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1974697
Commit-Queue: Caleb Rouleau <crouleau@chromium.org>
Commit-Queue: John Chen <johnchen@chromium.org>
Auto-Submit: Caleb Rouleau <crouleau@chromium.org>
Reviewed-by: default avatarJohn Chen <johnchen@chromium.org>
Cr-Commit-Position: refs/heads/master@{#726119}
parent f8a9ada0
...@@ -29,13 +29,15 @@ def _IsPlatformSupported(benchmark, platform): ...@@ -29,13 +29,15 @@ def _IsPlatformSupported(benchmark, platform):
class PerfPlatform(object): class PerfPlatform(object):
def __init__(self, name, description, benchmark_configs, def __init__(self, name, description, benchmark_configs,
num_shards, platform_os, is_fyi=False): num_shards, platform_os, is_fyi=False,
run_reference_build=True):
self._name = name self._name = name
self._description = description self._description = description
self._platform_os = platform_os self._platform_os = platform_os
# For sorting ignore case and "segments" in the bot name. # For sorting ignore case and "segments" in the bot name.
self._sort_key = name.lower().replace('-', ' ') self._sort_key = name.lower().replace('-', ' ')
self._is_fyi = is_fyi self._is_fyi = is_fyi
self.run_reference_build = run_reference_build
assert num_shards assert num_shards
self._num_shards = num_shards self._num_shards = num_shards
# pylint: disable=redefined-outer-name # pylint: disable=redefined-outer-name
...@@ -260,7 +262,8 @@ ANDROID_GO = PerfPlatform( ...@@ -260,7 +262,8 @@ ANDROID_GO = PerfPlatform(
19, 'android') 19, 'android')
ANDROID_GO_WEBVIEW = PerfPlatform( ANDROID_GO_WEBVIEW = PerfPlatform(
'android-go_webview-perf', 'Android OPM1.171019.021 (gobo)', 'android-go_webview-perf', 'Android OPM1.171019.021 (gobo)',
_ANDROID_GO_WEBVIEW_BENCHMARK_CONFIGS, 13, 'android') _ANDROID_GO_WEBVIEW_BENCHMARK_CONFIGS, 13, 'android',
run_reference_build=False)
ANDROID_NEXUS_5 = PerfPlatform( ANDROID_NEXUS_5 = PerfPlatform(
'Android Nexus5 Perf', 'Android KOT49H', _ANDROID_NEXUS_5_BENCHMARK_CONFIGS, 'Android Nexus5 Perf', 'Android KOT49H', _ANDROID_NEXUS_5_BENCHMARK_CONFIGS,
16, 'android') 16, 'android')
...@@ -271,21 +274,24 @@ ANDROID_NEXUS_5X = PerfPlatform( ...@@ -271,21 +274,24 @@ ANDROID_NEXUS_5X = PerfPlatform(
'android') 'android')
ANDROID_NEXUS_5X_WEBVIEW = PerfPlatform( ANDROID_NEXUS_5X_WEBVIEW = PerfPlatform(
'Android Nexus5X WebView Perf', 'Android AOSP MOB30K', 'Android Nexus5X WebView Perf', 'Android AOSP MOB30K',
_ANDROID_NEXUS_5X_WEBVIEW_BENCHMARK_CONFIGS, 16, 'android') _ANDROID_NEXUS_5X_WEBVIEW_BENCHMARK_CONFIGS, 16, 'android',
run_reference_build=False)
ANDROID_NEXUS_6_WEBVIEW = PerfPlatform( ANDROID_NEXUS_6_WEBVIEW = PerfPlatform(
'Android Nexus6 WebView Perf', 'Android AOSP MOB30K', 'Android Nexus6 WebView Perf', 'Android AOSP MOB30K',
_ANDROID_NEXUS_6_WEBVIEW_BENCHMARK_CONFIGS, _ANDROID_NEXUS_6_WEBVIEW_BENCHMARK_CONFIGS,
12, # Reduced from 16 per crbug.com/891848. 12, # Reduced from 16 per crbug.com/891848.
'android') 'android', run_reference_build=False)
ANDROID_PIXEL2 = PerfPlatform( ANDROID_PIXEL2 = PerfPlatform(
'android-pixel2-perf', 'Android OPM1.171019.021', 'android-pixel2-perf', 'Android OPM1.171019.021',
_ANDROID_PIXEL2_BENCHMARK_CONFIGS, 35, 'android') _ANDROID_PIXEL2_BENCHMARK_CONFIGS, 35, 'android')
ANDROID_PIXEL2_WEBVIEW = PerfPlatform( ANDROID_PIXEL2_WEBVIEW = PerfPlatform(
'android-pixel2_webview-perf', 'Android OPM1.171019.021', 'android-pixel2_webview-perf', 'Android OPM1.171019.021',
_ANDROID_PIXEL2_WEBVIEW_BENCHMARK_CONFIGS, 21, 'android') _ANDROID_PIXEL2_WEBVIEW_BENCHMARK_CONFIGS, 21, 'android',
run_reference_build=False)
ANDROID_PIXEL2_WEBLAYER = PerfPlatform( ANDROID_PIXEL2_WEBLAYER = PerfPlatform(
'android-pixel2_weblayer-perf', 'Android OPM1.171019.021', 'android-pixel2_weblayer-perf', 'Android OPM1.171019.021',
_ANDROID_PIXEL2_WEBLAYER_BENCHMARK_CONFIGS, 4, 'android') _ANDROID_PIXEL2_WEBLAYER_BENCHMARK_CONFIGS, 4, 'android',
run_reference_build=False)
# FYI bots # FYI bots
WIN_10_LOW_END_HP_CANDIDATE = PerfPlatform( WIN_10_LOW_END_HP_CANDIDATE = PerfPlatform(
'win-10_laptop_low_end-perf_HP-Candidate', 'HP 15-BS121NR Laptop Candidate', 'win-10_laptop_low_end-perf_HP-Candidate', 'HP 15-BS121NR Laptop Candidate',
...@@ -294,22 +300,30 @@ WIN_10_LOW_END_HP_CANDIDATE = PerfPlatform( ...@@ -294,22 +300,30 @@ WIN_10_LOW_END_HP_CANDIDATE = PerfPlatform(
ANDROID_NEXUS5X_PERF_FYI = PerfPlatform( ANDROID_NEXUS5X_PERF_FYI = PerfPlatform(
'android-nexus5x-perf-fyi', 'Android MMB29Q', 'android-nexus5x-perf-fyi', 'Android MMB29Q',
_ANDROID_NEXUS5X_FYI_BENCHMARK_CONFIGS, _ANDROID_NEXUS5X_FYI_BENCHMARK_CONFIGS,
3, 'android', is_fyi=True) 3, 'android', is_fyi=True, run_reference_build=False)
ANDROID_PIXEL2_PERF_AAB_FYI = PerfPlatform( ANDROID_PIXEL2_PERF_AAB_FYI = PerfPlatform(
'android-pixel2-perf-aab-fyi', 'Android OPM1.171019.021', 'android-pixel2-perf-aab-fyi', 'Android OPM1.171019.021',
_ANDROID_PIXEL2_AAB_FYI_BENCHMARK_CONFIGS, _ANDROID_PIXEL2_AAB_FYI_BENCHMARK_CONFIGS,
1, 'android', is_fyi=True) 1, 'android', is_fyi=True,
# TODO(crbug.com/612455): Enable ref builds once can pass both
# --browser=exact (used by this bot to have it run Monochrome6432)
# and --browser=reference together.
run_reference_build=False)
ANDROID_PIXEL2_PERF_FYI = PerfPlatform( ANDROID_PIXEL2_PERF_FYI = PerfPlatform(
'android-pixel2-perf-fyi', 'Android OPM1.171019.021', 'android-pixel2-perf-fyi', 'Android OPM1.171019.021',
_ANDROID_PIXEL2_FYI_BENCHMARK_CONFIGS, _ANDROID_PIXEL2_FYI_BENCHMARK_CONFIGS,
4, 'android', is_fyi=True) 4, 'android', is_fyi=True,
# TODO(crbug.com/612455): Enable ref builds once can pass both
# --browser=exact (used by this bot to have it run Monochrome6432)
# and --browser=reference together.
run_reference_build=False)
CHROMEOS_KEVIN_PERF_FYI = PerfPlatform( CHROMEOS_KEVIN_PERF_FYI = PerfPlatform(
'chromeos-kevin-perf-fyi', '', 'chromeos-kevin-perf-fyi', '',
_CHROMEOS_KEVIN_FYI_BENCHMARK_CONFIGS, _CHROMEOS_KEVIN_FYI_BENCHMARK_CONFIGS,
4, 'chromeos', is_fyi=True) 4, 'chromeos', is_fyi=True, run_reference_build=False)
LINUX_PERF_FYI = PerfPlatform( LINUX_PERF_FYI = PerfPlatform(
'linux-perf-fyi', '', _LINUX_PERF_FYI_BENCHMARK_CONFIGS, 'linux-perf-fyi', '', _LINUX_PERF_FYI_BENCHMARK_CONFIGS,
1, 'linux', is_fyi=True) 1, 'linux', is_fyi=True, run_reference_build=False)
ALL_PLATFORMS = { ALL_PLATFORMS = {
p for p in locals().values() if isinstance(p, PerfPlatform) p for p in locals().values() if isinstance(p, PerfPlatform)
......
...@@ -114,12 +114,6 @@ FYI_BUILDERS = { ...@@ -114,12 +114,6 @@ FYI_BUILDERS = {
'tests': [ 'tests': [
{ {
'isolate': 'performance_test_suite', 'isolate': 'performance_test_suite',
'extra_args': [
# TODO(crbug.com/612455): Enable ref builds once can pass both
# --browser=exact (used by this bot to have it run Monochrome6432)
# and --browser=reference together.
#'--run-ref-build',
],
} }
], ],
'platform': 'android-chrome', 'platform': 'android-chrome',
...@@ -136,12 +130,6 @@ FYI_BUILDERS = { ...@@ -136,12 +130,6 @@ FYI_BUILDERS = {
'tests': [ 'tests': [
{ {
'isolate': 'performance_test_suite', 'isolate': 'performance_test_suite',
'extra_args': [
# TODO(crbug.com/612455): Enable ref builds once can pass both
# --browser=exact (used by this bot to have it run Monochrome6432)
# and --browser=reference together.
#'--run-ref-build',
],
} }
], ],
'platform': 'android-chrome', 'platform': 'android-chrome',
...@@ -176,9 +164,6 @@ FYI_BUILDERS = { ...@@ -176,9 +164,6 @@ FYI_BUILDERS = {
'tests': [ 'tests': [
{ {
'isolate': 'performance_test_suite', 'isolate': 'performance_test_suite',
'extra_args': [
'--run-ref-build',
],
}, },
], ],
'platform': 'win', 'platform': 'win',
...@@ -348,9 +333,6 @@ BUILDERS = { ...@@ -348,9 +333,6 @@ BUILDERS = {
{ {
'name': 'performance_test_suite', 'name': 'performance_test_suite',
'isolate': 'performance_test_suite', 'isolate': 'performance_test_suite',
'extra_args': [
'--run-ref-build',
],
} }
], ],
'platform': 'android-chrome', 'platform': 'android-chrome',
...@@ -382,7 +364,6 @@ BUILDERS = { ...@@ -382,7 +364,6 @@ BUILDERS = {
{ {
'isolate': 'performance_test_suite', 'isolate': 'performance_test_suite',
'extra_args': [ 'extra_args': [
'--run-ref-build',
'--assert-gpu-compositing', '--assert-gpu-compositing',
], ],
}, },
...@@ -434,7 +415,6 @@ BUILDERS = { ...@@ -434,7 +415,6 @@ BUILDERS = {
{ {
'isolate': 'performance_test_suite', 'isolate': 'performance_test_suite',
'extra_args': [ 'extra_args': [
'--run-ref-build',
'--assert-gpu-compositing', '--assert-gpu-compositing',
], ],
}, },
...@@ -503,8 +483,6 @@ BUILDERS = { ...@@ -503,8 +483,6 @@ BUILDERS = {
'tests': [ 'tests': [
{ {
'isolate': 'performance_webview_test_suite', 'isolate': 'performance_webview_test_suite',
'extra_args': [
],
} }
], ],
'platform': 'android-webview-google', 'platform': 'android-webview-google',
...@@ -520,8 +498,6 @@ BUILDERS = { ...@@ -520,8 +498,6 @@ BUILDERS = {
'tests': [ 'tests': [
{ {
'isolate': 'performance_weblayer_test_suite', 'isolate': 'performance_weblayer_test_suite',
'extra_args': [
],
} }
], ],
'platform': 'android-weblayer', 'platform': 'android-weblayer',
...@@ -537,9 +513,6 @@ BUILDERS = { ...@@ -537,9 +513,6 @@ BUILDERS = {
'tests': [ 'tests': [
{ {
'isolate': 'performance_test_suite', 'isolate': 'performance_test_suite',
'extra_args': [
'--run-ref-build',
],
} }
], ],
'platform': 'android-chrome', 'platform': 'android-chrome',
...@@ -556,7 +529,6 @@ BUILDERS = { ...@@ -556,7 +529,6 @@ BUILDERS = {
{ {
'isolate': 'performance_test_suite', 'isolate': 'performance_test_suite',
'extra_args': [ 'extra_args': [
'--run-ref-build',
'--assert-gpu-compositing', '--assert-gpu-compositing',
], ],
}, },
...@@ -614,9 +586,6 @@ BUILDERS = { ...@@ -614,9 +586,6 @@ BUILDERS = {
'tests': [ 'tests': [
{ {
'isolate': 'performance_test_suite', 'isolate': 'performance_test_suite',
'extra_args': [
'--run-ref-build',
],
}, },
{ {
'isolate': 'load_library_perf_tests', 'isolate': 'load_library_perf_tests',
...@@ -648,7 +617,6 @@ BUILDERS = { ...@@ -648,7 +617,6 @@ BUILDERS = {
{ {
'isolate': 'performance_test_suite', 'isolate': 'performance_test_suite',
'extra_args': [ 'extra_args': [
'--run-ref-build',
'--assert-gpu-compositing', '--assert-gpu-compositing',
], ],
}, },
...@@ -702,7 +670,6 @@ BUILDERS = { ...@@ -702,7 +670,6 @@ BUILDERS = {
{ {
'isolate': 'performance_test_suite', 'isolate': 'performance_test_suite',
'extra_args': [ 'extra_args': [
'--run-ref-build',
'--assert-gpu-compositing', '--assert-gpu-compositing',
], ],
}, },
...@@ -731,7 +698,6 @@ BUILDERS = { ...@@ -731,7 +698,6 @@ BUILDERS = {
{ {
'isolate': 'performance_test_suite', 'isolate': 'performance_test_suite',
'extra_args': [ 'extra_args': [
'--run-ref-build',
'--assert-gpu-compositing', '--assert-gpu-compositing',
], ],
}, },
...@@ -779,7 +745,6 @@ BUILDERS = { ...@@ -779,7 +745,6 @@ BUILDERS = {
{ {
'isolate': 'performance_test_suite', 'isolate': 'performance_test_suite',
'extra_args': [ 'extra_args': [
'--run-ref-build',
'--assert-gpu-compositing', '--assert-gpu-compositing',
], ],
}, },
...@@ -1194,6 +1159,8 @@ def generate_telemetry_args(tester_config, platform): ...@@ -1194,6 +1159,8 @@ def generate_telemetry_args(tester_config, platform):
'--upload-results', '--upload-results',
'--test-shard-map-filename=%s' % platform.shards_map_file_name, '--test-shard-map-filename=%s' % platform.shards_map_file_name,
] ]
if platform.run_reference_build:
test_args.append('--run-ref-build')
if 'browser' in tester_config: if 'browser' in tester_config:
test_args.append('--browser-executable=../../out/Release/%s' % test_args.append('--browser-executable=../../out/Release/%s' %
tester_config['browser']) tester_config['browser'])
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment