From 180bdee34774ed56c3a1822eb69d51e4cd9e5eaf Mon Sep 17 00:00:00 2001 From: "Kelvin M. Klann" Date: Sat, 3 Feb 2024 20:24:45 +0000 Subject: ci: add timeout limits (#6178) So that they fail early instead of letting them run indefinitely when there are problems with the CI infrastructure. Use 5 minutes for the jobs that usually complete in under a minute (check-profiles and codespell) and 10 minutes for the rest (most jobs usually take 1-3 minutes). --- .gitlab-ci.yml | 7 +++++++ 1 file changed, 7 insertions(+) (limited to '.gitlab-ci.yml') diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index cb88c0263..08b006f74 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -8,6 +8,7 @@ build_ubuntu_package: image: ubuntu:rolling + timeout: 10 minutes variables: DEBIAN_FRONTEND: noninteractive script: @@ -24,6 +25,7 @@ build_ubuntu_package: build_debian_package: image: debian:buster + timeout: 10 minutes variables: DEBIAN_FRONTEND: noninteractive script: @@ -40,6 +42,7 @@ build_debian_package: build_redhat_package: image: almalinux:latest + timeout: 10 minutes script: - dnf update -y - dnf install -y rpm-build gcc make @@ -51,6 +54,7 @@ build_redhat_package: build_fedora_package: image: fedora:latest + timeout: 10 minutes script: - dnf update -y - dnf install -y rpm-build gcc make @@ -62,6 +66,7 @@ build_fedora_package: build_src_package: image: alpine:latest + timeout: 10 minutes script: - apk update - apk upgrade @@ -74,6 +79,7 @@ build_src_package: build_no_apparmor: image: ubuntu:latest + timeout: 10 minutes variables: DEBIAN_FRONTEND: noninteractive script: @@ -92,6 +98,7 @@ build_no_apparmor: debian_ci: image: registry.salsa.debian.org/salsa-ci-team/ci-image-git-buildpackage:latest + timeout: 10 minutes variables: DEBFULLNAME: "$GITLAB_USER_NAME" DEBEMAIL: "$GITLAB_USER_EMAIL" -- cgit v1.2.3-54-g00ecf