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

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

Issue 2538373003: [Culprit-Finder] Merge lib/ to libs/. (Closed)
Patch Set: . Created 4 years 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 common import chrome_dependency_fetcher 7 from common import chrome_dependency_fetcher
8 from common.http_client_appengine import HttpClientAppengine 8 from common.http_client_appengine import HttpClientAppengine
9 from common.pipeline_wrapper import BasePipeline 9 from common.pipeline_wrapper import BasePipeline
10 from lib.gitiles import gitiles_repository 10 from libs.gitiles import gitiles_repository
11 11
12 12
13 def _GetOSPlatformName(master_name, builder_name): # pragma: no cover 13 def _GetOSPlatformName(master_name, builder_name): # pragma: no cover
14 """Returns the OS platform name based on the master and builder.""" 14 """Returns the OS platform name based on the master and builder."""
15 # TODO: make buildbot yield OS platform name as a build property and use it. 15 # TODO: make buildbot yield OS platform name as a build property and use it.
16 # The code below is just a workaround. 16 # The code below is just a workaround.
17 builder_name = builder_name.lower() 17 builder_name = builder_name.lower()
18 if master_name == 'chromium.win': 18 if master_name == 'chromium.win':
19 return 'win' 19 return 'win'
20 elif master_name == 'chromium.linux': 20 elif master_name == 'chromium.linux':
(...skipping 114 matching lines...) Expand 10 before | Expand all | Expand 10 after
135 return {'deps': {}, 'deps_rolls': {}} 135 return {'deps': {}, 'deps_rolls': {}}
136 136
137 chromium_revision = failure_info['chromium_revision'] 137 chromium_revision = failure_info['chromium_revision']
138 os_platform = _GetOSPlatformName( 138 os_platform = _GetOSPlatformName(
139 failure_info['master_name'], failure_info['builder_name']) 139 failure_info['master_name'], failure_info['builder_name'])
140 140
141 return { 141 return {
142 'deps': _GetDependencies(chromium_revision, os_platform), 142 'deps': _GetDependencies(chromium_revision, os_platform),
143 'deps_rolls': _DetectDependencyRolls(change_logs, os_platform) 143 'deps_rolls': _DetectDependencyRolls(change_logs, os_platform)
144 } 144 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698