From eef674727f9dcf90ad9ef867ce4cc0799bd8867d Mon Sep 17 00:00:00 2001 From: Jamo Luhrsen Date: Tue, 23 Apr 2024 10:50:01 -0700 Subject: [PATCH] check disk usage before and after 'go test' ISSUE: https://github.com/ovn-org/ovn-kubernetes/issues/4287 JIRA: https://issues.redhat.com/browse/SDN-4786 Signed-off-by: Jamo Luhrsen --- test/scripts/e2e-cp.sh | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/test/scripts/e2e-cp.sh b/test/scripts/e2e-cp.sh index cca1aaec49..5b09718872 100755 --- a/test/scripts/e2e-cp.sh +++ b/test/scripts/e2e-cp.sh @@ -190,6 +190,8 @@ FOCUS=$(echo ${@:1} | sed 's/ /\\s/g') pushd e2e go mod download +sudo df -h +sudo du -a / --exclude="/proc" --exclude="/sys" --exclude="/dev" | sort -rn 2>/dev/null | head -20 go test -test.timeout 180m -v . \ -ginkgo.v \ -ginkgo.focus ${FOCUS:-.} \ @@ -200,5 +202,10 @@ go test -test.timeout 180m -v . \ -kubeconfig ${KUBECONFIG} \ ${NUM_NODES:+"--num-nodes=${NUM_NODES}"} \ ${E2E_REPORT_DIR:+"--report-dir=${E2E_REPORT_DIR}"} \ - ${E2E_REPORT_PREFIX:+"--report-prefix=${E2E_REPORT_PREFIX}"} + ${E2E_REPORT_PREFIX:+"--report-prefix=${E2E_REPORT_PREFIX}"} || { + sudo df -h + sudo du -a / --exclude="/proc" --exclude="/sys" --exclude="/dev" | sort -rn | head -20 2>/dev/null + } +sudo df -h +sudo du -a / --exclude="/proc" --exclude="/sys" --exclude="/dev" | sort -rn 2>/dev/null | head -20 popd