From 4e8eb91562b75fbcc6ecdaaa3efe62b724f71aa4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Yoann=20Rodi=C3=A8re?= Date: Fri, 25 Oct 2024 11:04:19 +0200 Subject: [PATCH] Sanitize user home on GitHub Action job start on Atlas --- .github/ci-prerequisites-atlas.sh | 6 ++++++ .github/workflows/ci.yml | 6 +++--- 2 files changed, 9 insertions(+), 3 deletions(-) create mode 100755 .github/ci-prerequisites-atlas.sh diff --git a/.github/ci-prerequisites-atlas.sh b/.github/ci-prerequisites-atlas.sh new file mode 100755 index 000000000000..b0a16f22b1e8 --- /dev/null +++ b/.github/ci-prerequisites-atlas.sh @@ -0,0 +1,6 @@ +# Reclaims disk space and sanitizes user home on Atlas infrastructure + +# We use the GitHub cache for the relevant parts of these directories. +# Also, we do not want to keep things like ~/.gradle/build-scan-data. +rm -rf ~/.gradle/ +rm -rf ~/.m2/ diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index e25427e5c68a..4c8398205474 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -97,7 +97,7 @@ jobs: if: "${{ github.event_name == 'pull_request' && !cancelled() }}" with: name: build-scan-data-${{ matrix.rdbms }} - path: build-scan-data.tgz + path: ~/.gradle/build-scan-data - name: Upload test reports (if Gradle failed) uses: actions/upload-artifact@v4 @@ -129,8 +129,8 @@ jobs: - uses: actions/checkout@v4 with: persist-credentials: false - - name: Reclaim Disk Space - run: .github/ci-prerequisites.sh + - name: Reclaim disk space and sanitize user home + run: .github/ci-prerequisites-atlas.sh - name: Start database env: RDBMS: ${{ matrix.rdbms }}