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

Side by Side Diff: app.py

Issue 13892003: Added buildbot appengine frontend for chromium-build app (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/tools/chromium-build
Patch Set: Review fixes Created 7 years, 8 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | app.yaml » ('j') | templates/step.html » ('J')
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 563 matching lines...) Expand 10 before | Expand all | Expand 10 after
574 "horizontal_one_box_per_builder'", 574 "horizontal_one_box_per_builder'",
575 "'https://chromium-build.appspot.com/p/" 575 "'https://chromium-build.appspot.com/p/"
576 "chromium.webkit/horizontal_one_box_per_builder" 576 "chromium.webkit/horizontal_one_box_per_builder"
577 "?chromiumconsole'", content) 577 "?chromiumconsole'", content)
578 578
579 # Convert the chromium-status reference to reuse the local instance. 579 # Convert the chromium-status reference to reuse the local instance.
580 content = re.sub(r"http://chromium-status\.appspot\.com/current", 580 content = re.sub(r"http://chromium-status\.appspot\.com/current",
581 "https://chromium-build.appspot.com/p/" 581 "https://chromium-build.appspot.com/p/"
582 "chromium-status/current", content) 582 "chromium-status/current", content)
583 583
584 # Convert direct build.chromium.org links to local links.
585 content = re.sub("http://build.chromium.org/p/", "/buildbot/", content)
586 content = re.sub(r"/buildbot/(.*)/buildstatus\?builder=(.*)&number=(\d+)",
587 r"/buildbot/\1/builders/\2/builds/\3", content)
588
584 # Disable the personalized for box for now. 589 # Disable the personalized for box for now.
585 content = re.sub(r"<input id='namebox", r"<!-- <input id='namebox", content) 590 content = re.sub(r"<input id='namebox", r"<!-- <input id='namebox", content)
586 content = re.sub(r"reload_page\(\)'/>", r"reload_page()'/> -->", content) 591 content = re.sub(r"reload_page\(\)'/>", r"reload_page()'/> -->", content)
587 592
588 # Replace lkgrPath with a URL to chromium-build. 593 # Replace lkgrPath with a URL to chromium-build.
589 content = re.sub( 594 content = re.sub(
590 "var lkgrPath = c.status_lkgr", 595 "var lkgrPath = c.status_lkgr",
591 "var lkgrPath = '/p/chromium.lkgr'", 596 "var lkgrPath = '/p/chromium.lkgr'",
592 content) 597 content)
593 content = string.replace(content, 598 content = string.replace(content,
(...skipping 610 matching lines...) Expand 10 before | Expand all | Expand 10 after
1204 'builds/-1?as_text=1'), 1209 'builds/-1?as_text=1'),
1205 'localpath': 1210 'localpath':
1206 'chromium.lkgr/json/builders/Linux%20x64/builds/-1/as_text=1.json', 1211 'chromium.lkgr/json/builders/Linux%20x64/builds/-1/as_text=1.json',
1207 'maxage': 2*60, # 2 mins 1212 'maxage': 2*60, # 2 mins
1208 }, 1213 },
1209 1214
1210 # # Trigger background process update. 1215 # # Trigger background process update.
1211 # { 1216 # {
1212 # 'remoteurl': 'http://chromium-build.appspot.com/backend/update' 1217 # 'remoteurl': 'http://chromium-build.appspot.com/backend/update'
1213 ] 1218 ]
OLDNEW
« no previous file with comments | « no previous file | app.yaml » ('j') | templates/step.html » ('J')

Powered by Google App Engine
This is Rietveld 408576698