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

Unified Diff: appengine/findit/handlers/flake/check_flake.py

Issue 2042043004: Added skeleton code for the Detection of regression range for flaky (Closed) Base URL: https://chromium.googlesource.com/infra/infra.git@master
Patch Set: [Findit] fixed previous comments Created 4 years, 6 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « appengine/findit/handlers/flake/__init__.py ('k') | appengine/findit/main.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: appengine/findit/handlers/flake/check_flake.py
diff --git a/appengine/findit/handlers/flake/check_flake.py b/appengine/findit/handlers/flake/check_flake.py
new file mode 100644
index 0000000000000000000000000000000000000000..9cbfe9ee8818f968768e81d4e3a4ab41e434ea6d
--- /dev/null
+++ b/appengine/findit/handlers/flake/check_flake.py
@@ -0,0 +1,34 @@
+# Copyright 2016 The Chromium Authors. All rights reserved.
+# Use of this source code is governed by a BSD-style license that can be
+# found in the LICENSE file.
+
+from common.base_handler import BaseHandler
+from common.base_handler import Permission
+
+
+class CheckFlake(BaseHandler):
+ PERMISSION_LEVEL = Permission.CORP_USER
+
+ def HandleGet(self):
+
+ # Get input parameters.
+ # pylint: disable=W0612
+ master_name = self.request.get('master_name').strip()
lijeffrey 2016/06/14 00:05:58 will these cause exceptions if not specified in th
caiw 2016/06/14 19:48:06 Will do
+ builder_name = self.request.get('builder_name').strip()
+ build_number = int(self.request.get('build_number').strip())
+ test_target_name = self.request.get('test_target_name').strip()
+ testcase = self.request.get('testcase').strip()
+
+ # TODO(caiw): Get status of master_analysis from database.
+
+ # TODO(caiw): If there is a completed master_analysis, return
+ # the template which displays it.
+
+ # TODO(caiw): If the current master_analysis has an error,
+ # delete it.
+
+ # TODO(caiw): If there is no master_analysis, create one.
+
+ # TODO(caiw): Trigger pipeline.
+
+ # TODO(caiw): Return the appropriate template based on the case.
« no previous file with comments | « appengine/findit/handlers/flake/__init__.py ('k') | appengine/findit/main.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698