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

Side by Side Diff: appengine/findit/waterfall/identify_try_job_culprit_pipeline.py

Issue 1866883002: [Findit] A huge refactoring and some bug fixing. (Closed) Base URL: https://chromium.googlesource.com/infra/infra.git@master
Patch Set: Fix nit. Created 4 years, 8 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
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.git_repository import GitRepository 5 from common.git_repository import GitRepository
6 from common.http_client_appengine import HttpClientAppengine as HttpClient 6 from common.http_client_appengine import HttpClientAppengine as HttpClient
7 from model import wf_analysis_status 7 from model import analysis_status
8 from model.wf_try_job import WfTryJob 8 from model.wf_try_job import WfTryJob
9 from model.wf_try_job_data import WfTryJobData 9 from model.wf_try_job_data import WfTryJobData
10 from pipeline_wrapper import BasePipeline 10 from pipeline_wrapper import BasePipeline
11 from waterfall.try_job_type import TryJobType 11 from waterfall.try_job_type import TryJobType
12 12
13 13
14 GIT_REPO = GitRepository( 14 GIT_REPO = GitRepository(
15 'https://chromium.googlesource.com/chromium/src.git', HttpClient()) 15 'https://chromium.googlesource.com/chromium/src.git', HttpClient())
16 16
17 17
(...skipping 160 matching lines...) Expand 10 before | Expand all | Expand 10 after
178 result_to_update = ( 178 result_to_update = (
179 try_job_result.compile_results if 179 try_job_result.compile_results if
180 try_job_type == TryJobType.COMPILE else 180 try_job_type == TryJobType.COMPILE else
181 try_job_result.test_results) 181 try_job_result.test_results)
182 if (result_to_update and 182 if (result_to_update and
183 result_to_update[-1]['try_job_id'] == try_job_id): 183 result_to_update[-1]['try_job_id'] == try_job_id):
184 result_to_update[-1].update(result) 184 result_to_update[-1].update(result)
185 else: # pragma: no cover 185 else: # pragma: no cover
186 result_to_update.append(result) 186 result_to_update.append(result)
187 187
188 try_job_result.status = wf_analysis_status.ANALYZED 188 try_job_result.status = analysis_status.COMPLETED
189 try_job_result.put() 189 try_job_result.put()
190 190
191 return result.get('culprit') if result else None 191 return result.get('culprit') if result else None
OLDNEW
« no previous file with comments | « appengine/findit/waterfall/identify_culprit_pipeline.py ('k') | appengine/findit/waterfall/monitor_try_job_pipeline.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698