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

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

Issue 1917383002: test.py: compute coverage per top-level module. (Closed) Base URL: https://chromium.googlesource.com/infra/infra.git@master
Patch Set: Created 4 years, 7 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 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
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
OLDNEW
« no previous file with comments | « appengine/findit/.coveragerc ('k') | appengine/monorail/.coveragerc » ('j') | test.py » ('J')

Powered by Google App Engine
This is Rietveld 408576698