From 1928428f1902d4edd445421049de918bfbdd60e4 Mon Sep 17 00:00:00 2001 From: Kumar Gala Date: Fri, 23 Oct 2020 10:35:57 -0500 Subject: [PATCH] ci: Add some disk usage reporting Add some disk reporting to try and help debug random failures due to disk space being used up. Signed-off-by: Kumar Gala --- .buildkite/hooks/pre-command | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/.buildkite/hooks/pre-command b/.buildkite/hooks/pre-command index 04ea9a06b01..f280b70e81b 100755 --- a/.buildkite/hooks/pre-command +++ b/.buildkite/hooks/pre-command @@ -6,6 +6,12 @@ # Save off where we started so we can go back there WORKDIR=${PWD} +echo "--- $0 disk usage" +df -h +du -hs /var/lib/buildkite-agent/* +docker images -a +docker system df -v + if [ -n "${BUILDKITE_PULL_REQUEST_BASE_BRANCH}" ]; then git fetch -v origin ${BUILDKITE_PULL_REQUEST_BASE_BRANCH} git checkout FETCH_HEAD