summaryrefslogtreecommitdiff
path: root/buildstream/_frontend/cli.py
diff options
context:
space:
mode:
authorTom Pollard <tom.pollard@codethink.co.uk>2018-11-28 16:01:14 +0000
committerTom Pollard <tom.pollard@codethink.co.uk>2018-11-30 11:46:58 +0000
commit406f546f002fbcd4a6f67ffad41fe9f7ea46cc79 (patch)
tree97b2953706014bead2e9580a191cdd2a7259a8b5 /buildstream/_frontend/cli.py
parentf6c184f5bdaa664d543d00c6f42f25614d0f79dd (diff)
downloadbuildstream-tpollard/774.tar.gz
_stream.py: Ability to pull missing buildtrees outside of pull/buildtpollard/774
Adds helper function _buildtree_pull_required() to determine if a pullqueue should be constructed, for commands outside of bst pull and build where it is determined that an element's buildtree artifact is to be required given the respective semantics and config. Utilised in push() to attempt to mitigate skipping the push of partial elements without the user having to have preceded it with an explicit pull. cli.py: Add new behaviour to push command description element.py: Move _cached_buildtree() to be non local private method, use _KeyStrength types to reduce duplication. tests/integration/pullbuildtrees.py also updated to cover this use-case.
Diffstat (limited to 'buildstream/_frontend/cli.py')
-rw-r--r--buildstream/_frontend/cli.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/buildstream/_frontend/cli.py b/buildstream/_frontend/cli.py
index b1b4e03b0..c7d4c1eed 100644
--- a/buildstream/_frontend/cli.py
+++ b/buildstream/_frontend/cli.py
@@ -469,6 +469,10 @@ def push(app, elements, deps, remote):
The default destination is the highest priority configured cache. You can
override this by passing a different cache URL with the `--remote` flag.
+ If bst has been configured to include build trees on artifact pulls,
+ an attempt will be made to pull any required build trees to avoid the
+ skipping of partial artifacts being pushed.
+
Specify `--deps` to control which artifacts to push:
\b