From d0a6385f341ea48822f8c14f8f791ee967e2f193 Mon Sep 17 00:00:00 2001 From: Chris White Date: Wed, 11 Dec 2024 23:23:31 +0000 Subject: [PATCH] Add before and after measurements --- src/ci/scripts/free-disk-space.sh | 46 +++++++++++++++++++++++++++++++ 1 file changed, 46 insertions(+) diff --git a/src/ci/scripts/free-disk-space.sh b/src/ci/scripts/free-disk-space.sh index c7f206b8fe4a9..0e8cff1cbdf0d 100755 --- a/src/ci/scripts/free-disk-space.sh +++ b/src/ci/scripts/free-disk-space.sh @@ -87,15 +87,61 @@ AVAILABLE_ROOT_INITIAL=$(getAvailableSpace '/') printDH "BEFORE CLEAN-UP:" echo "" +BEFORE=$(getAvailableSpace) fast_rmdir /usr/local/share/boost || true + +AFTER=$(getAvailableSpace) +SAVED=$((AFTER-BEFORE)) +printSavedSpace $SAVED "boost" + +BEFORE=$(getAvailableSpace) + fast_rmdir "$AGENT_TOOLSDIRECTORY" || true + +AFTER=$(getAvailableSpace) +SAVED=$((AFTER-BEFORE)) +printSavedSpace $SAVED "Agent tools" + +BEFORE=$(getAvailableSpace) + fast_rmdir /opt/hostedtoolcache || true + +AFTER=$(getAvailableSpace) +SAVED=$((AFTER-BEFORE)) +printSavedSpace $SAVED "hostedtoolcache" + +BEFORE=$(getAvailableSpace) + fast_rmdir /usr/local/graalvm || true + +AFTER=$(getAvailableSpace) +SAVED=$((AFTER-BEFORE)) +printSavedSpace $SAVED "graalvm" + +BEFORE=$(getAvailableSpace) + fast_rmdir /usr/local/share/powershell || true + +AFTER=$(getAvailableSpace) +SAVED=$((AFTER-BEFORE)) +printSavedSpace $SAVED "Powershell" + +BEFORE=$(getAvailableSpace) + fast_rmdir /usr/local/share/chromium || true + +AFTER=$(getAvailableSpace) +SAVED=$((AFTER-BEFORE)) +printSavedSpace $SAVED "Chromium" + +BEFORE=$(getAvailableSpace) + fast_rmdir /usr/local/lib/node_modules || true +AFTER=$(getAvailableSpace) +SAVED=$((AFTER-BEFORE)) +printSavedSpace $SAVED "Node modules" BEFORE=$(getAvailableSpace)