Skip to content

Commit 39a0f5e

Browse files
authored
chore: Set 10m timeout and retries for a GitLab job (#945)
## Problem The `bottlecap` GitLab job usually takes < 10 minutes, but it sometimes gets stuck and times out at 1 hour. This failure signal causes confusion in PRs and blocks PR merge. As a result, engineers often need to rerun this job. ## This PR For this job, add: 1. timeout of 10 minutes 2. a retry in case of `stuck_or_timeout_failure` or `runner_system_failure` ## Testing Will merge and see if these errors become less frequent.
1 parent 5f2e83a commit 39a0f5e

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

.gitlab/templates/pipeline.yaml.tpl

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,14 @@ bottlecap ({{ $flavor.name }}):
5151
image: registry.ddbuild.io/images/docker:20.10
5252
tags: ["arch:{{ $flavor.arch }}"]
5353
needs: []
54+
# This job sometimes times out on GitLab for unclear reason.
55+
# Set a short timeout with retries to work around this.
56+
timeout: 10m
57+
retry:
58+
max: 1
59+
when:
60+
- stuck_or_timeout_failure
61+
- runner_system_failure
5462
artifacts:
5563
expire_in: 1 week
5664
paths:

0 commit comments

Comments
 (0)