From f8eef822f5b901b4de9c325b73c25ea01e269b66 Mon Sep 17 00:00:00 2001 From: Jonathan Peppers Date: Thu, 4 Dec 2025 11:19:02 -0600 Subject: [PATCH 1/2] [copilot] use `fetch-depth: 1` for disk space 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. --- .github/workflows/copilot-setup-steps.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/copilot-setup-steps.yml b/.github/workflows/copilot-setup-steps.yml index f8a82ad4ef0..66db40877e6 100644 --- a/.github/workflows/copilot-setup-steps.yml +++ b/.github/workflows/copilot-setup-steps.yml @@ -19,6 +19,7 @@ jobs: uses: actions/checkout@v4 with: submodules: recursive + fetch-depth: 1 - name: Log disk space (after checkout) uses: ./.github/workflows/log-disk-space From ba9d7284cc832328d32c038f9e4902db61e2b34a Mon Sep 17 00:00:00 2001 From: Jonathan Peppers Date: Thu, 4 Dec 2025 12:50:50 -0600 Subject: [PATCH 2/2] Update copilot-setup-steps.yml --- .github/workflows/copilot-setup-steps.yml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/.github/workflows/copilot-setup-steps.yml b/.github/workflows/copilot-setup-steps.yml index 66db40877e6..9a0a560d34b 100644 --- a/.github/workflows/copilot-setup-steps.yml +++ b/.github/workflows/copilot-setup-steps.yml @@ -15,6 +15,11 @@ jobs: NUGET_SCRATCH: /mnt/nuget/scratch steps: + - name: Free up disk space + run: | + # Remove pre-installed Android SDK/NDK (~10GB) since we download our own specific versions + sudo rm -rf /usr/local/lib/android + - name: Checkout repository uses: actions/checkout@v4 with: