diff options
author | Adam Coldrick <adam.coldrick@codethink.co.uk> | 2015-03-16 15:10:42 +0000 |
---|---|---|
committer | Adam Coldrick <adam.coldrick@codethink.co.uk> | 2015-04-02 08:07:09 +0000 |
commit | 19cb5098dcec8e4dd4152aeff95b8e5a7fe1c69a (patch) | |
tree | 281fa9424c6423ebc9cd86f61184de605a22cf62 /morphlib/buildcommand.py | |
parent | 128a8a927ce3c0ba4dd8a1d3b7a83dae45d8e0a3 (diff) | |
download | morph-19cb5098dcec8e4dd4152aeff95b8e5a7fe1c69a.tar.gz |
Implement partial distbuilds
In addition to partial builds we also want to be able to do partial
distbuilds, and distbuild uses a different codepath.
This commit updates the distbuild code to know what to do if a partial
build is requested. It only builds up to the latest chunk/stratum that
was requested, and displays where to find the artifacts for each of
the chunks/strata requested upon completion of the build.
The usage is the same as for local builds.
Change-Id: I0537f74e2e65c7aefe5e71795f17999e2415fce5
Diffstat (limited to 'morphlib/buildcommand.py')
-rw-r--r-- | morphlib/buildcommand.py | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/morphlib/buildcommand.py b/morphlib/buildcommand.py index 874f8d6f..fd5acdf5 100644 --- a/morphlib/buildcommand.py +++ b/morphlib/buildcommand.py @@ -526,7 +526,8 @@ class InitiatorBuildCommand(BuildCommand): self.app.settings['push-build-branches'] = True super(InitiatorBuildCommand, self).__init__(app) - def build(self, repo_name, ref, filename, original_ref=None): + def build(self, repo_name, ref, filename, original_ref=None, + component_names=[]): '''Initiate a distributed build on a controller''' distbuild.add_crash_conditions(self.app.settings['crash-condition']) @@ -537,7 +538,8 @@ class InitiatorBuildCommand(BuildCommand): self.app.status(msg='Starting distributed build') loop = distbuild.MainLoop() - args = [repo_name, ref, filename, original_ref or ref] + args = [repo_name, ref, filename, original_ref or ref, + component_names] cm = distbuild.InitiatorConnectionMachine(self.app, self.addr, self.port, |