Perf-o-matic build fix after r107386.
authorrniwa@webkit.org <rniwa@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 10 Feb 2012 11:25:33 +0000 (11:25 +0000)
committerrniwa@webkit.org <rniwa@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 10 Feb 2012 11:25:33 +0000 (11:25 +0000)
* Websites/webkit-perf.appspot.com/app.yaml:
* Websites/webkit-perf.appspot.com/controller.py:
(schedule_manifest_update):
(schedule_dashboard_update):
(schedule_runs_update):
* Websites/webkit-perf.appspot.com/merge_tests_handler.py:
(MergeTestsHandler.get):
* Websites/webkit-perf.appspot.com/report_logs_handler.py:
(ReportLogsHandler.get):
(ReportLogsHandler.post):

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@107393 268f45cc-cd09-0410-ab3c-d52691b4dbfc

ChangeLog
Websites/webkit-perf.appspot.com/app.yaml
Websites/webkit-perf.appspot.com/controller.py
Websites/webkit-perf.appspot.com/merge_tests_handler.py
Websites/webkit-perf.appspot.com/report_logs_handler.py

index d339fac9b8af3d53d4522a0efee274e419cbef1a..273d0012add6e57fca50ec7a104e8c7e8f1e231c 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,18 @@
+2012-02-10  Ryosuke Niwa  <rniwa@webkit.org>
+
+        Perf-o-matic build fix after r107386.
+
+        * Websites/webkit-perf.appspot.com/app.yaml:
+        * Websites/webkit-perf.appspot.com/controller.py:
+        (schedule_manifest_update):
+        (schedule_dashboard_update):
+        (schedule_runs_update):
+        * Websites/webkit-perf.appspot.com/merge_tests_handler.py:
+        (MergeTestsHandler.get):
+        * Websites/webkit-perf.appspot.com/report_logs_handler.py:
+        (ReportLogsHandler.get):
+        (ReportLogsHandler.post):
+
 2012-02-10  Ryosuke Niwa  <rniwa@webkit.org>
 
         Perf-o-matic should process reports in background
index 2a87a64b7132cf7dbe95cf7da464c62f8ca2556a..17cef44a68a474b69a85adc4ef2ee1e2b0546ae8 100644 (file)
@@ -19,9 +19,9 @@ handlers:
   static_files: index.html
   upload: index.html
 
-- url: /(.+\.html)
+- url: /((index|embed|graph)\.html)
   static_files: \1
-  upload: (.+\.html)
+  upload: ((index|embed|graph)\.html)
 
 - url: /css
   static_dir: css
index 97c9afdd3fcf82a21d14a637990eb84e746a7f55..f5868e66867b21ff8709ea70610b1cde8f977548 100644 (file)
@@ -64,7 +64,10 @@ def cache_manifest(cache):
 
 
 def schedule_manifest_update():
-    taskqueue.add(url='/api/test/update', name='manifest_update')
+    try:
+        taskqueue.add(url='/api/test/update', name='manifest_update')
+    except taskqueue.TombstonedTaskError:
+        pass
 
 
 class CachedManifestHandler(webapp2.RequestHandler):
@@ -82,7 +85,10 @@ def cache_dashboard(cache):
 
 
 def schedule_dashboard_update():
-    taskqueue.add(url='/api/test/dashboard/update', name='dashboard_update')
+    try:
+        taskqueue.add(url='/api/test/dashboard/update', name='dashboard_update')
+    except taskqueue.TombstonedTaskError:
+        pass
 
 
 class CachedDashboardHandler(webapp2.RequestHandler):
@@ -100,8 +106,11 @@ def cache_runs(test_id, branch_id, platform_id, cache):
 
 
 def schedule_runs_update(test_id, branch_id, platform_id):
-    taskqueue.add(url='/api/test/runs/update', name='runs_update_%d_%d_%d' % (test_id, branch_id, platform_id),
-        params={'id': test_id, 'branchid': branch_id, 'platformid': platform_id})
+    try:
+        taskqueue.add(url='/api/test/runs/update', name='runs_update_%d_%d_%d' % (test_id, branch_id, platform_id),
+            params={'id': test_id, 'branchid': branch_id, 'platformid': platform_id})
+    except taskqueue.TombstonedTaskError:
+        pass
 
 
 class CachedRunsHandler(webapp2.RequestHandler):
index 3167ac6b8464d4c798a4c31c5234722588aabb01..adced41e54611cf32c10a1256b427ceb56996bee 100644 (file)
@@ -42,7 +42,7 @@ from models import delete_model_with_numeric_id_holder
 
 class MergeTestsHandler(webapp2.RequestHandler):
     def get(self):
-        self.response.out.write(template.render('merge_tests.yaml', {'tests': Test.all()}))
+        self.response.out.write(template.render('merge_tests.html', {'tests': Test.all()}))
 
     def post(self):
         self.response.headers['Content-Type'] = 'text/plain; charset=utf-8';
index 084d4d9451a4539fc48963d853396c080a79f22a..2a1905f9cd60fa0cd8f25ffba685175de88b9993 100644 (file)
@@ -38,7 +38,7 @@ from models import ReportLog
 
 class ReportLogsHandler(webapp2.RequestHandler):
     def get(self):
-        self.response.out.write(template.render('report_logs.yaml', {'logs': ReportLog.all()}))
+        self.response.out.write(template.render('report_logs.html', {'logs': ReportLog.all()}))
 
     def post(self):
         commit = bool(self.request.get('commit'))
@@ -61,7 +61,7 @@ class ReportLogsHandler(webapp2.RequestHandler):
         else:
             log.delete()
 
-        self.response.out.write(template.render('report_logs.yaml', {'logs': ReportLog.all(), 'status': 'OK'}))
+        self.response.out.write(template.render('report_logs.html', {'logs': ReportLog.all(), 'status': 'OK'}))
 
     def _error(self, message):
         self.response.headers['Content-Type'] = 'text/plain; charset=utf-8'