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

Side by Side Diff: appengine/findit/handlers/flake/check_flake.py

Issue 2131473003: UI for the regression range test. (Closed) Base URL: https://chromium.googlesource.com/infra/infra.git@master
Patch Set: Removed logic from check_flake, made findit reference correct template for flake. Created 4 years, 5 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 unified diff | Download patch
« no previous file with comments | « no previous file | appengine/findit/templates/flake/error.html » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 # Copyright 2016 The Chromium Authors. All rights reserved. 1 # Copyright 2016 The Chromium Authors. All rights reserved.
2 # Use of this source code is governed by a BSD-style license that can be 2 # Use of this source code is governed by a BSD-style license that can be
3 # found in the LICENSE file. 3 # found in the LICENSE file.
4 4
5 from google.appengine.api import users
6
7 from common import constants
5 from common.base_handler import BaseHandler 8 from common.base_handler import BaseHandler
6 from common.base_handler import Permission 9 from common.base_handler import Permission
10 from model import analysis_status
11 from model.flake.master_flake_analysis import MasterFlakeAnalysis
12 from waterfall.flake.initialize_flake_pipeline import ScheduleAnalysisIfNeeded
7 13
14 import logging
8 15
9 class CheckFlake(BaseHandler): 16 class CheckFlake(BaseHandler):
10 PERMISSION_LEVEL = Permission.CORP_USER 17 PERMISSION_LEVEL = Permission.CORP_USER
11 18
12 def HandleGet(self): 19 def HandleGet(self):
13
14 # Get input parameters. 20 # Get input parameters.
15 # pylint: disable=W0612 21 # pylint: disable=W0612
22 print self.request
chanli 2016/07/19 20:56:12 Please remove these print statements when you're r
caiw 2016/07/21 18:22:50 Done.
16 master_name = self.request.get('master_name').strip() 23 master_name = self.request.get('master_name').strip()
17 builder_name = self.request.get('builder_name').strip() 24 builder_name = self.request.get('builder_name').strip()
18 build_number = int(self.request.get('build_number').strip()) 25 build_number = int(self.request.get('build_number').strip())
19 test_target_name = self.request.get('test_target_name').strip() 26 step_name = self.request.get('test_target_name').strip()
20 testcase = self.request.get('testcase').strip() 27 test_name = self.request.get('test_name').strip()
28 print test_name
29 force = (users.is_current_user_admin() and
30 self.request.get('force') == '1')
21 31
22 # TODO(caiw): Get status of master_analysis from database. 32 ScheduleAnalysisIfNeeded(master_name, builder_name, build_number, step_name,
23 33 test_name, force=force,
24 # TODO(caiw): If there is a completed master_analysis, return 34 queue_name=constants.WATERFALL_ANALYSIS_QUEUE)
25 # the template which displays it. 35 return {
26 36 'template': 'flake/in_progress.html'
27 # TODO(caiw): If the current master_analysis has an error, 37 }
28 # delete it.
29
30 # TODO(caiw): If there is no master_analysis, create one.
31
32 # TODO(caiw): Trigger pipeline.
33
34 # TODO(caiw): Return the appropriate template based on the case.
OLDNEW
« no previous file with comments | « no previous file | appengine/findit/templates/flake/error.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698