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

Side by Side Diff: scripts/slave/recipe_modules/archive/example.py

Issue 2394163006: Reland: Make clusterfuzz_archive include llvm-symbolizer and sancov. (Closed)
Patch Set: fix Created 4 years, 2 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
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 DEPS = [ 5 DEPS = [
6 'archive', 6 'archive',
7 'recipe_engine/json', 7 'recipe_engine/json',
8 'recipe_engine/path', 8 'recipe_engine/path',
9 'recipe_engine/platform', 9 'recipe_engine/platform',
10 'recipe_engine/properties', 10 'recipe_engine/properties',
11 ] 11 ]
12 12
13 TEST_HASH_MAIN='5e3250aadda2b170692f8e762d43b7e8deadbeef' 13 TEST_HASH_MAIN='5e3250aadda2b170692f8e762d43b7e8deadbeef'
14 TEST_COMMIT_POSITON_MAIN='refs/heads/B1@{#123456}' 14 TEST_COMMIT_POSITON_MAIN='refs/heads/B1@{#123456}'
15 15
16 TEST_HASH_COMPONENT='deadbeefdda2b170692f8e762d43b7e8e7a96686' 16 TEST_HASH_COMPONENT='deadbeefdda2b170692f8e762d43b7e8e7a96686'
17 TEST_COMMIT_POSITON_COMPONENT='refs/heads/master@{#234}' 17 TEST_COMMIT_POSITON_COMPONENT='refs/heads/master@{#234}'
18 18
19 19
20 def RunSteps(api): 20 def RunSteps(api):
21 if 'build_archive_url' in api.properties: 21 if 'build_archive_url' in api.properties:
22 api.archive.zip_and_upload_build( 22 api.archive.zip_and_upload_build(
23 step_name='zip build', 23 step_name='zip build',
24 target=api.path['checkout'].join('/Release/out')) 24 target=api.path['checkout'].join('/Release/out'))
25 return 25 return
26
27 if 'no_llvm' not in api.properties:
28 llvm_bin_dir = api.path['checkout'].join('third_party', 'llvm-build',
29 'Release+Asserts', 'bin')
30 api.path.mock_add_paths(api.path.join(llvm_bin_dir, 'llvm-symbolizer'))
31 api.path.mock_add_paths(api.path.join(llvm_bin_dir, 'sancov'))
32
33 build_dir = api.path['slave_build'].join('src', 'out', 'Release')
34
26 api.archive.clusterfuzz_archive( 35 api.archive.clusterfuzz_archive(
27 build_dir=api.path['slave_build'].join('src', 'out', 'Release'), 36 build_dir=build_dir,
28 update_properties=api.properties.get('update_properties'), 37 update_properties=api.properties.get('update_properties'),
29 gs_bucket='chromium', 38 gs_bucket='chromium',
30 gs_acl=api.properties.get('gs_acl', ''), 39 gs_acl=api.properties.get('gs_acl', ''),
31 archive_prefix='chrome-asan', 40 archive_prefix='chrome-asan',
32 archive_subdir_suffix=api.properties.get('archive_subdir_suffix', ''), 41 archive_subdir_suffix=api.properties.get('archive_subdir_suffix', ''),
33 revision_dir=api.properties.get('revision_dir'), 42 revision_dir=api.properties.get('revision_dir'),
34 primary_project=api.properties.get('primary_project'), 43 primary_project=api.properties.get('primary_project'),
35 ) 44 )
36 45
37 46
(...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after
111 api.platform('linux', 64) + 120 api.platform('linux', 64) +
112 api.properties( 121 api.properties(
113 update_properties=update_properties, 122 update_properties=update_properties,
114 revision_dir='x10', 123 revision_dir='x10',
115 primary_project='x10', 124 primary_project='x10',
116 ) + 125 ) +
117 api.override_step_data( 126 api.override_step_data(
118 'listdir build_dir', api.json.output(['chrome'])) 127 'listdir build_dir', api.json.output(['chrome']))
119 ) 128 )
120 129
130 update_properties = {
131 'got_revision': TEST_HASH_MAIN,
132 'got_revision_cp': TEST_COMMIT_POSITON_MAIN,
133 }
134 yield (
135 api.test('cf_archiving_no_llvm') +
136 api.platform('linux', 64) +
137 api.properties(
138 update_properties=update_properties,
139 no_llvm=True,
140 ) +
141 api.override_step_data(
142 'listdir build_dir', api.json.output(['chrome']))
143 )
144
121 yield( 145 yield(
122 api.test('zip_and_upload_custom_location') + 146 api.test('zip_and_upload_custom_location') +
123 api.platform('linux', 64) + 147 api.platform('linux', 64) +
124 api.properties( 148 api.properties(
125 build_archive_url='gs://dummy-bucket/Linux Release/full-build.zip') 149 build_archive_url='gs://dummy-bucket/Linux Release/full-build.zip')
126 ) 150 )
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698