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

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

Issue 1917243002: Revert "build: roll infra_paths changes" (Closed) Base URL: https://chromium.googlesource.com/chromium/tools/build.git@master
Patch Set: Created 4 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
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 recipe_engine.types import freeze 5 from recipe_engine.types import freeze
6 6
7 7
8 DEPS = [ 8 DEPS = [
9 'archive', 9 'archive',
10 'depot_tools/bot_update', 10 'depot_tools/bot_update',
11 'depot_tools/infra_paths',
12 'chromium', 11 'chromium',
13 'file', 12 'file',
14 'recipe_engine/json', 13 'recipe_engine/json',
15 'recipe_engine/path', 14 'recipe_engine/path',
16 'recipe_engine/platform', 15 'recipe_engine/platform',
17 'recipe_engine/properties', 16 'recipe_engine/properties',
18 'recipe_engine/python', 17 'recipe_engine/python',
19 'recipe_engine/raw_io', 18 'recipe_engine/raw_io',
20 'recipe_engine/step', 19 'recipe_engine/step',
21 ] 20 ]
(...skipping 23 matching lines...) Expand all
45 }, 44 },
46 }, 45 },
47 }) 46 })
48 47
49 48
50 def gn_refs(api, step_name, args): 49 def gn_refs(api, step_name, args):
51 """Runs gn refs with given additional arguments. 50 """Runs gn refs with given additional arguments.
52 Returns: the list of matched targets. 51 Returns: the list of matched targets.
53 """ 52 """
54 step_result = api.python(step_name, 53 step_result = api.python(step_name,
55 api.infra_paths['depot_tools'].join('gn.py'), 54 api.path['depot_tools'].join('gn.py'),
56 ['--root=%s' % str(api.path['checkout']), 55 ['--root=%s' % str(api.path['checkout']),
57 'refs', 56 'refs',
58 str(api.chromium.output_dir), 57 str(api.chromium.output_dir),
59 ] + args, 58 ] + args,
60 stdout=api.raw_io.output()) 59 stdout=api.raw_io.output())
61 return step_result.stdout.split() 60 return step_result.stdout.split()
62 61
63 62
64 def RunSteps(api): 63 def RunSteps(api):
65 mastername = api.m.properties['mastername'] 64 mastername = api.m.properties['mastername']
(...skipping 20 matching lines...) Expand all
86 '--type=executable', 85 '--type=executable',
87 '--as=output', 86 '--as=output',
88 '//testing/libfuzzer:no_clusterfuzz']) 87 '//testing/libfuzzer:no_clusterfuzz'])
89 targets = list(set(all_fuzzers).difference(set(no_clusterfuzz))) 88 targets = list(set(all_fuzzers).difference(set(no_clusterfuzz)))
90 api.step.active_result.presentation.logs['all_fuzzers'] = all_fuzzers 89 api.step.active_result.presentation.logs['all_fuzzers'] = all_fuzzers
91 api.step.active_result.presentation.logs['no_clusterfuzz'] = no_clusterfuzz 90 api.step.active_result.presentation.logs['no_clusterfuzz'] = no_clusterfuzz
92 api.step.active_result.presentation.logs['targets'] = targets 91 api.step.active_result.presentation.logs['targets'] = targets
93 api.chromium.compile(targets=targets) 92 api.chromium.compile(targets=targets)
94 93
95 api.archive.clusterfuzz_archive( 94 api.archive.clusterfuzz_archive(
96 build_dir=api.infra_paths['slave_build'].join( 95 build_dir=api.path['slave_build'].join('src', 'out', 'Release'),
97 'src', 'out', 'Release'),
98 update_properties=checkout_results.json.output['properties'], 96 update_properties=checkout_results.json.output['properties'],
99 gs_bucket=bot_config['upload_bucket'], 97 gs_bucket=bot_config['upload_bucket'],
100 archive_prefix='drfuzz', 98 archive_prefix='drfuzz',
101 archive_subdir_suffix=bot_config['upload_directory'], 99 archive_subdir_suffix=bot_config['upload_directory'],
102 gs_acl='public-read') 100 gs_acl='public-read')
103 101
104 def GenTests(api): 102 def GenTests(api):
105 for test in api.chromium.gen_tests_for_builders(BUILDERS): 103 for test in api.chromium.gen_tests_for_builders(BUILDERS):
106 yield (test + 104 yield (test +
107 api.step_data('calculate all_fuzzers', 105 api.step_data('calculate all_fuzzers',
108 stdout=api.raw_io.output('target1 target2 target3')) + 106 stdout=api.raw_io.output('target1 target2 target3')) +
109 api.step_data('calculate no_clusterfuzz', 107 api.step_data('calculate no_clusterfuzz',
110 stdout=api.raw_io.output('target1')) 108 stdout=api.raw_io.output('target1'))
111 ) 109 )
112 110
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698