[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[RFC PATCH 16/16] gitlab-ci: Do not automatically run integration tests
From: |
Philippe Mathieu-Daudé |
Subject: |
[RFC PATCH 16/16] gitlab-ci: Do not automatically run integration tests for push events |
Date: |
Tue, 10 Nov 2020 17:01:40 +0100 |
The tests run by 'make check-acceptance' are sometime flaky,
making maintainers reluctant to use GitLab. Disable them for
now. We might re-enable some gradually, or let each maintainer
enable a set of interest.
Keep automatically running the integration tests for the various
GitLab events, except when we push to a repository.
Per the $CI_PIPELINE_SOURCE entry in [*] the possible events are:
- push
- web
- schedule
- api
- external
- chat
- webide
- merge_request_event
- external_pull_request_event
- parent_pipeline
- trigger
- cross_project_pipeline
[*] https://docs.gitlab.com/ee/ci/variables/predefined_variables.html
Signed-off-by: Philippe Mathieu-Daudé <philmd@redhat.com>
---
.gitlab-ci.yml | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 6cf4c19c604..c57e0fa1ab9 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -80,6 +80,10 @@ include:
- cd build
- python3 -c 'import json; r =
json.load(open("tests/results/latest/results.json")); [print(t["logfile"]) for
t in r["tests"] if t["status"] not in ("PASS", "SKIP", "CANCEL")]' | xargs cat
- du -chs ${CI_PROJECT_DIR}/avocado-cache
+ rules: # Do not automatically run integration tests for push events
+ - if: '$CI_PIPELINE_SOURCE == "push"'
+ when: manual
+ allow_failure: true
build-system-ubuntu:
extends: .native_build_job
--
2.26.2
- [RFC PATCH 10/16] gitlab-ci: Introduce the CI "job maintainer" concept, (continued)
- [RFC PATCH 10/16] gitlab-ci: Introduce the CI "job maintainer" concept, Philippe Mathieu-Daudé, 2020/11/10
- [RFC PATCH 11/16] gitlab-ci: Mark some jobs maintained by Red Hat Virt CI team, Philippe Mathieu-Daudé, 2020/11/10
- [RFC PATCH 12/16] gitlab-ci: Mark Bin Meng maintainer of the OpenSBI job, Philippe Mathieu-Daudé, 2020/11/10
- [RFC PATCH 13/16] gitlab-ci: Mark Alex Bennée maintainer of Debian / Ubuntu jobs, Philippe Mathieu-Daudé, 2020/11/10
- [RFC PATCH 14/16] gitlab-ci: Mark Stefan Weil maintainer of the TCI job, Philippe Mathieu-Daudé, 2020/11/10
- [RFC PATCH 15/16] gitlab-ci: Volunteer to maintain Debian based and hobbyist jobs, Philippe Mathieu-Daudé, 2020/11/10
- [RFC PATCH 16/16] gitlab-ci: Do not automatically run integration tests for push events,
Philippe Mathieu-Daudé <=