Skip to content

Commit

Permalink
Alter Windows CI disk limits (#24368)
Browse files Browse the repository at this point in the history
  • Loading branch information
SomeoneToIgnore authored Feb 6, 2025
1 parent 69e6910 commit d459cd5
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
3 changes: 2 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -279,7 +279,8 @@ jobs:

- name: Check dev drive space
working-directory: ${{ env.ZED_WORKSPACE }}
run: ./script/exit-ci-if-dev-drive-is-full.ps1 55
# `setup-dev-driver.ps1` creates a 100GB drive, with CI taking up ~45GB of the drive.
run: ./script/exit-ci-if-dev-drive-is-full.ps1 95

# Since the Windows runners are stateful, so we need to remove the config file to prevent potential bug.
- name: Clean CI config file
Expand Down
6 changes: 3 additions & 3 deletions script/setup-dev-driver.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
# The current version of the Windows runner is 10.0.20348 which does not support DevDrive option.
# Ref: https://learn.microsoft.com/en-us/windows/dev-drive/

# Currently, total CI requires almost 45GB of space, here we are creating a 60GB drive.
$Volume = New-VHD -Path C:/zed_dev_drive.vhdx -SizeBytes 60GB |
# Currently, total CI requires almost 45GB of space, here we are creating a 100GB drive.
$Volume = New-VHD -Path C:/zed_dev_drive.vhdx -SizeBytes 100GB |
Mount-VHD -Passthru |
Initialize-Disk -Passthru |
New-Partition -AssignDriveLetter -UseMaximumSize |
Expand All @@ -15,7 +15,7 @@ $Drive = "$($Volume.DriveLetter):"
# Show some debug information
Write-Output $Volume
Write-Output "Using Dev Drive at $Drive"

# Move Cargo to the dev drive
New-Item -Path "$($Drive)/.cargo/bin" -ItemType Directory -Force
Copy-Item -Path "C:/Users/runneradmin/.cargo/*" -Destination "$($Drive)/.cargo/" -Recurse -Force
Expand Down

0 comments on commit d459cd5

Please sign in to comment.