From 855276ae8c29c0ec81be06d7d0bd1d112678faed Mon Sep 17 00:00:00 2001 From: Hans Johnson Date: Fri, 3 Apr 2026 22:11:12 -0500 Subject: [PATCH] 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) --- .github/workflows/pixi.yml | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/.github/workflows/pixi.yml b/.github/workflows/pixi.yml index e91ae0fe157..1734f5a5eb4 100644 --- a/.github/workflows/pixi.yml +++ b/.github/workflows/pixi.yml @@ -135,9 +135,20 @@ jobs: pixi run --skip-deps build echo "****** df -h / -- post build" df -h / + + - name: Free disk space after build + shell: bash + run: | + # Remove object files and static libraries (not needed for testing) find build -type f -name "*.o" -delete find build -type f -name "*.a" -delete - echo "****** df -h / -- post .o .a cleanup" + # Remove downloaded data tarballs (already extracted) + rm -f InsightData-*.tar.gz + # Remove extracted source tarball directory + rm -rf InsightToolkit-${{ env.ExternalDataVersion }} + # Trim ccache to stay within CCACHE_MAXSIZE and remove orphaned entries + ccache --cleanup 2>/dev/null || true + echo "****** df -h / -- post cleanup" df -h / - name: Test