From 2c719766b4aef47de7ae301ab97071f79bc901ea Mon Sep 17 00:00:00 2001 From: jwcesign Date: Tue, 10 Oct 2023 20:04:56 +0800 Subject: [PATCH] ci: fix schedule ci workflow failure Signed-off-by: jwcesign --- .github/workflows/ci-schedule-compatibility.yaml | 11 +++++++++-- .github/workflows/ci-schedule.yml | 8 +++++++- 2 files changed, 16 insertions(+), 3 deletions(-) diff --git a/.github/workflows/ci-schedule-compatibility.yaml b/.github/workflows/ci-schedule-compatibility.yaml index eb7200a8d..86cec5b7b 100644 --- a/.github/workflows/ci-schedule-compatibility.yaml +++ b/.github/workflows/ci-schedule-compatibility.yaml @@ -11,6 +11,9 @@ jobs: if: ${{ github.repository == 'karmada-io/karmada' }} runs-on: ubuntu-22.04 strategy: + # max-parallel limits the max number of jobs running at the same time. + # We set it to 5 to avoid too many jobs running at the same time, causing the CI to fail because of resource limitations. + max-parallel: 5 fail-fast: false matrix: kubeapiserver-version: [ v1.23.4, v1.24.2, v1.25.0, v1.26.0, v1.27.3, v1.28.0, v1.29.0 ] @@ -51,8 +54,12 @@ jobs: with: go-version: ${{ matrix.go-version }} - name: setup e2e test environment - run: | - hack/local-up-karmada.sh + uses: nick-fields/retry@v2.9.0 + with: + max_attempts: 3 + timeout_minutes: 20 + command: | + hack/local-up-karmada.sh - name: change kube-apiserver and kube-controller-manager version run: | # Update images diff --git a/.github/workflows/ci-schedule.yml b/.github/workflows/ci-schedule.yml index 8f7ff38aa..65349f188 100644 --- a/.github/workflows/ci-schedule.yml +++ b/.github/workflows/ci-schedule.yml @@ -10,6 +10,9 @@ jobs: if: ${{ github.repository == 'karmada-io/karmada' }} runs-on: ubuntu-22.04 strategy: + # max-parallel limits the max number of jobs running at the same time. + # We set it to 5 to avoid too many jobs running at the same time, causing the CI to fail because of resource limitations. + max-parallel: 5 fail-fast: false matrix: k8s: [ v1.23.4, v1.24.2, v1.25.0, v1.26.0, v1.27.3, v1.28.0, v1.29.0 ] @@ -38,7 +41,10 @@ jobs: with: go-version: 1.20.11 - name: setup e2e test environment - run: | + uses: nick-fields/retry@v2.9.0 + max_attempts: 3 + timeout_minutes: 20 + command: | export CLUSTER_VERSION=kindest/node:${{ matrix.k8s }} hack/local-up-karmada.sh - name: run e2e