OLD | NEW |
1 # Copyright 2014 The Chromium Authors. All rights reserved. | 1 # Copyright 2014 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 import constants | 8 from common import constants |
9 from common.http_client_appengine import HttpClientAppengine as HttpClient | 9 from common.http_client_appengine import HttpClientAppengine as HttpClient |
10 from common.pipeline_wrapper import BasePipeline | 10 from common.pipeline_wrapper import BasePipeline |
(...skipping 437 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
448 | 448 |
449 builds = dict() | 449 builds = dict() |
450 self._SaveBlamelistAndChromiumRevisionIntoDict(build_info, builds) | 450 self._SaveBlamelistAndChromiumRevisionIntoDict(build_info, builds) |
451 | 451 |
452 failed_steps = self._CreateADictOfFailedSteps(build_info) | 452 failed_steps = self._CreateADictOfFailedSteps(build_info) |
453 | 453 |
454 # Checks first failed builds for each failed step. | 454 # Checks first failed builds for each failed step. |
455 self._CheckForFirstKnownFailure( | 455 self._CheckForFirstKnownFailure( |
456 master_name, builder_name, build_number, failed_steps, builds) | 456 master_name, builder_name, build_number, failed_steps, builds) |
457 | 457 |
458 if build_failure_type == failure_type.TEST: | 458 if build_failure_type == failure_type.TEST: # pragma: no branch |
459 # Checks first failed builds for each failed test. | 459 # Checks first failed builds for each failed test. |
460 self._CheckFirstKnownFailureForSwarmingTests( | 460 self._CheckFirstKnownFailureForSwarmingTests( |
461 master_name, builder_name, build_number, failed_steps, builds) | 461 master_name, builder_name, build_number, failed_steps, builds) |
462 | 462 |
463 failure_info['builds'] = builds | 463 failure_info['builds'] = builds |
464 failure_info['failed_steps'] = failed_steps | 464 failure_info['failed_steps'] = failed_steps |
465 | 465 |
466 analysis = WfAnalysis.Get(master_name, builder_name, build_number) | 466 analysis = WfAnalysis.Get(master_name, builder_name, build_number) |
467 analysis.not_passed_steps = build_info.not_passed_steps | 467 analysis.not_passed_steps = build_info.not_passed_steps |
468 analysis.build_failure_type = build_failure_type | 468 analysis.build_failure_type = build_failure_type |
469 analysis.put() | 469 analysis.put() |
470 | 470 |
471 return failure_info | 471 return failure_info |
OLD | NEW |