Skip to content

Commit 7987566

Browse files
chore(ci): Add retries to DDB local setup steps (#2267)
1 parent 85d6be8 commit 7987566

5 files changed

Lines changed: 76 additions & 20 deletions

File tree

.github/workflows/ci_test_go.yml

Lines changed: 21 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -45,14 +45,31 @@ jobs:
4545

4646
- name: Setup Docker
4747
if: matrix.os == 'macos-15-intel' && matrix.library == 'TestVectors'
48-
uses: douglascamata/setup-docker-macos-action@v1.1.0
48+
uses: Wandalen/wretry.action@v3
49+
with:
50+
action: docker/setup-docker-action@v5
51+
attempt_limit: 3
52+
attempt_delay: 30000
53+
54+
- name: Pre-pull DynamoDB Local image with retry
55+
if: matrix.library == 'TestVectors'
56+
uses: nick-fields/retry@v3
57+
with:
58+
timeout_minutes: 5
59+
max_attempts: 3
60+
retry_wait_seconds: 30
61+
command: docker pull amazon/dynamodb-local:latest
4962

5063
- name: Setup DynamoDB Local
5164
if: matrix.library == 'TestVectors'
52-
uses: rrainn/dynamodb-action@v4.0.0
65+
uses: Wandalen/wretry.action@v3
5366
with:
54-
port: 8000
55-
cors: "*"
67+
action: rrainn/dynamodb-action@v4.0.0
68+
attempt_limit: 3
69+
attempt_delay: 30000
70+
with: |
71+
port: 8000
72+
cors: "*"
5673
5774
- name: Support longpaths
5875
run: |

.github/workflows/ci_test_vector_java.yml

Lines changed: 13 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -53,22 +53,31 @@ jobs:
5353

5454
- name: Setup Docker
5555
if: matrix.os == 'macos-15-intel' && matrix.library == 'TestVectors'
56-
uses: douglascamata/setup-docker-macos-action@v1.1.0
56+
uses: Wandalen/wretry.action@v3
57+
with:
58+
action: docker/setup-docker-action@v5
59+
attempt_limit: 3
60+
attempt_delay: 30000
5761

5862
- name: Pre-pull DynamoDB Local image with retry
5963
if: matrix.library == 'TestVectors'
6064
uses: nick-fields/retry@v3
6165
with:
6266
timeout_minutes: 5
6367
max_attempts: 3
68+
retry_wait_seconds: 30
6469
command: docker pull amazon/dynamodb-local:latest
6570

6671
- name: Setup DynamoDB Local
6772
if: matrix.library == 'TestVectors'
68-
uses: rrainn/dynamodb-action@v4.0.0
73+
uses: Wandalen/wretry.action@v3
6974
with:
70-
port: 8000
71-
cors: "*"
75+
action: rrainn/dynamodb-action@v4.0.0
76+
attempt_limit: 3
77+
attempt_delay: 30000
78+
with: |
79+
port: 8000
80+
cors: "*"
7281
7382
- uses: actions/checkout@v6
7483
with:

.github/workflows/ci_test_vector_net.yml

Lines changed: 21 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -48,14 +48,31 @@ jobs:
4848

4949
- name: Setup Docker
5050
if: matrix.os == 'macos-15-intel' && matrix.library == 'TestVectors'
51-
uses: douglascamata/setup-docker-macos-action@v1.1.0
51+
uses: Wandalen/wretry.action@v3
52+
with:
53+
action: docker/setup-docker-action@v5
54+
attempt_limit: 3
55+
attempt_delay: 30000
56+
57+
- name: Pre-pull DynamoDB Local image with retry
58+
if: matrix.library == 'TestVectors'
59+
uses: nick-fields/retry@v3
60+
with:
61+
timeout_minutes: 5
62+
max_attempts: 3
63+
retry_wait_seconds: 30
64+
command: docker pull amazon/dynamodb-local:latest
5265

5366
- name: Setup DynamoDB Local
5467
if: matrix.library == 'TestVectors'
55-
uses: rrainn/dynamodb-action@v4.0.0
68+
uses: Wandalen/wretry.action@v3
5669
with:
57-
port: 8000
58-
cors: "*"
70+
action: rrainn/dynamodb-action@v4.0.0
71+
attempt_limit: 3
72+
attempt_delay: 30000
73+
with: |
74+
port: 8000
75+
cors: "*"
5976
6077
- uses: actions/checkout@v6
6178
with:

.github/workflows/library_rust_tests.yml

Lines changed: 21 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -47,14 +47,31 @@ jobs:
4747

4848
- name: Setup Docker
4949
if: matrix.os == 'macos-15-intel' && matrix.library == 'TestVectors'
50-
uses: douglascamata/setup-docker-macos-action@v1.1.0
50+
uses: Wandalen/wretry.action@v3
51+
with:
52+
action: docker/setup-docker-action@v5
53+
attempt_limit: 3
54+
attempt_delay: 30000
55+
56+
- name: Pre-pull DynamoDB Local image with retry
57+
if: matrix.library == 'TestVectors'
58+
uses: nick-fields/retry@v3
59+
with:
60+
timeout_minutes: 5
61+
max_attempts: 3
62+
retry_wait_seconds: 30
63+
command: docker pull amazon/dynamodb-local:latest
5164

5265
- name: Setup DynamoDB Local
5366
if: matrix.library == 'TestVectors'
54-
uses: rrainn/dynamodb-action@v4.0.0
67+
uses: Wandalen/wretry.action@v3
5568
with:
56-
port: 8000
57-
cors: "*"
69+
action: rrainn/dynamodb-action@v4.0.0
70+
attempt_limit: 3
71+
attempt_delay: 30000
72+
with: |
73+
port: 8000
74+
cors: "*"
5875
5976
- name: Support longpaths on Git checkout
6077
run: |

.github/workflows/performance-benchmarks-rust.yml

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -47,10 +47,6 @@ jobs:
4747
role-to-assume: arn:aws:iam::370957321024:role/GitHub-CI-DDBEC-Dafny-Role-us-west-2
4848
role-session-name: DDBEC-Dafny-Rust-Tests
4949

50-
- name: Setup Docker
51-
if: matrix.os == 'macos-15-intel' && matrix.library == 'TestVectors'
52-
uses: douglascamata/setup-docker-macos-action@v1.1.0
53-
5450
- name: Support longpaths on Git checkout
5551
run: |
5652
git config --global core.longpaths true

0 commit comments

Comments
 (0)