You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@buildstream.apache.org by ro...@apache.org on 2020/12/29 13:38:02 UTC

[buildstream] 07/08: New test stage to use the buildbox sandbox

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

root pushed a commit to branch willsalmon/buildbox
in repository https://gitbox.apache.org/repos/asf/buildstream.git

commit 66adab89e7c43fe6b8bad39f08607a2ac78e9ebd
Author: William Salmon <wi...@codethink.co.uk>
AuthorDate: Fri May 17 11:24:00 2019 +0100

    New test stage to use the buildbox sandbox
    
    This test stage should only be needed while we transistion to the
    BuildBox sand box. Once the other test stages switch to use buildbox
    from bubble rap then this test stage will be removed.
    
    These test do not include the integration test as thery are not working
    correctly in CI.
---
 .gitlab-ci.yml | 32 ++++++++++++++++++++++++++++++++
 1 file changed, 32 insertions(+)

diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index bcf7f37..0099990 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -100,6 +100,38 @@ tests-unix:
     # Since the unix platform is required to run as root, no user change required
     - ${TEST_COMMAND}
 
+tests-buildbox:
+  image: registry.gitlab.com/buildstream/buildstream-docker-images/testsuite-fedora:29-master-47052095
+  <<: *tests
+  variables:
+    BST_FORCE_SANDBOX: "buildbox"
+
+  script:
+
+    # We remove the Bubblewrap package here so that we catch any
+    # codepaths that try to use them.
+    - dnf install -y fuse3
+    - dnf erase -y bubblewrap
+
+    # Before buildbox is a first class citizen we need a good install story for users and this test
+    # should mirror that story, for now we build in the test as it is quick and easy.
+
+    # Build and install buildbox
+    - dnf install -y fuse3-devel glibc-static grpc-plugins grpc-devel protobuf-devel cmake gcc gcc-c++ libuuid-devel 
+    - git clone https://gitlab.com/BuildGrid/buildbox/buildbox-fuse.git
+    - cd buildbox-fuse
+    # Pin a specific commit so that any changes to buildbox do not result in unexpected/unannounced buildstream failures
+    - git checkout cdd2b00842c39a8f7162c2ae55bf2cefb925e339
+    - cmake -B build
+    - cmake --build build
+    - cmake --build build --target install
+    - cd ..
+
+    - useradd -Um buildstream
+    - chown -R buildstream:buildstream .
+
+    - su buildstream -c "${TEST_COMMAND}"
+
 tests-fedora-missing-deps:
   # Ensure that tests behave nicely while missing bwrap and ostree
   image: registry.gitlab.com/buildstream/buildstream-docker-images/testsuite-fedora:29-master-47052095