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

Side by Side Diff: scripts/slave/recipes/skia/ct_skps.py

Issue 1919193002: build: roll infra_paths changes (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/tools/build
Patch Set: merge Created 4 years, 8 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 # Copyright 2015 The Chromium Authors. All rights reserved. 1 # Copyright 2015 The Chromium Authors. All rights reserved.
2 # Use of this source code is governed by a BSD-style license that can be 2 # Use of this source code is governed by a BSD-style license that can be
3 # found in the LICENSE file. 3 # found in the LICENSE file.
4 4
5 from common.skia import global_constants 5 from common.skia import global_constants
6 6
7 7
8 DEPS = [ 8 DEPS = [
9 'ct', 9 'ct',
10 'file', 10 'file',
11 'depot_tools/gclient', 11 'depot_tools/gclient',
12 'depot_tools/infra_paths',
12 'gsutil', 13 'gsutil',
13 'recipe_engine/path', 14 'recipe_engine/path',
14 'recipe_engine/properties', 15 'recipe_engine/properties',
15 'recipe_engine/step', 16 'recipe_engine/step',
16 'recipe_engine/time', 17 'recipe_engine/time',
17 'skia', 18 'skia',
18 'skia_swarming', 19 'skia_swarming',
19 'swarming', 20 'swarming',
20 'swarming_client', 21 'swarming_client',
21 'depot_tools/tryserver', 22 'depot_tools/tryserver',
(...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after
94 95
95 # Checkout Swarming scripts. 96 # Checkout Swarming scripts.
96 # Explicitly set revision to empty string to checkout swarming ToT. If this is 97 # Explicitly set revision to empty string to checkout swarming ToT. If this is
97 # not done then it crashes due to missing 98 # not done then it crashes due to missing
98 # api.properties['parent_got_swarming_client_revision'] which seems to be 99 # api.properties['parent_got_swarming_client_revision'] which seems to be
99 # set only for Chromium bots. 100 # set only for Chromium bots.
100 api.swarming_client.checkout(revision='') 101 api.swarming_client.checkout(revision='')
101 # Ensure swarming_client is compatible with what recipes expect. 102 # Ensure swarming_client is compatible with what recipes expect.
102 api.swarming.check_client_version() 103 api.swarming.check_client_version()
103 # Setup Go isolate binary. 104 # Setup Go isolate binary.
104 chromium_checkout = api.path['slave_build'].join('src') 105 chromium_checkout = api.infra_paths['slave_build'].join('src')
105 api.skia_swarming.setup_go_isolate(chromium_checkout.join('tools', 'luci-go')) 106 api.skia_swarming.setup_go_isolate(chromium_checkout.join('tools', 'luci-go'))
106 107
107 # Apply issue to the Skia checkout if this is a trybot run. 108 # Apply issue to the Skia checkout if this is a trybot run.
108 api.tryserver.maybe_apply_issue() 109 api.tryserver.maybe_apply_issue()
109 110
110 # Build the tool. 111 # Build the tool.
111 api.step('build %s' % skia_tool, 112 api.step('build %s' % skia_tool,
112 ['make', skia_tool, 'BUILDTYPE=%s' % configuration], 113 ['make', skia_tool, 'BUILDTYPE=%s' % configuration],
113 cwd=api.path['checkout']) 114 cwd=api.path['checkout'])
114 115
115 skps_chromium_build = api.properties.get( 116 skps_chromium_build = api.properties.get(
116 'skps_chromium_build', DEFAULT_SKPS_CHROMIUM_BUILD) 117 'skps_chromium_build', DEFAULT_SKPS_CHROMIUM_BUILD)
117 118
118 # Set build property to make finding SKPs convenient. 119 # Set build property to make finding SKPs convenient.
119 api.step.active_result.presentation.properties['Location of SKPs'] = ( 120 api.step.active_result.presentation.properties['Location of SKPs'] = (
120 'https://pantheon.corp.google.com/storage/browser/%s/skps/%s/%s/' % ( 121 'https://pantheon.corp.google.com/storage/browser/%s/skps/%s/%s/' % (
121 api.ct.CT_GS_BUCKET, ct_page_type, skps_chromium_build)) 122 api.ct.CT_GS_BUCKET, ct_page_type, skps_chromium_build))
122 123
123 # Delete swarming_temp_dir to ensure it starts from a clean slate. 124 # Delete swarming_temp_dir to ensure it starts from a clean slate.
124 api.file.rmtree('swarming temp dir', api.skia_swarming.swarming_temp_dir) 125 api.file.rmtree('swarming temp dir', api.skia_swarming.swarming_temp_dir)
125 126
126 for slave_num in range(1, ct_num_slaves + 1): 127 for slave_num in range(1, ct_num_slaves + 1):
127 # Download SKPs. 128 # Download SKPs.
128 api.ct.download_skps( 129 api.ct.download_skps(
129 ct_page_type, slave_num, skps_chromium_build, 130 ct_page_type, slave_num, skps_chromium_build,
130 api.path['slave_build'].join('skps')) 131 api.infra_paths['slave_build'].join('skps'))
131 132
132 # Create this slave's isolated.gen.json file to use for batcharchiving. 133 # Create this slave's isolated.gen.json file to use for batcharchiving.
133 isolate_dir = chromium_checkout.join('chrome') 134 isolate_dir = chromium_checkout.join('chrome')
134 isolate_path = isolate_dir.join(CT_SKPS_ISOLATE) 135 isolate_path = isolate_dir.join(CT_SKPS_ISOLATE)
135 extra_variables = { 136 extra_variables = {
136 'SLAVE_NUM': str(slave_num), 137 'SLAVE_NUM': str(slave_num),
137 'TOOL_NAME': skia_tool, 138 'TOOL_NAME': skia_tool,
138 'GIT_HASH': skia_hash, 139 'GIT_HASH': skia_hash,
139 'CONFIGURATION': configuration, 140 'CONFIGURATION': configuration,
140 } 141 }
(...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after
210 ) 211 )
211 212
212 yield( 213 yield(
213 api.test('CT_BENCH_10k_SKPs') + 214 api.test('CT_BENCH_10k_SKPs') +
214 api.properties( 215 api.properties(
215 buildername= 216 buildername=
216 'Perf-Ubuntu-GCC-GCE-CPU-AVX2-x86_64-Release-CT_BENCH_10k_SKPs', 217 'Perf-Ubuntu-GCC-GCE-CPU-AVX2-x86_64-Release-CT_BENCH_10k_SKPs',
217 ct_num_slaves=ct_num_slaves, 218 ct_num_slaves=ct_num_slaves,
218 revision=skia_revision, 219 revision=skia_revision,
219 ) + 220 ) +
220 api.path.exists( 221 api.infra_paths.exists(
221 api.path['slave_build'].join('skia'), 222 api.infra_paths['slave_build'].join('skia'),
222 api.path['slave_build'].join('src') 223 api.infra_paths['slave_build'].join('src')
223 ) 224 )
224 ) 225 )
225 226
226 yield( 227 yield(
227 api.test('CT_DM_1m_SKPs') + 228 api.test('CT_DM_1m_SKPs') +
228 api.properties( 229 api.properties(
229 buildername='Test-Ubuntu-GCC-GCE-CPU-AVX2-x86_64-Debug-CT_DM_1m_SKPs', 230 buildername='Test-Ubuntu-GCC-GCE-CPU-AVX2-x86_64-Debug-CT_DM_1m_SKPs',
230 ct_num_slaves=ct_num_slaves, 231 ct_num_slaves=ct_num_slaves,
231 revision=skia_revision, 232 revision=skia_revision,
232 ) 233 )
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after
279 api.test('CT_DM_10k_SKPs_Trybot') + 280 api.test('CT_DM_10k_SKPs_Trybot') +
280 api.properties( 281 api.properties(
281 buildername= 282 buildername=
282 'Test-Ubuntu-GCC-GCE-CPU-AVX2-x86_64-Debug-CT_DM_10k_SKPs-Trybot', 283 'Test-Ubuntu-GCC-GCE-CPU-AVX2-x86_64-Debug-CT_DM_10k_SKPs-Trybot',
283 ct_num_slaves=ct_num_slaves, 284 ct_num_slaves=ct_num_slaves,
284 rietveld='codereview.chromium.org', 285 rietveld='codereview.chromium.org',
285 issue=1499623002, 286 issue=1499623002,
286 patchset=1, 287 patchset=1,
287 ) 288 )
288 ) 289 )
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698