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

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

Issue 838003004: [Findit] Add three sub-pipelines to analyze build failure. (Closed) Base URL: https://chromium.googlesource.com/infra/infra.git@master
Patch Set: Address comments. Created 5 years, 11 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 (c) 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 from waterfall.extractor import Extractor 5 from waterfall.extractor import Extractor
6 from waterfall import extractor_util 6 from waterfall import extractor_util
7 from waterfall.failure_signal import FailureSignal 7 from waterfall.failure_signal import FailureSignal
8 8
9 9
10 class GeneralExtractor(Extractor): 10 class GeneralExtractor(Extractor):
11 """A general extractor. 11 """A general extractor.
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after
72 'compile': CompileStepExtractor, 72 'compile': CompileStepExtractor,
73 'gn': CompileStepExtractor, 73 'gn': CompileStepExtractor,
74 'check_perms': CheckPermExtractor, 74 'check_perms': CheckPermExtractor,
75 } 75 }
76 76
77 77
78 def ExtractSignal(master_name, bot_name, step_name, test_name, failure_log): 78 def ExtractSignal(master_name, bot_name, step_name, test_name, failure_log):
79 # Fall back to a general-but-maybe-not-accurate extractor. 79 # Fall back to a general-but-maybe-not-accurate extractor.
80 extractor_class = EXTRACTORS.get(step_name, GeneralExtractor) 80 extractor_class = EXTRACTORS.get(step_name, GeneralExtractor)
81 return extractor_class().Extract( 81 return extractor_class().Extract(
82 master_name, bot_name, step_name, test_name, failure_log) 82 failure_log, test_name, step_name, bot_name, master_name)
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698