Repository navigation
cli: Add --buildtree and --buildroot to bst artifact checkout - #2129
Conversation
948c3f3 to
cb60d5b
Compare
|
@BenjaminSchubert @abderrahim @cs-shadow @gtristan @juergbi I've made changes to verify that buildtree exists in the cache, similar to the shell command. Could you please review, please? |
|
Looks like this is fixing #1822, please link the issue in your PR. Also please add a test for this behaviour. I'll try to review it today. |
|
A few things need to be considered in the design of this feature:
|
79fb228 to
fa9662a
Compare
|
@abderrahim Thanks for the feedback! I've reworked the implementation into a new I've also added an integration test covering the new command and link the issue in PR. |
|
@abderrahim Any chance to review this PR? |
abderrahim
left a comment
There was a problem hiding this comment.
Thanks for the contributions. See my comments below.
| # self.targets contains a list of the loaded target objects | ||
| # if we specify --deps build, Stream._load() will return a list | ||
| # of build dependency objects, however, we need to prepare a sandbox | ||
| # with the target (which has had its appropriate dependencies loaded) | ||
| element: Element = self.targets[0] |
There was a problem hiding this comment.
Does this make sense for the build tree? Either we're checking out just the buildtree, and then dependencies don't make sense, or we check out the whole buildroot and it already contains the build dependencies.
Am I missing something?
There was a problem hiding this comment.
Sorry for the delayed response, and thanks for pointing this out.
Yes, you're right. I've changed this to element: Element = elements[0], is it ok?
f2fb37c to
a634866
Compare
I think If most people feel a separate top-level command makes sense, I won't object, but I'm not personally convinced so far. While this is not a democracy, feel free to 👍️ on this comment if you prefer this feature to be in |
|
@juergbi Agreed, I've moved it to |
Allow checking out the cached build tree or the whole build root of an element's artifact. Only the target artifact is pulled, as with `bst shell --use-buildtree`, the pull-buildtrees configuration is needed if the build tree is not available locally. Fixed apache#1822
This PR adds a "--use-buildtrees" option to "bst artifacts checkout", similar to the existing option in "bst shell".
The goal is to make it possible to check out build artifacts from the sandbox build tree when it is available.
Would be okay with adding this functionality, or are there reasons not to expose it through "bst artifacts checkout"? Or is there another way to get build artifacts from sandbox now?
Fixes #1822