diff --git a/.github/workflows/integrate.yaml b/.github/workflows/integrate.yaml index 796ac84b..edf422c5 100644 --- a/.github/workflows/integrate.yaml +++ b/.github/workflows/integrate.yaml @@ -68,14 +68,22 @@ jobs: - name: Run integration tests run: | + ./tools/disk-space.sh & juju add-model test-istio tox -e ${{ matrix.integration-types }} -- --model test-istio + echo ------------- TESTS FINISHED -----------" + date "+%H:%M:%S %d/%m/%y" timeout-minutes: 80 - name: Setup Debug Artifact Collection run: mkdir tmp if: failure() + - name: Collect disk space monitoring logs + if: failure() || cancelled() + run: | + cat disk-size-logs.txt | tee tmp/disk-size-logs.txt + - name: Collect charmcraft logs if: failure() run: | @@ -135,8 +143,16 @@ jobs: - name: Run observability integration tests run: | + ./tools/disk-space.sh & juju add-model cos-test tox -vve cos-integration -- --model cos-test + echo ------------- TESTS FINISHED -----------" + date "+%H:%M:%S %d/%m/%y" - run: kubectl get pod/prometheus-k8s-0 -n knative-test -o=jsonpath='{.status}' if: failure() + + - name: Collect disk space monitoring logs + if: failure() || cancelled() + run: | + cat disk-size-logs.txt | tee tmp/disk-size-logs.txt diff --git a/tools/disk-space.sh b/tools/disk-space.sh new file mode 100755 index 00000000..cd5e0b0d --- /dev/null +++ b/tools/disk-space.sh @@ -0,0 +1,12 @@ +#!/bin/bash + +# Infinite loop +while true; do + # Display disk usage + date "+%H:%M:%S %d/%m/%y" >> disk-size-logs.txt + df -h >> disk-size-logs.txt + echo "---------------------------------------" >> disk-size-logs.txt + + # Wait for 20 seconds + sleep 20 +done