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

Side by Side Diff: build/util/run-bisect-perf-regression.py

Issue 12261026: Added separate checkout and config file generation to bisect script (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 7 years, 10 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
(Empty)
1 #!/usr/bin/env python
2 # Copyright (c) 2013 The Chromium Authors. All rights reserved.
3 # Use of this source code is governed by a BSD-style license that can be
4 # found in the LICENSE file.
5
6 """Run Performance Test Bisect Tool
7
8 This script is used by a trybot to run the src/tools/bisect-perf-regression.py
9 script with the parameters specified in run-bisect-perf-regression.cfg.
10
11
12 """
13
14 import subprocess
15 import imp
16 import sys
17 import os
tonyg 2013/02/14 01:03:43 alphabetize please
shatch 2013/02/14 23:00:34 Done.
18
19
20 try:
21 cfg_file = imp.load_source('config', 'run-bisect-perf-regression.cfg')
22
23 # Change to /src
24 os.chdir('../../')
tonyg 2013/02/14 01:03:43 os.chdir(os.path.join('..', '..'))
shatch 2013/02/14 23:00:34 Done.
25
26 cmd = ['./tools/bisect-perf-regression.py',
tonyg 2013/02/14 01:03:43 Don't you need to pass --output_buildbot_annotatio
tonyg 2013/02/14 01:03:43 Please use os.path.join for the path to the bisect
shatch 2013/02/14 23:00:34 Done.
shatch 2013/02/14 23:00:34 Done.
27 '-c', cfg_file.config['command'],
28 '-g', cfg_file.config['good_revision'],
29 '-b', cfg_file.config['bad_revision'],
30 '-m', cfg_file.config['metric']]
31 return_code = subprocess.call(cmd)
32
33 if return_code:
34 print 'Error: bisect-perf-regression.py returned with error %d' %\
35 return_code
36 print
37 sys.exit(1)
38 except KeyError:
39 print 'Error: Malformed config file.'
40 print
41 sys.exit(1)
42 except TypeError:
43 print 'Error: Could not load config parameters.'
44 print
45 sys.exit(1)
46 except IOError:
47 print 'Error: Could not load config file.'
48 print
49 sys.exit(1)
50
OLDNEW
« build/util/run-bisect-perf-regression.cfg ('K') | « build/util/run-bisect-perf-regression.cfg ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698