OLD | NEW |
1 #!/usr/bin/env python | 1 #!/usr/bin/env python |
2 | 2 |
3 # Copyright 2014 The Chromium Authors. All rights reserved. | 3 # Copyright 2014 The Chromium Authors. All rights reserved. |
4 # Use of this source code is governed by a BSD-style license that can be | 4 # Use of this source code is governed by a BSD-style license that can be |
5 # found in the LICENSE file. | 5 # found in the LICENSE file. |
6 | 6 |
7 import argparse | 7 import argparse |
8 import datetime | 8 import datetime |
9 import getpass | 9 import getpass |
10 import json | 10 import json |
(...skipping 116 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
127 | 127 |
128 def errorNoMostRecentBuild(waterfall_name, bot_name): | 128 def errorNoMostRecentBuild(waterfall_name, bot_name): |
129 print 'No most recent build available: %s::%s' % (waterfall_name, bot_name) | 129 print 'No most recent build available: %s::%s' % (waterfall_name, bot_name) |
130 | 130 |
131 class Waterfall: | 131 class Waterfall: |
132 BASE_URL = 'http://build.chromium.org/p/' | 132 BASE_URL = 'http://build.chromium.org/p/' |
133 BASE_BUILD_URL = BASE_URL + '%s/builders/%s' | 133 BASE_BUILD_URL = BASE_URL + '%s/builders/%s' |
134 SPECIFIC_BUILD_URL = BASE_URL + '%s/builders/%s/builds/%s' | 134 SPECIFIC_BUILD_URL = BASE_URL + '%s/builders/%s/builds/%s' |
135 BASE_JSON_BUILDERS_URL = BASE_URL + '%s/json/builders' | 135 BASE_JSON_BUILDERS_URL = BASE_URL + '%s/json/builders' |
136 BASE_JSON_BUILDS_URL = BASE_URL + '%s/json/builders/%s/builds' | 136 BASE_JSON_BUILDS_URL = BASE_URL + '%s/json/builders/%s/builds' |
137 REGULAR_WATERFALLS = ['chromium.gpu', | 137 REGULAR_WATERFALLS = ['chromium.gpu', 'chromium.gpu.fyi'] |
138 'tryserver.chromium.gpu', | |
139 'chromium.gpu.fyi'] | |
140 WEBKIT_GPU_BOTS = ['GPU Win Builder', | 138 WEBKIT_GPU_BOTS = ['GPU Win Builder', |
141 'GPU Win Builder (dbg)', | 139 'GPU Win Builder (dbg)', |
142 'GPU Win7 (NVIDIA)', | 140 'GPU Win7 (NVIDIA)', |
143 'GPU Win7 (dbg) (NVIDIA)', | 141 'GPU Win7 (dbg) (NVIDIA)', |
144 'GPU Mac Builder', | 142 'GPU Mac Builder', |
145 'GPU Mac Builder (dbg)', | 143 'GPU Mac Builder (dbg)', |
146 'GPU Mac10.7', | 144 'GPU Mac10.7', |
147 'GPU Mac10.7 (dbg)', | 145 'GPU Mac10.7 (dbg)', |
148 'GPU Linux Builder', | 146 'GPU Linux Builder', |
149 'GPU Linux Builder (dbg)', | 147 'GPU Linux Builder (dbg)', |
(...skipping 491 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
641 if args.repeat_delay is None: | 639 if args.repeat_delay is None: |
642 break | 640 break |
643 | 641 |
644 print 'Will run again in %d minutes...\n' % args.repeat_delay | 642 print 'Will run again in %d minutes...\n' % args.repeat_delay |
645 time.sleep(args.repeat_delay * 60) | 643 time.sleep(args.repeat_delay * 60) |
646 | 644 |
647 return 0 | 645 return 0 |
648 | 646 |
649 if __name__ == '__main__': | 647 if __name__ == '__main__': |
650 sys.exit(main(sys.argv)) | 648 sys.exit(main(sys.argv)) |
OLD | NEW |