Skip to content

Commit 855276a

Browse files
hjmjohnsonclaude
andcommitted
COMP: Free disk space between build and test in Pixi CI
The ubuntu-22.04 runner runs out of disk space during the Test step after a ~2 hour build. The runner has 146GB total and the build tree plus build artifacts can exceed available space, causing the runner to be killed mid-test with no error message. Move the .o/.a cleanup to a dedicated step and add additional cleanup: - Remove InsightData tarball (~200MB, already extracted) - Remove extracted source tarball directory - Flush ccache temp files - Report disk usage after cleanup for diagnostics Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent b94cca5 commit 855276a

1 file changed

Lines changed: 12 additions & 1 deletion

File tree

.github/workflows/pixi.yml

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -135,9 +135,20 @@ jobs:
135135
pixi run --skip-deps build
136136
echo "****** df -h / -- post build"
137137
df -h /
138+
139+
- name: Free disk space after build
140+
shell: bash
141+
run: |
142+
# Remove object files and static libraries (not needed for testing)
138143
find build -type f -name "*.o" -delete
139144
find build -type f -name "*.a" -delete
140-
echo "****** df -h / -- post .o .a cleanup"
145+
# Remove downloaded data tarballs (already extracted)
146+
rm -f InsightData-*.tar.gz
147+
# Remove extracted source tarball directory
148+
rm -rf InsightToolkit-${{ env.ExternalDataVersion }}
149+
# Trim ccache to stay within CCACHE_MAXSIZE and remove orphaned entries
150+
ccache --cleanup 2>/dev/null || true
151+
echo "****** df -h / -- post cleanup"
141152
df -h /
142153
143154
- name: Test

0 commit comments

Comments
 (0)