Navigation Menu

Skip to content
This repository has been archived by the owner on Sep 15, 2021. It is now read-only.

Commit

Permalink
Bug 1118797 - Add support to package source for release promotion, r=…
Browse files Browse the repository at this point in the history
…rail
  • Loading branch information
nthomas-mozilla committed Mar 30, 2015
1 parent 4d63acc commit fe40a2a
Show file tree
Hide file tree
Showing 3 changed files with 46 additions and 0 deletions.
13 changes: 13 additions & 0 deletions configs/builds/releng_sub_linux_configs/64_source.py
@@ -0,0 +1,13 @@
config = {
'default_actions': [
'clobber',
'clone-tools',
'setup-mock',
'package-source',
],
'stage_platform': 'source',
'purge_minsize': 3,
'src_mozconfig': 'browser/config/mozconfigs/linux64/release',
'enable_signing': True,
'enable_talos_sendchange': False,
}
32 changes: 32 additions & 0 deletions mozharness/mozilla/building/buildbase.py
Expand Up @@ -285,6 +285,7 @@ class BuildOptionParser(object):
'mulet': 'builds/releng_sub_%s_configs/%s_mulet.py',
'code-coverage': 'builds/releng_sub_%s_configs/%s_code_coverage.py',
'graphene': 'builds/releng_sub_%s_configs/%s_graphene.py',
'source': 'builds/releng_sub_%s_configs/%s_source.py',
}
build_pools = {
'staging': 'builds/build_pool_specifics.py',
Expand Down Expand Up @@ -1511,6 +1512,37 @@ def postflight_build(self, console_output=True):
if self.config.get('enable_ccache'):
self._ccache_s()

def preflight_package_source(self):
""" a subset of preflight_build"""
self._checkout_source()
self._get_mozconfig()

def package_source(self):
"""generates source archives and uploads them"""
env = self.query_build_env()
env.update(self.query_mach_build_env())

self.run_command_m(
command=['make', '-f', 'client.mk', 'configure', 'no_tooltool=1'],
cwd=self.query_abs_dirs()['abs_src_dir'],
env=env, output_timeout=60*3
)
return_code = self.run_command_m(
command=['make', 'source-package',
'hg-bundle', 'HG_BUNDLE_REVISION=%s' % self.query_revision(),
'source-upload', 'UPLOAD_HG_BUNDLE=1'],
cwd=self.query_abs_dirs()['abs_obj_dir'],
env=env, output_timeout=60*45
)

if return_code:
self.return_code = self.worst_level(
EXIT_STATUS_DICT[TBPL_FAILURE], self.return_code,
AUTOMATION_EXIT_CODES[::-1]
)
self.fatal("make did not run successfully. Please check "
"log for errors.")

def _check_test(self):
c = self.config
dirs = self.query_abs_dirs()
Expand Down
1 change: 1 addition & 0 deletions scripts/fx_desktop_build.py
Expand Up @@ -32,6 +32,7 @@ def __init__(self):
'clone-tools',
'setup-mock',
'build',
'package-source',
'generate-build-stats',
'update',
],
Expand Down

0 comments on commit fe40a2a

Please sign in to comment.