Skip to content

Commit 61bf908

Browse files
yrodierebeikov
authored andcommitted
Sanitize user home on GitHub Action job start on Atlas
(cherry picked from commit 4e8eb91)
1 parent cf6ac4a commit 61bf908

File tree

2 files changed

+9
-3
lines changed

2 files changed

+9
-3
lines changed

.github/ci-prerequisites-atlas.sh

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
# Reclaims disk space and sanitizes user home on Atlas infrastructure
2+
3+
# We use the GitHub cache for the relevant parts of these directories.
4+
# Also, we do not want to keep things like ~/.gradle/build-scan-data.
5+
rm -rf ~/.gradle/
6+
rm -rf ~/.m2/

.github/workflows/ci.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ jobs:
9898
if: "${{ github.event_name == 'pull_request' && !cancelled() }}"
9999
with:
100100
name: build-scan-data-${{ matrix.rdbms }}
101-
path: build-scan-data.tgz
101+
path: ~/.gradle/build-scan-data
102102

103103
- name: Upload test reports (if Gradle failed)
104104
uses: actions/upload-artifact@v4
@@ -130,8 +130,8 @@ jobs:
130130
- uses: actions/checkout@v4
131131
with:
132132
persist-credentials: false
133-
- name: Reclaim Disk Space
134-
run: .github/ci-prerequisites.sh
133+
- name: Reclaim disk space and sanitize user home
134+
run: .github/ci-prerequisites-atlas.sh
135135
- name: Start database
136136
env:
137137
RDBMS: ${{ matrix.rdbms }}

0 commit comments

Comments
 (0)