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

Side by Side Diff: scripts/slave/recipes/chromium_codesearch.py

Issue 1101673005: Extract functions from path recipe module so that step can depend on it (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/tools/build
Patch Set: Created 5 years, 7 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
« no previous file with comments | « scripts/slave/recipes/boringssl.py ('k') | scripts/slave/recipes/codesearch.py » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 # Copyright 2014 The Chromium Authors. All rights reserved. 1 # Copyright 2014 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 infra.libs.infra_types import freeze 5 from infra.libs.infra_types import freeze
6 6
7 DEPS = [ 7 DEPS = [
8 'bot_update', 8 'bot_update',
9 'chromium', 9 'chromium',
10 'commit_position', 10 'commit_position',
11 'file',
11 'gclient', 12 'gclient',
12 'gsutil', 13 'gsutil',
13 'json', 14 'json',
14 'path', 15 'path',
15 'properties', 16 'properties',
16 'python', 17 'python',
17 'raw_io', 18 'raw_io',
18 'step', 19 'step',
19 ] 20 ]
20 21
(...skipping 162 matching lines...) Expand 10 before | Expand all | Expand 10 after
183 platform, commit_position) 184 platform, commit_position)
184 api.python('create index pack', 185 api.python('create index pack',
185 api.path['build'].join('scripts', 'slave', 'chromium', 186 api.path['build'].join('scripts', 'slave', 'chromium',
186 'package_index.py'), 187 'package_index.py'),
187 ['--path-to-compdb', debug_path.join('compile_commands.json'), 188 ['--path-to-compdb', debug_path.join('compile_commands.json'),
188 '--path-to-archive-output', debug_path.join(index_pack_name)]) 189 '--path-to-archive-output', debug_path.join(index_pack_name)])
189 190
190 # Remove the llvm-build directory, so that gclient runhooks will download 191 # Remove the llvm-build directory, so that gclient runhooks will download
191 # the pre-built clang binary and not use the locally compiled binary from 192 # the pre-built clang binary and not use the locally compiled binary from
192 # the 'compile translation_unit clang tool' step. 193 # the 'compile translation_unit clang tool' step.
193 api.path.rmtree('llvm-build', 194 api.file.rmtree('llvm-build',
194 api.path['checkout'].join('third_party', 'llvm-build')) 195 api.path['checkout'].join('third_party', 'llvm-build'))
195 196
196 # Upload the index pack 197 # Upload the index pack
197 environment = bot_config.get('environment', 'prod') 198 environment = bot_config.get('environment', 'prod')
198 api.gsutil.upload( 199 api.gsutil.upload(
199 name='upload index pack', 200 name='upload index pack',
200 source=debug_path.join(index_pack_name), 201 source=debug_path.join(index_pack_name),
201 bucket=BUCKET_NAME, 202 bucket=BUCKET_NAME,
202 dest='%s/%s' % (environment, index_pack_name_with_revision) 203 dest='%s/%s' % (environment, index_pack_name_with_revision)
203 ) 204 )
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
242 api.test( 243 api.test(
243 'full_%s_fail' % _sanitize_nonalpha('ChromiumOS Codesearch Staging')) + 244 'full_%s_fail' % _sanitize_nonalpha('ChromiumOS Codesearch Staging')) +
244 api.step_data('generate compilation database for chromeos', 245 api.step_data('generate compilation database for chromeos',
245 stdout=api.raw_io.output('some compilation data')) + 246 stdout=api.raw_io.output('some compilation data')) +
246 api.step_data('generate compilation database for linux', 247 api.step_data('generate compilation database for linux',
247 stdout=api.raw_io.output('some compilation data')) + 248 stdout=api.raw_io.output('some compilation data')) +
248 api.step_data('run translation_unit clang tool', retcode=2) + 249 api.step_data('run translation_unit clang tool', retcode=2) +
249 api.properties.generic(buildername='ChromiumOS Codesearch Staging', 250 api.properties.generic(buildername='ChromiumOS Codesearch Staging',
250 mastername='chromium.fyi') 251 mastername='chromium.fyi')
251 ) 252 )
OLDNEW
« no previous file with comments | « scripts/slave/recipes/boringssl.py ('k') | scripts/slave/recipes/codesearch.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698