2016-08-09 20:46:48 +00:00
|
|
|
# Copyright 2015 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.
|
|
|
|
|
|
|
|
|
|
|
|
import math
|
|
|
|
|
|
|
|
|
|
|
|
DEPS = [
|
2018-05-14 16:50:38 +00:00
|
|
|
'build',
|
2018-05-24 13:14:18 +00:00
|
|
|
'checkout',
|
2017-06-16 17:10:22 +00:00
|
|
|
'ct',
|
2017-05-13 02:09:38 +00:00
|
|
|
'recipe_engine/context',
|
2017-06-16 17:10:22 +00:00
|
|
|
'recipe_engine/file',
|
2016-08-09 20:46:48 +00:00
|
|
|
'recipe_engine/json',
|
|
|
|
'recipe_engine/path',
|
|
|
|
'recipe_engine/properties',
|
|
|
|
'recipe_engine/step',
|
|
|
|
'recipe_engine/time',
|
2017-02-02 14:02:37 +00:00
|
|
|
'run',
|
2017-05-22 12:35:36 +00:00
|
|
|
'skia_swarming',
|
2017-02-02 14:02:37 +00:00
|
|
|
'vars',
|
2016-08-09 20:46:48 +00:00
|
|
|
]
|
|
|
|
|
|
|
|
|
|
|
|
SKPS_VERSION_FILE = 'skps_version'
|
|
|
|
CT_SKPS_ISOLATE = 'ct_skps.isolate'
|
|
|
|
|
|
|
|
# Do not batch archive more slaves than this value. This is used to prevent
|
|
|
|
# no output timeouts in the 'isolate tests' step.
|
|
|
|
MAX_SLAVES_TO_BATCHARCHIVE = 100
|
|
|
|
|
|
|
|
TOOL_TO_DEFAULT_SKPS_PER_SLAVE = {
|
|
|
|
'dm': 10000,
|
|
|
|
'nanobench': 1000,
|
|
|
|
'get_images_from_skps': 10000,
|
|
|
|
}
|
|
|
|
|
|
|
|
# The SKP repository to use.
|
2018-01-08 17:11:41 +00:00
|
|
|
DEFAULT_SKPS_CHROMIUM_BUILD = '2b7e85eb251dc7-a3cf3659ed2c08'
|
2016-08-09 20:46:48 +00:00
|
|
|
|
|
|
|
|
2018-04-27 17:14:38 +00:00
|
|
|
def make_path(api, *path):
|
|
|
|
"""Return a Path object for the given path."""
|
|
|
|
key = 'custom_%s' % '_'.join(path)
|
|
|
|
api.path.c.base_paths[key] = tuple(path)
|
|
|
|
return api.path[key]
|
|
|
|
|
|
|
|
|
2016-08-09 20:46:48 +00:00
|
|
|
def RunSteps(api):
|
|
|
|
# Figure out which repository to use.
|
|
|
|
buildername = api.properties['buildername']
|
|
|
|
if '1k' in buildername:
|
2018-01-08 17:11:41 +00:00
|
|
|
ct_page_type = 'All'
|
2016-08-09 20:46:48 +00:00
|
|
|
num_pages = 1000
|
|
|
|
elif '10k' in buildername:
|
2018-01-08 17:11:41 +00:00
|
|
|
ct_page_type = 'All'
|
2016-08-09 20:46:48 +00:00
|
|
|
num_pages = 10000
|
|
|
|
elif '100k' in buildername:
|
2018-01-08 17:11:41 +00:00
|
|
|
ct_page_type = 'All'
|
2016-08-09 20:46:48 +00:00
|
|
|
num_pages = 100000
|
|
|
|
elif '1m' in buildername:
|
|
|
|
ct_page_type = 'All'
|
|
|
|
num_pages = 1000000
|
|
|
|
else:
|
|
|
|
raise Exception('Do not recognise the buildername %s.' % buildername)
|
|
|
|
|
|
|
|
# Figure out which tool to use.
|
|
|
|
if 'DM' in buildername:
|
|
|
|
skia_tool = 'dm'
|
|
|
|
elif 'BENCH' in buildername:
|
|
|
|
skia_tool = 'nanobench'
|
|
|
|
elif 'IMG_DECODE' in buildername:
|
|
|
|
skia_tool = 'get_images_from_skps'
|
|
|
|
else:
|
|
|
|
raise Exception('Do not recognise the buildername %s.' % buildername)
|
|
|
|
|
2018-05-04 17:46:15 +00:00
|
|
|
api.vars.setup()
|
2018-05-18 11:36:55 +00:00
|
|
|
checkout_root = make_path(api, '/', 'b', 'work')
|
|
|
|
gclient_cache = make_path(api, '/', 'b', 'cache')
|
2018-05-24 13:14:18 +00:00
|
|
|
got_revision = api.checkout.bot_update(checkout_root=checkout_root,
|
|
|
|
gclient_cache=gclient_cache)
|
2018-05-04 17:46:15 +00:00
|
|
|
api.file.ensure_directory('makedirs tmp_dir', api.vars.tmp_dir)
|
|
|
|
|
2018-05-18 11:36:55 +00:00
|
|
|
out_dir = api.vars.build_dir.join('out', api.vars.configuration)
|
|
|
|
api.build(checkout_root=checkout_root, out_dir=out_dir)
|
2016-08-09 20:46:48 +00:00
|
|
|
|
|
|
|
# Required paths.
|
2018-05-18 11:36:55 +00:00
|
|
|
infrabots_dir = checkout_root.join('skia', 'infra', 'bots')
|
2016-08-09 20:46:48 +00:00
|
|
|
isolate_dir = infrabots_dir.join('ct')
|
|
|
|
isolate_path = isolate_dir.join(CT_SKPS_ISOLATE)
|
|
|
|
|
2018-05-18 11:36:55 +00:00
|
|
|
api.build.copy_build_products(out_dir=out_dir, dst=isolate_dir)
|
2017-05-22 12:35:36 +00:00
|
|
|
api.skia_swarming.setup(
|
2016-08-09 20:46:48 +00:00
|
|
|
infrabots_dir.join('tools', 'luci-go'),
|
|
|
|
swarming_rev='')
|
|
|
|
|
|
|
|
skps_chromium_build = api.properties.get(
|
|
|
|
'skps_chromium_build', DEFAULT_SKPS_CHROMIUM_BUILD)
|
|
|
|
|
2016-10-13 14:36:50 +00:00
|
|
|
# Set build properties to make finding SKPs convenient.
|
|
|
|
webpage_rankings_link = (
|
|
|
|
'https://storage.cloud.google.com/%s/csv/top-1m.csv'
|
|
|
|
% api.ct.CT_GS_BUCKET)
|
|
|
|
api.step.active_result.presentation.properties['Webpage rankings'] = (
|
|
|
|
webpage_rankings_link)
|
|
|
|
download_skps_link = (
|
2016-08-09 20:46:48 +00:00
|
|
|
'https://pantheon.corp.google.com/storage/browser/%s/swarming/skps/%s/%s/'
|
|
|
|
% (api.ct.CT_GS_BUCKET, ct_page_type, skps_chromium_build))
|
2016-10-13 14:36:50 +00:00
|
|
|
api.step.active_result.presentation.properties['Download SKPs by rank'] = (
|
|
|
|
download_skps_link)
|
2016-08-09 20:46:48 +00:00
|
|
|
|
|
|
|
# Delete swarming_temp_dir to ensure it starts from a clean slate.
|
2017-05-22 12:35:36 +00:00
|
|
|
api.run.rmtree(api.skia_swarming.swarming_temp_dir)
|
2016-08-09 20:46:48 +00:00
|
|
|
|
|
|
|
num_per_slave = api.properties.get(
|
|
|
|
'num_per_slave',
|
|
|
|
min(TOOL_TO_DEFAULT_SKPS_PER_SLAVE[skia_tool], num_pages))
|
|
|
|
ct_num_slaves = api.properties.get(
|
|
|
|
'ct_num_slaves',
|
|
|
|
int(math.ceil(float(num_pages) / num_per_slave)))
|
|
|
|
|
|
|
|
# Try to figure out if the SKPs we are going to isolate already exist
|
|
|
|
# locally by reading the SKPS_VERSION_FILE.
|
|
|
|
download_skps = True
|
|
|
|
expected_version_contents = {
|
|
|
|
"chromium_build": skps_chromium_build,
|
|
|
|
"page_type": ct_page_type,
|
|
|
|
"num_slaves": ct_num_slaves,
|
|
|
|
}
|
2017-08-08 11:39:09 +00:00
|
|
|
# Note: If this directory is changed, the corresponding places it is
|
|
|
|
# referenced also needs to change. As of 8/8/17 the other places are:
|
|
|
|
# * infra/bots/ct/ct_skps.isolate
|
|
|
|
# * infra/bots/ct/run_ct_skps.py
|
2018-05-18 11:36:55 +00:00
|
|
|
skps_dir = checkout_root.join('skps', skps_chromium_build,
|
|
|
|
ct_page_type, str(ct_num_slaves))
|
2016-08-09 20:46:48 +00:00
|
|
|
version_file = skps_dir.join(SKPS_VERSION_FILE)
|
|
|
|
if api.path.exists(version_file): # pragma: nocover
|
2017-06-16 17:10:22 +00:00
|
|
|
version_file_contents = api.file.read_text(
|
2016-08-09 20:46:48 +00:00
|
|
|
"Read %s" % version_file,
|
|
|
|
version_file,
|
2017-06-16 17:10:22 +00:00
|
|
|
test_data=expected_version_contents)
|
2016-08-09 20:46:48 +00:00
|
|
|
actual_version_contents = api.json.loads(version_file_contents)
|
|
|
|
differences = (set(expected_version_contents.items()) ^
|
|
|
|
set(actual_version_contents.items()))
|
|
|
|
download_skps = len(differences) != 0
|
|
|
|
if download_skps:
|
|
|
|
# Delete and recreate the skps dir.
|
|
|
|
api.run.rmtree(skps_dir)
|
2017-07-07 21:36:58 +00:00
|
|
|
api.file.ensure_directory(
|
|
|
|
'makedirs %s' % api.path.basename(skps_dir), skps_dir)
|
2016-08-09 20:46:48 +00:00
|
|
|
|
|
|
|
# If a blacklist file exists then specify SKPs to be blacklisted.
|
2018-05-18 11:36:55 +00:00
|
|
|
blacklists_dir = infrabots_dir.join('ct', 'blacklists')
|
2016-08-09 20:46:48 +00:00
|
|
|
blacklist_file = blacklists_dir.join(
|
|
|
|
'%s_%s_%s.json' % (skia_tool, ct_page_type, skps_chromium_build))
|
|
|
|
blacklist_skps = []
|
|
|
|
if api.path.exists(blacklist_file): # pragma: nocover
|
2017-06-16 17:10:22 +00:00
|
|
|
blacklist_file_contents = api.file.read_text(
|
2016-08-09 20:46:48 +00:00
|
|
|
"Read %s" % blacklist_file,
|
2017-06-16 17:10:22 +00:00
|
|
|
blacklist_file)
|
2016-08-09 20:46:48 +00:00
|
|
|
blacklist_skps = api.json.loads(blacklist_file_contents)['blacklisted_skps']
|
|
|
|
|
|
|
|
for slave_num in range(1, ct_num_slaves + 1):
|
|
|
|
if download_skps:
|
|
|
|
# Download SKPs.
|
|
|
|
api.ct.download_swarming_skps(
|
|
|
|
ct_page_type, slave_num, skps_chromium_build,
|
|
|
|
skps_dir,
|
|
|
|
start_range=((slave_num-1)*num_per_slave) + 1,
|
|
|
|
num_skps=num_per_slave)
|
|
|
|
|
|
|
|
# Create this slave's isolated.gen.json file to use for batcharchiving.
|
|
|
|
extra_variables = {
|
|
|
|
'SLAVE_NUM': str(slave_num),
|
|
|
|
'TOOL_NAME': skia_tool,
|
2018-05-18 11:36:55 +00:00
|
|
|
'GIT_HASH': got_revision,
|
2016-08-09 20:46:48 +00:00
|
|
|
'CONFIGURATION': api.vars.configuration,
|
|
|
|
'BUILDER': buildername,
|
2017-08-08 11:39:09 +00:00
|
|
|
'CHROMIUM_BUILD': skps_chromium_build,
|
|
|
|
'PAGE_TYPE': ct_page_type,
|
|
|
|
'NUM_SLAVES': str(ct_num_slaves),
|
2016-08-09 20:46:48 +00:00
|
|
|
}
|
2017-05-22 12:35:36 +00:00
|
|
|
api.skia_swarming.create_isolated_gen_json(
|
2016-08-09 20:46:48 +00:00
|
|
|
isolate_path, isolate_dir, 'linux', 'ct-%s-%s' % (skia_tool, slave_num),
|
|
|
|
extra_variables, blacklist=blacklist_skps)
|
|
|
|
|
|
|
|
if download_skps:
|
|
|
|
# Since we had to download SKPs create an updated version file.
|
2017-06-16 17:10:22 +00:00
|
|
|
api.file.write_text("Create %s" % version_file,
|
|
|
|
version_file,
|
|
|
|
api.json.dumps(expected_version_contents))
|
2016-08-09 20:46:48 +00:00
|
|
|
|
|
|
|
# Batcharchive everything on the isolate server for efficiency.
|
|
|
|
max_slaves_to_batcharchive = MAX_SLAVES_TO_BATCHARCHIVE
|
|
|
|
if '1m' in buildername:
|
|
|
|
# Break up the "isolate tests" step into batches with <100k files due to
|
|
|
|
# https://github.com/luci/luci-go/issues/9
|
|
|
|
max_slaves_to_batcharchive = 5
|
|
|
|
tasks_to_swarm_hashes = []
|
|
|
|
for slave_start_num in xrange(1, ct_num_slaves+1, max_slaves_to_batcharchive):
|
|
|
|
m = min(max_slaves_to_batcharchive, ct_num_slaves)
|
2017-05-22 12:35:36 +00:00
|
|
|
batcharchive_output = api.skia_swarming.batcharchive(
|
2016-08-09 20:46:48 +00:00
|
|
|
targets=['ct-' + skia_tool + '-%s' % num for num in range(
|
|
|
|
slave_start_num, slave_start_num + m)])
|
|
|
|
tasks_to_swarm_hashes.extend(batcharchive_output)
|
|
|
|
# Sort the list to go through tasks in order.
|
|
|
|
tasks_to_swarm_hashes.sort()
|
|
|
|
|
|
|
|
# Trigger all swarming tasks.
|
2017-09-25 18:56:08 +00:00
|
|
|
dimensions={'os': 'Ubuntu-14.04'}
|
2016-08-09 20:46:48 +00:00
|
|
|
if 'GPU' in buildername:
|
2017-09-25 18:56:08 +00:00
|
|
|
dimensions['cpu'] = 'x86-64-E3-1230_v5'
|
2017-11-08 21:03:52 +00:00
|
|
|
dimensions['gpu'] = '10de:1cb3-384.90'
|
2017-09-13 12:03:37 +00:00
|
|
|
# See crbug.com/700053
|
|
|
|
dimensions['pool'] = 'Chrome-GPU'
|
2017-09-25 18:56:08 +00:00
|
|
|
else:
|
|
|
|
dimensions['cpu'] = 'x86-64-Broadwell_GCE'
|
|
|
|
dimensions['pool'] = 'Chrome'
|
2017-05-22 12:35:36 +00:00
|
|
|
tasks = api.skia_swarming.trigger_swarming_tasks(
|
2016-08-09 20:46:48 +00:00
|
|
|
tasks_to_swarm_hashes, dimensions=dimensions, io_timeout=40*60)
|
|
|
|
|
|
|
|
# Now collect all tasks.
|
2017-03-20 19:40:12 +00:00
|
|
|
env = {'AWS_CREDENTIAL_FILE': None, 'BOTO_CONFIG': None}
|
2016-08-09 20:46:48 +00:00
|
|
|
failed_tasks = []
|
|
|
|
for task in tasks:
|
|
|
|
try:
|
2017-05-22 12:35:36 +00:00
|
|
|
api.skia_swarming.collect_swarming_task(task)
|
2016-08-09 20:46:48 +00:00
|
|
|
|
|
|
|
if skia_tool == 'nanobench':
|
2017-05-22 12:35:36 +00:00
|
|
|
output_dir = api.skia_swarming.tasks_output_dir.join(
|
2016-08-09 20:46:48 +00:00
|
|
|
task.title).join('0')
|
|
|
|
utc = api.time.utcnow()
|
2017-09-25 13:20:40 +00:00
|
|
|
gs_dest_dir = 'gs://skia-perf/ct/%s/%d/%02d/%02d/%02d/' % (
|
2016-08-09 20:46:48 +00:00
|
|
|
ct_page_type, utc.year, utc.month, utc.day, utc.hour)
|
2017-06-16 17:10:22 +00:00
|
|
|
for json_output in api.file.listdir(
|
|
|
|
'listdir output dir', output_dir, test_data=['file 1', 'file 2']):
|
2017-05-13 02:09:38 +00:00
|
|
|
with api.context(env=env):
|
2017-09-25 13:20:40 +00:00
|
|
|
cmd = ['gsutil', 'cp', '-R', json_output, gs_dest_dir]
|
|
|
|
api.step('upload json output', cmd=cmd, infra_step=True)
|
2016-08-09 20:46:48 +00:00
|
|
|
|
|
|
|
except api.step.StepFailure as e:
|
2016-10-13 14:36:50 +00:00
|
|
|
# Add SKP links for convenience.
|
|
|
|
api.step.active_result.presentation.links['Webpage rankings'] = (
|
|
|
|
webpage_rankings_link)
|
|
|
|
api.step.active_result.presentation.links['Download SKPs by rank'] = (
|
|
|
|
download_skps_link)
|
2016-08-09 20:46:48 +00:00
|
|
|
failed_tasks.append(e)
|
|
|
|
|
|
|
|
if failed_tasks:
|
|
|
|
raise api.step.StepFailure(
|
|
|
|
'Failed steps: %s' % ', '.join([f.name for f in failed_tasks]))
|
|
|
|
|
|
|
|
|
|
|
|
def GenTests(api):
|
|
|
|
ct_num_slaves = 5
|
|
|
|
num_per_slave = 10
|
|
|
|
skia_revision = 'abc123'
|
|
|
|
path_config = 'kitchen'
|
|
|
|
|
|
|
|
yield(
|
|
|
|
api.test('CT_DM_10k_SKPs') +
|
|
|
|
api.properties(
|
2018-03-21 21:27:39 +00:00
|
|
|
buildername=('Test-Ubuntu14-Clang-GCE-CPU-AVX2-x86_64-Debug-All-' +
|
2017-08-08 11:39:09 +00:00
|
|
|
'CT_DM_10k_SKPs'),
|
2016-08-09 20:46:48 +00:00
|
|
|
path_config=path_config,
|
|
|
|
swarm_out_dir='[SWARM_OUT_DIR]',
|
|
|
|
ct_num_slaves=ct_num_slaves,
|
|
|
|
num_per_slave=num_per_slave,
|
2017-01-17 19:35:06 +00:00
|
|
|
repository='https://skia.googlesource.com/skia.git',
|
2016-08-09 20:46:48 +00:00
|
|
|
revision=skia_revision,
|
|
|
|
)
|
|
|
|
)
|
|
|
|
|
|
|
|
yield(
|
|
|
|
api.test('CT_IMG_DECODE_10k_SKPs') +
|
|
|
|
api.properties(
|
2018-03-21 21:27:39 +00:00
|
|
|
buildername='Test-Ubuntu14-Clang-GCE-CPU-AVX2-x86_64-Debug-All-'
|
2017-10-16 01:05:58 +00:00
|
|
|
'CT_IMG_DECODE_10k_SKPs',
|
2016-08-09 20:46:48 +00:00
|
|
|
path_config=path_config,
|
|
|
|
swarm_out_dir='[SWARM_OUT_DIR]',
|
|
|
|
ct_num_slaves=ct_num_slaves,
|
|
|
|
num_per_slave=num_per_slave,
|
2017-01-17 19:35:06 +00:00
|
|
|
repository='https://skia.googlesource.com/skia.git',
|
2016-08-09 20:46:48 +00:00
|
|
|
revision=skia_revision,
|
|
|
|
)
|
|
|
|
)
|
|
|
|
|
|
|
|
yield(
|
|
|
|
api.test('CT_DM_100k_SKPs') +
|
|
|
|
api.properties(
|
2018-03-21 21:27:39 +00:00
|
|
|
buildername=('Test-Ubuntu14-Clang-GCE-CPU-AVX2-x86_64-Debug-All-' +
|
2017-08-08 11:39:09 +00:00
|
|
|
'CT_DM_100k_SKPs'),
|
2016-08-09 20:46:48 +00:00
|
|
|
path_config=path_config,
|
|
|
|
swarm_out_dir='[SWARM_OUT_DIR]',
|
|
|
|
ct_num_slaves=ct_num_slaves,
|
|
|
|
num_per_slave=num_per_slave,
|
2017-01-17 19:35:06 +00:00
|
|
|
repository='https://skia.googlesource.com/skia.git',
|
2016-08-09 20:46:48 +00:00
|
|
|
revision=skia_revision,
|
|
|
|
)
|
|
|
|
)
|
|
|
|
|
|
|
|
yield(
|
|
|
|
api.test('CT_IMG_DECODE_100k_SKPs') +
|
|
|
|
api.properties(
|
2018-03-21 21:27:39 +00:00
|
|
|
buildername='Test-Ubuntu14-Clang-GCE-CPU-AVX2-x86_64-Debug-All-'
|
2017-10-16 01:05:58 +00:00
|
|
|
'CT_IMG_DECODE_100k_SKPs',
|
2016-08-09 20:46:48 +00:00
|
|
|
path_config=path_config,
|
|
|
|
swarm_out_dir='[SWARM_OUT_DIR]',
|
|
|
|
ct_num_slaves=ct_num_slaves,
|
|
|
|
num_per_slave=num_per_slave,
|
2017-01-17 19:35:06 +00:00
|
|
|
repository='https://skia.googlesource.com/skia.git',
|
2016-08-09 20:46:48 +00:00
|
|
|
revision=skia_revision,
|
|
|
|
)
|
|
|
|
)
|
|
|
|
|
|
|
|
yield(
|
|
|
|
api.test('CT_GPU_BENCH_1k_SKPs') +
|
|
|
|
api.properties(
|
2018-03-21 21:27:39 +00:00
|
|
|
buildername=(
|
|
|
|
'Perf-Ubuntu14-Clang-Golo-GPU-QuadroP400-x86_64-Release-All-'
|
|
|
|
'CT_BENCH_1k_SKPs'),
|
2016-08-09 20:46:48 +00:00
|
|
|
path_config=path_config,
|
|
|
|
swarm_out_dir='[SWARM_OUT_DIR]',
|
|
|
|
ct_num_slaves=ct_num_slaves,
|
|
|
|
num_per_slave=num_per_slave,
|
2017-01-17 19:35:06 +00:00
|
|
|
repository='https://skia.googlesource.com/skia.git',
|
2016-08-09 20:46:48 +00:00
|
|
|
revision=skia_revision,
|
|
|
|
) +
|
|
|
|
api.path.exists(
|
2016-11-21 21:06:19 +00:00
|
|
|
api.path['start_dir'].join('skia'),
|
|
|
|
api.path['start_dir'].join('src')
|
2016-08-09 20:46:48 +00:00
|
|
|
)
|
|
|
|
)
|
|
|
|
|
|
|
|
yield(
|
|
|
|
api.test('CT_CPU_BENCH_10k_SKPs') +
|
|
|
|
api.properties(
|
2018-03-21 21:27:39 +00:00
|
|
|
buildername=('Perf-Ubuntu14-Clang-GCE-CPU-AVX2-x86_64-Release-All-'
|
2017-10-16 01:05:58 +00:00
|
|
|
'CT_BENCH_10k_SKPs'),
|
2016-08-09 20:46:48 +00:00
|
|
|
path_config=path_config,
|
|
|
|
swarm_out_dir='[SWARM_OUT_DIR]',
|
|
|
|
ct_num_slaves=ct_num_slaves,
|
|
|
|
num_per_slave=num_per_slave,
|
2017-01-17 19:35:06 +00:00
|
|
|
repository='https://skia.googlesource.com/skia.git',
|
2016-08-09 20:46:48 +00:00
|
|
|
revision=skia_revision,
|
|
|
|
) +
|
|
|
|
api.path.exists(
|
2016-11-21 21:06:19 +00:00
|
|
|
api.path['start_dir'].join('skia'),
|
|
|
|
api.path['start_dir'].join('src')
|
2016-08-09 20:46:48 +00:00
|
|
|
)
|
|
|
|
)
|
|
|
|
|
|
|
|
yield(
|
|
|
|
api.test('CT_GPU_BENCH_10k_SKPs') +
|
|
|
|
api.properties(
|
2018-03-21 21:27:39 +00:00
|
|
|
buildername=(
|
|
|
|
'Perf-Ubuntu14-Clang-Golo-GPU-QuadroP400-x86_64-Release-All-'
|
|
|
|
'CT_BENCH_10k_SKPs'),
|
2016-08-09 20:46:48 +00:00
|
|
|
path_config=path_config,
|
|
|
|
swarm_out_dir='[SWARM_OUT_DIR]',
|
|
|
|
ct_num_slaves=ct_num_slaves,
|
|
|
|
num_per_slave=num_per_slave,
|
2017-01-17 19:35:06 +00:00
|
|
|
repository='https://skia.googlesource.com/skia.git',
|
2016-08-09 20:46:48 +00:00
|
|
|
revision=skia_revision,
|
|
|
|
) +
|
|
|
|
api.path.exists(
|
2016-11-21 21:06:19 +00:00
|
|
|
api.path['start_dir'].join('skia'),
|
|
|
|
api.path['start_dir'].join('src')
|
2016-08-09 20:46:48 +00:00
|
|
|
)
|
|
|
|
)
|
|
|
|
|
|
|
|
yield(
|
|
|
|
api.test('CT_DM_1m_SKPs') +
|
|
|
|
api.properties(
|
2018-03-21 21:27:39 +00:00
|
|
|
buildername=('Test-Ubuntu14-Clang-GCE-CPU-AVX2-x86_64-Debug-All-'
|
2017-10-16 01:05:58 +00:00
|
|
|
'CT_DM_1m_SKPs'),
|
2016-08-09 20:46:48 +00:00
|
|
|
path_config=path_config,
|
|
|
|
swarm_out_dir='[SWARM_OUT_DIR]',
|
|
|
|
ct_num_slaves=ct_num_slaves,
|
|
|
|
num_per_slave=num_per_slave,
|
2017-01-17 19:35:06 +00:00
|
|
|
repository='https://skia.googlesource.com/skia.git',
|
2016-08-09 20:46:48 +00:00
|
|
|
revision=skia_revision,
|
|
|
|
)
|
|
|
|
)
|
|
|
|
|
|
|
|
yield (
|
|
|
|
api.test('CT_DM_SKPs_UnknownBuilder') +
|
|
|
|
api.properties(
|
2018-03-21 21:27:39 +00:00
|
|
|
buildername=('Test-Ubuntu14-Clang-GCE-CPU-AVX2-x86_64-Debug-All-' +
|
2017-08-08 11:39:09 +00:00
|
|
|
'CT_DM_UnknownRepo_SKPs'),
|
2016-08-09 20:46:48 +00:00
|
|
|
path_config=path_config,
|
|
|
|
swarm_out_dir='[SWARM_OUT_DIR]',
|
|
|
|
ct_num_slaves=ct_num_slaves,
|
|
|
|
num_per_slave=num_per_slave,
|
2017-01-17 19:35:06 +00:00
|
|
|
repository='https://skia.googlesource.com/skia.git',
|
2016-08-09 20:46:48 +00:00
|
|
|
revision=skia_revision,
|
|
|
|
) +
|
|
|
|
api.expect_exception('Exception')
|
|
|
|
)
|
|
|
|
|
|
|
|
yield (
|
|
|
|
api.test('CT_10k_SKPs_UnknownBuilder') +
|
|
|
|
api.properties(
|
2018-03-21 21:27:39 +00:00
|
|
|
buildername=('Test-Ubuntu14-Clang-GCE-CPU-AVX2-x86_64-Debug-All-' +
|
2017-08-08 11:39:09 +00:00
|
|
|
'CT_UnknownTool_10k_SKPs'),
|
2016-08-09 20:46:48 +00:00
|
|
|
path_config=path_config,
|
|
|
|
swarm_out_dir='[SWARM_OUT_DIR]',
|
|
|
|
ct_num_slaves=ct_num_slaves,
|
|
|
|
num_per_slave=num_per_slave,
|
2017-01-17 19:35:06 +00:00
|
|
|
repository='https://skia.googlesource.com/skia.git',
|
2016-08-09 20:46:48 +00:00
|
|
|
revision=skia_revision,
|
|
|
|
) +
|
|
|
|
api.expect_exception('Exception')
|
|
|
|
)
|
|
|
|
|
|
|
|
yield(
|
|
|
|
api.test('CT_DM_1m_SKPs_slave3_failure') +
|
2017-03-06 14:06:53 +00:00
|
|
|
api.step_data('ct-dm-3', retcode=1) +
|
2016-08-09 20:46:48 +00:00
|
|
|
api.properties(
|
2018-03-21 21:27:39 +00:00
|
|
|
buildername=('Test-Ubuntu14-Clang-GCE-CPU-AVX2-x86_64-Debug-All-' +
|
2017-10-16 01:05:58 +00:00
|
|
|
'CT_DM_1m_SKPs'),
|
2016-08-09 20:46:48 +00:00
|
|
|
path_config=path_config,
|
|
|
|
swarm_out_dir='[SWARM_OUT_DIR]',
|
|
|
|
ct_num_slaves=ct_num_slaves,
|
|
|
|
num_per_slave=num_per_slave,
|
2017-01-17 19:35:06 +00:00
|
|
|
repository='https://skia.googlesource.com/skia.git',
|
2016-08-09 20:46:48 +00:00
|
|
|
revision=skia_revision,
|
|
|
|
)
|
|
|
|
)
|
|
|
|
|
|
|
|
yield(
|
|
|
|
api.test('CT_DM_1m_SKPs_2slaves_failure') +
|
2017-03-06 14:06:53 +00:00
|
|
|
api.step_data('ct-dm-1', retcode=1) +
|
|
|
|
api.step_data('ct-dm-3', retcode=1) +
|
2016-08-09 20:46:48 +00:00
|
|
|
api.properties(
|
2018-03-21 21:27:39 +00:00
|
|
|
buildername=('Test-Ubuntu14-Clang-GCE-CPU-AVX2-x86_64-Debug-All'+
|
2017-10-16 01:05:58 +00:00
|
|
|
'-CT_DM_1m_SKPs'),
|
2016-08-09 20:46:48 +00:00
|
|
|
path_config=path_config,
|
|
|
|
swarm_out_dir='[SWARM_OUT_DIR]',
|
|
|
|
ct_num_slaves=ct_num_slaves,
|
|
|
|
num_per_slave=num_per_slave,
|
2017-01-17 19:35:06 +00:00
|
|
|
repository='https://skia.googlesource.com/skia.git',
|
2016-08-09 20:46:48 +00:00
|
|
|
revision=skia_revision,
|
|
|
|
)
|
|
|
|
)
|
|
|
|
|
2018-03-21 21:27:39 +00:00
|
|
|
builder = 'Test-Ubuntu14-Clang-GCE-CPU-AVX2-x86_64-Debug-All-CT_DM_10k_SKPs'
|
2016-08-09 20:46:48 +00:00
|
|
|
yield(
|
|
|
|
api.test('CT_DM_10k_SKPs_Trybot') +
|
|
|
|
api.properties(
|
2017-04-10 13:56:10 +00:00
|
|
|
buildername=builder,
|
2016-08-09 20:46:48 +00:00
|
|
|
path_config=path_config,
|
|
|
|
swarm_out_dir='[SWARM_OUT_DIR]',
|
|
|
|
ct_num_slaves=ct_num_slaves,
|
|
|
|
num_per_slave=num_per_slave,
|
2017-01-17 19:35:06 +00:00
|
|
|
repository='https://skia.googlesource.com/skia.git',
|
2017-04-10 13:56:10 +00:00
|
|
|
patch_storage='gerrit') +
|
|
|
|
api.properties.tryserver(
|
|
|
|
buildername=builder,
|
|
|
|
gerrit_project='skia',
|
|
|
|
gerrit_url='https://skia-review.googlesource.com/',
|
2016-08-09 20:46:48 +00:00
|
|
|
)
|
|
|
|
)
|
|
|
|
|
2018-03-21 21:27:39 +00:00
|
|
|
builder = ('Test-Ubuntu14-Clang-GCE-CPU-AVX2-x86_64-Debug-All-'
|
2017-10-16 01:05:58 +00:00
|
|
|
'CT_IMG_DECODE_10k_SKPs')
|
2016-08-09 20:46:48 +00:00
|
|
|
yield(
|
|
|
|
api.test('CT_IMG_DECODE_10k_SKPs_Trybot') +
|
|
|
|
api.properties(
|
2017-04-10 13:56:10 +00:00
|
|
|
buildername=builder,
|
2016-08-09 20:46:48 +00:00
|
|
|
path_config=path_config,
|
|
|
|
swarm_out_dir='[SWARM_OUT_DIR]',
|
|
|
|
ct_num_slaves=ct_num_slaves,
|
|
|
|
num_per_slave=num_per_slave,
|
2017-01-17 19:35:06 +00:00
|
|
|
repository='https://skia.googlesource.com/skia.git',
|
2016-08-09 20:46:48 +00:00
|
|
|
revision=skia_revision,
|
2017-04-10 13:56:10 +00:00
|
|
|
patch_storage='gerrit') +
|
|
|
|
api.properties.tryserver(
|
|
|
|
buildername=builder,
|
|
|
|
gerrit_project='skia',
|
|
|
|
gerrit_url='https://skia-review.googlesource.com/',
|
2016-08-09 20:46:48 +00:00
|
|
|
)
|
|
|
|
)
|