[macOS] Update disk space Pester test: current target - 30 GB (#10854)

This commit is contained in:
Erik Bershel
2024-10-24 11:55:22 +02:00
committed by GitHub
parent d4872d4c2e
commit 1136c0f644

View File

@@ -3,12 +3,13 @@ Import-Module "$PSScriptRoot/../helpers/Common.Helpers.psm1"
$os = Get-OSVersion
Describe "Disk free space" {
It "Image has more than 14GB free space" {
# we should have at least 14 GB of free space on macOS images
It "Image has more than 30GB free space" {
# we should have at least 30 GB of free space on macOS images
# 10GB here: https://docs.microsoft.com/en-us/azure/devops/pipelines/agents/hosted?view=azure-devops#capabilities-and-limitations
# 14GB here: https://docs.github.com/en/actions/using-github-hosted-runners/using-github-hosted-runners/about-github-hosted-runners#standard-github-hosted-runners-for-public-repositories
# 30GB due to: https://github.com/actions/runner-images/issues/10511
$freeSpace = (Get-PSDrive "/").Free
$freeSpace | Should -BeGreaterOrEqual 14GB
$freeSpace | Should -BeGreaterOrEqual 30GB
}
}