Skip to content

Commit 699bced

Browse files
authored
Merge pull request #929 from stackhpc/yoga-tf-retries
yoga: Backport CI fixes from Zed
2 parents 5fcd75f + f849d26 commit 699bced

File tree

1 file changed

+12
-2
lines changed

1 file changed

+12
-2
lines changed

.github/workflows/stackhpc-all-in-one.yml

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ jobs:
8080
- name: Install Package
8181
uses: ConorMacBride/install-package@main
8282
with:
83-
apt: build-essential git unzip nodejs python3 python3-pip python3-wheel python-is-python3
83+
apt: git unzip nodejs
8484

8585
- uses: actions/checkout@v4
8686
with:
@@ -154,7 +154,17 @@ jobs:
154154
OS_APPLICATION_CREDENTIAL_SECRET: ${{ secrets.OS_APPLICATION_CREDENTIAL_SECRET }}
155155

156156
- name: Terraform Apply
157-
run: terraform apply -auto-approve
157+
run: |
158+
for attempt in $(seq 5); do
159+
if terraform apply -auto-approve; then
160+
echo "Created infrastructure on attempt $attempt"
161+
break
162+
fi
163+
echo "Failed to create infrastructure on attempt $attempt"
164+
sleep 10
165+
terraform destroy -auto-approve
166+
sleep 60
167+
done
158168
working-directory: ${{ github.workspace }}/terraform/aio
159169
env:
160170
OS_CLOUD: ${{ inputs.OS_CLOUD }}

0 commit comments

Comments
 (0)