From 50ffd26c1c51dda0343ae83944a9d2e8b29c83c1 Mon Sep 17 00:00:00 2001 From: Anton Bondarenko Date: Mon, 4 Nov 2024 15:08:21 +0100 Subject: [PATCH] Decrease timeout and add a retry to jobs in CI 10 minutes should be enough for regular ones. Job with external dependency has a bigger timeout of 1 hour for better robustness. Signed-off-by: Anton Bondarenko --- .gitlab-ci.yml | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 9f8fff72..f7f62db9 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -15,8 +15,14 @@ default: tags: - arm64 interruptible: true + retry: + max: 2 + when: + - job_execution_timeout + - stuck_or_timeout_failure .standard-rules: + timeout: 10m rules: - if: $CI_PIPELINE_SOURCE == 'merge_request_event' - if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH @@ -173,6 +179,8 @@ test-remote: # Run the job only for a public pipeline rules: - if: $CI_PIPELINE_SOURCE == 'merge_request_event' && $CI_SERVER_HOST == 'gitlab.arm.com' + # Longer timeout than rest of jobs to account for remote + timeout: 1h stage: test needs: [] when: manual @@ -380,6 +388,7 @@ coverage: pages: rules: - if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH + timeout: 10m stage: deploy needs: - coverage -- GitLab