Commit Graph

23 Commits

Author SHA1 Message Date
Daniel P. Berrangé
1e99e5e4f4 ci: refresh with latest lcitool manifest
This refresh switches the CI for contributors to be triggered by merge
requests. Pushing to a branch in a fork will no longer run CI pipelines,
in order to avoid consuming CI minutes. To regain the original behaviour
contributors can opt-in to a pipeline on push

   git push <remote> -o ci.variable=RUN_PIPELINE=1

This variable can also be set globally on the repository, though this is
not recommended. Upstream repo pushes to branches will run CI.

The use of containers has changed in this update, with only the upstream
repo creating containers, in order to avoid consuming contributors'
limited storage quotas. A fork with existing container images may delete
them. Containers will be rebuilt upstream when pushing commits with CI
changes to the default branch. Any other scenario with CI changes will
simply install build pre-requisite packages in a throaway environment,
using the ci/buildenv/ scripts. These scripts may also be used on a
contributor's local machines.

With pipelines triggered by merge requests, it is also now possible to
workaround the inability of contributors to run pipelines if they have
run out of CI quota. A project member can trigger a pipeline from the
merge request, which will run in context of upstream, however, note
this should only be done after reviewing the code for any malicious
CI changes.

Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
2022-09-30 10:10:21 -04:00
Daniel P. Berrangé
17a6ed6907 gitlab: fix deps for 'codestyle' job
The container jobs only exist if there was a dockerfile change in the
pipeline, so the dep from the 'codestyle' job needs to be marked as
optional

Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
2022-08-22 17:06:29 +01:00
Daniel P. Berrangé
8cd7451192 ci: refresh from lcitool manifest
Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
2022-04-27 11:27:45 +01:00
Daniel P. Berrangé
a0f00dfe2b ci: re-generate containers/gitlab config from manifest
This uses the command "lcitool manifest ci/manifest.yml" to re-generate
all existing dockerfiles and gitlab CI config.

Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
2021-09-10 13:34:07 +01:00
Daniel P. Berrangé
a2323dccb2 gitlab: remove centos-7 build target
This platform is no longer supported by libvirt.

Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
2021-09-10 12:37:37 +01:00
Daniel P. Berrangé
56339ae111 gitlab: use custom docker:dind image
The current docker:dind container has broken default seccomp filter that
results in clone3 being blocked, which in turn breaks Fedora 35 rawhide.

This custom image has a workaround that causes the seccomp filter to
return ENOSYS for clone3 instad of EPERM, thus triggering glibc to
fallback to clone correctly.

Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
2021-07-27 14:55:13 +01:00
Daniel P. Berrangé
8eb7ff6688 gitlab: don't block container / build jobs on DCO check
Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
2021-01-25 16:02:48 +00:00
Daniel P. Berrangé
f03e009eb7 gitlab: convert CI to use meson instead of autotools
A new 'codestyle' job is added for syntax-check, since that is not run
as part of the 'dist' target.

Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
2021-01-25 16:02:48 +00:00
Daniel P. Berrangé
d1ed3d4e75 gitlab: refresh container images
This replaces opensuse 15.1 with 15.2

This bring in the missing vte package dep

Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
2021-01-22 16:14:40 +00:00
Daniel P. Berrangé
696b835911 gitlab: convert to use meson for libvirt-glib
https://gitlab.com/libvirt/libvirt-glib/-/issues/2
Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
2021-01-12 20:05:44 +00:00
Daniel P. Berrangé
b23b53a728 gitlab: update build rules for changed gtk-vnc meson options
Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
2021-01-11 17:01:38 +00:00
Daniel P. Berrangé
dae506032f gitlab: rename dockerfiles to have a "ci-" prefix
This means the dockerfile has the same name as the generated container
image.

Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
2020-12-04 10:42:59 +00:00
Daniel P. Berrangé
ab84b11b2d gitlab: re-generate container images from lcitool
This introduces Fedora 33 and removes some redundant packages.

Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
2020-12-04 10:42:59 +00:00
Daniel P. Berrangé
3d3f0fbe26 gitlab: move dockerfiles into ci/containers sub-directory
This brings the repo into alignment with the main libvirt.git practice.

Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
2020-12-04 10:42:59 +00:00
Daniel P. Berrangé
d8c329b024 gitlab: adapt CI rules for libvirt use of meson
Libvirt changed from using autotools to meson, so we need to adapt the
GitLab CI recipe.

Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
2020-08-19 18:32:24 +01:00
Daniel P. Berrangé
9562e0cbcd ci: adapt for meson 0.55 change in cross compilers
Previously meson searched $PATH for libgcrypt-config, but it no longer
does this for cross-builds.

The dockerfile changes can be dropped when the following hits rawhide
container images:

  https://bugzilla.redhat.com/show_bug.cgi?id=1856446

Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
2020-07-13 18:54:11 +01:00
Daniel P. Berrangé
82a0612cc8 gitlab: add coverage of mingw builds
Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
2020-06-26 15:50:50 +01:00
Daniel P. Berrangé
a0f4d1490a gitlab: add builds on CentOS 8 Stream
Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
2020-06-26 15:50:50 +01:00
Daniel P. Berrangé
aa4482a223 gitlab: refactor recipe for native builds
Currently on every distro we build against the latest git libvirt
and related deps. We need to test multiple axis:

 - A variety of libvirt versions
 - A variety of distro versions

So this changes most jobs to build against the distro provided
libvirt and related deps. The CentOS 8 job is kept building
against latest git master libvirt and deps.

Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
2020-06-26 15:50:50 +01:00
Daniel P. Berrangé
646662bceb gitlab: ensure "make syntax-check" is run during CI
This will stop style errors creeping in via merge requests

Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
2020-06-26 15:50:50 +01:00
Daniel P. Berrangé
27ea968c70 gitlab: introduce CI jobs for building on multiple distros
Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
2020-05-22 12:22:00 +01:00
Daniel P. Berrangé
88d19fb210 gitlab: convert to use the common DCO check image
Instead of building our own DCO check image, just reuse the common image
provided by the libvirt-ci project.

Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
2020-05-22 12:22:00 +01:00
Daniel P. Berrangé
ae4f4ea972 gitlab: introduce minimal CI job for checking DCO signoff
Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
2020-04-03 16:57:02 +01:00