Skip to content

Commit

Permalink
debug: 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 a43bd38
Showing 1 changed file with 35 additions and 25 deletions.
60 changes: 35 additions & 25 deletions .github/workflows/e2e-init.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -56,22 +56,15 @@ jobs:
echo "=========Current system kernel================="
uname -r
- name: Free Disk Space (Ubuntu)
# https://github.com/spidernet-io/spiderpool/issues/3277
- name: Free disk space
# https://github.com/actions/virtual-environments/issues/709
uses: jlumbroso/free-disk-space@main
with:
# this might remove tools that are actually needed,
# if set to "true" but frees about 6 GB
tool-cache: false
# all of these default to true, but feel free to set to
# "false" if necessary for your workflow
android: true
dotnet: true
haskell: true
large-packages: true
docker-images: true
swap-storage: true
run: |
echo "=========original CI disk space"
df -h
sudo rm -rf "/usr/local/share/boost"
sudo rm -rf "$AGENT_TOOLSDIRECTORY"
echo "=========after clean up, the left CI disk space"
df -h
- name: Prepare
id: prepare
Expand Down Expand Up @@ -100,7 +93,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 +127,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 All @@ -165,6 +152,18 @@ jobs:
-e INSTALL_RDMA=true \
-e INSTALL_SRIOV=true
- name: check Free Disk Space (Ubuntu)
run: |
echo "df -h"
df -h
echo "lsblk"
lsblk
- name: check kind node list
run: |
echo "kind node list"
kind get clusters
- name: Run e2e Test
id: run_e2e
continue-on-error: true
Expand All @@ -175,7 +174,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 All @@ -195,6 +193,18 @@ jobs:
echo "UPLOAD_E2E_REPORT=false" >> $GITHUB_ENV
fi
- name: check kind node list
run: |
echo "kind node list"
kind get clusters
- name: check Free Disk Space (Ubuntu)
run: |
echo "df -h"
df -h
echo "lsblk"
lsblk
- name: Upload e2e log
if: ${{ inputs.run_e2e == 'true' }}
uses: actions/[email protected]
Expand All @@ -211,7 +221,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 a43bd38

Please sign in to comment.