You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@buildstream.apache.org by ak...@apache.org on 2023/12/05 06:31:14 UTC

(buildstream) branch abderrahim/shell-pull-buildtrees created (now 9a9c454f4)

This is an automated email from the ASF dual-hosted git repository.

akitouni pushed a change to branch abderrahim/shell-pull-buildtrees
in repository https://gitbox.apache.org/repos/asf/buildstream.git


      at 9a9c454f4 Fix pulling buildtrees in bst shell

This branch includes the following new commits:

     new 9a9c454f4 Fix pulling buildtrees in bst shell

The 1 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.



(buildstream) 01/01: Fix pulling buildtrees in bst shell

Posted by ak...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

akitouni pushed a commit to branch abderrahim/shell-pull-buildtrees
in repository https://gitbox.apache.org/repos/asf/buildstream.git

commit 9a9c454f4646bc0cdbb2b15764096d731993040b
Author: Abderrahim Kitouni <ak...@gnome.org>
AuthorDate: Tue Dec 5 07:29:57 2023 +0100

    Fix pulling buildtrees in bst shell
    
    We use _PipelineSelection.NONE when using the buildtrees, which includes the
    element. But then, we also add the element once more, and end up with two
    jobs running at once and (sometimes) failing to link the artifacts into place
    
    This fixes test_shell_pull_cached_buildtree[pull-without-buildtree] failing
    randomly
---
 src/buildstream/_stream.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/buildstream/_stream.py b/src/buildstream/_stream.py
index 86ca04c63..159436914 100644
--- a/src/buildstream/_stream.py
+++ b/src/buildstream/_stream.py
@@ -308,7 +308,7 @@ class Stream:
             element = self.targets[0]
             element._set_required(scope)
 
-            if scope == _Scope.BUILD:
+            if scope == _Scope.BUILD and not usebuildtree:
                 pull_elements = [element] + elements
             else:
                 pull_elements = elements