Title: [112362] trunk
Revision
112362
Author
[email protected]
Date
2012-03-27 21:19:05 -0700 (Tue, 27 Mar 2012)

Log Message

Perf-o-matic build fix.

* Websites/webkit-perf.appspot.com/controller.py:
(RunsChartHandler.post):
* Websites/webkit-perf.appspot.com/models.py:
(Runs.chart_params):

Modified Paths

Diff

Modified: trunk/ChangeLog (112361 => 112362)


--- trunk/ChangeLog	2012-03-28 03:47:00 UTC (rev 112361)
+++ trunk/ChangeLog	2012-03-28 04:19:05 UTC (rev 112362)
@@ -1,3 +1,12 @@
+2012-03-27  Ryosuke Niwa  <[email protected]>
+
+        Perf-o-matic build fix.
+
+        * Websites/webkit-perf.appspot.com/controller.py:
+        (RunsChartHandler.post):
+        * Websites/webkit-perf.appspot.com/models.py:
+        (Runs.chart_params):
+
 2012-03-27  Dave Tu  <[email protected]>
 
         Show image diffs for gpu_tests on flakiness dashboard

Modified: trunk/Websites/webkit-perf.appspot.com/controller.py (112361 => 112362)


--- trunk/Websites/webkit-perf.appspot.com/controller.py	2012-03-28 03:47:00 UTC (rev 112361)
+++ trunk/Websites/webkit-perf.appspot.com/controller.py	2012-03-28 04:19:05 UTC (rev 112362)
@@ -147,6 +147,8 @@
         assert test
 
         params = Runs.update_or_insert(branch, platform, test).chart_params(display_days)
+        if not params:
+            return
         dashboard_chart_file = urllib.urlopen('http://chart.googleapis.com/chart', urllib.urlencode(params))
 
         DashboardImage.create(branch.id, platform.id, test.id, display_days, dashboard_chart_file.read())

Modified: trunk/Websites/webkit-perf.appspot.com/models.py (112361 => 112362)


--- trunk/Websites/webkit-perf.appspot.com/models.py	2012-03-28 03:47:00 UTC (rev 112361)
+++ trunk/Websites/webkit-perf.appspot.com/models.py	2012-03-28 04:19:05 UTC (rev 112362)
@@ -435,6 +435,9 @@
             chart_data_x.append(timestamp)
             chart_data_y.append(value)
 
+        if not chart_data_y:
+            return None
+
         dates = [end_time - timedelta(display_days / 7.0 * (7 - i)) for i in range(0, 8)]
 
         y_max = max(chart_data_y) * 1.1
_______________________________________________
webkit-changes mailing list
[email protected]
http://lists.webkit.org/mailman/listinfo.cgi/webkit-changes

Reply via email to