Made the necessary adaptations for the dashboard launch and fixed some bugs (already live).

Will now recognize warnings as a status. Returns proper HTTP status codes for the most common errors now. Will be more strict when checking build status data (no newlines in bot names).

Prepared cron scripts.

Prepared dashboard for production use.

BUG=
TEST=

Review URL: https://webrtc-codereview.appspot.com/404003

git-svn-id: http://webrtc.googlecode.com/svn/trunk@1772 4adac7df-926f-26a2-2b94-8c16560cd09d
This commit is contained in:
phoglund@webrtc.org
2012-02-27 15:42:25 +00:00
parent 52b59d095e
commit 914ef27c63
15 changed files with 137 additions and 78 deletions

View File

@@ -13,6 +13,7 @@
__author__ = 'phoglund@webrtc.org (Patrik Höglund)'
import datetime
import logging
from google.appengine.ext import db
@@ -53,9 +54,9 @@ class AddCoverageData(oauth_post_request_handler.OAuthPostRequestHandler):
function_coverage_string = self.request.get('function_coverage')
function_coverage = _parse_percentage(function_coverage_string)
except ValueError as exception:
self._show_error_page('Invalid parameter in request. Details: %s' %
exception)
except ValueError as error:
logger.warn('Invalid parameter in request: %s.' % error)
self.response.set_status(400)
return
item = CoverageData(date=parsed_date,