diff options
author | Jürg Billeter <j@bitron.ch> | 2019-03-26 09:49:34 +0100 |
---|---|---|
committer | Jürg Billeter <j@bitron.ch> | 2019-04-12 11:17:33 +0200 |
commit | 4823256b66a97b2136b83ab6aa0ae4850d99b266 (patch) | |
tree | 4c6393f3949313966fd62b9aecc8dec273b7e39b /buildstream | |
parent | 61d328e3c5797a2e6bd0e339ca6881097337c933 (diff) | |
download | buildstream-4823256b66a97b2136b83ab6aa0ae4850d99b266.tar.gz |
_stream.py: Suport partial CAS for build sessions with remote execution
Diffstat (limited to 'buildstream')
-rw-r--r-- | buildstream/_stream.py | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/buildstream/_stream.py b/buildstream/_stream.py index 73bc4badd..64a578c92 100644 --- a/buildstream/_stream.py +++ b/buildstream/_stream.py @@ -247,6 +247,13 @@ class Stream(): # Assert that the elements we're not going to track are consistent self._pipeline.assert_consistent(elements) + if all(project.remote_execution_specs for project in self._context.get_projects()): + # Remote execution is configured for all projects. + # Require artifact files only for target elements and their runtime dependencies. + self._context.set_artifact_files_optional() + for element in self.targets: + element._set_artifact_files_required() + # Now construct the queues # track_queue = None |