From 1136c0f644a686eb955360789768d6c732c5183b Mon Sep 17 00:00:00 2001 From: Erik Bershel <110455084+erik-bershel@users.noreply.github.com> Date: Thu, 24 Oct 2024 11:55:22 +0200 Subject: [PATCH] [macOS] Update disk space Pester test: current target - 30 GB (#10854) --- images/macos/scripts/tests/System.Tests.ps1 | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/images/macos/scripts/tests/System.Tests.ps1 b/images/macos/scripts/tests/System.Tests.ps1 index 206ac3be7..8f55de538 100644 --- a/images/macos/scripts/tests/System.Tests.ps1 +++ b/images/macos/scripts/tests/System.Tests.ps1 @@ -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 } }