OLD | NEW |
(Empty) | |
| 1 #!/usr/bin/env python |
| 2 # Copyright 2014 the V8 project 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 import os |
| 7 import sys |
| 8 import find_depot_tools |
| 9 |
| 10 find_depot_tools.add_depot_tools_to_path() |
| 11 |
| 12 import rietveld |
| 13 from git_cl import Changelist |
| 14 |
| 15 BOTS = [ |
| 16 'v8_linux32_perf_try', |
| 17 'v8_linux64_perf_try', |
| 18 ] |
| 19 |
| 20 def main(tests): |
| 21 cl = Changelist() |
| 22 if not cl.GetIssue(): |
| 23 print 'Need to upload first' |
| 24 return |
| 25 |
| 26 props = cl.GetIssueProperties() |
| 27 if props.get('closed'): |
| 28 print 'Cannot send tryjobs for a closed CL' |
| 29 return |
| 30 |
| 31 if props.get('private'): |
| 32 print 'Cannot use trybots with private issue' |
| 33 return |
| 34 |
| 35 if not tests: |
| 36 print 'Please specify the benchmarks to run as arguments.' |
| 37 return |
| 38 |
| 39 masters = {'internal.client.v8': dict((b, tests) for b in BOTS)} |
| 40 cl.RpcServer().trigger_distributed_try_jobs( |
| 41 cl.GetIssue(), cl.GetMostRecentPatchset(), cl.GetBranch(), |
| 42 False, None, masters) |
| 43 |
| 44 if __name__ == "__main__": # pragma: no cover |
| 45 sys.exit(main(sys.argv[1:])) |
OLD | NEW |