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 = [
|
2017-06-16 17:10:22 +00:00
|
|
|
'core',
|
|
|
|
'ct',
|
2017-02-27 13:58:13 +00:00
|
|
|
'depot_tools/gsutil',
|
2017-06-16 17:10:22 +00:00
|
|
|
'flavor',
|
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.
|
2017-05-24 13:18:03 +00:00
|
|
|
DEFAULT_SKPS_CHROMIUM_BUILD = 'c37e844a6f8708-eee762104c75bd'
|
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:
|
|
|
|
ct_page_type = '10k'
|
|
|
|
num_pages = 1000
|
|
|
|
elif '10k' in buildername:
|
|
|
|
ct_page_type = '10k'
|
|
|
|
num_pages = 10000
|
|
|
|
elif '100k' in buildername:
|
|
|
|
ct_page_type = '100k'
|
|
|
|
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'
|
|
|
|
build_target = 'dm'
|
|
|
|
elif 'BENCH' in buildername:
|
|
|
|
skia_tool = 'nanobench'
|
|
|
|
build_target = 'nanobench'
|
|
|
|
elif 'IMG_DECODE' in buildername:
|
|
|
|
skia_tool = 'get_images_from_skps'
|
|
|
|
build_target = 'tools'
|
|
|
|
else:
|
|
|
|
raise Exception('Do not recognise the buildername %s.' % buildername)
|
|
|
|
|
|
|
|
api.core.setup()
|
|
|
|
api.flavor.compile(build_target)
|
|
|
|
|
|
|
|
# Required paths.
|
|
|
|
infrabots_dir = api.vars.skia_dir.join('infra', 'bots')
|
|
|
|
isolate_dir = infrabots_dir.join('ct')
|
|
|
|
isolate_path = isolate_dir.join(CT_SKPS_ISOLATE)
|
|
|
|
|
|
|
|
api.run.copy_build_products(
|
|
|
|
api.flavor.out_dir,
|
|
|
|
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
|
|
|
|
skps_dir = api.vars.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.
|
|
|
|
blacklists_dir = api.vars.skia_dir.join('infra', 'bots', 'ct', 'blacklists')
|
|
|
|
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,
|
|
|
|
'GIT_HASH': api.vars.got_revision,
|
|
|
|
'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.
|
|
|
|
dimensions={'os': 'Ubuntu-14.04', 'cpu': 'x86-64', 'pool': 'Chrome'}
|
|
|
|
if 'GPU' in buildername:
|
|
|
|
dimensions['gpu'] = '10de:104a'
|
2017-09-13 12:03:37 +00:00
|
|
|
# See crbug.com/700053
|
|
|
|
dimensions['pool'] = 'Chrome-GPU'
|
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()
|
|
|
|
gs_dest_dir = 'ct/%s/%d/%02d/%02d/%02d/' % (
|
|
|
|
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-03-20 19:40:12 +00:00
|
|
|
api.gsutil.upload(
|
|
|
|
name='upload json output',
|
2017-06-16 17:10:22 +00:00
|
|
|
source=json_output,
|
2017-03-20 19:40:12 +00:00
|
|
|
bucket='skia-perf',
|
|
|
|
dest=gs_dest_dir,
|
|
|
|
args=['-R']
|
|
|
|
)
|
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(
|
2017-08-08 11:39:09 +00:00
|
|
|
buildername=('Test-Ubuntu14-GCC-GCE-CPU-AVX2-x86_64-Debug-' +
|
|
|
|
'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(
|
2017-08-08 11:39:09 +00:00
|
|
|
buildername='Test-Ubuntu14-GCC-GCE-CPU-AVX2-x86_64-Debug-CT_IMG_DECODE_'
|
2016-08-09 20:46:48 +00:00
|
|
|
'10k_SKPs',
|
|
|
|
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(
|
2017-08-08 11:39:09 +00:00
|
|
|
buildername=('Test-Ubuntu14-GCC-GCE-CPU-AVX2-x86_64-Debug-' +
|
|
|
|
'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(
|
2017-08-08 11:39:09 +00:00
|
|
|
buildername='Test-Ubuntu14-GCC-GCE-CPU-AVX2-x86_64-Debug-CT_IMG_DECODE_'
|
2016-08-09 20:46:48 +00:00
|
|
|
'100k_SKPs',
|
|
|
|
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(
|
|
|
|
buildername=
|
2017-08-08 11:39:09 +00:00
|
|
|
'Perf-Ubuntu14-GCC-Golo-GPU-GT610-x86_64-Release-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(
|
|
|
|
buildername=
|
2017-08-08 11:39:09 +00:00
|
|
|
'Perf-Ubuntu14-GCC-GCE-CPU-AVX2-x86_64-Release-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(
|
|
|
|
buildername=
|
2017-08-08 11:39:09 +00:00
|
|
|
'Perf-Ubuntu14-GCC-Golo-GPU-GT610-x86_64-Release-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(
|
2017-08-08 11:39:09 +00:00
|
|
|
buildername='Test-Ubuntu14-GCC-GCE-CPU-AVX2-x86_64-Debug-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(
|
2017-08-08 11:39:09 +00:00
|
|
|
buildername=('Test-Ubuntu14-GCC-GCE-CPU-AVX2-x86_64-Debug-' +
|
|
|
|
'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(
|
2017-08-08 11:39:09 +00:00
|
|
|
buildername=('Test-Ubuntu14-GCC-GCE-CPU-AVX2-x86_64-Debug-' +
|
|
|
|
'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(
|
2017-08-08 11:39:09 +00:00
|
|
|
buildername='Test-Ubuntu14-GCC-GCE-CPU-AVX2-x86_64-Debug-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(
|
2017-08-08 11:39:09 +00:00
|
|
|
buildername='Test-Ubuntu14-GCC-GCE-CPU-AVX2-x86_64-Debug-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,
|
|
|
|
)
|
|
|
|
)
|
|
|
|
|
2017-08-08 11:39:09 +00:00
|
|
|
builder = 'Test-Ubuntu14-GCC-GCE-CPU-AVX2-x86_64-Debug-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
|
|
|
)
|
|
|
|
)
|
|
|
|
|
2017-08-08 11:39:09 +00:00
|
|
|
builder = ('Test-Ubuntu14-GCC-GCE-CPU-AVX2-x86_64-Debug-CT_IMG_DECODE_'
|
2017-04-18 19:49:27 +00:00
|
|
|
'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
|
|
|
)
|
|
|
|
)
|