OLD | NEW |
---|---|
1 # Copyright 2013 The Chromium Authors. All rights reserved. | 1 # Copyright 2013 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 re | 5 import re |
6 import sys | 6 import sys |
7 | 7 |
8 import manual_bisect_files | 8 import manual_bisect_files |
9 from recipe_engine import recipe_api | 9 from recipe_engine import recipe_api |
10 | 10 |
(...skipping 252 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
263 cp_branch, cp_number = self.m.commit_position.parse(commit_position) | 263 cp_branch, cp_number = self.m.commit_position.parse(commit_position) |
264 build_git_commit = self._get_git_commit(update_properties, primary_project) | 264 build_git_commit = self._get_git_commit(update_properties, primary_project) |
265 | 265 |
266 if fixed_staging_dir: | 266 if fixed_staging_dir: |
267 staging_dir = self.m.path['slave_build'].join('chrome_staging') | 267 staging_dir = self.m.path['slave_build'].join('chrome_staging') |
268 self.m.file.rmtree('purge staging dir', staging_dir) | 268 self.m.file.rmtree('purge staging dir', staging_dir) |
269 self.m.file.makedirs('create staging dir', staging_dir) | 269 self.m.file.makedirs('create staging dir', staging_dir) |
270 else: | 270 else: |
271 staging_dir = self.m.path.mkdtemp('chrome_staging') | 271 staging_dir = self.m.path.mkdtemp('chrome_staging') |
272 | 272 |
273 llvm_tools_to_copy = ['llvm-symbolizer', 'sancov'] | |
274 llvm_bin_dir = self.m.path['checkout'].join('third_party', 'llvm-build', | |
275 'Release+Asserts', 'bin') | |
276 ext = '' | |
Nico
2016/10/06 18:54:47
nit: This can be
ext = '.exe' if self.m.platfor
Oliver Chang
2016/10/06 19:01:32
Done.
| |
277 if self.m.platform.name == 'win': | |
278 ext = '.exe' | |
279 | |
280 for tool in llvm_tools_to_copy: | |
281 self.m.file.copy('Copy ' + tool, | |
282 self.m.path.join(llvm_bin_dir, tool + ext), build_dir) | |
283 | |
273 # Build the list of files to archive. | 284 # Build the list of files to archive. |
274 zip_file_list = [f for f in self.m.file.listdir('build_dir', build_dir) | 285 zip_file_list = [f for f in self.m.file.listdir('build_dir', build_dir) |
275 if self._cf_should_package_file(f)] | 286 if self._cf_should_package_file(f)] |
276 | 287 |
277 # Use the legacy platform name as Clusterfuzz has some expectations on | 288 # Use the legacy platform name as Clusterfuzz has some expectations on |
278 # this (it only affects Windows, where it replace 'win' by 'win32'). | 289 # this (it only affects Windows, where it replace 'win' by 'win32'). |
279 pieces = [self.legacy_platform_name(), target.lower()] | 290 pieces = [self.legacy_platform_name(), target.lower()] |
280 if archive_subdir_suffix: | 291 if archive_subdir_suffix: |
281 pieces.append(archive_subdir_suffix) | 292 pieces.append(archive_subdir_suffix) |
282 subdir = '-'.join(pieces) | 293 subdir = '-'.join(pieces) |
(...skipping 153 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
436 def legacy_download_url(self, gs_bucket_name, extra_url_components=None): | 447 def legacy_download_url(self, gs_bucket_name, extra_url_components=None): |
437 """Returns a url suitable for downloading a Chromium build from | 448 """Returns a url suitable for downloading a Chromium build from |
438 Google Storage. | 449 Google Storage. |
439 | 450 |
440 extra_url_components, if specified, should be a string without a | 451 extra_url_components, if specified, should be a string without a |
441 trailing '/' which is inserted in the middle of the URL. | 452 trailing '/' which is inserted in the middle of the URL. |
442 | 453 |
443 The builder_name, or parent_buildername, is always automatically | 454 The builder_name, or parent_buildername, is always automatically |
444 inserted into the URL.""" | 455 inserted into the URL.""" |
445 return self._legacy_url(True, gs_bucket_name, extra_url_components) | 456 return self._legacy_url(True, gs_bucket_name, extra_url_components) |
OLD | NEW |