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

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

Issue 1836293002: [Findit] Adding central config test class for unit tests (Closed) Base URL: https://chromium.googlesource.com/infra/infra.git@master
Patch Set: 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 import logging 5 import logging
6 6
7 from google.appengine.api import modules 7 from google.appengine.api import modules
8 from google.appengine.ext import ndb 8 from google.appengine.ext import ndb
9 9
10 from model import wf_analysis_status 10 from model import wf_analysis_status
(...skipping 131 matching lines...) Expand 10 before | Expand all | Expand 10 after
142 return {} 142 return {}
143 143
144 master_name = failure_info['master_name'] 144 master_name = failure_info['master_name']
145 builder_name = failure_info['builder_name'] 145 builder_name = failure_info['builder_name']
146 build_number = failure_info['build_number'] 146 build_number = failure_info['build_number']
147 failed_steps = failure_info.get('failed_steps', []) 147 failed_steps = failure_info.get('failed_steps', [])
148 builds = failure_info.get('builds', {}) 148 builds = failure_info.get('builds', {})
149 149
150 tryserver_mastername, tryserver_buildername = ( 150 tryserver_mastername, tryserver_buildername = (
151 waterfall_config.GetTrybotForWaterfallBuilder(master_name, builder_name)) 151 waterfall_config.GetTrybotForWaterfallBuilder(master_name, builder_name))
152
152 if not tryserver_mastername or not tryserver_buildername: 153 if not tryserver_mastername or not tryserver_buildername:
153 logging.info('%s, %s is not supported yet.', master_name, builder_name) 154 logging.info('%s, %s is not supported yet.', master_name, builder_name)
154 return {} 155 return {}
155 156
156 failure_result_map = {} 157 failure_result_map = {}
157 need_new_try_job, last_pass, try_job_type, targeted_tests = ( 158 need_new_try_job, last_pass, try_job_type, targeted_tests = (
158 _NeedANewTryJob(master_name, builder_name, build_number, 159 _NeedANewTryJob(master_name, builder_name, build_number,
159 failed_steps, failure_result_map)) 160 failed_steps, failure_result_map))
160 161
161 if need_new_try_job: 162 if need_new_try_job:
(...skipping 23 matching lines...) Expand all
185 pipeline.pipeline_status_path, try_job_type) 186 pipeline.pipeline_status_path, try_job_type)
186 else: # pragma: no cover 187 else: # pragma: no cover
187 logging_str = ( 188 logging_str = (
188 'Try job was scheduled for build %s, %s, %s: %s because of %s ' 189 'Try job was scheduled for build %s, %s, %s: %s because of %s '
189 'failure.') % ( 190 'failure.') % (
190 master_name, builder_name, build_number, 191 master_name, builder_name, build_number,
191 pipeline.pipeline_status_path, try_job_type) 192 pipeline.pipeline_status_path, try_job_type)
192 logging.info(logging_str) 193 logging.info(logging_str)
193 194
194 return failure_result_map 195 return failure_result_map
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698