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

Side by Side Diff: scripts/slave/recipe_modules/chromium/api.py

Issue 2247373002: Refactor stages 1, 2 and test_api overhaul. (Closed) Base URL: https://chromium.googlesource.com/chromium/tools/build.git@master
Patch Set: Rebasing, addressing feedback. Created 4 years, 3 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 2013 The Chromium Authors. All rights reserved. 1 # Copyright 2013 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 import re 5 import re
6 6
7 from recipe_engine import recipe_api 7 from recipe_engine import recipe_api
8 from recipe_engine import util as recipe_util 8 from recipe_engine import util as recipe_util
9 9
10 class TestLauncherFilterFileInputPlaceholder(recipe_util.InputPlaceholder): 10 class TestLauncherFilterFileInputPlaceholder(recipe_util.InputPlaceholder):
(...skipping 302 matching lines...) Expand 10 before | Expand all | Expand 10 after
313 full_args.append('--perf-dashboard-id=%s' % perf_dashboard_id) 313 full_args.append('--perf-dashboard-id=%s' % perf_dashboard_id)
314 if perf_id: 314 if perf_id:
315 full_args.append('--perf-id=%s' % perf_id) 315 full_args.append('--perf-id=%s' % perf_id)
316 if perf_config: 316 if perf_config:
317 full_args.extend(['--perf-config', perf_config]) 317 full_args.extend(['--perf-config', perf_config])
318 # This replaces the step_name that used to be sent via factory_properties. 318 # This replaces the step_name that used to be sent via factory_properties.
319 if test_type: 319 if test_type:
320 full_args.append('--test-type=%s' % test_type) 320 full_args.append('--test-type=%s' % test_type)
321 step_name = name or t_name 321 step_name = name or t_name
322 full_args.append('--step-name=%s' % step_name) 322 full_args.append('--step-name=%s' % step_name)
323 if chartjson_file: 323 if chartjson_file and not 'step_test_data' in kwargs:
324 full_args.append('--chartjson-file') 324 full_args.append('--chartjson-file')
325 full_args.append(self.m.json.output()) 325 full_args.append(self.m.json.output())
326 kwargs['step_test_data'] = lambda: self.m.json.test_api.output([]) 326 kwargs['step_test_data'] = lambda: self.m.json.test_api.output([])
327 if test_launcher_summary_output: 327 if test_launcher_summary_output:
328 full_args.extend([ 328 full_args.extend([
329 '--test-launcher-summary-output', 329 '--test-launcher-summary-output',
330 test_launcher_summary_output 330 test_launcher_summary_output
331 ]) 331 ])
332 if flakiness_dash: 332 if flakiness_dash:
333 full_args.extend([ 333 full_args.extend([
(...skipping 468 matching lines...) Expand 10 before | Expand all | Expand 10 after
802 })) 802 }))
803 803
804 def get_annotate_by_test_name(self, test_name): 804 def get_annotate_by_test_name(self, test_name):
805 return 'graphing' 805 return 'graphing'
806 806
807 def download_lto_plugin(self): 807 def download_lto_plugin(self):
808 return self.m.python( 808 return self.m.python(
809 name='download LTO plugin', 809 name='download LTO plugin',
810 script=self.m.path['checkout'].join( 810 script=self.m.path['checkout'].join(
811 'build', 'download_gold_plugin.py')) 811 'build', 'download_gold_plugin.py'))
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698