From e4327557a41d97ad728b0b4d6d1815995ec192ec Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20P=2E=20Berrang=C3=A9?= Date: Thu, 17 Mar 2022 16:29:52 +0000 Subject: [PATCH] ci: only run integration tests if $LIBVIRT_CI_INTEGRATION=1 is set MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Right now the jobs have no rules so they will always be created in a pipeline. If the user's fork has no runner configured, then the jobs will never be able to execute and the pipeline will not finish. Even on upstream, there might be times the runner has to be taken offline for maint work, or unexpectedly fail. We need a quick way to disable the integration tests if we decide we don't want to have pipelines queued until the runner comes back online. Both these problems can be addressed by requiring a environment variable to be set LIBVIRT_CI_INTEGRATION=1 This can be done in the GitLab repo CI settings for permanent enablement. Alternatively it can be set for individual scheduled jobs, or using a push option git push -o ci.variable=LIBVIRT_CI_INTEGRATION=1 Signed-off-by: Daniel P. Berrangé Reviewed-by: Erik Skultety --- ci/integration.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/ci/integration.yml b/ci/integration.yml index 2a6134924f..8551ce8776 100644 --- a/ci/integration.yml +++ b/ci/integration.yml @@ -40,6 +40,10 @@ paths: - logs when: on_failure + rules: + - if: '$LIBVIRT_CI_INTEGRATION' + when: on_success + - when: never centos-stream-8-tests: