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

Side by Side Diff: appengine/findit/handlers/failure_log.py

Issue 2344443005: [Findit] Factoring the gitiles (etc) stuff out into its own directory (Closed)
Patch Set: reordering imports Created 4 years, 1 month 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 | « appengine/findit/handlers/culprit.py ('k') | appengine/findit/handlers/help_triage.py » ('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 2015 The Chromium Authors. All rights reserved. 1 # Copyright 2015 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 import base64 5 import base64
6 import json 6 import json
7 7
8 from common.base_handler import BaseHandler 8 from common.base_handler import BaseHandler, Permission
9 from common.base_handler import Permission
10 from model.wf_step import WfStep 9 from model.wf_step import WfStep
11 from waterfall import buildbot 10 from waterfall import buildbot
12 11
13 12
14 class FailureLog(BaseHandler): 13 class FailureLog(BaseHandler):
15 PERMISSION_LEVEL = Permission.CORP_USER 14 PERMISSION_LEVEL = Permission.CORP_USER
16 15
17 def _GetFormattedJsonLogIfSwarming(self, step): 16 def _GetFormattedJsonLogIfSwarming(self, step):
18 if not step.isolated or step.log_data == 'flaky': 17 if not step.isolated or step.log_data == 'flaky':
19 return step.log_data 18 return step.log_data
(...skipping 24 matching lines...) Expand all
44 failure_log = self._GetFormattedJsonLogIfSwarming(step) 43 failure_log = self._GetFormattedJsonLogIfSwarming(step)
45 44
46 data = { 45 data = {
47 'master_name': master_name, 46 'master_name': master_name,
48 'builder_name': builder_name, 47 'builder_name': builder_name,
49 'build_number': build_number, 48 'build_number': build_number,
50 'step_name': step_name, 49 'step_name': step_name,
51 'step_logs': failure_log, 50 'step_logs': failure_log,
52 } 51 }
53 return {'template': 'failure_log.html', 'data': data} 52 return {'template': 'failure_log.html', 'data': data}
OLDNEW
« no previous file with comments | « appengine/findit/handlers/culprit.py ('k') | appengine/findit/handlers/help_triage.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698