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

Unified 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: Misc fixes and changes. 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 side-by-side diff with in-line comments
Download patch
Index: build/util/run-bisect-perf-regression.py
diff --git a/build/util/run-bisect-perf-regression.py b/build/util/run-bisect-perf-regression.py
new file mode 100755
index 0000000000000000000000000000000000000000..f6b70a9a7cb0165f793164526889d4667eb482e7
--- /dev/null
+++ b/build/util/run-bisect-perf-regression.py
@@ -0,0 +1,52 @@
+#!/usr/bin/env python
+# Copyright (c) 2013 The Chromium Authors. All rights reserved.
+# Use of this source code is governed by a BSD-style license that can be
+# found in the LICENSE file.
+
+"""Run Performance Test Bisect Tool
+
+This script is used by a trybot to run the src/tools/bisect-perf-regression.py
+script with the parameters specified in run-bisect-perf-regression.cfg.
+
+
+"""
+
+import imp
+import os
+import subprocess
+import sys
+
+
+try:
+ cfg_file = imp.load_source('config', 'run-bisect-perf-regression.cfg')
+
+ # Change to /src
+ os.chdir(os.path.join('..', '..'))
+
+
+ cmd = [os.path.join('tools', 'bisect-perf-regression.py'),
+ '-c', cfg_file.config['command'],
+ '-g', cfg_file.config['good_revision'],
+ '-b', cfg_file.config['bad_revision'],
+ '-m', cfg_file.config['metric'],
+ '--output_buildbot_annotations']
+ return_code = subprocess.call(cmd)
+
+ if return_code:
+ print 'Error: bisect-perf-regression.py returned with error %d' %\
+ return_code
+ print
+ sys.exit(1)
+except KeyError:
+ print 'Error: Malformed config file.'
+ print
+ sys.exit(1)
+except TypeError:
+ print 'Error: Could not load config parameters.'
+ print
+ sys.exit(1)
+except IOError:
+ print 'Error: Could not load config file.'
+ print
+ sys.exit(1)
+
« 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