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 2022/03/24 20:51:23 UTC

[buildstream] branch abderrahim/test-ci updated (d61147e -> 2a5287f)

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

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


 discard d61147e  test CI
     new 2a5287f  test CI

This update added new revisions after undoing existing revisions.
That is to say, some revisions that were in the old version of the
branch are not in the new version.  This situation occurs
when a user --force pushes a change and generates a repository
containing something like this:

 * -- * -- B -- O -- O -- O   (d61147e)
            \
             N -- N -- N   refs/heads/abderrahim/test-ci (2a5287f)

You should already have received notification emails for all of the O
revisions, and so the following emails describe only the N revisions
from the common base, B.

Any revisions marked "omit" are not gone; other references still
refer to them.  Any revisions marked "discard" are gone forever.

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.


Summary of changes:
 .github/workflows/ci.yml | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

[buildstream] 01/01: test CI

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

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

commit 2a5287f1df3d57324e45c02fcfbe0fca65c86c12
Author: Abderrahim Kitouni <ak...@gnome.org>
AuthorDate: Sun Mar 20 18:27:59 2022 +0100

    test CI
---
 .github/compose/ci.docker-compose.yml |   2 +-
 .github/workflows/ci.yml              | 168 ++++++++++++++++++++++------------
 2 files changed, 108 insertions(+), 62 deletions(-)

diff --git a/.github/compose/ci.docker-compose.yml b/.github/compose/ci.docker-compose.yml
index dacf6d5..e4a1496 100644
--- a/.github/compose/ci.docker-compose.yml
+++ b/.github/compose/ci.docker-compose.yml
@@ -2,7 +2,7 @@ version: '3.4'
 
 x-tests-template: &tests-template
     image: registry.gitlab.com/buildstream/buildstream-docker-images/testsuite-fedora:35-${CI_IMAGE_VERSION:-latest}
-    command: tox -vvvvv -- --color=yes --integration
+    command: 
     environment:
       TOXENV: ${CI_TOXENV_ALL}
 
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
index 7e8bee7..3768cdd 100644
--- a/.github/workflows/ci.yml
+++ b/.github/workflows/ci.yml
@@ -27,84 +27,130 @@ concurrency:
 jobs:
   tests:
     runs-on: ubuntu-20.04
+    container:
+      image: registry.gitlab.com/buildstream/buildstream-docker-images/testsuite-${{matrix.test-name}}-abderrahim-no-testuser-500677583
+      options: --privileged --device=/dev/fuse:/dev/fuse
+    env:
+      GITHUB_WORKSPACE: /home/testuser/buildstream
+
     continue-on-error: ${{ matrix.allow-failure || false }}
 
     strategy:
       fail-fast: false
       matrix:
-
-        # The names here should map to a valid service defined in
-        # "../compose/ci.docker-compose.yml"
         test-name:
-          - debian-10
-          - fedora-34
-          - fedora-35
-          - fedora-missing-deps
-          - lint
-          - mypy
-
-        include:
-          - test-name: plugins-master
-            allow-failure: true
+          - debian:10
+          - fedora:34
+          - fedora:35
+          - fedora:minimal
 
     steps:
-      - name: Check out repository
-        uses: actions/checkout@v2
-        # BuildStream requires tags to be able to find its version.
-        with:
-          fetch-depth: 0
+      - name: Give `testuser` ownership of the source directory
+        run: sudo chown -R 1000:1000 ${GITHUB_WORKSPACE}
 
-      - name: Run tests with Docker Compose
+      - name: test
         run: |
-          ${GITHUB_WORKSPACE}/.github/run-ci.sh ${{ matrix.test-name }}
-
-  # Matrix of tests which run against remote services which we bring up adjacently
-  service-tests:
-    runs-on: ubuntu-20.04
+          echo $GITHUB_WORKSPACE
+          echo ${{ github.workspace }}
 
-    strategy:
-      matrix:
-
-        # The names here map to valid services defined in "../compose/ci.docker-compose.yml",
-        # and they also map to corresponding filenames of services which are expected
-        # to be run in the background
-        test-name:
-          - buildbarn
-          - buildgrid
-
-    steps:
       - name: Check out repository
         uses: actions/checkout@v2
         # BuildStream requires tags to be able to find its version.
         with:
           fetch-depth: 0
 
-      - name: Bring up the RE cluster
+      - name: test
         run: |
-          ${GITHUB_WORKSPACE}/.github/run-ci.sh --service ${{ matrix.test-name }}
-
-  docs:
-    runs-on: ubuntu-20.04
-    steps:
-      - name: Check out repository
-        uses: actions/checkout@v2
-        # BuildStream requires tags to be able to find its version.
-        with:
-          fetch-depth: 0
-
-      - name: Give `testuser` ownership of the source directory
-        run: sudo chown -R 1000:1000 ${GITHUB_WORKSPACE}
+          echo $GITHUB_WORKSPACE
+          ls -l $GITHUB_WORKSPACE
+          echo ${{ github.workspace }}
+          ls -l ${{ github.workspace }}
 
-      - name: Build documentation using Docker Compose
+      - name: Run tests
         run: |
-          docker-compose \
-            --env-file ${GITHUB_WORKSPACE}/.github/common.env \
-            --file ${GITHUB_WORKSPACE}/.github/compose/ci.docker-compose.yml \
-            run \
-            docs
-
-      - name: Upload artifacts
-        uses: actions/upload-artifact@v2
-        with:
-          name: docs
-          path: doc/build/html
+          ls -l
+          tox -vvvvv -- --color=yes --integration
+
+  # tests:
+  #   runs-on: ubuntu-20.04
+  #   continue-on-error: ${{ matrix.allow-failure || false }}
+
+  #   strategy:
+  #     fail-fast: false
+  #     matrix:
+
+  #       # The names here should map to a valid service defined in
+  #       # "../compose/ci.docker-compose.yml"
+  #       test-name:
+  #         - debian-10
+  #         - fedora-34
+  #         - fedora-35
+  #         - fedora-missing-deps
+  #         - lint
+  #         - mypy
+
+  #       include:
+  #         - test-name: plugins-master
+  #           allow-failure: true
+
+  #   steps:
+  #     - name: Check out repository
+  #       uses: actions/checkout@v2
+  #       # BuildStream requires tags to be able to find its version.
+  #       with:
+  #         fetch-depth: 0
+
+  #     - name: Run tests with Docker Compose
+  #       run: |
+  #         ${GITHUB_WORKSPACE}/.github/run-ci.sh ${{ matrix.test-name }}
+
+  # Matrix of tests which run against remote services which we bring up adjacently
+  # service-tests:
+  #   runs-on: ubuntu-20.04
+
+  #   strategy:
+  #     matrix:
+
+  #       # The names here map to valid services defined in "../compose/ci.docker-compose.yml",
+  #       # and they also map to corresponding filenames of services which are expected
+  #       # to be run in the background
+  #       test-name:
+  #         - buildbarn
+  #         - buildgrid
+
+  #   steps:
+  #     - name: Check out repository
+  #       uses: actions/checkout@v2
+  #       # BuildStream requires tags to be able to find its version.
+  #       with:
+  #         fetch-depth: 0
+
+  #     - name: Bring up the RE cluster
+  #       run: |
+  #         ${GITHUB_WORKSPACE}/.github/run-ci.sh --service ${{ matrix.test-name }}
+
+  # docs:
+  #   runs-on: ubuntu-20.04
+  #   steps:
+  #     - name: Check out repository
+  #       uses: actions/checkout@v2
+  #       # BuildStream requires tags to be able to find its version.
+  #       with:
+  #         fetch-depth: 0
+
+  #     - name: Give `testuser` ownership of the source directory
+  #       run: sudo chown -R 1000:1000 ${GITHUB_WORKSPACE}
+
+  #     - name: Build documentation using Docker Compose
+  #       run: |
+  #         docker-compose \
+  #           --env-file ${GITHUB_WORKSPACE}/.github/common.env \
+  #           --file ${GITHUB_WORKSPACE}/.github/compose/ci.docker-compose.yml \
+  #           run \
+  #           docs
+
+  #     - name: Upload artifacts
+  #       uses: actions/upload-artifact@v2
+  #       with:
+  #         name: docs
+  #         path: doc/build/html