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

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

Issue 2538373003: [Culprit-Finder] Merge lib/ to libs/. (Closed)
Patch Set: . Created 4 years 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
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 from common.base_handler import BaseHandler 5 from common.base_handler import BaseHandler
6 from common.base_handler import Permission 6 from common.base_handler import Permission
7 from common.http_client_appengine import HttpClientAppengine as HttpClient 7 from common.http_client_appengine import HttpClientAppengine as HttpClient
8 from lib.gitiles.gitiles_repository import GitilesRepository 8 from libs.gitiles.gitiles_repository import GitilesRepository
9 from model.wf_analysis import WfAnalysis 9 from model.wf_analysis import WfAnalysis
10 from waterfall import buildbot 10 from waterfall import buildbot
11 from waterfall import build_util 11 from waterfall import build_util
12 12
13 13
14 def _GetFirstFailedBuild(master_name, builder_name, build_number): 14 def _GetFirstFailedBuild(master_name, builder_name, build_number):
15 """Checks failed_steps for current_build and finds the first failed build.""" 15 """Checks failed_steps for current_build and finds the first failed build."""
16 analysis = WfAnalysis.Get(master_name, builder_name, build_number) 16 analysis = WfAnalysis.Get(master_name, builder_name, build_number)
17 if not analysis or not analysis.result['failures']: 17 if not analysis or not analysis.result['failures']:
18 return None, None 18 return None, None
(...skipping 140 matching lines...) Expand 10 before | Expand all | Expand 10 after
159 """ 159 """
160 url = self.request.get('url').strip() 160 url = self.request.get('url').strip()
161 build_keys = buildbot.ParseBuildUrl(url) 161 build_keys = buildbot.ParseBuildUrl(url)
162 162
163 if not build_keys: # pragma: no cover 163 if not build_keys: # pragma: no cover
164 return {'data': {}} 164 return {'data': {}}
165 165
166 data = _CheckReverts(*build_keys) 166 data = _CheckReverts(*build_keys)
167 167
168 return {'data': data} 168 return {'data': data}
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698