ci: free disk space before embeddings-all builds (#775)#776
Merged
Conversation
The ubuntu-latest x86_64 jobs that build --features embeddings-all (candle / tokenizers / hf-hub / image / reqwest) intermittently died with "No space left on device": the restored Rust cache plus the build artifacts exceed the runner's root disk by a thin margin. aarch64 (skip_embedding_features) and Windows are unaffected. Add a reusable composite action .github/actions/free-disk-space that removes unused preinstalled toolchains (.NET, Android SDK, GHC/Haskell, CodeQL bundle) and dangling Docker images (~25-30 GB) and prints free space before/after. Reference it (Linux-gated, right after checkout) in the heavy embeddings-all jobs (clippy + test-*) of regression.yml, periodic.yml, and release.yml. Removed paths are unused by the Rust / Python / Node toolchains these jobs rely on. Closes #775
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
The
ubuntu-latestx86_64 CI jobs that build--features embeddings-all(candle / tokenizers / hf-hub / image / reqwest) intermittently die withNo space left on device. The restored Rust build cache (~790 MB compressed, much larger expanded) plus theembeddings-allbuild artifacts exceed the runner's root disk by a thin margin, so the failure is intermittent. Theubuntu-24.04-armjob is unaffected (skip_embedding_features: true) and Windows is unaffected (different disk layout). Observed on PRs #772 and #774; cause is only visible viagh api repos/.../check-runs/<job_id>/annotations.Change
.github/actions/free-disk-spacethat removes unused preinstalled toolchains (.NET, Android SDK, GHC/Haskell, CodeQL bundle) and dangling Docker images (~25-30 GB reclaimed), printingdf -h /before and after so future disk regressions are diagnosable from the log. This follows the existing local-composite-action pattern (./.github/actions/install-protoc).if: runner.os == 'Linux', right after checkout — in the heavyembeddings-alljobs ofregression.yml,periodic.yml, andrelease.yml:clippy,test-laurus,test-server,test-mcp,test-cli,test-python,test-nodejs,test-ruby,test-php(9 jobs × 3 workflows = 27 references).The removed paths are unused by the Rust / Python / Node toolchains these jobs rely on. Because
pull_requestruns use the PR's own workflow definitions, this change self-validates — theFree disk spacestep runs on this PR's CI.Verification
build-*/publish-*artifact jobs.Out of scope (possible follow-up)
release.ymlbuild-*/publish-*artifact jobs (release-gated, not currently failing).Closes #775