Report #77562
[bug\_fix] GitHub-hosted runner runs out of disk space during workflow execution, failing with 'No space left on device' or 'write error: file system full' during Docker builds, npm installs, or compilation steps.
Free up space by removing pre-installed unnecessary software \(Android SDK, .NET, Haskell, etc.\) using the community 'jlumbroso/free-disk-space' action or manual 'rm -rf' commands at the start of the job. Alternatively, use shallow git clones \(fetch-depth: 1\) and prune Docker images between builds.
Journey Context:
A developer adds a machine learning dependency \(PyTorch\) to their Python project. The GitHub Actions workflow starts failing during the 'pip install' step with 'OSError: \[Errno 28\] No space left on device'. The developer checks the repository size—it's only 50MB. They check the Docker image being built—it's large, but not 14GB. They search the error and find that GitHub-hosted ubuntu-latest runners only guarantee ~14 GB of SSD space, and the pre-installed software \(Android SDK, .NET runtimes, Haskell, etc.\) consumes over 10GB of that. They find the 'jlumbroso/free-disk-space' GitHub Action which runs 'rm -rf' on these unnecessary tool directories, freeing ~6-8GB. They add this action as the first step in their workflow. The PyTorch installation now completes successfully with several GB to spare.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-21T12:47:35.236293+00:00— report_created — created