OLD | NEW |
1 #!/usr/bin/env python | 1 #!/usr/bin/env python |
2 # Copyright 2014 The Chromium Authors. All rights reserved. | 2 # Copyright 2014 The Chromium Authors. All rights reserved. |
3 # Use of this source code is governed by a BSD-style license that can be | 3 # Use of this source code is governed by a BSD-style license that can be |
4 # found in the LICENSE file. | 4 # found in the LICENSE file. |
5 | 5 |
6 """Starts bisect try jobs on multiple platforms using known-good configs. | 6 """Starts bisect try jobs on multiple platforms using known-good configs. |
7 | 7 |
8 The purpose of this script is to serve as an integration test for the | 8 The purpose of this script is to serve as an integration test for the |
9 auto-bisect project by starting try jobs for various config types and | 9 auto-bisect project by starting try jobs for various config types and |
10 various platforms. | 10 various platforms. |
(...skipping 13 matching lines...) Expand all Loading... |
24 import sys | 24 import sys |
25 | 25 |
26 SCRIPT_DIR = os.path.abspath(os.path.dirname(__file__)) | 26 SCRIPT_DIR = os.path.abspath(os.path.dirname(__file__)) |
27 BISECT_CONFIG = os.path.join(SCRIPT_DIR, os.path.pardir, 'bisect.cfg') | 27 BISECT_CONFIG = os.path.join(SCRIPT_DIR, os.path.pardir, 'bisect.cfg') |
28 PERF_TEST_CONFIG = os.path.join( | 28 PERF_TEST_CONFIG = os.path.join( |
29 SCRIPT_DIR, os.path.pardir, os.path.pardir, 'run-perf-test.cfg') | 29 SCRIPT_DIR, os.path.pardir, os.path.pardir, 'run-perf-test.cfg') |
30 PLATFORM_BOT_MAP = { | 30 PLATFORM_BOT_MAP = { |
31 'linux': ['linux_perf_bisect'], | 31 'linux': ['linux_perf_bisect'], |
32 'mac': ['mac_perf_bisect', 'mac_10_9_perf_bisect'], | 32 'mac': ['mac_perf_bisect', 'mac_10_9_perf_bisect'], |
33 'win': ['win_perf_bisect', 'win_8_perf_bisect', 'win_xp_perf_bisect'], | 33 'win': ['win_perf_bisect', 'win_8_perf_bisect', 'win_xp_perf_bisect'], |
| 34 'winx64': ['win_x64_perf_bisect'], |
34 'android': [ | 35 'android': [ |
35 'android_gn_perf_bisect', | 36 'android_gn_perf_bisect', |
36 'android_nexus4_perf_bisect', | 37 'android_nexus4_perf_bisect', |
37 'android_nexus5_perf_bisect', | 38 'android_nexus5_perf_bisect', |
38 'android_nexus7_perf_bisect', | 39 'android_nexus7_perf_bisect', |
39 'android_nexus10_perf_bisect', | 40 'android_nexus10_perf_bisect', |
40 ], | 41 ], |
41 } | 42 } |
42 SVN_URL = 'svn://svn.chromium.org/chrome-try/try-perf' | 43 SVN_URL = 'svn://svn.chromium.org/chrome-try/try-perf' |
43 AUTO_COMMIT_MESSAGE = 'Automatic commit for bisect try job.' | 44 AUTO_COMMIT_MESSAGE = 'Automatic commit for bisect try job.' |
(...skipping 98 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
142 subprocess.CalledProcessError: The return-code was non-zero. | 143 subprocess.CalledProcessError: The return-code was non-zero. |
143 """ | 144 """ |
144 logging.debug('Running %s', command) | 145 logging.debug('Running %s', command) |
145 if dry_run: | 146 if dry_run: |
146 return 'Did not run command because this is a dry run.' | 147 return 'Did not run command because this is a dry run.' |
147 return subprocess.check_output(command) | 148 return subprocess.check_output(command) |
148 | 149 |
149 | 150 |
150 if __name__ == '__main__': | 151 if __name__ == '__main__': |
151 sys.exit(main(sys.argv)) | 152 sys.exit(main(sys.argv)) |
OLD | NEW |