Skip to content

Commit

Permalink
Merge pull request kata-containers#10773 from RuoqingHe/retry-on-aks-…
Browse files Browse the repository at this point in the history
…throttle

ci: Retry on failure of Create AKS cluster
  • Loading branch information
gkurz authored Jan 22, 2025
2 parents e71bc1f + 373a388 commit 90b6d57
Show file tree
Hide file tree
Showing 4 changed files with 29 additions and 9 deletions.
9 changes: 7 additions & 2 deletions .github/workflows/run-k8s-tests-on-aks.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -103,8 +103,13 @@ jobs:
AZ_SUBSCRIPTION_ID: ${{ secrets.AZ_SUBSCRIPTION_ID }}

- name: Create AKS cluster
timeout-minutes: 10
run: bash tests/integration/kubernetes/gha-run.sh create-cluster
uses: nick-fields/retry@v3
with:
timeout_minutes: 15
max_attempts: 20
retry_on: error
retry_wait_seconds: 10
command: bash tests/integration/kubernetes/gha-run.sh create-cluster

- name: Install `bats`
run: bash tests/integration/kubernetes/gha-run.sh install-bats
Expand Down
9 changes: 7 additions & 2 deletions .github/workflows/run-kata-coco-stability-tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -87,8 +87,13 @@ jobs:
AZ_SUBSCRIPTION_ID: ${{ secrets.AZ_SUBSCRIPTION_ID }}

- name: Create AKS cluster
timeout-minutes: 10
run: bash tests/integration/kubernetes/gha-run.sh create-cluster
uses: nick-fields/retry@v3
with:
timeout_minutes: 15
max_attempts: 20
retry_on: error
retry_wait_seconds: 10
command: bash tests/integration/kubernetes/gha-run.sh create-cluster

- name: Install `bats`
run: bash tests/integration/kubernetes/gha-run.sh install-bats
Expand Down
9 changes: 7 additions & 2 deletions .github/workflows/run-kata-coco-tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -333,8 +333,13 @@ jobs:
AZ_SUBSCRIPTION_ID: ${{ secrets.AZ_SUBSCRIPTION_ID }}

- name: Create AKS cluster
timeout-minutes: 10
run: bash tests/integration/kubernetes/gha-run.sh create-cluster
uses: nick-fields/retry@v3
with:
timeout_minutes: 15
max_attempts: 20
retry_on: error
retry_wait_seconds: 10
command: bash tests/integration/kubernetes/gha-run.sh create-cluster

- name: Install `bats`
run: bash tests/integration/kubernetes/gha-run.sh install-bats
Expand Down
11 changes: 8 additions & 3 deletions .github/workflows/run-kata-deploy-tests-on-aks.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -71,8 +71,13 @@ jobs:
AZ_SUBSCRIPTION_ID: ${{ secrets.AZ_SUBSCRIPTION_ID }}

- name: Create AKS cluster
timeout-minutes: 10
run: bash tests/functional/kata-deploy/gha-run.sh create-cluster
uses: nick-fields/retry@v3
with:
timeout_minutes: 15
max_attempts: 20
retry_on: error
retry_wait_seconds: 10
command: bash tests/integration/kubernetes/gha-run.sh create-cluster

- name: Install `bats`
run: bash tests/functional/kata-deploy/gha-run.sh install-bats
Expand All @@ -85,7 +90,7 @@ jobs:

- name: Run tests
run: bash tests/functional/kata-deploy/gha-run.sh run-tests

- name: Delete AKS cluster
if: always()
run: bash tests/functional/kata-deploy/gha-run.sh delete-cluster

0 comments on commit 90b6d57

Please sign in to comment.