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

Side by Side Diff: tools/bisect_utils.py

Issue 27165006: First pass performance try bot. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Changes from review. Created 7 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
« no previous file with comments | « tools/bisect-perf-regression.py ('k') | tools/run-bisect-perf-regression.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 (c) 2013 The Chromium Authors. All rights reserved. 1 # Copyright (c) 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 """Set of operations/utilities related to checking out the depot, and 5 """Set of operations/utilities related to checking out the depot, and
6 outputting annotations on the buildbot waterfall. These are intended to be 6 outputting annotations on the buildbot waterfall. These are intended to be
7 used by the bisection scripts.""" 7 used by the bisection scripts."""
8 8
9 import errno 9 import errno
10 import os 10 import os
(...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after
82 82
83 def OutputAnnotationStepClosed(): 83 def OutputAnnotationStepClosed():
84 """Outputs appropriate annotation to signal the closing of a step to 84 """Outputs appropriate annotation to signal the closing of a step to
85 a trybot.""" 85 a trybot."""
86 print 86 print
87 print '@@@STEP_CLOSED@@@' 87 print '@@@STEP_CLOSED@@@'
88 print 88 print
89 sys.stdout.flush() 89 sys.stdout.flush()
90 90
91 91
92 def OutputAnnotationStepLink(label, url):
93 """Outputs appropriate annotation to print a link.
94
95 Args:
96 label: The name to print.
97 url: The url to print.
98 """
99 print
100 print '@@@STEP_LINK@%s@%s@@@' % (label, url)
101 print
102 sys.stdout.flush()
103
104
92 def CreateAndChangeToSourceDirectory(working_directory): 105 def CreateAndChangeToSourceDirectory(working_directory):
93 """Creates a directory 'bisect' as a subdirectory of 'working_directory'. If 106 """Creates a directory 'bisect' as a subdirectory of 'working_directory'. If
94 the function is successful, the current working directory will change to that 107 the function is successful, the current working directory will change to that
95 of the new 'bisect' directory. 108 of the new 'bisect' directory.
96 109
97 Returns: 110 Returns:
98 True if the directory was successfully created (or already existed). 111 True if the directory was successfully created (or already existed).
99 """ 112 """
100 cwd = os.getcwd() 113 cwd = os.getcwd()
101 os.chdir(working_directory) 114 os.chdir(working_directory)
(...skipping 351 matching lines...) Expand 10 before | Expand all | Expand 10 after
453 print 'Error: Could not create bisect directory.' 466 print 'Error: Could not create bisect directory.'
454 print 467 print
455 return 1 468 return 1
456 469
457 if not SetupGitDepot(opts, custom_deps): 470 if not SetupGitDepot(opts, custom_deps):
458 print 'Error: Failed to grab source.' 471 print 'Error: Failed to grab source.'
459 print 472 print
460 return 1 473 return 1
461 474
462 return 0 475 return 0
OLDNEW
« no previous file with comments | « tools/bisect-perf-regression.py ('k') | tools/run-bisect-perf-regression.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698