[gnome-build-meta/sam/openqa-extra-tests-variable] ci: Add EXTRA_TESTS custom pipeline variable
- From: Sam Thursfield <sthursfield src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-build-meta/sam/openqa-extra-tests-variable] ci: Add EXTRA_TESTS custom pipeline variable
- Date: Tue, 13 Sep 2022 15:32:01 +0000 (UTC)
commit 3ab7bb5a0701bee4f97c181ad503fec4033445ab
Author: Sam Thursfield <sam thursfield codethink co uk>
Date: Tue Sep 13 16:23:41 2022 +0100
ci: Add EXTRA_TESTS custom pipeline variable
This variable can be set in scheduled pipelines and when manually
starting pipelines. When set to `openqa` it causes the
iso-installer-x86_64 and test-iso-installer-x86_64 jobs to run
by default, providing a one-step method to trigger an OpenQA test
cycle.
This is a big improvement on the current method which can take
several hours and involves: (1) waiting for 'track' and 'build' to
complete, (2) starting 'iso-installer-x86_64' manually, (3) waiting for
that to complete, (4) finally, starting 'test-iso-installer-x86_64'.
Fixes https://gitlab.gnome.org/GNOME/gnome-build-meta/-/issues/517
.gitlab-ci.yml | 14 +++++++++++++-
1 file changed, 13 insertions(+), 1 deletion(-)
---
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index fcf8d8c0d..abc9d82cf 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -15,6 +15,9 @@ variables:
DOCKER_REGISTRY: "registry.gitlab.com/freedesktop-sdk/infrastructure/freedesktop-sdk-docker-images"
DOCKER_IMAGE_ID: "543571583e6271ede4c706aff60d389cf26a13e9"
+ # Set "EXTRA_TESTS=openqa" when starting pipeline to run full set of OpenQA tests.
+ EXTRA_TESTS: ''
+
stages:
- track
- build
@@ -304,6 +307,11 @@ iso-installer-x86_64:
extends:
- .manual-image-template
- .x86_64
+ rules:
+ - if: $EXTRA_TESTS =~ /openqa/
+ when: on_success
+ - if: $CI_PIPELINE_SOURCE != 'merge_request_event'
+ when: manual
variables:
IMAGE: iso/image.bst
needs:
@@ -436,7 +444,11 @@ test-iso-installer-x86_64:
image:
name: registry.opensuse.org/devel/openqa/containers15.4/openqa_worker:latest
entrypoint: ["/bin/bash", "-c"]
- when: manual
+ rules:
+ - if: $EXTRA_TESTS =~ /openqa/
+ when: on_success
+ - if: $CI_PIPELINE_SOURCE != 'merge_request_event'
+ when: manual
variables:
IMAGE: iso/image.bst
# CI needs to be set so OPENQA_TEST_TIMEOUT_SCALE_CI has an effect.
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]