Chromium Code Reviews| 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..ecfab6092ceb4bac29ec602a61edfb966a7b446d |
| --- /dev/null |
| +++ b/appengine/findit/handlers/flake/check_flake.py |
| @@ -0,0 +1,37 @@ |
| +# 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. |
| + |
| +# pylint: disable=W0612 |
| +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. |
| + master_name = self.request.get('master_name').strip() |
| + 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_list = self.request.get('testcase_list').strip() |
| + |
| + # TODO(caiw): Get status of master_analysis from database |
|
stgao
2016/06/13 22:27:11
nit: end with a dot like this.
caiw
2016/06/13 22:43:56
Acknowledged.
caiw
2016/06/13 22:45:35
Done.
|
| + |
| + # 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 |
|
stgao
2016/06/13 22:27:12
Same here.
caiw
2016/06/13 22:43:56
Acknowledged.
|
| + |
| + # TODO(caiw): Return the appropriate template based on the case |
| + |
| + def HandlePost(self): # pragma: no cover |
|
stgao
2016/06/13 22:27:12
This seems won't be used, thus we could delete it
caiw
2016/06/13 22:43:56
Done.
|
| + return self.HandleGet() |