Skip to content

Conversation

@jonathanpeppers
Copy link
Member

Context: https://learn.microsoft.com/nuget/consume-packages/managing-the-global-packages-and-cache-folders

Move build caches to secondary disk to prevent disk space issues

Redirects all NuGet caches to /mnt (secondary disk with 74GB) to avoid filling /dev/root during Copilot builds.

Environment variables configured:

  • NUGET_PACKAGES, NUGET_HTTP_CACHE_PATH, NUGET_PLUGINS_CACHE_PATH, NUGET_SCRATCH

Context: https://learn.microsoft.com/nuget/consume-packages/managing-the-global-packages-and-cache-folders

Move build caches to secondary disk to prevent disk space issues

Redirects all NuGet caches to `/mnt` (secondary disk with 74GB) to
avoid filling `/dev/root` during Copilot builds.

Environment variables configured:
- `NUGET_PACKAGES`, `NUGET_HTTP_CACHE_PATH`,
  `NUGET_PLUGINS_CACHE_PATH`, `NUGET_SCRATCH`
@jonathanpeppers
Copy link
Member Author

@jonathanpeppers jonathanpeppers marked this pull request as ready for review November 24, 2025 21:44
@jonathanpeppers
Copy link
Member Author

Ok, this one is even more impactful than the last:

5.1G	/mnt/nuget

So, should free up that much space.

@jonathanpeppers jonathanpeppers merged commit 13e1230 into main Nov 24, 2025
53 of 60 checks passed
@jonathanpeppers jonathanpeppers deleted the dev/peppers/copilot-nuget branch November 24, 2025 21:44
grendello pushed a commit that referenced this pull request Dec 5, 2025
…10629)

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 #10610
@github-actions github-actions bot locked and limited conversation to collaborators Dec 25, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants