Skip to content

Commit 9ddd6e7

Browse files
authored
fix(ci): Free disk space for some CI test workflows (prestodb#26623)
## Description This change free disk space for `product-tests-basic-environment` and `spark-integration` which are failing frequently due to disk space issues. ## Motivation and Context Stable CI ## Impact Stable CI ## Test Plan N/A ## 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. - [ ] If adding new dependencies, verified they have an [OpenSSF Scorecard](https://securityscorecards.dev/#the-checks) score of 5.0 or higher (or obtained explicit TSC approval for lower scores). ## Release Notes ``` == NO RELEASE NOTE == ```
1 parent 4318f54 commit 9ddd6e7

File tree

2 files changed

+10
-5
lines changed

2 files changed

+10
-5
lines changed

.github/workflows/product-tests-basic-environment.yml

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -43,11 +43,10 @@ jobs:
4343
steps:
4444
- name: Free Disk Space
4545
if: needs.changes.outputs.codechange == 'true'
46-
run: |
47-
df -h
48-
sudo apt-get clean
49-
rm -rf /opt/hostedtoolcache
50-
df -h
46+
uses: jlumbroso/free-disk-space@54081f138730dfa15788a46383842cd2f914a1be # v1.3.1
47+
with:
48+
tool-cache: true
49+
swap-storage: false
5150
- uses: actions/checkout@v4
5251
if: needs.changes.outputs.codechange == 'true'
5352
with:

.github/workflows/spark-integration.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,12 @@ jobs:
4242
group: ${{ github.workflow }}-spark-integration-${{ github.event.pull_request.number }}-${{ matrix.java }}
4343
cancel-in-progress: true
4444
steps:
45+
- name: Free Disk Space
46+
if: needs.changes.outputs.codechange == 'true'
47+
uses: jlumbroso/free-disk-space@54081f138730dfa15788a46383842cd2f914a1be # v1.3.1
48+
with:
49+
tool-cache: true
50+
swap-storage: false
4551
- uses: actions/checkout@v4
4652
if: needs.changes.outputs.codechange == 'true'
4753
with:

0 commit comments

Comments
 (0)