Mesa (master): gitlab-ci: Run only LAVA jobs in special-named branches

GitLab Mirror gitlab-mirror at kemper.freedesktop.org
Tue Nov 5 15:53:47 UTC 2019


Module: Mesa
Branch: master
Commit: 427d0c4b6a17d16751e0b6ad1237abc3d546fe4a
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=427d0c4b6a17d16751e0b6ad1237abc3d546fe4a

Author: Tomeu Vizoso <tomeu.vizoso at collabora.com>
Date:   Fri Nov  1 09:36:49 2019 +0100

gitlab-ci: Run only LAVA jobs in special-named branches

Run only jobs needed for testing on LAVA devices if a branch starts with
lava-ci-.

This allows developers to have faster test cycles as these pipelines
take only a bit above 8 minutes. Also has the advantage of conserving
resources.

Signed-off-by: Tomeu Vizoso <tomeu.vizoso at collabora.com>
Reviewed-by: Eric Engestrom <eric.engestrom at intel.com>

---

 .gitlab-ci/lava-gitlab-ci.yml | 7 +++++--
 1 file changed, 5 insertions(+), 2 deletions(-)

diff --git a/.gitlab-ci/lava-gitlab-ci.yml b/.gitlab-ci/lava-gitlab-ci.yml
index f50f07abb24..e3b31109857 100644
--- a/.gitlab-ci/lava-gitlab-ci.yml
+++ b/.gitlab-ci/lava-gitlab-ci.yml
@@ -8,11 +8,11 @@ include:
     file: '/templates/debian.yml'
 
 # When to automatically run the CI
-.ci-run-policy:
+.lava-ci-run-policy:
   only:
     - branches at mesa/mesa
     - merge_requests
-    - /^ci([-/].*)?$/
+    - /^lava-ci([-/].*)?$/
   retry:
     max: 2
     when:
@@ -23,6 +23,7 @@ include:
   extends:
     - .debian at container-ifnot-exists
     - .container
+    - .lava-ci-run-policy
   variables:
     DEBIAN_TAG: '${DEBIAN_ARCH}-${LAVA_IMAGE_TAG}'
     DEBIAN_EXEC: 'DEBIAN_ARCH=${DEBIAN_ARCH}
@@ -61,6 +62,7 @@ lava-container:arm64:
   image: $CI_REGISTRY_IMAGE/debian/$LAVA_DEBIAN_VERSION:$DEBIAN_ARCH-$LAVA_IMAGE_TAG
   extends:
     - .build-linux
+    - .lava-ci-run-policy
   script:
     # Build Mesa
     - mkdir -p results mesa-build
@@ -138,6 +140,7 @@ lava-build:arm64:
 .lava-test:
   extends:
     - .test
+    - .lava-ci-run-policy
   script:
     - lava_job_id=`lavacli jobs submit $CI_PROJECT_DIR/results/lava-deqp-$DEVICE_TYPE.yml`
     - echo $lava_job_id




More information about the mesa-commit mailing list