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

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

Issue 1782333002: Add bisect config validation. (Closed) Base URL: https://chromium.googlesource.com/chromium/tools/build.git@master
Patch Set: Created 4 years, 9 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 import json 5 import json
6 6
7 DEPS = [ 7 DEPS = [
8 'auto_bisect', 8 'auto_bisect',
9 'chromium_tests', 9 'chromium_tests',
10 'recipe_engine/json', 10 'recipe_engine/json',
(...skipping 324 matching lines...) Expand 10 before | Expand all | Expand 10 after
335 """Returns a sample bisect config dict with some fields overridden.""" 335 """Returns a sample bisect config dict with some fields overridden."""
336 example_config = { 336 example_config = {
337 'test_type': 'perf', 337 'test_type': 'perf',
338 'command': ( 338 'command': (
339 'src/tools/perf/run_benchmark -v --browser=release smoothness.' 339 'src/tools/perf/run_benchmark -v --browser=release smoothness.'
340 'tough_scrolling_cases'), 340 'tough_scrolling_cases'),
341 'good_revision': '314015', 341 'good_revision': '314015',
342 'bad_revision': '314017', 342 'bad_revision': '314017',
343 'metric': 'mean_input_event_latency/mean_input_event_latency', 343 'metric': 'mean_input_event_latency/mean_input_event_latency',
344 'repeat_count': '2', 344 'repeat_count': '2',
345 'bug_id': '-1',
345 'max_time_minutes': '5', 346 'max_time_minutes': '5',
346 'bug_id': '',
347 'gs_bucket': 'chrome-perf', 347 'gs_bucket': 'chrome-perf',
348 'builder_host': 'master4.golo.chromium.org', 348 'builder_host': 'master4.golo.chromium.org',
349 'builder_port': '8341', 349 'builder_port': '8341',
350 'dummy_builds': 'True', 350 'dummy_builds': 'True',
351 'bypass_stats_check': 'True', 351 'bypass_stats_check': 'True',
352 'skip_gclient_ops': 'True', 352 'skip_gclient_ops': 'True',
353 'recipe_tester_name': 'linux_perf_tester' 353 'recipe_tester_name': 'linux_perf_tester',
354 } 354 }
355 if params: 355 if params:
356 example_config.update(params) 356 example_config.update(params)
357 return example_config 357 return example_config
358 358
359 359
360 def _get_step_data_for_revision(api, revision_data, include_build_steps=True): 360 def _get_step_data_for_revision(api, revision_data, include_build_steps=True):
361 """Generator that produces step patches for fake results.""" 361 """Generator that produces step patches for fake results."""
362 commit_pos = revision_data['commit_pos'] 362 commit_pos = revision_data['commit_pos']
363 commit_hash = revision_data['hash'] 363 commit_hash = revision_data['hash']
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
400 yield api.step_data(step_name, stdout=api.raw_io.output(file_hash)) 400 yield api.step_data(step_name, stdout=api.raw_io.output(file_hash))
401 step_name = 'Expanding revision range for revision %s on depot %s' 401 step_name = 'Expanding revision range for revision %s on depot %s'
402 step_name %= (interval[-1], depot_name) 402 step_name %= (interval[-1], depot_name)
403 stdout = api.json.output([(r, 0) for r in interval[:-1]]) 403 stdout = api.json.output([(r, 0) for r in interval[:-1]])
404 yield api.step_data(step_name, stdout=stdout) 404 yield api.step_data(step_name, stdout=stdout)
405 405
406 if 'cl_info' in revision_data: 406 if 'cl_info' in revision_data:
407 step_name = 'Reading culprit cl information.' 407 step_name = 'Reading culprit cl information.'
408 stdout = api.json.output(revision_data['cl_info']) 408 stdout = api.json.output(revision_data['cl_info'])
409 yield api.step_data(step_name, stdout=stdout) 409 yield api.step_data(step_name, stdout=stdout)
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698