Added a LKGR page.
BUG= TEST= Review URL: https://webrtc-codereview.appspot.com/450005 git-svn-id: http://webrtc.googlecode.com/svn/trunk@1891 4adac7df-926f-26a2-2b94-8c16560cd09d
This commit is contained in:
parent
754626b5ea
commit
c5adf01d23
@ -21,4 +21,4 @@ handlers:
|
||||
|
||||
# Redirect all other requests to our dynamic handlers.
|
||||
- url: /.*
|
||||
script: dashboard.app
|
||||
script: main.app
|
@ -15,8 +15,6 @@ __author__ = 'phoglund@webrtc.org (Patrik Höglund)'
|
||||
from google.appengine.ext.webapp import template
|
||||
import webapp2
|
||||
|
||||
import add_build_status_data
|
||||
import add_coverage_data
|
||||
import load_build_status
|
||||
import load_coverage
|
||||
|
||||
@ -51,10 +49,3 @@ class ShowDashboard(webapp2.RequestHandler):
|
||||
def _show_error_page(self, error_message):
|
||||
self.response.write('<html><body>%s</body></html>' % error_message)
|
||||
|
||||
|
||||
app = webapp2.WSGIApplication([('/', ShowDashboard),
|
||||
('/add_coverage_data',
|
||||
add_coverage_data.AddCoverageData),
|
||||
('/add_build_status_data',
|
||||
add_build_status_data.AddBuildStatusData)],
|
||||
debug=True)
|
||||
|
31
tools/quality_tracking/dashboard/lkgr_page.py
Normal file
31
tools/quality_tracking/dashboard/lkgr_page.py
Normal file
@ -0,0 +1,31 @@
|
||||
#!/usr/bin/env python
|
||||
#-*- coding: utf-8 -*-
|
||||
# Copyright (c) 2012 The WebRTC project authors. All Rights Reserved.
|
||||
#
|
||||
# Use of this source code is governed by a BSD-style license
|
||||
# that can be found in the LICENSE file in the root of the source
|
||||
# tree. An additional intellectual property rights grant can be found
|
||||
# in the file PATENTS. All contributing project authors may
|
||||
# be found in the AUTHORS file in the root of the source tree.
|
||||
|
||||
"""Implements the LKGR page."""
|
||||
|
||||
__author__ = 'phoglund@webrtc.org (Patrik Höglund)'
|
||||
|
||||
import webapp2
|
||||
|
||||
import load_build_status
|
||||
|
||||
class ShowLkgr(webapp2.RequestHandler):
|
||||
"""This handler shows the LKGR in the simplest possible way.
|
||||
|
||||
The page is intended to be used by automated tools.
|
||||
"""
|
||||
def get(self):
|
||||
build_status_loader = load_build_status.BuildStatusLoader()
|
||||
|
||||
lkgr = build_status_loader.compute_lkgr()
|
||||
if lkgr is None:
|
||||
self.response.out.write('No data has been uploaded to the dashboard.')
|
||||
else:
|
||||
self.response.out.write(lkgr)
|
@ -116,5 +116,5 @@ class BuildStatusLoader:
|
||||
# There was only one revision and it was OK.
|
||||
return current_lkgr
|
||||
|
||||
# There is no all-green revision in the database.
|
||||
# There are no all-green revision in the database.
|
||||
return None
|
||||
|
29
tools/quality_tracking/dashboard/main.py
Normal file
29
tools/quality_tracking/dashboard/main.py
Normal file
@ -0,0 +1,29 @@
|
||||
#!/usr/bin/env python
|
||||
#-*- coding: utf-8 -*-
|
||||
# Copyright (c) 2012 The WebRTC project authors. All Rights Reserved.
|
||||
#
|
||||
# Use of this source code is governed by a BSD-style license
|
||||
# that can be found in the LICENSE file in the root of the source
|
||||
# tree. An additional intellectual property rights grant can be found
|
||||
# in the file PATENTS. All contributing project authors may
|
||||
# be found in the AUTHORS file in the root of the source tree.
|
||||
|
||||
"""Connects all URLs with their respective handlers."""
|
||||
|
||||
__author__ = 'phoglund@webrtc.org (Patrik Höglund)'
|
||||
|
||||
from google.appengine.ext.webapp import template
|
||||
import webapp2
|
||||
|
||||
import add_build_status_data
|
||||
import add_coverage_data
|
||||
import dashboard
|
||||
import lkgr_page
|
||||
|
||||
app = webapp2.WSGIApplication([('/', dashboard.ShowDashboard),
|
||||
('/lkgr', lkgr_page.ShowLkgr),
|
||||
('/add_coverage_data',
|
||||
add_coverage_data.AddCoverageData),
|
||||
('/add_build_status_data',
|
||||
add_build_status_data.AddBuildStatusData)],
|
||||
debug=True)
|
Loading…
x
Reference in New Issue
Block a user