Skip to content

Commit 5e8b0c4

Browse files
committed
GitHub: make some space before running large CI steps
We're apparently running out of space in our integration tests at some point: `unable to fetch set of universe servers: unknown sqlite error: unable to open database file: out of memory (14)` The GitHub action runners aren't really outfitted with a lot of storage, but apparently deleting the hosted tools directory can free up some space.
1 parent 26855b3 commit 5e8b0c4

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

Diff for: .github/workflows/main.yaml

+10-1
Original file line numberDiff line numberDiff line change
@@ -266,6 +266,9 @@ jobs:
266266
name: run itests
267267
runs-on: ubuntu-latest
268268
steps:
269+
- name: cleanup space
270+
run: rm -rf /opt/hostedtoolcache
271+
269272
- name: git checkout
270273
uses: actions/checkout@v4
271274

@@ -306,6 +309,9 @@ jobs:
306309
name: run itests postgres
307310
runs-on: ubuntu-latest
308311
steps:
312+
- name: cleanup space
313+
run: rm -rf /opt/hostedtoolcache
314+
309315
- name: git checkout
310316
uses: actions/checkout@v4
311317

@@ -347,6 +353,9 @@ jobs:
347353
runs-on: ubuntu-latest
348354

349355
steps:
356+
- name: cleanup space
357+
run: rm -rf /opt/hostedtoolcache
358+
350359
- name: git checkout
351360
uses: actions/checkout@v4
352361

@@ -391,7 +400,7 @@ jobs:
391400
# Notify about the completion of all coverage collecting jobs.
392401
finish:
393402
if: ${{ always() }}
394-
needs: [unit-test]
403+
needs: [ unit-test ]
395404
runs-on: ubuntu-latest
396405
steps:
397406
- uses: coverallsapp/github-action@v2

0 commit comments

Comments
 (0)