Skip to content

Conversation

@jonathanpeppers
Copy link
Member

@jonathanpeppers jonathanpeppers commented Dec 4, 2025

Context: #10629

The Copilot GitHub Actions runner was running out of disk space with 76%
used (54G/72G) after checkout, leaving only 18GB free for builds.

Changes:

  • Remove /usr/local/lib/android before checkout (~12GB pre-installed SDK/NDK)
  • Add fetch-depth: 1 for shallow clones of main repo and submodules

Results:

  • Disk usage after checkout: 59% (42G/72G) with 30GB free
  • Saved 12GB total, providing sufficient space for build operations
  • Build caches already redirected to /mnt (66GB available) via [copilot] move NuGet cache to /mnt #10610

We are still running out of disk space, the clone itself is using a
lot as indicated by copilot reviewing logs:

    The issue is that the checkout doesn't specify fetch-depth, so it's
    doing a full clone of all submodules with complete history. This is
    consuming ~40GB of the 55GB. We need to add shallow clones with
    fetch-depth: 1 to significantly reduce the checkout size.
@jonathanpeppers

This comment was marked as outdated.

@jonathanpeppers jonathanpeppers changed the title [copilot] use fetch-depth: 1 for disk space [copilot] free up disk space by removing pre-installed Android SDK Dec 4, 2025
@jonathanpeppers
Copy link
Member Author

@jonathanpeppers jonathanpeppers marked this pull request as ready for review December 4, 2025 19:23
@grendello
Copy link
Contributor

Going to merge it, despite the red tests. The PR affects only CI environment preparation.

@grendello grendello merged commit 384f7f2 into main Dec 5, 2025
56 of 60 checks passed
@grendello grendello deleted the dev/peppers/copilot-fetch-depth branch December 5, 2025 09:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants