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

[buildstream] 08/08: Add external plugin tests to CI

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

not-in-ldap pushed a commit to branch coldtom/external-plugins
in repository https://gitbox.apache.org/repos/asf/buildstream.git

commit 94e9cc542b3e8154706809e5dde54ff9e7235d31
Author: Thomas Coldrick <th...@codethink.co.uk>
AuthorDate: Fri Sep 20 11:46:23 2019 +0100

    Add external plugin tests to CI
    
    Runs external plugin tests on fedora 29 with allowed failure.
    
    At present this only tests against a branch, as there is tooling missing
    in bst-plugins-experimental, and there is no tag which would be
    compatible. In future there should be two targets, one testing plugins
    master and one testing the last tag.
---
 .gitlab-ci.yml | 15 +++++++++++++--
 1 file changed, 13 insertions(+), 2 deletions(-)

diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index ef31ad3..51e0f8c 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -18,7 +18,7 @@ variables:
   INTEGRATION_CACHE: "${CI_PROJECT_DIR}/cache/integration-cache"
   PYTEST_ARGS: "--color=yes --integration -n 2"
   TEST_COMMAND: "tox -- ${PYTEST_ARGS}"
-  EXTERNAL_TESTS_COMMAND: "tox -e py{35,36,37}-external -- ${PYTEST_ARGS}"
+  EXTERNAL_TESTS_COMMAND: "tox -e py37-plugins-master -- ${PYTEST_ARGS}"
   COVERAGE_PREFIX: "${CI_JOB_NAME}."
 
 
@@ -44,7 +44,6 @@ variables:
 
   # Run the tests as a simple user to test for permission issues
   - su buildstream -c "${TEST_COMMAND}"
-  - su buildstream -c "${EXTERNAL_TESTS_COMMAND}"
 
   after_script:
   except:
@@ -195,6 +194,18 @@ tests-spawn-multiprocessing-start-method:
   variables:
     BST_FORCE_START_METHOD: "spawn"
 
+tests-external-plugins:
+  image: registry.gitlab.com/buildstream/buildstream-docker-images/testsuite-fedora:30-master-83237142
+  allow_failure: true
+  script:
+  - mkdir -p "${INTEGRATION_CACHE}"
+  - useradd -Um buildstream
+  - chown -R buildstream:buildstream .
+
+  # Run the tests as a simple user to test for permission issues
+  - su buildstream -c "${EXTERNAL_TESTS_COMMAND}"
+
+
 # Run type checkers
 mypy:
   stage: test