Skip to content

Commit 014b8b3

Browse files
authored
ci: reclaim disk space on amd64 ingest container build (#250)
PR #249's release build hit out-of-disk on `container-build (ingest, amd64)`: ##[warning]You are running out of disk space. Free space left: 0 MB Error: ... uv sync ...: io: read/write on closed pipe The ingest service transitively pulls the full torch + nvidia CUDA wheel stack via memvid-sdk -> sentence-transformers. The ~14 GB free on the hosted ubuntu-latest runner gets consumed by the rocky-linux/ubi-micro build stages, the uv cache mount, and the layer being committed. Add `jlumbroso/free-disk-space@v1.3.1` to reclaim ~30 GB by purging the preinstalled tool-cache, Android SDK, .NET, and Haskell that this build does not need. Gated to `ingest` + `amd64` because arm64 (ubuntu-24.04-arm) has more headroom and other images (frontend/api/memvid) don't pull torch. This is the immediate unblock; a follow-up PR will pin ingest to the CPU-only torch wheel index to stop the CUDA wheels landing in the image at all.
1 parent 1836fd6 commit 014b8b3

1 file changed

Lines changed: 16 additions & 0 deletions

File tree

.github/workflows/ci.yml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -643,6 +643,22 @@ jobs:
643643
steps:
644644
- uses: actions/checkout@v6
645645

646+
# The ingest container drags in the full torch/nvidia CUDA wheel stack via
647+
# sentence-transformers, which routinely exhausts the ~14 GB of free disk
648+
# on the ubuntu-latest amd64 runner during `uv sync`. Reclaim ~30 GB by
649+
# purging preinstalled toolchains we do not need here. Arm runner has
650+
# more headroom and skips this step. Tracked: alpha.18 post-mortem.
651+
- name: Free disk space on amd64 ingest runner
652+
if: matrix.image == 'ingest' && matrix.platform == 'amd64'
653+
uses: jlumbroso/free-disk-space@v1.3.1
654+
with:
655+
tool-cache: true
656+
android: true
657+
dotnet: true
658+
haskell: true
659+
large-packages: false
660+
swap-storage: false
661+
646662
- name: Install cosign
647663
if: github.event_name == 'push' && (github.ref == 'refs/heads/main' || startsWith(github.ref, 'refs/tags/v'))
648664
uses: sigstore/cosign-installer@v3

0 commit comments

Comments
 (0)