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

Unified Diff: scripts/slave/recipe_modules/archive/api.py

Issue 2279953002: lightweight builds archiving for mac and win64 (Closed) Base URL: https://chromium.googlesource.com/chromium/tools/build.git@master
Patch Set: lightweight builds archiving for mac and win64 Created 4 years, 4 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 side-by-side diff with in-line comments
Download patch
Index: scripts/slave/recipe_modules/archive/api.py
diff --git a/scripts/slave/recipe_modules/archive/api.py b/scripts/slave/recipe_modules/archive/api.py
index bdf1c40b33f73b139539bc815ed134901697354d..04e31b373ae52c9d00329ef9e71e28e4c5503542 100644
--- a/scripts/slave/recipe_modules/archive/api.py
+++ b/scripts/slave/recipe_modules/archive/api.py
@@ -3,10 +3,12 @@
# found in the LICENSE file.
import re
+import sys
import manual_bisect_files
from recipe_engine import recipe_api
+
ghost stip (do not use) 2016/08/30 23:48:53 nit: remove space
miimnk 2016/08/31 00:19:05 Done.
# TODO(machenbach): Chromium specific data should move out of the archive
# module, into e.g. the chromium test configs.
EXCLUDED_FILES_ALL_PLATFORMS = [
@@ -92,7 +94,8 @@ class ArchiveApi(recipe_api.RecipeApi):
self, step_name, target, build_url=None, src_dir=None,
build_revision=None, cros_board=None, package_dsym_files=False,
exclude_files=None, exclude_perf_test_files=False,
- update_properties=None, store_by_hash=True, **kwargs):
+ update_properties=None, store_by_hash=True,
+ platform=None, **kwargs):
"""Returns a step invoking zip_build.py to zip up a Chromium build.
If build_url is specified, also uploads the build."""
if not src_dir:
@@ -121,12 +124,23 @@ class ArchiveApi(recipe_api.RecipeApi):
args.extend(['--exclude-files', exclude_files])
if 'gs_acl' in self.m.properties:
args.extend(['--gs-acl', self.m.properties['gs_acl']])
- if exclude_perf_test_files:
- inclusions = ','.join(manual_bisect_files.CHROME_REQUIRED_FILES)
- strip_files = ','.join(manual_bisect_files.CHROME_STRIP_LIST)
- args.extend(['--include-files', inclusions])
- args.extend(['--ignore-regex'])
- args.extend(['--strip-files', strip_files])
+ if exclude_perf_test_files and platform:
+ include_bisect_file_list = (manual_bisect_files.
+ CHROME_REQUIRED_FILES[platform])
ghost stip (do not use) 2016/08/30 23:48:53 should we make this .get(platform) so it doesn't b
miimnk 2016/08/31 00:19:05 Done.
+ include_bisect_strip_list = (manual_bisect_files.
+ CHROME_STRIP_LIST[platform])
+ include_bisect_whitelist = (manual_bisect_files.
+ CHROME_WHITELIST_FILES[platform])
+ if include_bisect_file_list:
+ inclusions = ','.join(include_bisect_file_list)
+ args.extend(['--include-files', inclusions])
+ if include_bisect_strip_list:
+ strip_files = ','.join(include_bisect_strip_list)
+ args.extend(['--strip-files', strip_files])
+ if include_bisect_whitelist:
+ args.extend(['--whitelist', include_bisect_whitelist])
+ args.extend(['--not-include-extra'])
+
# If update_properties is passed in and store_by_hash is False,
# we store it with commit position number instead of a hash
if update_properties and not store_by_hash:
« no previous file with comments | « no previous file | scripts/slave/recipe_modules/archive/manual_bisect_files.py » ('j') | scripts/slave/zip_build.py » ('J')

Powered by Google App Engine
This is Rietveld 408576698