mirror of
https://gitlab.freedesktop.org/libinput/libinput.git
synced 2026-05-09 03:38:01 +02:00
gitlab CI: add a global policy snippet for retries and interruptible
We want to retry if we have a system/timeout/stuck failure. And our jobs are all interruptible, we want to cancel them when the branch has new commits. Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
This commit is contained in:
parent
25105d0434
commit
a3a1f4f3d9
1 changed files with 24 additions and 1 deletions
|
|
@ -103,6 +103,15 @@ variables:
|
||||||
UDEV_NOT_AVAILABLE: 1
|
UDEV_NOT_AVAILABLE: 1
|
||||||
GIT_DEPTH: 1
|
GIT_DEPTH: 1
|
||||||
|
|
||||||
|
.policy:
|
||||||
|
retry:
|
||||||
|
max: 2
|
||||||
|
when:
|
||||||
|
- runner_system_failure
|
||||||
|
- stuck_or_timeout_failure
|
||||||
|
# cancel run when a newer version is pushed to the branch
|
||||||
|
interruptible: true
|
||||||
|
|
||||||
.default_artifacts: &default_artifacts
|
.default_artifacts: &default_artifacts
|
||||||
artifacts:
|
artifacts:
|
||||||
name: "meson-logs-$CI_JOB_NAME"
|
name: "meson-logs-$CI_JOB_NAME"
|
||||||
|
|
@ -151,6 +160,7 @@ variables:
|
||||||
fedora:30@qemu-prep:
|
fedora:30@qemu-prep:
|
||||||
extends:
|
extends:
|
||||||
- .fedora@qemu-build
|
- .fedora@qemu-build
|
||||||
|
- .policy
|
||||||
stage: container_prep
|
stage: container_prep
|
||||||
tags:
|
tags:
|
||||||
- kvm
|
- kvm
|
||||||
|
|
@ -168,6 +178,7 @@ fedora:30@qemu-prep:
|
||||||
fedora:30@container-prep:
|
fedora:30@container-prep:
|
||||||
extends:
|
extends:
|
||||||
- .fedora@container-build
|
- .fedora@container-build
|
||||||
|
- .policy
|
||||||
stage: container_prep
|
stage: container_prep
|
||||||
variables:
|
variables:
|
||||||
GIT_STRATEGY: none
|
GIT_STRATEGY: none
|
||||||
|
|
@ -180,6 +191,7 @@ fedora:30@container-prep:
|
||||||
fedora:31@container-prep:
|
fedora:31@container-prep:
|
||||||
extends:
|
extends:
|
||||||
- .fedora@container-build
|
- .fedora@container-build
|
||||||
|
- .policy
|
||||||
stage: container_prep
|
stage: container_prep
|
||||||
variables:
|
variables:
|
||||||
GIT_STRATEGY: none
|
GIT_STRATEGY: none
|
||||||
|
|
@ -193,6 +205,7 @@ fedora:31@container-prep:
|
||||||
ubuntu:19.10@container-prep:
|
ubuntu:19.10@container-prep:
|
||||||
extends:
|
extends:
|
||||||
- .ubuntu@container-build
|
- .ubuntu@container-build
|
||||||
|
- .policy
|
||||||
stage: container_prep
|
stage: container_prep
|
||||||
variables:
|
variables:
|
||||||
GIT_STRATEGY: none
|
GIT_STRATEGY: none
|
||||||
|
|
@ -205,6 +218,7 @@ ubuntu:19.10@container-prep:
|
||||||
ubuntu:19.04@container-prep:
|
ubuntu:19.04@container-prep:
|
||||||
extends:
|
extends:
|
||||||
- .ubuntu@container-build
|
- .ubuntu@container-build
|
||||||
|
- .policy
|
||||||
stage: container_prep
|
stage: container_prep
|
||||||
variables:
|
variables:
|
||||||
GIT_STRATEGY: none
|
GIT_STRATEGY: none
|
||||||
|
|
@ -218,6 +232,7 @@ ubuntu:19.04@container-prep:
|
||||||
arch:rolling@container-prep:
|
arch:rolling@container-prep:
|
||||||
extends:
|
extends:
|
||||||
- .arch@container-build
|
- .arch@container-build
|
||||||
|
- .policy
|
||||||
stage: container_prep
|
stage: container_prep
|
||||||
variables:
|
variables:
|
||||||
GIT_STRATEGY: none
|
GIT_STRATEGY: none
|
||||||
|
|
@ -230,6 +245,7 @@ arch:rolling@container-prep:
|
||||||
alpine:latest@container-prep:
|
alpine:latest@container-prep:
|
||||||
extends:
|
extends:
|
||||||
- .alpine@container-build
|
- .alpine@container-build
|
||||||
|
- .policy
|
||||||
stage: container_prep
|
stage: container_prep
|
||||||
variables:
|
variables:
|
||||||
GIT_STRATEGY: none
|
GIT_STRATEGY: none
|
||||||
|
|
@ -240,6 +256,8 @@ alpine:latest@container-prep:
|
||||||
<<: *pull_upstream_or_rebuild
|
<<: *pull_upstream_or_rebuild
|
||||||
|
|
||||||
.freebsd@container-prep:
|
.freebsd@container-prep:
|
||||||
|
extends:
|
||||||
|
- .policy
|
||||||
stage: container_prep
|
stage: container_prep
|
||||||
image: $BUILDAH_IMAGE
|
image: $BUILDAH_IMAGE
|
||||||
<<: *pull_upstream_or_rebuild
|
<<: *pull_upstream_or_rebuild
|
||||||
|
|
@ -284,6 +302,8 @@ freebsd:11.2@container-prep:
|
||||||
# $container_image:$tag
|
# $container_image:$tag
|
||||||
#
|
#
|
||||||
.container-clean:
|
.container-clean:
|
||||||
|
extends:
|
||||||
|
- .policy
|
||||||
stage: container_clean
|
stage: container_clean
|
||||||
image: $BUILDAH_IMAGE
|
image: $BUILDAH_IMAGE
|
||||||
script:
|
script:
|
||||||
|
|
@ -411,6 +431,8 @@ freebsd:11.2@container-clean:
|
||||||
#################################################################
|
#################################################################
|
||||||
|
|
||||||
.build@template:
|
.build@template:
|
||||||
|
extends:
|
||||||
|
- .policy
|
||||||
stage: build
|
stage: build
|
||||||
<<: *default_artifacts
|
<<: *default_artifacts
|
||||||
<<: *default_build
|
<<: *default_build
|
||||||
|
|
@ -433,6 +455,8 @@ freebsd:11.2@container-clean:
|
||||||
# - SUITE_NAMES: all elements will be expanded to libinput-test-suite-$value
|
# - SUITE_NAMES: all elements will be expanded to libinput-test-suite-$value
|
||||||
# Set one or the other, not both.
|
# Set one or the other, not both.
|
||||||
.fedora:30@test-suite-vm:
|
.fedora:30@test-suite-vm:
|
||||||
|
extends:
|
||||||
|
- .policy
|
||||||
stage: VM
|
stage: VM
|
||||||
image: $QEMU_CONTAINER_IMAGE
|
image: $QEMU_CONTAINER_IMAGE
|
||||||
tags:
|
tags:
|
||||||
|
|
@ -488,7 +512,6 @@ freebsd:11.2@container-clean:
|
||||||
allow_failure: true
|
allow_failure: true
|
||||||
needs: ['fedora:30@qemu-prep']
|
needs: ['fedora:30@qemu-prep']
|
||||||
|
|
||||||
|
|
||||||
# in reverse order of duration to get the slowest ones started first
|
# in reverse order of duration to get the slowest ones started first
|
||||||
fedora:30@vm-touchpad:
|
fedora:30@vm-touchpad:
|
||||||
extends:
|
extends:
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue