Skip to content

Commit

Permalink
fix: Optimize CI disk cleanup method to avoid no space left
Browse files Browse the repository at this point in the history
Signed-off-by: tao.yang <[email protected]>
  • Loading branch information
ty-dc committed Aug 8, 2024
1 parent 8c86d24 commit 1f7e3f9
Showing 1 changed file with 3 additions and 10 deletions.
13 changes: 3 additions & 10 deletions .github/workflows/e2e-init.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ jobs:

# https://github.com/helm/kind-action
- name: Install Kind Bin
uses: helm/kind-action@v1.10.0
uses: helm/kind-action@v1.8.0
with:
install_only: true

Expand Down Expand Up @@ -134,16 +134,10 @@ jobs:
# test against commit version
# https://github.com/kubernetes-sigs/kind/issues/2863
- name: Setup Kind Cluster
uses: nick-invision/retry@v3
uses: nick-invision/retry@v2
with:
timeout_minutes: 20
max_attempts: 3
on_retry_command: |
echo "debug"
systemctl status docker
journalctl -xeu docker
echo "restart docker before trying again"
systemctl restart docker
command: |
INSTALL_OVS_VALUE=true
MINIMAL_VERSION=1.24.3
Expand Down Expand Up @@ -175,7 +169,6 @@ jobs:
RESULT=0
make ${{ matrix.e2e_test_mode }} -e E2E_CLUSTER_NAME=${{ env.E2E_CLUSTER_NAME }} \
-e E2E_GINKGO_LABELS=${E2E_LABELS} \
-e E2E_KIND_IMAGE_TAG=${{ inputs.k8s_version }} \
-e E2E_TIMEOUT=${{ env.E2E_TIME_OUT }} \
-e E2E_IP_FAMILY=${{ inputs.ip_family }} || RESULT=1
if ((RESULT==0)) ; then
Expand Down Expand Up @@ -211,7 +204,7 @@ jobs:
path: e2ereport.json
retention-days: 1

- name: uninstalls spiderpool
- name: helm uninstalls spiderpool and cleans spiderpool CRD
id: clean
if: ${{ inputs.run_e2e == 'true' }}
run: |
Expand Down

0 comments on commit 1f7e3f9

Please sign in to comment.