| OLD | NEW |
| 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 datetime import timedelta | 5 from datetime import timedelta |
| 6 import logging | 6 import logging |
| 7 | 7 |
| 8 from google.appengine.ext import ndb | 8 from google.appengine.ext import ndb |
| 9 | 9 |
| 10 from common.waterfall import failure_type | 10 from common.waterfall import failure_type |
| 11 from lib import time_util | 11 from libs import time_util |
| 12 from model import analysis_status | 12 from model import analysis_status |
| 13 from model.wf_analysis import WfAnalysis | 13 from model.wf_analysis import WfAnalysis |
| 14 from model.wf_build import WfBuild | 14 from model.wf_build import WfBuild |
| 15 from model.wf_failure_group import WfFailureGroup | 15 from model.wf_failure_group import WfFailureGroup |
| 16 from model.wf_try_job import WfTryJob | 16 from model.wf_try_job import WfTryJob |
| 17 from waterfall import build_util | 17 from waterfall import build_util |
| 18 from waterfall import waterfall_config | 18 from waterfall import waterfall_config |
| 19 | 19 |
| 20 | 20 |
| 21 def _ShouldBailOutForOutdatedBuild(build): | 21 def _ShouldBailOutForOutdatedBuild(build): |
| (...skipping 340 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 362 master_name, builder_name) | 362 master_name, builder_name) |
| 363 for source_target in signals['compile'].get('failed_targets', []): | 363 for source_target in signals['compile'].get('failed_targets', []): |
| 364 # For link failures, we pass the executable targets directly to try-job, and | 364 # For link failures, we pass the executable targets directly to try-job, and |
| 365 # there is no 'source' for link failures. | 365 # there is no 'source' for link failures. |
| 366 # For compile failures, only pass the object files as the compile targets | 366 # For compile failures, only pass the object files as the compile targets |
| 367 # for the bots that we use strict regex to extract such information. | 367 # for the bots that we use strict regex to extract such information. |
| 368 if not source_target.get('source') or strict_regex: | 368 if not source_target.get('source') or strict_regex: |
| 369 compile_targets.append(source_target.get('target')) | 369 compile_targets.append(source_target.get('target')) |
| 370 | 370 |
| 371 return compile_targets | 371 return compile_targets |
| OLD | NEW |