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

Side by Side Diff: app.py

Issue 169163005: Cache current V8 sheriff. (Closed) Base URL: https://chromium.googlesource.com/chromium/tools/chromium-build.git@master
Patch Set: Created 6 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 unified diff | Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 # Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 # Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 # Use of this source code is governed by a BSD-style license that can be 2 # Use of this source code is governed by a BSD-style license that can be
3 # found in the LICENSE file. 3 # found in the LICENSE file.
4 4
5 from __future__ import with_statement 5 from __future__ import with_statement
6 6
7 import datetime 7 import datetime
8 import json 8 import json
9 import logging 9 import logging
10 import os 10 import os
(...skipping 514 matching lines...) Expand 10 before | Expand all | Expand 10 after
525 'sheriff_android', 525 'sheriff_android',
526 'sheriff_cr_cros_gardeners', 526 'sheriff_cr_cros_gardeners',
527 'sheriff_cros_mtv', 527 'sheriff_cros_mtv',
528 'sheriff_cros_nonmtv', 528 'sheriff_cros_nonmtv',
529 'sheriff_gpu', 529 'sheriff_gpu',
530 'sheriff_ios_europe', 530 'sheriff_ios_europe',
531 'sheriff_ios_us', 531 'sheriff_ios_us',
532 'sheriff_memory', 532 'sheriff_memory',
533 'sheriff_nacl', 533 'sheriff_nacl',
534 'sheriff_perf', 534 'sheriff_perf',
535 'sheriff_v8',
535 'sheriff_webkit', 536 'sheriff_webkit',
536 ] 537 ]
537 for sheriff_file in sheriff_files: 538 for sheriff_file in sheriff_files:
538 sheriff_page_data = get_and_cache_pagedata('chromium/%s.js' % sheriff_file) 539 sheriff_page_data = get_and_cache_pagedata('chromium/%s.js' % sheriff_file)
539 sheriff_content = sheriff_page_data['content'] 540 sheriff_content = sheriff_page_data['content']
540 console_re = (r'<script src=\'http://chromium-build.appspot.com/' 541 console_re = (r'<script src=\'http://chromium-build.appspot.com/'
541 'p/chromium/%s.js\'></script>') 542 'p/chromium/%s.js\'></script>')
542 content = re.sub(console_re % sheriff_file, 543 content = re.sub(console_re % sheriff_file,
543 '<script>%s</script>' % sheriff_content, content) 544 '<script>%s</script>' % sheriff_content, content)
544 545
(...skipping 529 matching lines...) Expand 10 before | Expand all | Expand 10 after
1074 'remoteurl': 'http://build.chromium.org/p/chromium/sheriff_nacl.js', 1075 'remoteurl': 'http://build.chromium.org/p/chromium/sheriff_nacl.js',
1075 'localpath': 'chromium/sheriff_nacl.js', 1076 'localpath': 'chromium/sheriff_nacl.js',
1076 'maxage': 15*60, # 15 mins 1077 'maxage': 15*60, # 15 mins
1077 }, 1078 },
1078 { 1079 {
1079 'remoteurl': 'http://build.chromium.org/p/chromium/sheriff_perf.js', 1080 'remoteurl': 'http://build.chromium.org/p/chromium/sheriff_perf.js',
1080 'localpath': 'chromium/sheriff_perf.js', 1081 'localpath': 'chromium/sheriff_perf.js',
1081 'maxage': 15*60, # 15 mins 1082 'maxage': 15*60, # 15 mins
1082 }, 1083 },
1083 { 1084 {
1085 'remoteurl': 'http://build.chromium.org/p/chromium/sheriff_v8.js',
1086 'localpath': 'chromium/sheriff_v8.js',
1087 'maxage': 15*60, # 15 mins
1088 },
1089 {
1084 'remoteurl': 'http://build.chromium.org/p/chromium/sheriff_webkit.js', 1090 'remoteurl': 'http://build.chromium.org/p/chromium/sheriff_webkit.js',
1085 'localpath': 'chromium/sheriff_webkit.js', 1091 'localpath': 'chromium/sheriff_webkit.js',
1086 'maxage': 15*60, # 15 mins 1092 'maxage': 15*60, # 15 mins
1087 }, 1093 },
1088 1094
1089 # Buildbot "One Boxes". 1095 # Buildbot "One Boxes".
1090 { 1096 {
1091 'remoteurl': 1097 'remoteurl':
1092 ('http://build.chromium.org/p/chromebot/horizontal_one_box_per_builder?' 1098 ('http://build.chromium.org/p/chromebot/horizontal_one_box_per_builder?'
1093 'builder=Win+Chromebot+Server&builder=Linux+Chromebot+Server&' 1099 'builder=Win+Chromebot+Server&builder=Linux+Chromebot+Server&'
(...skipping 116 matching lines...) Expand 10 before | Expand all | Expand 10 after
1210 'builds/-1?as_text=1'), 1216 'builds/-1?as_text=1'),
1211 'localpath': 1217 'localpath':
1212 'chromium.lkgr/json/builders/Linux%20x64/builds/-1/as_text=1.json', 1218 'chromium.lkgr/json/builders/Linux%20x64/builds/-1/as_text=1.json',
1213 'maxage': 2*60, # 2 mins 1219 'maxage': 2*60, # 2 mins
1214 }, 1220 },
1215 1221
1216 # # Trigger background process update. 1222 # # Trigger background process update.
1217 # { 1223 # {
1218 # 'remoteurl': 'http://chromium-build.appspot.com/backend/update' 1224 # 'remoteurl': 'http://chromium-build.appspot.com/backend/update'
1219 ] 1225 ]
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698