Skip to content

gitlab: restrict running jobs in forks and upstream master

Daniel P. Berrangé qemu-devel 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest5 patches 5 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/5gitlab: introduce a common base job template.gitlab-ci.d/base.yml .gitlab-ci.d/qemu-project.yml docs/devel/ci-jobs.rst.inc+64 -10 replies
2/5gitlab: convert Cirrus jobs to .base_job_template.gitlab-ci.d/base.yml .gitlab-ci.d/cirrus.yml docs/devel/ci-jobs.rst.inc+31 -80 replies
3/5gitlab: convert static checks to .base_job_template.gitlab-ci.d/base.yml .gitlab-ci.d/static_checks.yml docs/devel/ci-jobs.rst.inc+18 -120 replies
4/5gitlab: convert build/container jobs to .base_job_template.gitlab-ci.d/base.yml .gitlab-ci.d/buildtest-template.yml .gitlab-ci.d/buildtest.yml +5 more+65 -312 replies
5/5gitlab: don't run CI jobs in forks by default.gitlab-ci.d/base.yml docs/devel/ci-jobs.rst.inc+21 -02 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/5] gitlab: restrict running jobs in forks and upstream master

Currently on upstream most jobs will run in both staging and master. This is quite wasteful of CI credits. The only need to run in master is for the jobs related to publishing the website

In forks we run jobs on every push. With restricted CI allowance this is quickly going to cause problems.

With this series jobs will no longer run on forks at all, without an opt-in with QEMU_CI=1 (pipeline with manual jobs) or QEMU_CI=2 (pipeline with immediate jobs)

This is a rewrite of a previous proposal:

https://lists.nongnu.org/archive/html/qemu-devel/2021-08/msg02104.html

where I've kept it simpler and also split up the patches into more understandable chunks

Daniel P. Berrangé (5):
gitlab: introduce a common base job template
gitlab: convert Cirrus jobs to .base_job_template
gitlab: convert static checks to .base_job_template
gitlab: convert build/container jobs to .base_job_template
gitlab: don't run CI jobs in forks by default

 .gitlab-ci.d/base.yml                | 72 +++++++++++++++++++++++
 .gitlab-ci.d/buildtest-template.yml  | 16 ++---
 .gitlab-ci.d/buildtest.yml           | 28 ++++-----
 .gitlab-ci.d/cirrus.yml              | 16 ++---
 .gitlab-ci.d/container-cross.yml     |  6 +-
 .gitlab-ci.d/container-template.yml  |  1 +
 .gitlab-ci.d/crossbuild-template.yml |  3 +
 .gitlab-ci.d/qemu-project.yml        |  1 +
 .gitlab-ci.d/static_checks.yml       | 19 +++---
 .gitlab-ci.d/windows.yml             |  1 +
 docs/devel/ci-jobs.rst.inc           | 88 +++++++++++++++++++++++++++-
 11 files changed, 199 insertions(+), 52 deletions(-)
 create mode 100644 .gitlab-ci.d/base.yml
Signature · 1 line
2.36.1