mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-12-22 05:35:25 +00:00
ci: Regenerate with latest 'lcitool' and fix manual job definitions
The latest lcitool merged the 'prebuilt-env' and 'local-env' jobs into one which use variables to pick up the right environment and steps rather than duplicating everything. Regenerate the generated job definitions, fix the helper definitions and also fix the manually defined jobs (website-job). Signed-off-by: Peter Krempa <pkrempa@redhat.com> Reviewed-by: Daniel P. Berrangé <berrange@redhat.com>
This commit is contained in:
parent
8581ec7e68
commit
7a1285216b
@ -20,6 +20,7 @@ include:
|
|||||||
- '/ci/integration.yml'
|
- '/ci/integration.yml'
|
||||||
|
|
||||||
.native_build_job:
|
.native_build_job:
|
||||||
|
extends: .gitlab_native_build_job
|
||||||
cache:
|
cache:
|
||||||
paths:
|
paths:
|
||||||
- ccache/
|
- ccache/
|
||||||
@ -40,17 +41,8 @@ include:
|
|||||||
mv "$HOME"/rpmbuild/RPMS/x86_64/ libvirt-rpms/;
|
mv "$HOME"/rpmbuild/RPMS/x86_64/ libvirt-rpms/;
|
||||||
fi
|
fi
|
||||||
|
|
||||||
.native_build_job_prebuilt_env:
|
|
||||||
extends:
|
|
||||||
- .native_build_job
|
|
||||||
- .gitlab_native_build_job_prebuilt_env
|
|
||||||
|
|
||||||
.native_build_job_local_env:
|
|
||||||
extends:
|
|
||||||
- .native_build_job
|
|
||||||
- .gitlab_native_build_job_local_env
|
|
||||||
|
|
||||||
.cross_build_job:
|
.cross_build_job:
|
||||||
|
extends: .gitlab_cross_build_job
|
||||||
cache:
|
cache:
|
||||||
paths:
|
paths:
|
||||||
- ccache/
|
- ccache/
|
||||||
@ -68,21 +60,14 @@ include:
|
|||||||
fi;
|
fi;
|
||||||
fi
|
fi
|
||||||
|
|
||||||
.cross_build_job_prebuilt_env:
|
|
||||||
extends:
|
|
||||||
- .cross_build_job
|
|
||||||
- .gitlab_cross_build_job_prebuilt_env
|
|
||||||
|
|
||||||
.cross_build_job_local_env:
|
|
||||||
extends:
|
|
||||||
- .cross_build_job
|
|
||||||
- .gitlab_cross_build_job_local_env
|
|
||||||
|
|
||||||
|
|
||||||
# This artifact published by this job is downloaded by libvirt.org to
|
# This artifact published by this job is downloaded by libvirt.org to
|
||||||
# be deployed to the web root:
|
# be deployed to the web root:
|
||||||
# https://gitlab.com/libvirt/libvirt/-/jobs/artifacts/master/download?job=website
|
# https://gitlab.com/libvirt/libvirt/-/jobs/artifacts/master/download?job=website
|
||||||
.website_job:
|
website_job:
|
||||||
|
extends: .gitlab_native_build_job
|
||||||
|
needs:
|
||||||
|
- job: x86_64-almalinux-8-container
|
||||||
|
optional: true
|
||||||
script:
|
script:
|
||||||
- source ci/jobs.sh
|
- source ci/jobs.sh
|
||||||
- run_website_build
|
- run_website_build
|
||||||
@ -96,50 +81,21 @@ include:
|
|||||||
expire_in: 30 days
|
expire_in: 30 days
|
||||||
paths:
|
paths:
|
||||||
- website
|
- website
|
||||||
|
|
||||||
website_prebuilt_env:
|
|
||||||
extends:
|
|
||||||
- .website_job
|
|
||||||
- .gitlab_native_build_job_prebuilt_env
|
|
||||||
needs:
|
|
||||||
- job: x86_64-almalinux-8-container
|
|
||||||
optional: true
|
|
||||||
variables:
|
variables:
|
||||||
NAME: almalinux-8
|
NAME: almalinux-8
|
||||||
|
TARGET_BASE_IMAGE: docker.io/library/almalinux:8
|
||||||
website_local_env:
|
|
||||||
extends:
|
|
||||||
- .website_job
|
|
||||||
- .gitlab_native_build_job_local_env
|
|
||||||
variables:
|
|
||||||
IMAGE: docker.io/library/almalinux:8
|
|
||||||
NAME: almalinux-8
|
|
||||||
|
|
||||||
|
|
||||||
.codestyle_job:
|
.codestyle_job:
|
||||||
stage: sanity_checks
|
stage: sanity_checks
|
||||||
script:
|
|
||||||
- source ci/jobs.sh
|
|
||||||
- run_codestyle
|
|
||||||
|
|
||||||
codestyle_prebuilt_env:
|
|
||||||
extends:
|
|
||||||
- .codestyle_job
|
|
||||||
- .gitlab_native_build_job_prebuilt_env
|
|
||||||
needs:
|
needs:
|
||||||
- job: x86_64-opensuse-leap-15-container
|
- job: x86_64-opensuse-leap-15-container
|
||||||
optional: true
|
optional: true
|
||||||
|
script:
|
||||||
|
- source ci/jobs.sh
|
||||||
|
- run_codestyle
|
||||||
variables:
|
variables:
|
||||||
NAME: opensuse-leap-15
|
NAME: opensuse-leap-15
|
||||||
|
TARGET_BASE_IMAGE: registry.opensuse.org/opensuse/leap:15.5
|
||||||
codestyle_local_env:
|
|
||||||
extends:
|
|
||||||
- .codestyle_job
|
|
||||||
- .gitlab_native_build_job_local_env
|
|
||||||
variables:
|
|
||||||
IMAGE: registry.opensuse.org/opensuse/leap:15.4
|
|
||||||
NAME: opensuse-leap-15
|
|
||||||
|
|
||||||
|
|
||||||
# This artifact published by this job is downloaded to push to Weblate
|
# This artifact published by this job is downloaded to push to Weblate
|
||||||
# for translation usage:
|
# for translation usage:
|
||||||
|
@ -20,16 +20,25 @@
|
|||||||
# include CI changes
|
# include CI changes
|
||||||
# - Validating code committed to a fork branch
|
# - Validating code committed to a fork branch
|
||||||
#
|
#
|
||||||
# Note: the rules across the prebuilt_env and local_env templates
|
# Note: the rules across the prebuilt and local container scenarios
|
||||||
# should be logical inverses, such that jobs are mutually exclusive
|
# should be logical inverses, such that jobs are mutually exclusive
|
||||||
#
|
#
|
||||||
.gitlab_native_build_job_prebuilt_env:
|
.gitlab_native_build_job:
|
||||||
image: $CI_REGISTRY/$RUN_UPSTREAM_NAMESPACE/libvirt/ci-$NAME:latest
|
image: $IMAGE
|
||||||
stage: builds
|
stage: builds
|
||||||
interruptible: true
|
interruptible: true
|
||||||
before_script:
|
before_script:
|
||||||
|
- if test "$IMAGE" == "$TARGET_BASE_IMAGE" ;
|
||||||
|
then
|
||||||
|
source ci/buildenv/$NAME.sh ;
|
||||||
|
install_buildenv ;
|
||||||
|
fi
|
||||||
- cat /packages.txt
|
- cat /packages.txt
|
||||||
|
variables:
|
||||||
|
IMAGE: $CI_REGISTRY/$RUN_UPSTREAM_NAMESPACE/libvirt/ci-$NAME:latest
|
||||||
rules:
|
rules:
|
||||||
|
### Rules where we expect to use pre-built container images
|
||||||
|
|
||||||
# upstream: pushes to the default branch
|
# upstream: pushes to the default branch
|
||||||
- if: '$CI_PROJECT_NAMESPACE == $RUN_UPSTREAM_NAMESPACE && $CI_PIPELINE_SOURCE == "push" && $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH && $JOB_OPTIONAL'
|
- if: '$CI_PROJECT_NAMESPACE == $RUN_UPSTREAM_NAMESPACE && $CI_PIPELINE_SOURCE == "push" && $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH && $JOB_OPTIONAL'
|
||||||
when: manual
|
when: manual
|
||||||
@ -63,49 +72,41 @@
|
|||||||
- if: '$CI_PIPELINE_SOURCE == "merge_request_event" && $CI_MERGE_REQUEST_TARGET_BRANCH_NAME == $CI_DEFAULT_BRANCH'
|
- if: '$CI_PIPELINE_SOURCE == "merge_request_event" && $CI_MERGE_REQUEST_TARGET_BRANCH_NAME == $CI_DEFAULT_BRANCH'
|
||||||
when: on_success
|
when: on_success
|
||||||
|
|
||||||
# upstream+forks: that's all folks
|
|
||||||
- when: never
|
|
||||||
|
|
||||||
.gitlab_native_build_job_local_env:
|
### Rules where we need to use the target base container image
|
||||||
image: $IMAGE
|
|
||||||
stage: builds
|
|
||||||
interruptible: true
|
|
||||||
before_script:
|
|
||||||
- source ci/buildenv/$NAME.sh
|
|
||||||
- install_buildenv
|
|
||||||
- cat /packages.txt
|
|
||||||
rules:
|
|
||||||
# upstream: pushes to a non-default branch
|
|
||||||
- if: '$CI_PROJECT_NAMESPACE == $RUN_UPSTREAM_NAMESPACE && $CI_PIPELINE_SOURCE == "push" && $CI_COMMIT_BRANCH != $CI_DEFAULT_BRANCH && $JOB_OPTIONAL'
|
|
||||||
when: manual
|
|
||||||
allow_failure: true
|
|
||||||
- if: '$CI_PROJECT_NAMESPACE == $RUN_UPSTREAM_NAMESPACE && $CI_PIPELINE_SOURCE == "push" && $CI_COMMIT_BRANCH != $CI_DEFAULT_BRANCH'
|
|
||||||
when: on_success
|
|
||||||
|
|
||||||
# forks: avoid build in local env when job requests run in upstream containers
|
|
||||||
- if: '$CI_PROJECT_NAMESPACE != $RUN_UPSTREAM_NAMESPACE && $CI_PIPELINE_SOURCE == "push" && $RUN_PIPELINE_UPSTREAM_ENV'
|
|
||||||
when: never
|
|
||||||
|
|
||||||
# forks: pushes to branches with pipeline requested
|
# forks: pushes to branches with pipeline requested
|
||||||
- if: '$CI_PROJECT_NAMESPACE != $RUN_UPSTREAM_NAMESPACE && $CI_PIPELINE_SOURCE == "push" && $RUN_PIPELINE && $JOB_OPTIONAL'
|
- if: '$CI_PROJECT_NAMESPACE != $RUN_UPSTREAM_NAMESPACE && $CI_PIPELINE_SOURCE == "push" && $RUN_PIPELINE && $JOB_OPTIONAL'
|
||||||
when: manual
|
when: manual
|
||||||
allow_failure: true
|
allow_failure: true
|
||||||
|
variables:
|
||||||
|
IMAGE: $TARGET_BASE_IMAGE
|
||||||
- if: '$CI_PROJECT_NAMESPACE != $RUN_UPSTREAM_NAMESPACE && $CI_PIPELINE_SOURCE == "push" && $RUN_PIPELINE'
|
- if: '$CI_PROJECT_NAMESPACE != $RUN_UPSTREAM_NAMESPACE && $CI_PIPELINE_SOURCE == "push" && $RUN_PIPELINE'
|
||||||
when: on_success
|
when: on_success
|
||||||
|
variables:
|
||||||
|
IMAGE: $TARGET_BASE_IMAGE
|
||||||
|
|
||||||
# upstream: other web/api/scheduled pipelines targeting non-default branches
|
# upstream: other web/api/scheduled pipelines targeting non-default branches
|
||||||
- if: '$CI_PROJECT_NAMESPACE == $RUN_UPSTREAM_NAMESPACE && $CI_PIPELINE_SOURCE =~ /(web|api|schedule)/ && $CI_COMMIT_REF_NAME != $CI_DEFAULT_BRANCH && $JOB_OPTIONAL'
|
- if: '$CI_PROJECT_NAMESPACE == $RUN_UPSTREAM_NAMESPACE && $CI_PIPELINE_SOURCE =~ /(web|api|schedule)/ && $CI_COMMIT_REF_NAME != $CI_DEFAULT_BRANCH && $JOB_OPTIONAL'
|
||||||
when: manual
|
when: manual
|
||||||
allow_failure: true
|
allow_failure: true
|
||||||
|
variables:
|
||||||
|
IMAGE: $TARGET_BASE_IMAGE
|
||||||
- if: '$CI_PROJECT_NAMESPACE == $RUN_UPSTREAM_NAMESPACE && $CI_PIPELINE_SOURCE =~ /(web|api|schedule)/ && $CI_COMMIT_REF_NAME != $CI_DEFAULT_BRANCH'
|
- if: '$CI_PROJECT_NAMESPACE == $RUN_UPSTREAM_NAMESPACE && $CI_PIPELINE_SOURCE =~ /(web|api|schedule)/ && $CI_COMMIT_REF_NAME != $CI_DEFAULT_BRANCH'
|
||||||
when: on_success
|
when: on_success
|
||||||
|
variables:
|
||||||
|
IMAGE: $TARGET_BASE_IMAGE
|
||||||
|
|
||||||
# forks: other web/api/scheduled pipelines
|
# forks: other web/api/scheduled pipelines
|
||||||
- if: '$CI_PROJECT_NAMESPACE != $RUN_UPSTREAM_NAMESPACE && $CI_PIPELINE_SOURCE =~ /(web|api|schedule)/ && $JOB_OPTIONAL'
|
- if: '$CI_PROJECT_NAMESPACE != $RUN_UPSTREAM_NAMESPACE && $CI_PIPELINE_SOURCE =~ /(web|api|schedule)/ && $JOB_OPTIONAL'
|
||||||
when: manual
|
when: manual
|
||||||
allow_failure: true
|
allow_failure: true
|
||||||
|
variables:
|
||||||
|
IMAGE: $TARGET_BASE_IMAGE
|
||||||
- if: '$CI_PROJECT_NAMESPACE != $RUN_UPSTREAM_NAMESPACE && $CI_PIPELINE_SOURCE =~ /(web|api|schedule)/'
|
- if: '$CI_PROJECT_NAMESPACE != $RUN_UPSTREAM_NAMESPACE && $CI_PIPELINE_SOURCE =~ /(web|api|schedule)/'
|
||||||
when: on_success
|
when: on_success
|
||||||
|
variables:
|
||||||
|
IMAGE: $TARGET_BASE_IMAGE
|
||||||
|
|
||||||
# upstream+forks: merge requests targeting the default branch, with CI changes
|
# upstream+forks: merge requests targeting the default branch, with CI changes
|
||||||
- if: '$CI_PIPELINE_SOURCE == "merge_request_event" && $CI_MERGE_REQUEST_TARGET_BRANCH_NAME == $CI_DEFAULT_BRANCH && $JOB_OPTIONAL'
|
- if: '$CI_PIPELINE_SOURCE == "merge_request_event" && $CI_MERGE_REQUEST_TARGET_BRANCH_NAME == $CI_DEFAULT_BRANCH && $JOB_OPTIONAL'
|
||||||
@ -114,18 +115,28 @@
|
|||||||
- ci/containers/$NAME.Dockerfile
|
- ci/containers/$NAME.Dockerfile
|
||||||
when: manual
|
when: manual
|
||||||
allow_failure: true
|
allow_failure: true
|
||||||
|
variables:
|
||||||
|
IMAGE: $TARGET_BASE_IMAGE
|
||||||
- if: '$CI_PIPELINE_SOURCE == "merge_request_event" && $CI_MERGE_REQUEST_TARGET_BRANCH_NAME == $CI_DEFAULT_BRANCH'
|
- if: '$CI_PIPELINE_SOURCE == "merge_request_event" && $CI_MERGE_REQUEST_TARGET_BRANCH_NAME == $CI_DEFAULT_BRANCH'
|
||||||
changes:
|
changes:
|
||||||
- ci/gitlab/container-templates.yml
|
- ci/gitlab/container-templates.yml
|
||||||
- ci/containers/$NAME.Dockerfile
|
- ci/containers/$NAME.Dockerfile
|
||||||
when: on_success
|
when: on_success
|
||||||
|
variables:
|
||||||
|
IMAGE: $TARGET_BASE_IMAGE
|
||||||
|
|
||||||
# upstream+forks: merge requests targeting non-default branches
|
# upstream+forks: merge requests targeting non-default branches
|
||||||
- if: '$CI_PIPELINE_SOURCE == "merge_request_event" && $CI_MERGE_REQUEST_TARGET_BRANCH_NAME != $CI_DEFAULT_BRANCH && $JOB_OPTIONAL'
|
- if: '$CI_PIPELINE_SOURCE == "merge_request_event" && $CI_MERGE_REQUEST_TARGET_BRANCH_NAME != $CI_DEFAULT_BRANCH && $JOB_OPTIONAL'
|
||||||
when: manual
|
when: manual
|
||||||
allow_failure: true
|
allow_failure: true
|
||||||
|
variables:
|
||||||
|
IMAGE: $TARGET_BASE_IMAGE
|
||||||
- if: '$CI_PIPELINE_SOURCE == "merge_request_event" && $CI_MERGE_REQUEST_TARGET_BRANCH_NAME != $CI_DEFAULT_BRANCH'
|
- if: '$CI_PIPELINE_SOURCE == "merge_request_event" && $CI_MERGE_REQUEST_TARGET_BRANCH_NAME != $CI_DEFAULT_BRANCH'
|
||||||
when: on_success
|
when: on_success
|
||||||
|
variables:
|
||||||
|
IMAGE: $TARGET_BASE_IMAGE
|
||||||
|
|
||||||
|
### Neither prebuilt or local container images
|
||||||
|
|
||||||
# upstream+forks: that's all folks
|
# upstream+forks: that's all folks
|
||||||
- when: never
|
- when: never
|
||||||
@ -146,16 +157,25 @@
|
|||||||
# include CI changes
|
# include CI changes
|
||||||
# - Validating code committed to a fork branch
|
# - Validating code committed to a fork branch
|
||||||
#
|
#
|
||||||
# Note: the rules across the prebuilt_env and local_env templates
|
# Note: the rules across the prebuilt and local container scenarios
|
||||||
# should be logical inverses, such that jobs are mutually exclusive
|
# should be logical inverses, such that jobs are mutually exclusive
|
||||||
#
|
#
|
||||||
.gitlab_cross_build_job_prebuilt_env:
|
.gitlab_cross_build_job:
|
||||||
image: $CI_REGISTRY/$RUN_UPSTREAM_NAMESPACE/libvirt/ci-$NAME-cross-$CROSS:latest
|
image: $IMAGE
|
||||||
stage: builds
|
stage: builds
|
||||||
interruptible: true
|
interruptible: true
|
||||||
before_script:
|
before_script:
|
||||||
|
- if test "$IMAGE" == "$TARGET_BASE_IMAGE" ;
|
||||||
|
then
|
||||||
|
source ci/buildenv/$NAME-cross-$CROSS.sh ;
|
||||||
|
install_buildenv ;
|
||||||
|
fi
|
||||||
- cat /packages.txt
|
- cat /packages.txt
|
||||||
|
variables:
|
||||||
|
IMAGE: $CI_REGISTRY/$RUN_UPSTREAM_NAMESPACE/libvirt/ci-$NAME-cross-$CROSS:latest
|
||||||
rules:
|
rules:
|
||||||
|
### Rules where we expect to use pre-built container images
|
||||||
|
|
||||||
# upstream: pushes to the default branch
|
# upstream: pushes to the default branch
|
||||||
- if: '$CI_PROJECT_NAMESPACE == $RUN_UPSTREAM_NAMESPACE && $CI_PIPELINE_SOURCE == "push" && $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH && $JOB_OPTIONAL'
|
- if: '$CI_PROJECT_NAMESPACE == $RUN_UPSTREAM_NAMESPACE && $CI_PIPELINE_SOURCE == "push" && $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH && $JOB_OPTIONAL'
|
||||||
when: manual
|
when: manual
|
||||||
@ -189,49 +209,41 @@
|
|||||||
- if: '$CI_PIPELINE_SOURCE == "merge_request_event" && $CI_MERGE_REQUEST_TARGET_BRANCH_NAME == $CI_DEFAULT_BRANCH'
|
- if: '$CI_PIPELINE_SOURCE == "merge_request_event" && $CI_MERGE_REQUEST_TARGET_BRANCH_NAME == $CI_DEFAULT_BRANCH'
|
||||||
when: on_success
|
when: on_success
|
||||||
|
|
||||||
# upstream+forks: that's all folks
|
|
||||||
- when: never
|
|
||||||
|
|
||||||
.gitlab_cross_build_job_local_env:
|
### Rules where we need to use the target base container image
|
||||||
image: $IMAGE
|
|
||||||
stage: builds
|
|
||||||
interruptible: true
|
|
||||||
before_script:
|
|
||||||
- source ci/buildenv/$NAME-cross-$CROSS.sh
|
|
||||||
- install_buildenv
|
|
||||||
- cat /packages.txt
|
|
||||||
rules:
|
|
||||||
# upstream: pushes to a non-default branch
|
|
||||||
- if: '$CI_PROJECT_NAMESPACE == $RUN_UPSTREAM_NAMESPACE && $CI_PIPELINE_SOURCE == "push" && $CI_COMMIT_BRANCH != $CI_DEFAULT_BRANCH && $JOB_OPTIONAL'
|
|
||||||
when: manual
|
|
||||||
allow_failure: true
|
|
||||||
- if: '$CI_PROJECT_NAMESPACE == $RUN_UPSTREAM_NAMESPACE && $CI_PIPELINE_SOURCE == "push" && $CI_COMMIT_BRANCH != $CI_DEFAULT_BRANCH'
|
|
||||||
when: on_success
|
|
||||||
|
|
||||||
# forks: avoid build in local env when job requests run in upstream containers
|
|
||||||
- if: '$CI_PROJECT_NAMESPACE != $RUN_UPSTREAM_NAMESPACE && $CI_PIPELINE_SOURCE == "push" && $RUN_PIPELINE_UPSTREAM_ENV'
|
|
||||||
when: never
|
|
||||||
|
|
||||||
# forks: pushes to branches with pipeline requested
|
# forks: pushes to branches with pipeline requested
|
||||||
- if: '$CI_PROJECT_NAMESPACE != $RUN_UPSTREAM_NAMESPACE && $CI_PIPELINE_SOURCE == "push" && $RUN_PIPELINE && $JOB_OPTIONAL'
|
- if: '$CI_PROJECT_NAMESPACE != $RUN_UPSTREAM_NAMESPACE && $CI_PIPELINE_SOURCE == "push" && $RUN_PIPELINE && $JOB_OPTIONAL'
|
||||||
when: manual
|
when: manual
|
||||||
allow_failure: true
|
allow_failure: true
|
||||||
|
variables:
|
||||||
|
IMAGE: $TARGET_BASE_IMAGE
|
||||||
- if: '$CI_PROJECT_NAMESPACE != $RUN_UPSTREAM_NAMESPACE && $CI_PIPELINE_SOURCE == "push" && $RUN_PIPELINE'
|
- if: '$CI_PROJECT_NAMESPACE != $RUN_UPSTREAM_NAMESPACE && $CI_PIPELINE_SOURCE == "push" && $RUN_PIPELINE'
|
||||||
when: on_success
|
when: on_success
|
||||||
|
variables:
|
||||||
|
IMAGE: $TARGET_BASE_IMAGE
|
||||||
|
|
||||||
# upstream: other web/api/scheduled pipelines targeting non-default branches
|
# upstream: other web/api/scheduled pipelines targeting non-default branches
|
||||||
- if: '$CI_PROJECT_NAMESPACE == $RUN_UPSTREAM_NAMESPACE && $CI_PIPELINE_SOURCE =~ /(web|api|schedule)/ && $CI_COMMIT_REF_NAME != $CI_DEFAULT_BRANCH && $JOB_OPTIONAL'
|
- if: '$CI_PROJECT_NAMESPACE == $RUN_UPSTREAM_NAMESPACE && $CI_PIPELINE_SOURCE =~ /(web|api|schedule)/ && $CI_COMMIT_REF_NAME != $CI_DEFAULT_BRANCH && $JOB_OPTIONAL'
|
||||||
when: manual
|
when: manual
|
||||||
allow_failure: true
|
allow_failure: true
|
||||||
|
variables:
|
||||||
|
IMAGE: $TARGET_BASE_IMAGE
|
||||||
- if: '$CI_PROJECT_NAMESPACE == $RUN_UPSTREAM_NAMESPACE && $CI_PIPELINE_SOURCE =~ /(web|api|schedule)/ && $CI_COMMIT_REF_NAME != $CI_DEFAULT_BRANCH'
|
- if: '$CI_PROJECT_NAMESPACE == $RUN_UPSTREAM_NAMESPACE && $CI_PIPELINE_SOURCE =~ /(web|api|schedule)/ && $CI_COMMIT_REF_NAME != $CI_DEFAULT_BRANCH'
|
||||||
when: on_success
|
when: on_success
|
||||||
|
variables:
|
||||||
|
IMAGE: $TARGET_BASE_IMAGE
|
||||||
|
|
||||||
# forks: other web/api/scheduled pipelines
|
# forks: other web/api/scheduled pipelines
|
||||||
- if: '$CI_PROJECT_NAMESPACE != $RUN_UPSTREAM_NAMESPACE && $CI_PIPELINE_SOURCE =~ /(web|api|schedule)/ && $JOB_OPTIONAL'
|
- if: '$CI_PROJECT_NAMESPACE != $RUN_UPSTREAM_NAMESPACE && $CI_PIPELINE_SOURCE =~ /(web|api|schedule)/ && $JOB_OPTIONAL'
|
||||||
when: manual
|
when: manual
|
||||||
allow_failure: true
|
allow_failure: true
|
||||||
|
variables:
|
||||||
|
IMAGE: $TARGET_BASE_IMAGE
|
||||||
- if: '$CI_PROJECT_NAMESPACE != $RUN_UPSTREAM_NAMESPACE && $CI_PIPELINE_SOURCE =~ /(web|api|schedule)/'
|
- if: '$CI_PROJECT_NAMESPACE != $RUN_UPSTREAM_NAMESPACE && $CI_PIPELINE_SOURCE =~ /(web|api|schedule)/'
|
||||||
when: on_success
|
when: on_success
|
||||||
|
variables:
|
||||||
|
IMAGE: $TARGET_BASE_IMAGE
|
||||||
|
|
||||||
# upstream+forks: merge requests targeting the default branch, with CI changes
|
# upstream+forks: merge requests targeting the default branch, with CI changes
|
||||||
- if: '$CI_PIPELINE_SOURCE == "merge_request_event" && $CI_MERGE_REQUEST_TARGET_BRANCH_NAME == $CI_DEFAULT_BRANCH && $JOB_OPTIONAL'
|
- if: '$CI_PIPELINE_SOURCE == "merge_request_event" && $CI_MERGE_REQUEST_TARGET_BRANCH_NAME == $CI_DEFAULT_BRANCH && $JOB_OPTIONAL'
|
||||||
@ -240,18 +252,28 @@
|
|||||||
- ci/containers/$NAME-cross-$CROSS.Dockerfile
|
- ci/containers/$NAME-cross-$CROSS.Dockerfile
|
||||||
when: manual
|
when: manual
|
||||||
allow_failure: true
|
allow_failure: true
|
||||||
|
variables:
|
||||||
|
IMAGE: $TARGET_BASE_IMAGE
|
||||||
- if: '$CI_PIPELINE_SOURCE == "merge_request_event" && $CI_MERGE_REQUEST_TARGET_BRANCH_NAME == $CI_DEFAULT_BRANCH'
|
- if: '$CI_PIPELINE_SOURCE == "merge_request_event" && $CI_MERGE_REQUEST_TARGET_BRANCH_NAME == $CI_DEFAULT_BRANCH'
|
||||||
changes:
|
changes:
|
||||||
- ci/gitlab/container-templates.yml
|
- ci/gitlab/container-templates.yml
|
||||||
- ci/containers/$NAME-cross-$CROSS.Dockerfile
|
- ci/containers/$NAME-cross-$CROSS.Dockerfile
|
||||||
when: on_success
|
when: on_success
|
||||||
|
variables:
|
||||||
|
IMAGE: $TARGET_BASE_IMAGE
|
||||||
|
|
||||||
# upstream+forks: merge requests targeting non-default branches
|
# upstream+forks: merge requests targeting non-default branches
|
||||||
- if: '$CI_PIPELINE_SOURCE == "merge_request_event" && $CI_MERGE_REQUEST_TARGET_BRANCH_NAME != $CI_DEFAULT_BRANCH && $JOB_OPTIONAL'
|
- if: '$CI_PIPELINE_SOURCE == "merge_request_event" && $CI_MERGE_REQUEST_TARGET_BRANCH_NAME != $CI_DEFAULT_BRANCH && $JOB_OPTIONAL'
|
||||||
when: manual
|
when: manual
|
||||||
allow_failure: true
|
allow_failure: true
|
||||||
|
variables:
|
||||||
|
IMAGE: $TARGET_BASE_IMAGE
|
||||||
- if: '$CI_PIPELINE_SOURCE == "merge_request_event" && $CI_MERGE_REQUEST_TARGET_BRANCH_NAME != $CI_DEFAULT_BRANCH'
|
- if: '$CI_PIPELINE_SOURCE == "merge_request_event" && $CI_MERGE_REQUEST_TARGET_BRANCH_NAME != $CI_DEFAULT_BRANCH'
|
||||||
when: on_success
|
when: on_success
|
||||||
|
variables:
|
||||||
|
IMAGE: $TARGET_BASE_IMAGE
|
||||||
|
|
||||||
|
### Neither prebuilt or local container images
|
||||||
|
|
||||||
# upstream+forks: that's all folks
|
# upstream+forks: that's all folks
|
||||||
- when: never
|
- when: never
|
||||||
|
File diff suppressed because it is too large
Load Diff
@ -47,6 +47,10 @@
|
|||||||
|
|
||||||
.integration_tests:
|
.integration_tests:
|
||||||
stage: integration_tests
|
stage: integration_tests
|
||||||
|
rules:
|
||||||
|
- if: '$LIBVIRT_CI_INTEGRATION == null'
|
||||||
|
when: never
|
||||||
|
- !reference [.gitlab_native_build_job, rules]
|
||||||
before_script:
|
before_script:
|
||||||
- mkdir "$SCRATCH_DIR"
|
- mkdir "$SCRATCH_DIR"
|
||||||
- sudo dnf install -y libvirt-rpms/* libvirt-perl-rpms/* libvirt-python-rpms/*
|
- sudo dnf install -y libvirt-rpms/* libvirt-perl-rpms/* libvirt-python-rpms/*
|
||||||
@ -65,35 +69,13 @@
|
|||||||
- logs
|
- logs
|
||||||
when: on_failure
|
when: on_failure
|
||||||
|
|
||||||
.integration_tests_prebuilt_env:
|
|
||||||
extends: .integration_tests
|
|
||||||
rules:
|
|
||||||
- if: '$LIBVIRT_CI_INTEGRATION == null'
|
|
||||||
when: never
|
|
||||||
- !reference [.gitlab_native_build_job_prebuilt_env, rules]
|
|
||||||
|
|
||||||
.integration_tests_local_env:
|
|
||||||
extends: .integration_tests
|
|
||||||
rules:
|
|
||||||
- if: '$LIBVIRT_CI_INTEGRATION == null'
|
|
||||||
when: never
|
|
||||||
- !reference [.gitlab_native_build_job_local_env, rules]
|
|
||||||
|
|
||||||
|
|
||||||
# YAML anchors don't work with Shell conditions so we can't use a variable
|
# YAML anchors don't work with Shell conditions so we can't use a variable
|
||||||
# to conditionally build+install QEMU from source.
|
# to conditionally build+install QEMU from source.
|
||||||
# Instead, create a new test job template for this scenario.
|
# Instead, create a new test job template for this scenario.
|
||||||
.integration_tests_upstream_qemu:
|
.integration_tests_upstream_qemu:
|
||||||
|
extends:
|
||||||
|
- .integration_tests
|
||||||
before_script:
|
before_script:
|
||||||
- !reference [.integration_tests, before_script]
|
- !reference [.integration_tests, before_script]
|
||||||
- *qemu-build-template
|
- *qemu-build-template
|
||||||
|
|
||||||
.integration_tests_upstream_qemu_prebuilt_env:
|
|
||||||
extends:
|
|
||||||
- .integration_tests_prebuilt_env
|
|
||||||
- .integration_tests_upstream_qemu
|
|
||||||
|
|
||||||
.integration_tests_upstream_qemu_local_env:
|
|
||||||
extends:
|
|
||||||
- .integration_tests_local_env
|
|
||||||
- .integration_tests_upstream_qemu
|
|
||||||
|
@ -5,7 +5,8 @@ include:
|
|||||||
# and libvirt-python CI jobs, so the new target needs to be introduced
|
# and libvirt-python CI jobs, so the new target needs to be introduced
|
||||||
# there before it can be used here. The VM template for the target
|
# there before it can be used here. The VM template for the target
|
||||||
# also needs to be created on the runner host.
|
# also needs to be created on the runner host.
|
||||||
.centos-stream-8-tests:
|
centos-stream-8-tests:
|
||||||
|
extends: .integration_tests
|
||||||
variables:
|
variables:
|
||||||
# needed by libvirt-gitlab-executor
|
# needed by libvirt-gitlab-executor
|
||||||
DISTRO: centos-stream-8
|
DISTRO: centos-stream-8
|
||||||
@ -13,43 +14,23 @@ include:
|
|||||||
LIBVIRT_CI_INTEGRATION_RUNNER_TAG: redhat-vm-host
|
LIBVIRT_CI_INTEGRATION_RUNNER_TAG: redhat-vm-host
|
||||||
tags:
|
tags:
|
||||||
- $LIBVIRT_CI_INTEGRATION_RUNNER_TAG
|
- $LIBVIRT_CI_INTEGRATION_RUNNER_TAG
|
||||||
|
|
||||||
centos-stream-8-tests-prebuilt-env:
|
|
||||||
extends:
|
|
||||||
- .integration_tests_prebuilt_env
|
|
||||||
- .centos-stream-8-tests
|
|
||||||
needs:
|
needs:
|
||||||
- x86_64-centos-stream-8-prebuilt-env
|
- x86_64-centos-stream-8
|
||||||
- project: libvirt/libvirt-perl
|
- project: libvirt/libvirt-perl
|
||||||
job: x86_64-centos-stream-8-prebuilt-env
|
job: x86_64-centos-stream-8
|
||||||
ref: master
|
ref: master
|
||||||
artifacts: true
|
artifacts: true
|
||||||
- project: libvirt/libvirt-python
|
- project: libvirt/libvirt-python
|
||||||
job: x86_64-centos-stream-8-prebuilt-env
|
job: x86_64-centos-stream-8
|
||||||
ref: master
|
ref: master
|
||||||
artifacts: true
|
artifacts: true
|
||||||
|
|
||||||
centos-stream-8-tests-local-env:
|
|
||||||
extends:
|
|
||||||
- .integration_tests_local_env
|
|
||||||
- .centos-stream-8-tests
|
|
||||||
needs:
|
|
||||||
- x86_64-centos-stream-8-local-env
|
|
||||||
- project: libvirt/libvirt-perl
|
|
||||||
job: x86_64-centos-stream-8-prebuilt-env
|
|
||||||
ref: master
|
|
||||||
artifacts: true
|
|
||||||
- project: libvirt/libvirt-python
|
|
||||||
job: x86_64-centos-stream-8-prebuilt-env
|
|
||||||
ref: master
|
|
||||||
artifacts: true
|
|
||||||
|
|
||||||
|
|
||||||
# NOTE The integration tests use artifacts produced by the libvirt-perl
|
# NOTE The integration tests use artifacts produced by the libvirt-perl
|
||||||
# and libvirt-python CI jobs, so the new target needs to be introduced
|
# and libvirt-python CI jobs, so the new target needs to be introduced
|
||||||
# there before it can be used here. The VM template for the target
|
# there before it can be used here. The VM template for the target
|
||||||
# also needs to be created on the runner host.
|
# also needs to be created on the runner host.
|
||||||
.centos-stream-9-tests:
|
centos-stream-9-tests:
|
||||||
|
extends: .integration_tests
|
||||||
variables:
|
variables:
|
||||||
# needed by libvirt-gitlab-executor
|
# needed by libvirt-gitlab-executor
|
||||||
DISTRO: centos-stream-9
|
DISTRO: centos-stream-9
|
||||||
@ -57,43 +38,23 @@ centos-stream-8-tests-local-env:
|
|||||||
LIBVIRT_CI_INTEGRATION_RUNNER_TAG: redhat-vm-host
|
LIBVIRT_CI_INTEGRATION_RUNNER_TAG: redhat-vm-host
|
||||||
tags:
|
tags:
|
||||||
- $LIBVIRT_CI_INTEGRATION_RUNNER_TAG
|
- $LIBVIRT_CI_INTEGRATION_RUNNER_TAG
|
||||||
|
|
||||||
centos-stream-9-tests-prebuilt-env:
|
|
||||||
extends:
|
|
||||||
- .integration_tests_prebuilt_env
|
|
||||||
- .centos-stream-9-tests
|
|
||||||
needs:
|
needs:
|
||||||
- x86_64-centos-stream-9-prebuilt-env
|
- x86_64-centos-stream-9
|
||||||
- project: libvirt/libvirt-perl
|
- project: libvirt/libvirt-perl
|
||||||
job: x86_64-centos-stream-9-prebuilt-env
|
job: x86_64-centos-stream-9
|
||||||
ref: master
|
ref: master
|
||||||
artifacts: true
|
artifacts: true
|
||||||
- project: libvirt/libvirt-python
|
- project: libvirt/libvirt-python
|
||||||
job: x86_64-centos-stream-9-prebuilt-env
|
job: x86_64-centos-stream-9
|
||||||
ref: master
|
ref: master
|
||||||
artifacts: true
|
artifacts: true
|
||||||
|
|
||||||
centos-stream-9-tests-local-env:
|
|
||||||
extends:
|
|
||||||
- .integration_tests_local_env
|
|
||||||
- .centos-stream-9-tests
|
|
||||||
needs:
|
|
||||||
- x86_64-centos-stream-9-local-env
|
|
||||||
- project: libvirt/libvirt-perl
|
|
||||||
job: x86_64-centos-stream-9-prebuilt-env
|
|
||||||
ref: master
|
|
||||||
artifacts: true
|
|
||||||
- project: libvirt/libvirt-python
|
|
||||||
job: x86_64-centos-stream-9-prebuilt-env
|
|
||||||
ref: master
|
|
||||||
artifacts: true
|
|
||||||
|
|
||||||
|
|
||||||
# NOTE The integration tests use artifacts produced by the libvirt-perl
|
# NOTE The integration tests use artifacts produced by the libvirt-perl
|
||||||
# and libvirt-python CI jobs, so the new target needs to be introduced
|
# and libvirt-python CI jobs, so the new target needs to be introduced
|
||||||
# there before it can be used here. The VM template for the target
|
# there before it can be used here. The VM template for the target
|
||||||
# also needs to be created on the runner host.
|
# also needs to be created on the runner host.
|
||||||
.fedora-38-tests:
|
fedora-38-tests:
|
||||||
|
extends: .integration_tests
|
||||||
variables:
|
variables:
|
||||||
# needed by libvirt-gitlab-executor
|
# needed by libvirt-gitlab-executor
|
||||||
DISTRO: fedora-38
|
DISTRO: fedora-38
|
||||||
@ -101,43 +62,23 @@ centos-stream-9-tests-local-env:
|
|||||||
LIBVIRT_CI_INTEGRATION_RUNNER_TAG: redhat-vm-host
|
LIBVIRT_CI_INTEGRATION_RUNNER_TAG: redhat-vm-host
|
||||||
tags:
|
tags:
|
||||||
- $LIBVIRT_CI_INTEGRATION_RUNNER_TAG
|
- $LIBVIRT_CI_INTEGRATION_RUNNER_TAG
|
||||||
|
|
||||||
fedora-38-tests-prebuilt-env:
|
|
||||||
extends:
|
|
||||||
- .integration_tests_prebuilt_env
|
|
||||||
- .fedora-38-tests
|
|
||||||
needs:
|
needs:
|
||||||
- x86_64-fedora-38-prebuilt-env
|
- x86_64-fedora-38
|
||||||
- project: libvirt/libvirt-perl
|
- project: libvirt/libvirt-perl
|
||||||
job: x86_64-fedora-38-prebuilt-env
|
job: x86_64-fedora-38
|
||||||
ref: master
|
ref: master
|
||||||
artifacts: true
|
artifacts: true
|
||||||
- project: libvirt/libvirt-python
|
- project: libvirt/libvirt-python
|
||||||
job: x86_64-fedora-38-prebuilt-env
|
job: x86_64-fedora-38
|
||||||
ref: master
|
ref: master
|
||||||
artifacts: true
|
artifacts: true
|
||||||
|
|
||||||
fedora-38-tests-local-env:
|
|
||||||
extends:
|
|
||||||
- .integration_tests_local_env
|
|
||||||
- .fedora-38-tests
|
|
||||||
needs:
|
|
||||||
- x86_64-fedora-38-local-env
|
|
||||||
- project: libvirt/libvirt-perl
|
|
||||||
job: x86_64-fedora-38-prebuilt-env
|
|
||||||
ref: master
|
|
||||||
artifacts: true
|
|
||||||
- project: libvirt/libvirt-python
|
|
||||||
job: x86_64-fedora-38-prebuilt-env
|
|
||||||
ref: master
|
|
||||||
artifacts: true
|
|
||||||
|
|
||||||
|
|
||||||
# NOTE The integration tests use artifacts produced by the libvirt-perl
|
# NOTE The integration tests use artifacts produced by the libvirt-perl
|
||||||
# and libvirt-python CI jobs, so the new target needs to be introduced
|
# and libvirt-python CI jobs, so the new target needs to be introduced
|
||||||
# there before it can be used here. The VM template for the target
|
# there before it can be used here. The VM template for the target
|
||||||
# also needs to be created on the runner host.
|
# also needs to be created on the runner host.
|
||||||
.fedora-39-tests:
|
fedora-39-tests:
|
||||||
|
extends: .integration_tests
|
||||||
variables:
|
variables:
|
||||||
# needed by libvirt-gitlab-executor
|
# needed by libvirt-gitlab-executor
|
||||||
DISTRO: fedora-39
|
DISTRO: fedora-39
|
||||||
@ -145,43 +86,23 @@ fedora-38-tests-local-env:
|
|||||||
LIBVIRT_CI_INTEGRATION_RUNNER_TAG: redhat-vm-host
|
LIBVIRT_CI_INTEGRATION_RUNNER_TAG: redhat-vm-host
|
||||||
tags:
|
tags:
|
||||||
- $LIBVIRT_CI_INTEGRATION_RUNNER_TAG
|
- $LIBVIRT_CI_INTEGRATION_RUNNER_TAG
|
||||||
|
|
||||||
fedora-39-tests-prebuilt-env:
|
|
||||||
extends:
|
|
||||||
- .integration_tests_prebuilt_env
|
|
||||||
- .fedora-39-tests
|
|
||||||
needs:
|
needs:
|
||||||
- x86_64-fedora-39-prebuilt-env
|
- x86_64-fedora-39
|
||||||
- project: libvirt/libvirt-perl
|
- project: libvirt/libvirt-perl
|
||||||
job: x86_64-fedora-39-prebuilt-env
|
job: x86_64-fedora-39
|
||||||
ref: master
|
ref: master
|
||||||
artifacts: true
|
artifacts: true
|
||||||
- project: libvirt/libvirt-python
|
- project: libvirt/libvirt-python
|
||||||
job: x86_64-fedora-39-prebuilt-env
|
job: x86_64-fedora-39
|
||||||
ref: master
|
ref: master
|
||||||
artifacts: true
|
artifacts: true
|
||||||
|
|
||||||
fedora-39-tests-local-env:
|
|
||||||
extends:
|
|
||||||
- .integration_tests_local_env
|
|
||||||
- .fedora-39-tests
|
|
||||||
needs:
|
|
||||||
- x86_64-fedora-39-local-env
|
|
||||||
- project: libvirt/libvirt-perl
|
|
||||||
job: x86_64-fedora-39-prebuilt-env
|
|
||||||
ref: master
|
|
||||||
artifacts: true
|
|
||||||
- project: libvirt/libvirt-python
|
|
||||||
job: x86_64-fedora-39-prebuilt-env
|
|
||||||
ref: master
|
|
||||||
artifacts: true
|
|
||||||
|
|
||||||
|
|
||||||
# NOTE The integration tests use artifacts produced by the libvirt-perl
|
# NOTE The integration tests use artifacts produced by the libvirt-perl
|
||||||
# and libvirt-python CI jobs, so the new target needs to be introduced
|
# and libvirt-python CI jobs, so the new target needs to be introduced
|
||||||
# there before it can be used here. The VM template for the target
|
# there before it can be used here. The VM template for the target
|
||||||
# also needs to be created on the runner host.
|
# also needs to be created on the runner host.
|
||||||
.fedora-39-upstream-qemu-tests:
|
.fedora-39-upstream-qemu-tests:
|
||||||
|
extends: .integration_tests
|
||||||
variables:
|
variables:
|
||||||
# needed by libvirt-gitlab-executor
|
# needed by libvirt-gitlab-executor
|
||||||
DISTRO: fedora-39
|
DISTRO: fedora-39
|
||||||
@ -189,33 +110,13 @@ fedora-39-tests-local-env:
|
|||||||
LIBVIRT_CI_INTEGRATION_RUNNER_TAG: redhat-vm-host
|
LIBVIRT_CI_INTEGRATION_RUNNER_TAG: redhat-vm-host
|
||||||
tags:
|
tags:
|
||||||
- $LIBVIRT_CI_INTEGRATION_RUNNER_TAG
|
- $LIBVIRT_CI_INTEGRATION_RUNNER_TAG
|
||||||
|
|
||||||
fedora-39-upstream-qemu-tests-prebuilt-env:
|
|
||||||
extends:
|
|
||||||
- .integration_tests_upstream_qemu_prebuilt_env
|
|
||||||
- .fedora-39-upstream-qemu-tests
|
|
||||||
needs:
|
needs:
|
||||||
- x86_64-fedora-39-prebuilt-env
|
- x86_64-fedora-39
|
||||||
- project: libvirt/libvirt-perl
|
- project: libvirt/libvirt-perl
|
||||||
job: x86_64-fedora-39-prebuilt-env
|
job: x86_64-fedora-39
|
||||||
ref: master
|
ref: master
|
||||||
artifacts: true
|
artifacts: true
|
||||||
- project: libvirt/libvirt-python
|
- project: libvirt/libvirt-python
|
||||||
job: x86_64-fedora-39-prebuilt-env
|
job: x86_64-fedora-39
|
||||||
ref: master
|
|
||||||
artifacts: true
|
|
||||||
|
|
||||||
fedora-39-upstream-qemu-tests-local-env:
|
|
||||||
extends:
|
|
||||||
- .integration_tests_upstream_qemu_local_env
|
|
||||||
- .fedora-39-upstream-qemu-tests
|
|
||||||
needs:
|
|
||||||
- x86_64-fedora-39-local-env
|
|
||||||
- project: libvirt/libvirt-perl
|
|
||||||
job: x86_64-fedora-39-prebuilt-env
|
|
||||||
ref: master
|
|
||||||
artifacts: true
|
|
||||||
- project: libvirt/libvirt-python
|
|
||||||
job: x86_64-fedora-39-prebuilt-env
|
|
||||||
ref: master
|
ref: master
|
||||||
artifacts: true
|
artifacts: true
|
||||||
|
Loading…
Reference in New Issue
Block a user