Skip to content

Commit

Permalink
ci: add disk GC for E2E jobs (#2157)
Browse files Browse the repository at this point in the history
Signed-off-by: saintube <saintube@foxmail.com>
  • Loading branch information
saintube authored Aug 6, 2024
1 parent 4df8540 commit 65bfe26
Show file tree
Hide file tree
Showing 4 changed files with 74 additions and 16 deletions.
22 changes: 18 additions & 4 deletions .github/workflows/e2e-k8s-1.22.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,23 @@ jobs:
continue-on-error: true
runs-on: ubuntu-20.04
steps:
- name: Check host environment before
run: |
set -ex
lscpu -e
tree -L 2 /sys/
tree -L 2 /sys/fs/cgroup
df -h
- name: Free Disk Space
uses: jlumbroso/free-disk-space@v1.3.1
with:
tool-cache: false
swap-storage: false
large-packages: false
docker-images: false
android: true
dotnet: true
haskell: true
- uses: actions/checkout@v4
with:
submodules: true
Expand All @@ -48,15 +65,12 @@ jobs:
kind load docker-image --name=${KIND_CLUSTER_NAME} ${MANAGER_IMAGE} || { echo >&2 "kind not installed or error loading image: ${MANAGER_IMAGE}"; exit 1; }
kind load docker-image --name=${KIND_CLUSTER_NAME} ${KOORDLET_IMAGE} || { echo >&2 "kind not installed or error loading image: ${KOORDLET_IMAGE}"; exit 1; }
kind load docker-image --name=${KIND_CLUSTER_NAME} ${SCHEDULER_IMAGE} || { echo >&2 "kind not installed or error loading image: ${SCHEDULER_IMAGE}"; exit 1; }
- name: Check host environment
- name: Check cluster environment
run: |
set -ex
kubectl version --short
kubectl get pods -A
kubectl get nodes -o yaml
tree -L 2 /sys/
tree -L 2 /sys/fs/cgroup
cat /proc/cpuinfo
- name: Install Koordinator
run: |
set -ex
Expand Down
22 changes: 18 additions & 4 deletions .github/workflows/e2e-k8s-1.24.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,23 @@ jobs:
continue-on-error: true
runs-on: ubuntu-20.04
steps:
- name: Check host environment before
run: |
set -ex
lscpu -e
tree -L 2 /sys/
tree -L 2 /sys/fs/cgroup
df -h
- name: Free Disk Space
uses: jlumbroso/free-disk-space@v1.3.1
with:
tool-cache: false
swap-storage: false
large-packages: false
docker-images: false
android: true
dotnet: true
haskell: true
- uses: actions/checkout@v4
with:
submodules: true
Expand All @@ -48,15 +65,12 @@ jobs:
kind load docker-image --name=${KIND_CLUSTER_NAME} ${MANAGER_IMAGE} || { echo >&2 "kind not installed or error loading image: ${MANAGER_IMAGE}"; exit 1; }
kind load docker-image --name=${KIND_CLUSTER_NAME} ${KOORDLET_IMAGE} || { echo >&2 "kind not installed or error loading image: ${KOORDLET_IMAGE}"; exit 1; }
kind load docker-image --name=${KIND_CLUSTER_NAME} ${SCHEDULER_IMAGE} || { echo >&2 "kind not installed or error loading image: ${SCHEDULER_IMAGE}"; exit 1; }
- name: Check host environment
- name: Check cluster environment
run: |
set -ex
kubectl version --short
kubectl get pods -A
kubectl get nodes -o yaml
tree -L 2 /sys/
tree -L 2 /sys/fs/cgroup
cat /proc/cpuinfo
- name: Install Koordinator
run: |
set -ex
Expand Down
22 changes: 18 additions & 4 deletions .github/workflows/e2e-k8s-1.28.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,23 @@ jobs:
continue-on-error: true
runs-on: ubuntu-20.04
steps:
- name: Check host environment before
run: |
set -ex
lscpu -e
tree -L 2 /sys/
tree -L 2 /sys/fs/cgroup
df -h
- name: Free Disk Space
uses: jlumbroso/free-disk-space@v1.3.1
with:
tool-cache: false
swap-storage: false
large-packages: false
docker-images: false
android: true
dotnet: true
haskell: true
- uses: actions/checkout@v4
with:
submodules: true
Expand All @@ -48,15 +65,12 @@ jobs:
kind load docker-image --name=${KIND_CLUSTER_NAME} ${MANAGER_IMAGE} || { echo >&2 "kind not installed or error loading image: ${MANAGER_IMAGE}"; exit 1; }
kind load docker-image --name=${KIND_CLUSTER_NAME} ${KOORDLET_IMAGE} || { echo >&2 "kind not installed or error loading image: ${KOORDLET_IMAGE}"; exit 1; }
kind load docker-image --name=${KIND_CLUSTER_NAME} ${SCHEDULER_IMAGE} || { echo >&2 "kind not installed or error loading image: ${SCHEDULER_IMAGE}"; exit 1; }
- name: Check host environment
- name: Check cluster environment
run: |
set -ex
kubectl version --short
kubectl get pods -A
kubectl get nodes -o yaml
tree -L 2 /sys/
tree -L 2 /sys/fs/cgroup
cat /proc/cpuinfo
- name: Install Koordinator
run: |
set -ex
Expand Down
24 changes: 20 additions & 4 deletions .github/workflows/e2e-k8s-latest.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,23 @@ jobs:
continue-on-error: true
runs-on: ubuntu-20.04
steps:
- name: Check host environment before
run: |
set -ex
lscpu -e
tree -L 2 /sys/
tree -L 2 /sys/fs/cgroup
df -h
- name: Free Disk Space
uses: jlumbroso/free-disk-space@v1.3.1
with:
tool-cache: false
swap-storage: false
large-packages: false
docker-images: false
android: true
dotnet: true
haskell: true
- uses: actions/checkout@v4
with:
submodules: true
Expand All @@ -46,15 +63,12 @@ jobs:
kind load docker-image --name=${KIND_CLUSTER_NAME} ${MANAGER_IMAGE} || { echo >&2 "kind not installed or error loading image: ${MANAGER_IMAGE}"; exit 1; }
kind load docker-image --name=${KIND_CLUSTER_NAME} ${KOORDLET_IMAGE} || { echo >&2 "kind not installed or error loading image: ${KOORDLET_IMAGE}"; exit 1; }
kind load docker-image --name=${KIND_CLUSTER_NAME} ${SCHEDULER_IMAGE} || { echo >&2 "kind not installed or error loading image: ${SCHEDULER_IMAGE}"; exit 1; }
- name: Check host environment
- name: Check cluster environment
run: |
set -ex
kubectl version --short
kubectl get pods -A
kubectl get nodes -o yaml
tree -L 2 /sys/
tree -L 2 /sys/fs/cgroup
cat /proc/cpuinfo
- name: Install Koordinator
run: |
set -ex
Expand Down Expand Up @@ -105,3 +119,5 @@ jobs:
exit 1
fi
exit $retVal
- name: Checkout host environment after
run: df -h

0 comments on commit 65bfe26

Please sign in to comment.