[libvirt PATCH 00/20] ci: Move GitLab build recipes to a standalone script

Erik Skultety eskultet at redhat.com
Mon Feb 6 13:52:57 UTC 2023


This is a follow up to:
https://listman.redhat.com/archives/libvir-list/2023-January/237201.html

The effort here is to unify the way builds/tests are executed in GitLab CI vs
local container executions and make another step forward in terms of
reproducibility of (specifically) GitLab environments.

Even though code to run all but one (coverity) jobs from GitLab via the
build.sh script is added with this series, local behavior remains the same as
before this series. The reason for that is that that will require more patches
ridding of the Makefile which is currently used and instead integrate usage of
lcitool with the ci/helper Python script which is currently the entry point for
local container executions.

Pipeline: https://gitlab.com/eskultety/libvirt/-/pipelines/768645158
    Ubuntu is having some repo connection issues today, so the one failed ^job
    can be ignored

Erik Skultety (20):
  gitlab-ci.yml: Replace all explicit calls to ninja with meson commands
  gitlab-ci.yml: potfile: Consolidate the meson compile calls
  gitlab-ci.yml: Use $HOME for rpmbuild's topdir instead of PWD
  ci: build.sh: Drop the commentary about CI_BUILD_SCRIPT
  ci: build.sh: Use 'meson setup' explicitly
  ci: build.sh: Always assume -Dsystem=true
  ci: build.sh: Drop the CI prefix from the CI_{MESON,NINJA}_ARGS vars
  ci: build.sh: Move off of ninja command to directly calling meson
  ci: build.sh: Join MESON_ARGS and MESON_OPTS
  ci: build.sh: Break the script functionality into helper functions
  ci: build.sh: Move the necessary env variables to build.sh
  ci: build.sh: Add support for individual GitLab jobs
  ci: build.sh: Wire up the individual job functions to the CLI
  ci: build.sh: Document CI_CONT_SRCDIR
  ci: build.sh: Make the build script fail ASAP with 'set -e'
  ci: build.sh: Update git index in local container environments on
    'dist'
  ci: build.sh: Make the script executable
  gitlab-ci.yml: Add 'after_script' stage to prep for artifact
    collection
  gitlab-ci.yml: Adopt job execution via a Bash script
  gitlab-ci.yml: Drop the usage of script variables reference

 .gitlab-ci.yml |  56 ++++++++++-------------
 ci/Makefile    |  16 ++++---
 ci/build.sh    | 121 +++++++++++++++++++++++++++++++++++++++++++------
 ci/helper      |  21 ++++++---
 4 files changed, 155 insertions(+), 59 deletions(-)
 mode change 100644 => 100755 ci/build.sh

-- 
2.39.1



More information about the libvir-list mailing list