Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 #!/usr/bin/env python | 1 #!/usr/bin/env python |
| 2 # Copyright (c) 2013 The Chromium Authors. All rights reserved. | 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 | 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 """Run Performance Test Bisect Tool | 6 """Run Performance Test Bisect Tool |
| 7 | 7 |
| 8 This script is used by a trybot to run the src/tools/bisect-perf-regression.py | 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. It will | 9 script with the parameters specified in run-bisect-perf-regression.cfg. It will |
| 10 check out a copy of the depot in a subdirectory 'bisect' of the working | 10 check out a copy of the depot in a subdirectory 'bisect' of the working |
| 11 directory provided, and run the bisect-perf-regression.py script there. | 11 directory provided, and run the bisect-perf-regression.py script there. |
| 12 | 12 |
| 13 """ | 13 """ |
| 14 | 14 |
| 15 import imp | 15 import imp |
| 16 import optparse | 16 import optparse |
| 17 import os | 17 import os |
| 18 import platform | |
| 18 import subprocess | 19 import subprocess |
| 19 import sys | 20 import sys |
| 20 import traceback | 21 import traceback |
| 21 | 22 |
| 22 import bisect_utils | 23 import bisect_utils |
| 23 bisect = imp.load_source('bisect-perf-regression', | 24 bisect = imp.load_source('bisect-perf-regression', |
| 24 os.path.join(os.path.abspath(os.path.dirname(sys.argv[0])), | 25 os.path.join(os.path.abspath(os.path.dirname(sys.argv[0])), |
| 25 'bisect-perf-regression.py')) | 26 'bisect-perf-regression.py')) |
| 26 | 27 |
| 27 | 28 |
| (...skipping 353 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 381 print | 382 print |
| 382 return 1 | 383 return 1 |
| 383 | 384 |
| 384 if 'android' in config['command']: | 385 if 'android' in config['command']: |
| 385 if 'android-chrome' in config['command']: | 386 if 'android-chrome' in config['command']: |
| 386 cmd.extend(['--target_platform', 'android-chrome']) | 387 cmd.extend(['--target_platform', 'android-chrome']) |
| 387 else: | 388 else: |
| 388 cmd.extend(['--target_platform', 'android']) | 389 cmd.extend(['--target_platform', 'android']) |
| 389 | 390 |
| 390 if path_to_goma: | 391 if path_to_goma: |
| 392 # crbug.com/330900. For Windows XP platforms, GOMA service is not supported. | |
| 393 # Moreover we don't compile chorme when gs_bucket flag is set instead | |
|
shatch
2014/04/25 20:11:54
not: chrome
| |
| 394 # use builds archives, therefore ignore GOMA service for Windows XP. | |
| 395 if config.get('gs_bucket') and platform.release() == 'XP': | |
|
shatch
2014/04/25 20:11:54
Should we print out something to indicate that gom
| |
| 396 path_to_goma = None | |
| 391 cmd.append('--use_goma') | 397 cmd.append('--use_goma') |
| 392 | 398 |
| 393 if path_to_extra_src: | 399 if path_to_extra_src: |
| 394 cmd.extend(['--extra_src', path_to_extra_src]) | 400 cmd.extend(['--extra_src', path_to_extra_src]) |
| 395 | 401 |
| 396 # These flags are used to download build archives from cloud storage if | 402 # These flags are used to download build archives from cloud storage if |
| 397 # available, otherwise will post a try_job_http request to build it on | 403 # available, otherwise will post a try_job_http request to build it on |
| 398 # tryserver. | 404 # tryserver. |
| 399 if config.get('gs_bucket'): | 405 if config.get('gs_bucket'): |
| 400 if config.get('builder_host') and config.get('builder_port'): | 406 if config.get('builder_host') and config.get('builder_port'): |
| (...skipping 99 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 500 opts.path_to_goma) | 506 opts.path_to_goma) |
| 501 | 507 |
| 502 print 'Error: Could not load config file. Double check your changes to '\ | 508 print 'Error: Could not load config file. Double check your changes to '\ |
| 503 'run-bisect-perf-regression.cfg/run-perf-test.cfg for syntax errors.' | 509 'run-bisect-perf-regression.cfg/run-perf-test.cfg for syntax errors.' |
| 504 print | 510 print |
| 505 return 1 | 511 return 1 |
| 506 | 512 |
| 507 | 513 |
| 508 if __name__ == '__main__': | 514 if __name__ == '__main__': |
| 509 sys.exit(main()) | 515 sys.exit(main()) |
| OLD | NEW |