Skip to content

Commit 33af281

Browse files
authored
Free the space of release action runner (#25614)
## Description When test release action, have the error below when publishing maven artifacts: ``` System.IO.IOException: No space left on device : '/home/runner/runners/2.326.0/_diag/Worker_20250724-124529-utc.log' at System.IO.RandomAccess.WriteAtOffset(SafeFileHandle handle, ReadOnlySpan`1 buffer, Int64 fileOffset) ``` Full log: https://github.com/unix280/presto/actions/runs/16497246602/job/46645900152 ## Motivation and Context Add more space for java and c++ action runner ## Impact Release ## Test Plan Test passed in my repo: https://github.com/unix280/presto/actions/runs/16502179432 ## Contributor checklist - [ ] Please make sure your submission complies with our [contributing guide](https://github.com/prestodb/presto/blob/master/CONTRIBUTING.md), in particular [code style](https://github.com/prestodb/presto/blob/master/CONTRIBUTING.md#code-style) and [commit standards](https://github.com/prestodb/presto/blob/master/CONTRIBUTING.md#commit-standards). - [ ] PR description addresses the issue accurately and concisely. If the change is non-trivial, a GitHub Issue is referenced. - [ ] Documented new properties (with its default value), SQL syntax, functions, or other functionality. - [ ] If release notes are required, they follow the [release notes guidelines](https://github.com/prestodb/presto/wiki/Release-Notes-Guidelines). - [ ] Adequate tests were added if applicable. - [ ] CI passed. ## Release Notes ``` == NO RELEASE NOTE == ```
1 parent d68e988 commit 33af281

File tree

1 file changed

+21
-0
lines changed

1 file changed

+21
-0
lines changed

.github/workflows/presto-release-publish.yml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -112,6 +112,14 @@ jobs:
112112
NEXUS_PASSWORD: ${{ secrets.NEXUS_PASSWORD }}
113113

114114
steps:
115+
- name: Free Disk Space (Ubuntu)
116+
uses: jlumbroso/[email protected]
117+
with:
118+
tool-cache: false
119+
large-packages: false
120+
docker-images: false
121+
swap-storage: false
122+
115123
- name: Set up JDK ${{ env.JAVA_DISTRIBUTION }}/${{ env.JAVA_VERSION }}
116124
uses: actions/setup-java@v4
117125
with:
@@ -122,6 +130,7 @@ jobs:
122130

123131
- name: Install dependencies
124132
run: |
133+
df -h
125134
sudo apt-get update
126135
sudo apt-get install -y build-essential git gpg python3 python3-venv
127136
@@ -194,6 +203,7 @@ jobs:
194203
chmod 600 ${{ env.GPG_KEY_FILE }}
195204
gpg --import --batch ${{ env.GPG_KEY_FILE }}
196205
gpg --batch --yes --pinentry-mode loopback --passphrase "${{ secrets.GPG_PASSPHRASE }}" --sign ${{ env.GPG_KEY_FILE }}
206+
df -h
197207
198208
- name: Release Maven Artifacts
199209
if: ${{ github.event.inputs.publish_maven == 'true' }}
@@ -284,6 +294,14 @@ jobs:
284294
environment: release
285295
timeout-minutes: 300
286296
steps:
297+
- name: Free Disk Space (Ubuntu)
298+
uses: jlumbroso/[email protected]
299+
with:
300+
tool-cache: false
301+
large-packages: false
302+
docker-images: false
303+
swap-storage: false
304+
287305
- name: Checkout
288306
uses: actions/checkout@v4
289307
with:
@@ -292,6 +310,7 @@ jobs:
292310

293311
- name: Initialize Prestissimo submodules
294312
run: |
313+
df -h
295314
cd presto-native-execution && make submodules
296315
echo "COMMIT_SHA=$(git rev-parse --short HEAD)" >> $GITHUB_ENV
297316
@@ -312,6 +331,7 @@ jobs:
312331
- name: Build Dependency Image
313332
working-directory: presto-native-execution
314333
run: |
334+
df -h
315335
if docker pull ${{ env.DEPENDENCY_IMAGE }}; then
316336
echo "Using dependency image ${{ env.DEPENDENCY_IMAGE }}"
317337
docker tag ${{ env.DEPENDENCY_IMAGE }} presto/prestissimo-dependency:centos9
@@ -333,6 +353,7 @@ jobs:
333353
- name: Build Runtime Image
334354
working-directory: presto-native-execution
335355
run: |
356+
df -h
336357
docker compose build centos-native-runtime
337358
338359
- name: Add release tag

0 commit comments

Comments
 (0)