Skip to content

Commit c0460fc

Browse files
committed
syz-cluster: set workflow step retry strategy
When a triage or build step coincides with a cron job that polls new kernel trees, they often fail due to git command noticing that the repository is being updated. In this case, the step logs an error and exits with status=1. Argo workflows offers a functionality to retry such steps up to the specific number of times and with exponentially increasing backoffs. Configure the build and triage step templates to retry 3 times with 5 and then 10 minutes distance between the retries.
1 parent 5faec68 commit c0460fc

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

syz-cluster/workflow/build-step/workflow-template.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,10 @@ metadata:
88
spec:
99
templates:
1010
- name: build-step
11+
retryStrategy:
12+
limit: "3"
13+
backoff:
14+
duration: "5m"
1115
inputs:
1216
parameters:
1317
- name: findings

syz-cluster/workflow/triage-step/workflow-template.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,10 @@ metadata:
88
spec:
99
templates:
1010
- name: triage-step
11+
retryStrategy:
12+
limit: "3"
13+
backoff:
14+
duration: "5m"
1115
initContainers:
1216
- name: setup-overlays
1317
image: alpine/git:latest

0 commit comments

Comments
 (0)