From e195c0cdbac65f703530dd2d1f2e47860c95fecf Mon Sep 17 00:00:00 2001 From: jakirkham Date: Thu, 27 Jun 2024 21:24:27 -0700 Subject: [PATCH 01/39] MNT: Re-rendered with conda-build 24.5.1, conda-smithy 3.36.3.dev1+g256929e4, and conda-forge-pinning 2024.06.27.10.52.52 --- .azure-pipelines/azure-pipelines-win.yml | 15 ++++++--------- 1 file changed, 6 insertions(+), 9 deletions(-) diff --git a/.azure-pipelines/azure-pipelines-win.yml b/.azure-pipelines/azure-pipelines-win.yml index d609fcd..c71a196 100755 --- a/.azure-pipelines/azure-pipelines-win.yml +++ b/.azure-pipelines/azure-pipelines-win.yml @@ -18,15 +18,12 @@ jobs: steps: - - task: PythonScript@0 - displayName: 'Download Miniforge' - inputs: - scriptSource: inline - script: | - import urllib.request - url = 'https://github.com/conda-forge/miniforge/releases/latest/download/Mambaforge-Windows-x86_64.exe' - path = r"$(Build.ArtifactStagingDirectory)/Miniforge.exe" - urllib.request.urlretrieve(url, path) + - powershell: | + Invoke-WebRequest $env:MINIFORGE_URL -OutFile $env:MINIFORGE_PATH + displayName: "Download Miniforge" + env: + MINIFORGE_URL: https://github.com/conda-forge/miniforge/releases/latest/download/Mambaforge-Windows-x86_64.exe + MINIFORGE_PATH: $(Build.ArtifactStagingDirectory)/Miniforge.exe - script: | start /wait "" %BUILD_ARTIFACTSTAGINGDIRECTORY%\Miniforge.exe /InstallationType=JustMe /RegisterPython=0 /S /D=C:\Miniforge From da8cdfb748a31567692ca12f47ac0b3bf41209ef Mon Sep 17 00:00:00 2001 From: jakirkham Date: Thu, 27 Jun 2024 21:25:16 -0700 Subject: [PATCH 02/39] Configure Azure to free space --- conda-forge.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/conda-forge.yml b/conda-forge.yml index 2f501ce..4498901 100644 --- a/conda-forge.yml +++ b/conda-forge.yml @@ -1,3 +1,5 @@ +azure: + free_disk_space: true conda_forge_output_validation: true github: branch_name: main From 19807c932acc0c3aa945d19f33719c1260734aa1 Mon Sep 17 00:00:00 2001 From: jakirkham Date: Fri, 28 Jun 2024 01:15:27 -0700 Subject: [PATCH 03/39] MNT: Re-rendered with conda-build 24.5.1, conda-smithy 3.36.3.dev1+g256929e4, and conda-forge-pinning 2024.06.27.10.52.52 --- .azure-pipelines/azure-pipelines-win.yml | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/.azure-pipelines/azure-pipelines-win.yml b/.azure-pipelines/azure-pipelines-win.yml index c71a196..a4646aa 100755 --- a/.azure-pipelines/azure-pipelines-win.yml +++ b/.azure-pipelines/azure-pipelines-win.yml @@ -17,6 +17,23 @@ jobs: UPLOAD_TEMP: D:\\tmp steps: + - script: | + set CLEANUP_DIRS=^ + C:\hostedtoolcache\windows;^ + ; + + mkdir C:\empty + for %%f in (%CLEANUP_DIRS:;= %) do ( + if not [%%f] == [] ( + echo Removing %%f + dir %%f + robocopy /mir /mt /zb /ns /nc /nfl /ndl /np /njh /njs C:\empty %%f > nul 2>&1 + rmdir /q %%f + ) + ) + rmdir /q C:\empty + wmic logicaldisk get size,freespace,caption + displayName: Manage disk space - powershell: | Invoke-WebRequest $env:MINIFORGE_URL -OutFile $env:MINIFORGE_PATH From 6839e1f595bd5ca39c359e5df6c2ed7e0d8c51c0 Mon Sep 17 00:00:00 2001 From: jakirkham Date: Fri, 28 Jun 2024 13:21:42 -0700 Subject: [PATCH 04/39] MNT: Re-rendered with conda-build 24.5.1, conda-smithy 3.36.3.dev1+g256929e4, and conda-forge-pinning 2024.06.28.19.57.36 --- .azure-pipelines/azure-pipelines-win.yml | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/.azure-pipelines/azure-pipelines-win.yml b/.azure-pipelines/azure-pipelines-win.yml index a4646aa..8c2c156 100755 --- a/.azure-pipelines/azure-pipelines-win.yml +++ b/.azure-pipelines/azure-pipelines-win.yml @@ -17,20 +17,20 @@ jobs: UPLOAD_TEMP: D:\\tmp steps: - - script: | - set CLEANUP_DIRS=^ - C:\hostedtoolcache\windows;^ - ; + - powershell: | + $cleanup_dirs = @( + "C:\hostedtoolcache\windows"; + ) mkdir C:\empty - for %%f in (%CLEANUP_DIRS:;= %) do ( - if not [%%f] == [] ( - echo Removing %%f - dir %%f - robocopy /mir /mt /zb /ns /nc /nfl /ndl /np /njh /njs C:\empty %%f > nul 2>&1 - rmdir /q %%f - ) - ) + foreach ($d in $cleanup_dirs) { + if ($d) { + echo "Removing $d" + dir $d + robocopy /mir /mt /zb /ns /nc /nfl /ndl /np /njh /njs C:\empty %$d > nul 2>&1 + rm -f $d + } + } rmdir /q C:\empty wmic logicaldisk get size,freespace,caption displayName: Manage disk space From 8735bd1140057ed85ca23cd7be6ada1aaf5a310f Mon Sep 17 00:00:00 2001 From: jakirkham Date: Fri, 28 Jun 2024 13:28:08 -0700 Subject: [PATCH 05/39] MNT: Re-rendered with conda-build 24.5.1, conda-smithy 3.36.3.dev1+g256929e4, and conda-forge-pinning 2024.06.28.19.57.36 --- .azure-pipelines/azure-pipelines-win.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.azure-pipelines/azure-pipelines-win.yml b/.azure-pipelines/azure-pipelines-win.yml index 8c2c156..6ed54d5 100755 --- a/.azure-pipelines/azure-pipelines-win.yml +++ b/.azure-pipelines/azure-pipelines-win.yml @@ -27,7 +27,7 @@ jobs: if ($d) { echo "Removing $d" dir $d - robocopy /mir /mt /zb /ns /nc /nfl /ndl /np /njh /njs C:\empty %$d > nul 2>&1 + robocopy /mir /mt /zb /ns /nc /nfl /ndl /np /njh /njs C:\empty %$d 2>&1>$null rm -f $d } } From 685922a46722b35e48a4fbe22870161cb0af3516 Mon Sep 17 00:00:00 2001 From: jakirkham Date: Fri, 28 Jun 2024 13:31:06 -0700 Subject: [PATCH 06/39] MNT: Re-rendered with conda-build 24.5.1, conda-smithy 3.36.3.dev1+g256929e4, and conda-forge-pinning 2024.06.28.19.57.36 --- .azure-pipelines/azure-pipelines-win.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.azure-pipelines/azure-pipelines-win.yml b/.azure-pipelines/azure-pipelines-win.yml index 6ed54d5..18deeb2 100755 --- a/.azure-pipelines/azure-pipelines-win.yml +++ b/.azure-pipelines/azure-pipelines-win.yml @@ -28,7 +28,7 @@ jobs: echo "Removing $d" dir $d robocopy /mir /mt /zb /ns /nc /nfl /ndl /np /njh /njs C:\empty %$d 2>&1>$null - rm -f $d + rmdir $d } } rmdir /q C:\empty From 451684db4afb0be451c9b78dc279fda8ed57a3fb Mon Sep 17 00:00:00 2001 From: jakirkham Date: Fri, 28 Jun 2024 13:34:16 -0700 Subject: [PATCH 07/39] MNT: Re-rendered with conda-build 24.5.1, conda-smithy 3.36.3.dev1+g256929e4, and conda-forge-pinning 2024.06.28.19.57.36 --- .azure-pipelines/azure-pipelines-win.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.azure-pipelines/azure-pipelines-win.yml b/.azure-pipelines/azure-pipelines-win.yml index 18deeb2..f4f6234 100755 --- a/.azure-pipelines/azure-pipelines-win.yml +++ b/.azure-pipelines/azure-pipelines-win.yml @@ -28,10 +28,10 @@ jobs: echo "Removing $d" dir $d robocopy /mir /mt /zb /ns /nc /nfl /ndl /np /njh /njs C:\empty %$d 2>&1>$null - rmdir $d + rm -force $d } } - rmdir /q C:\empty + rm -force C:\empty wmic logicaldisk get size,freespace,caption displayName: Manage disk space From c3f28f8fa62c4d313dd408724a53986a10b6d9c9 Mon Sep 17 00:00:00 2001 From: jakirkham Date: Fri, 28 Jun 2024 13:37:37 -0700 Subject: [PATCH 08/39] MNT: Re-rendered with conda-build 24.5.1, conda-smithy 3.36.3.dev1+g256929e4, and conda-forge-pinning 2024.06.28.19.57.36 --- .azure-pipelines/azure-pipelines-win.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.azure-pipelines/azure-pipelines-win.yml b/.azure-pipelines/azure-pipelines-win.yml index f4f6234..e488f06 100755 --- a/.azure-pipelines/azure-pipelines-win.yml +++ b/.azure-pipelines/azure-pipelines-win.yml @@ -28,10 +28,10 @@ jobs: echo "Removing $d" dir $d robocopy /mir /mt /zb /ns /nc /nfl /ndl /np /njh /njs C:\empty %$d 2>&1>$null - rm -force $d + Remove-Item -Force $d } } - rm -force C:\empty + Remove-Item -Force C:\empty wmic logicaldisk get size,freespace,caption displayName: Manage disk space From 164909f02b1cb788d70ca414b5172ece51a4b1ef Mon Sep 17 00:00:00 2001 From: jakirkham Date: Fri, 28 Jun 2024 13:44:57 -0700 Subject: [PATCH 09/39] fix rm --- .azure-pipelines/azure-pipelines-win.yml | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/.azure-pipelines/azure-pipelines-win.yml b/.azure-pipelines/azure-pipelines-win.yml index e488f06..2c5caa5 100755 --- a/.azure-pipelines/azure-pipelines-win.yml +++ b/.azure-pipelines/azure-pipelines-win.yml @@ -22,16 +22,17 @@ jobs: "C:\hostedtoolcache\windows"; ) - mkdir C:\empty + $empty_dir = "C:\empty" + mkdir $empty_dir foreach ($d in $cleanup_dirs) { if ($d) { echo "Removing $d" dir $d robocopy /mir /mt /zb /ns /nc /nfl /ndl /np /njh /njs C:\empty %$d 2>&1>$null - Remove-Item -Force $d + Remove-Item $d -Force } } - Remove-Item -Force C:\empty + Remove-Item $empty_dir -Force wmic logicaldisk get size,freespace,caption displayName: Manage disk space From a586c0010e90c6e4e178e2ac143d401e0f06f865 Mon Sep 17 00:00:00 2001 From: jakirkham Date: Fri, 28 Jun 2024 13:49:11 -0700 Subject: [PATCH 10/39] Fix robocopy --- .azure-pipelines/azure-pipelines-win.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.azure-pipelines/azure-pipelines-win.yml b/.azure-pipelines/azure-pipelines-win.yml index 2c5caa5..ca9abaa 100755 --- a/.azure-pipelines/azure-pipelines-win.yml +++ b/.azure-pipelines/azure-pipelines-win.yml @@ -28,7 +28,7 @@ jobs: if ($d) { echo "Removing $d" dir $d - robocopy /mir /mt /zb /ns /nc /nfl /ndl /np /njh /njs C:\empty %$d 2>&1>$null + robocopy /mir /mt /zb /ns /nc /nfl /ndl /np /njh /njs $empty_dir $d 2>&1>$null Remove-Item $d -Force } } From 82e0e3045ee5a6ea73740e21dbdad64511a6e405 Mon Sep 17 00:00:00 2001 From: jakirkham Date: Fri, 28 Jun 2024 15:47:54 -0700 Subject: [PATCH 11/39] MNT: Re-rendered with conda-build 24.5.1, conda-smithy 3.36.3.dev1+g256929e4, and conda-forge-pinning 2024.06.28.19.57.36 --- .azure-pipelines/azure-pipelines-win.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.azure-pipelines/azure-pipelines-win.yml b/.azure-pipelines/azure-pipelines-win.yml index ca9abaa..1dcf6b9 100755 --- a/.azure-pipelines/azure-pipelines-win.yml +++ b/.azure-pipelines/azure-pipelines-win.yml @@ -18,6 +18,7 @@ jobs: steps: - powershell: | + #Requires -RunAsAdministrator $cleanup_dirs = @( "C:\hostedtoolcache\windows"; ) From d4bab276a26904e9779d880d85aefb7c59281277 Mon Sep 17 00:00:00 2001 From: jakirkham Date: Fri, 28 Jun 2024 16:18:27 -0700 Subject: [PATCH 12/39] MNT: Re-rendered with conda-build 24.5.1, conda-smithy 3.36.3.dev1+g256929e4, and conda-forge-pinning 2024.06.28.19.57.36 --- .azure-pipelines/azure-pipelines-win.yml | 3 --- 1 file changed, 3 deletions(-) diff --git a/.azure-pipelines/azure-pipelines-win.yml b/.azure-pipelines/azure-pipelines-win.yml index 1dcf6b9..56386bd 100755 --- a/.azure-pipelines/azure-pipelines-win.yml +++ b/.azure-pipelines/azure-pipelines-win.yml @@ -18,7 +18,6 @@ jobs: steps: - powershell: | - #Requires -RunAsAdministrator $cleanup_dirs = @( "C:\hostedtoolcache\windows"; ) @@ -28,13 +27,11 @@ jobs: foreach ($d in $cleanup_dirs) { if ($d) { echo "Removing $d" - dir $d robocopy /mir /mt /zb /ns /nc /nfl /ndl /np /njh /njs $empty_dir $d 2>&1>$null Remove-Item $d -Force } } Remove-Item $empty_dir -Force - wmic logicaldisk get size,freespace,caption displayName: Manage disk space - powershell: | From 12adaf47270617e1d8e4297da883009c079d6b43 Mon Sep 17 00:00:00 2001 From: jakirkham Date: Fri, 28 Jun 2024 16:20:46 -0700 Subject: [PATCH 13/39] MNT: Re-rendered with conda-build 24.5.1, conda-smithy 3.36.3.dev1+g256929e4, and conda-forge-pinning 2024.06.28.19.57.36 --- .azure-pipelines/azure-pipelines-win.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.azure-pipelines/azure-pipelines-win.yml b/.azure-pipelines/azure-pipelines-win.yml index 56386bd..b793069 100755 --- a/.azure-pipelines/azure-pipelines-win.yml +++ b/.azure-pipelines/azure-pipelines-win.yml @@ -25,7 +25,7 @@ jobs: $empty_dir = "C:\empty" mkdir $empty_dir foreach ($d in $cleanup_dirs) { - if ($d) { + if ($d -and (Test-Path $d)) { echo "Removing $d" robocopy /mir /mt /zb /ns /nc /nfl /ndl /np /njh /njs $empty_dir $d 2>&1>$null Remove-Item $d -Force From 7a3fab3211c78c8bef9e530c10f6f998a643c043 Mon Sep 17 00:00:00 2001 From: jakirkham Date: Fri, 28 Jun 2024 16:29:09 -0700 Subject: [PATCH 14/39] MNT: Re-rendered with conda-build 24.5.1, conda-smithy 3.36.3.dev1+g256929e4, and conda-forge-pinning 2024.06.28.19.57.36 --- .azure-pipelines/azure-pipelines-win.yml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.azure-pipelines/azure-pipelines-win.yml b/.azure-pipelines/azure-pipelines-win.yml index b793069..0196f3a 100755 --- a/.azure-pipelines/azure-pipelines-win.yml +++ b/.azure-pipelines/azure-pipelines-win.yml @@ -22,12 +22,15 @@ jobs: "C:\hostedtoolcache\windows"; ) + $robocopy_flags = " + /mir /mt /zb /ns /nc /nfl /ndl /np /njh /njs /r:0 /w:0 + " $empty_dir = "C:\empty" mkdir $empty_dir foreach ($d in $cleanup_dirs) { if ($d -and (Test-Path $d)) { echo "Removing $d" - robocopy /mir /mt /zb /ns /nc /nfl /ndl /np /njh /njs $empty_dir $d 2>&1>$null + robocopy $robocopy_flags $empty_dir $d 2>&1>$null Remove-Item $d -Force } } From cb69b4ea4327b6fb9b804e898ed430f55423ac4e Mon Sep 17 00:00:00 2001 From: jakirkham Date: Fri, 28 Jun 2024 16:32:43 -0700 Subject: [PATCH 15/39] MNT: Re-rendered with conda-build 24.5.1, conda-smithy 3.36.3.dev1+g256929e4, and conda-forge-pinning 2024.06.28.19.57.36 --- .azure-pipelines/azure-pipelines-win.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.azure-pipelines/azure-pipelines-win.yml b/.azure-pipelines/azure-pipelines-win.yml index 0196f3a..7ead04b 100755 --- a/.azure-pipelines/azure-pipelines-win.yml +++ b/.azure-pipelines/azure-pipelines-win.yml @@ -22,9 +22,9 @@ jobs: "C:\hostedtoolcache\windows"; ) - $robocopy_flags = " + $robocopy_flags = @' /mir /mt /zb /ns /nc /nfl /ndl /np /njh /njs /r:0 /w:0 - " + '@ $empty_dir = "C:\empty" mkdir $empty_dir foreach ($d in $cleanup_dirs) { From 56604392c5e6c640daac6a017f17eca8a173a2a0 Mon Sep 17 00:00:00 2001 From: jakirkham Date: Fri, 28 Jun 2024 16:35:56 -0700 Subject: [PATCH 16/39] Dedent --- .azure-pipelines/azure-pipelines-win.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.azure-pipelines/azure-pipelines-win.yml b/.azure-pipelines/azure-pipelines-win.yml index 7ead04b..80225be 100755 --- a/.azure-pipelines/azure-pipelines-win.yml +++ b/.azure-pipelines/azure-pipelines-win.yml @@ -23,7 +23,7 @@ jobs: ) $robocopy_flags = @' - /mir /mt /zb /ns /nc /nfl /ndl /np /njh /njs /r:0 /w:0 + /mir /mt /zb /ns /nc /nfl /ndl /np /njh /njs /r:0 /w:0 '@ $empty_dir = "C:\empty" mkdir $empty_dir From fed299f62ef86260ceac919c7ea528dd22588926 Mon Sep 17 00:00:00 2001 From: jakirkham Date: Fri, 28 Jun 2024 16:39:11 -0700 Subject: [PATCH 17/39] retry --- .azure-pipelines/azure-pipelines-win.yml | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/.azure-pipelines/azure-pipelines-win.yml b/.azure-pipelines/azure-pipelines-win.yml index 80225be..4e97fdd 100755 --- a/.azure-pipelines/azure-pipelines-win.yml +++ b/.azure-pipelines/azure-pipelines-win.yml @@ -22,9 +22,7 @@ jobs: "C:\hostedtoolcache\windows"; ) - $robocopy_flags = @' - /mir /mt /zb /ns /nc /nfl /ndl /np /njh /njs /r:0 /w:0 - '@ + $robocopy_flags = "/mir /r:0 /w:0 /nocopy /mt /zb /ns /nc /nfl /ndl /np /njh /njs" $empty_dir = "C:\empty" mkdir $empty_dir foreach ($d in $cleanup_dirs) { From 9e8c0858559e8bce0e269b030abb2530840e685f Mon Sep 17 00:00:00 2001 From: jakirkham Date: Fri, 28 Jun 2024 16:45:01 -0700 Subject: [PATCH 18/39] retry --- .azure-pipelines/azure-pipelines-win.yml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.azure-pipelines/azure-pipelines-win.yml b/.azure-pipelines/azure-pipelines-win.yml index 4e97fdd..06a0c9c 100755 --- a/.azure-pipelines/azure-pipelines-win.yml +++ b/.azure-pipelines/azure-pipelines-win.yml @@ -22,7 +22,10 @@ jobs: "C:\hostedtoolcache\windows"; ) - $robocopy_flags = "/mir /r:0 /w:0 /nocopy /mt /zb /ns /nc /nfl /ndl /np /njh /njs" + $robocopy_flags = @( + "/mir"; "/r:0"; "/w:0"; "/nocopy"; "/mt"; "/zb"; + "/ns"; "/nc"; "/nfl"; "/ndl"; "/np"; "/njh"; "/njs"; + ) $empty_dir = "C:\empty" mkdir $empty_dir foreach ($d in $cleanup_dirs) { From 0263feec8761082bbac32e2af0195ad2fd8ef1fc Mon Sep 17 00:00:00 2001 From: jakirkham Date: Fri, 28 Jun 2024 16:48:32 -0700 Subject: [PATCH 19/39] Use , arrays --- .azure-pipelines/azure-pipelines-win.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.azure-pipelines/azure-pipelines-win.yml b/.azure-pipelines/azure-pipelines-win.yml index 06a0c9c..aeb82fb 100755 --- a/.azure-pipelines/azure-pipelines-win.yml +++ b/.azure-pipelines/azure-pipelines-win.yml @@ -19,12 +19,12 @@ jobs: steps: - powershell: | $cleanup_dirs = @( - "C:\hostedtoolcache\windows"; + "C:\hostedtoolcache\windows", ) $robocopy_flags = @( - "/mir"; "/r:0"; "/w:0"; "/nocopy"; "/mt"; "/zb"; - "/ns"; "/nc"; "/nfl"; "/ndl"; "/np"; "/njh"; "/njs"; + "/mir", "/r:0", "/w:0", "/nocopy", "/mt", "/zb", + "/ns", "/nc", "/nfl", "/ndl", "/np", "/njh", "/njs", ) $empty_dir = "C:\empty" mkdir $empty_dir From af741575d4294363f8a86b6ff0582f5b07c62a68 Mon Sep 17 00:00:00 2001 From: jakirkham Date: Fri, 28 Jun 2024 16:50:44 -0700 Subject: [PATCH 20/39] Revert "Use , arrays" This reverts commit 0263feec8761082bbac32e2af0195ad2fd8ef1fc. --- .azure-pipelines/azure-pipelines-win.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.azure-pipelines/azure-pipelines-win.yml b/.azure-pipelines/azure-pipelines-win.yml index aeb82fb..06a0c9c 100755 --- a/.azure-pipelines/azure-pipelines-win.yml +++ b/.azure-pipelines/azure-pipelines-win.yml @@ -19,12 +19,12 @@ jobs: steps: - powershell: | $cleanup_dirs = @( - "C:\hostedtoolcache\windows", + "C:\hostedtoolcache\windows"; ) $robocopy_flags = @( - "/mir", "/r:0", "/w:0", "/nocopy", "/mt", "/zb", - "/ns", "/nc", "/nfl", "/ndl", "/np", "/njh", "/njs", + "/mir"; "/r:0"; "/w:0"; "/nocopy"; "/mt"; "/zb"; + "/ns"; "/nc"; "/nfl"; "/ndl"; "/np"; "/njh"; "/njs"; ) $empty_dir = "C:\empty" mkdir $empty_dir From f84e5e0e9dafb2d845d6348ac8c20202de8dc35e Mon Sep 17 00:00:00 2001 From: jakirkham Date: Fri, 28 Jun 2024 17:15:49 -0700 Subject: [PATCH 21/39] Drop `/r:0` & `/w:0` --- .azure-pipelines/azure-pipelines-win.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.azure-pipelines/azure-pipelines-win.yml b/.azure-pipelines/azure-pipelines-win.yml index 06a0c9c..e894e28 100755 --- a/.azure-pipelines/azure-pipelines-win.yml +++ b/.azure-pipelines/azure-pipelines-win.yml @@ -23,7 +23,7 @@ jobs: ) $robocopy_flags = @( - "/mir"; "/r:0"; "/w:0"; "/nocopy"; "/mt"; "/zb"; + "/mir"; "/nocopy"; "/mt"; "/zb"; "/ns"; "/nc"; "/nfl"; "/ndl"; "/np"; "/njh"; "/njs"; ) $empty_dir = "C:\empty" From 06d15bd07cc8e36dfe0e39611cc046451d2da43f Mon Sep 17 00:00:00 2001 From: jakirkham Date: Fri, 28 Jun 2024 17:19:40 -0700 Subject: [PATCH 22/39] Revert "Drop `/r:0` & `/w:0`" This reverts commit f84e5e0e9dafb2d845d6348ac8c20202de8dc35e. --- .azure-pipelines/azure-pipelines-win.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.azure-pipelines/azure-pipelines-win.yml b/.azure-pipelines/azure-pipelines-win.yml index e894e28..06a0c9c 100755 --- a/.azure-pipelines/azure-pipelines-win.yml +++ b/.azure-pipelines/azure-pipelines-win.yml @@ -23,7 +23,7 @@ jobs: ) $robocopy_flags = @( - "/mir"; "/nocopy"; "/mt"; "/zb"; + "/mir"; "/r:0"; "/w:0"; "/nocopy"; "/mt"; "/zb"; "/ns"; "/nc"; "/nfl"; "/ndl"; "/np"; "/njh"; "/njs"; ) $empty_dir = "C:\empty" From ad680f898f5f254bbaa48d59ba5901aa35cee1e3 Mon Sep 17 00:00:00 2001 From: jakirkham Date: Fri, 28 Jun 2024 17:20:21 -0700 Subject: [PATCH 23/39] Use `@` --- .azure-pipelines/azure-pipelines-win.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.azure-pipelines/azure-pipelines-win.yml b/.azure-pipelines/azure-pipelines-win.yml index 06a0c9c..cf1eaf8 100755 --- a/.azure-pipelines/azure-pipelines-win.yml +++ b/.azure-pipelines/azure-pipelines-win.yml @@ -19,7 +19,7 @@ jobs: steps: - powershell: | $cleanup_dirs = @( - "C:\hostedtoolcache\windows"; + "C:\hostedtoolcache\windows" ) $robocopy_flags = @( @@ -31,7 +31,7 @@ jobs: foreach ($d in $cleanup_dirs) { if ($d -and (Test-Path $d)) { echo "Removing $d" - robocopy $robocopy_flags $empty_dir $d 2>&1>$null + robocopy @robocopy_flags $empty_dir $d 2>&1>$null Remove-Item $d -Force } } From c3ce1497fc9f4597c80a3a208fe46f5b50ab0e3b Mon Sep 17 00:00:00 2001 From: jakirkham Date: Fri, 28 Jun 2024 17:31:46 -0700 Subject: [PATCH 24/39] MNT: Re-rendered with conda-build 24.5.1, conda-smithy 3.36.3.dev1+g256929e4, and conda-forge-pinning 2024.06.28.19.57.36 --- .azure-pipelines/azure-pipelines-win.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.azure-pipelines/azure-pipelines-win.yml b/.azure-pipelines/azure-pipelines-win.yml index cf1eaf8..3c3bf01 100755 --- a/.azure-pipelines/azure-pipelines-win.yml +++ b/.azure-pipelines/azure-pipelines-win.yml @@ -23,8 +23,8 @@ jobs: ) $robocopy_flags = @( - "/mir"; "/r:0"; "/w:0"; "/nocopy"; "/mt"; "/zb"; - "/ns"; "/nc"; "/nfl"; "/ndl"; "/np"; "/njh"; "/njs"; + "/mir", "/r:0", "/w:0", "/nocopy", "/mt", "/zb" + "/ns", "/nc", "/nfl", "/ndl", "/np", "/njh", "/njs" ) $empty_dir = "C:\empty" mkdir $empty_dir From 24a4982e22358c5bc479839100e2db7004c3416d Mon Sep 17 00:00:00 2001 From: jakirkham Date: Fri, 28 Jun 2024 17:38:13 -0700 Subject: [PATCH 25/39] MNT: Re-rendered with conda-build 24.5.1, conda-smithy 3.36.3.dev1+g256929e4, and conda-forge-pinning 2024.06.28.19.57.36 --- .azure-pipelines/azure-pipelines-win.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.azure-pipelines/azure-pipelines-win.yml b/.azure-pipelines/azure-pipelines-win.yml index 3c3bf01..d2196e6 100755 --- a/.azure-pipelines/azure-pipelines-win.yml +++ b/.azure-pipelines/azure-pipelines-win.yml @@ -23,7 +23,7 @@ jobs: ) $robocopy_flags = @( - "/mir", "/r:0", "/w:0", "/nocopy", "/mt", "/zb" + "/purge", "/r:0", "/w:0", "/nocopy", "/mt" "/ns", "/nc", "/nfl", "/ndl", "/np", "/njh", "/njs" ) $empty_dir = "C:\empty" From 32fa8998537d2e5e3624ff9c558c6058da8c351f Mon Sep 17 00:00:00 2001 From: jakirkham Date: Fri, 28 Jun 2024 18:00:06 -0700 Subject: [PATCH 26/39] MNT: Re-rendered with conda-build 24.5.1, conda-smithy 3.36.3.dev1+g256929e4, and conda-forge-pinning 2024.06.28.19.57.36 --- .azure-pipelines/azure-pipelines-win.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.azure-pipelines/azure-pipelines-win.yml b/.azure-pipelines/azure-pipelines-win.yml index d2196e6..71ade03 100755 --- a/.azure-pipelines/azure-pipelines-win.yml +++ b/.azure-pipelines/azure-pipelines-win.yml @@ -23,11 +23,11 @@ jobs: ) $robocopy_flags = @( - "/purge", "/r:0", "/w:0", "/nocopy", "/mt" + "/mir", "/nocopy", "/nodcopy", "/mt" "/ns", "/nc", "/nfl", "/ndl", "/np", "/njh", "/njs" ) $empty_dir = "C:\empty" - mkdir $empty_dir + mkdir $empty_dir 2>&1>$null foreach ($d in $cleanup_dirs) { if ($d -and (Test-Path $d)) { echo "Removing $d" From 70edb5db52b33bdee78077de44754d42afe5a79e Mon Sep 17 00:00:00 2001 From: jakirkham Date: Fri, 28 Jun 2024 18:10:32 -0700 Subject: [PATCH 27/39] MNT: Re-rendered with conda-build 24.5.1, conda-smithy 3.36.3.dev1+g256929e4, and conda-forge-pinning 2024.06.28.19.57.36 --- .azure-pipelines/azure-pipelines-win.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.azure-pipelines/azure-pipelines-win.yml b/.azure-pipelines/azure-pipelines-win.yml index 71ade03..8105cb7 100755 --- a/.azure-pipelines/azure-pipelines-win.yml +++ b/.azure-pipelines/azure-pipelines-win.yml @@ -24,7 +24,7 @@ jobs: $robocopy_flags = @( "/mir", "/nocopy", "/nodcopy", "/mt" - "/ns", "/nc", "/nfl", "/ndl", "/np", "/njh", "/njs" + "/ns", "/nc", "/np", "/nfl", "/ndl", "/njh", "/njs" ) $empty_dir = "C:\empty" mkdir $empty_dir 2>&1>$null From 890b32c096cc3b298ce1a74f3085a150fac6e0ae Mon Sep 17 00:00:00 2001 From: jakirkham Date: Fri, 28 Jun 2024 18:29:21 -0700 Subject: [PATCH 28/39] Go back to last working state --- .azure-pipelines/azure-pipelines-win.yml | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) diff --git a/.azure-pipelines/azure-pipelines-win.yml b/.azure-pipelines/azure-pipelines-win.yml index 8105cb7..ca9abaa 100755 --- a/.azure-pipelines/azure-pipelines-win.yml +++ b/.azure-pipelines/azure-pipelines-win.yml @@ -19,23 +19,21 @@ jobs: steps: - powershell: | $cleanup_dirs = @( - "C:\hostedtoolcache\windows" + "C:\hostedtoolcache\windows"; ) - $robocopy_flags = @( - "/mir", "/nocopy", "/nodcopy", "/mt" - "/ns", "/nc", "/np", "/nfl", "/ndl", "/njh", "/njs" - ) $empty_dir = "C:\empty" - mkdir $empty_dir 2>&1>$null + mkdir $empty_dir foreach ($d in $cleanup_dirs) { - if ($d -and (Test-Path $d)) { + if ($d) { echo "Removing $d" - robocopy @robocopy_flags $empty_dir $d 2>&1>$null + dir $d + robocopy /mir /mt /zb /ns /nc /nfl /ndl /np /njh /njs $empty_dir $d 2>&1>$null Remove-Item $d -Force } } Remove-Item $empty_dir -Force + wmic logicaldisk get size,freespace,caption displayName: Manage disk space - powershell: | From 9a0ac0773084ad207b6d142bb56d09040b4f7a59 Mon Sep 17 00:00:00 2001 From: jakirkham Date: Fri, 28 Jun 2024 18:47:25 -0700 Subject: [PATCH 29/39] MNT: Re-rendered with conda-build 24.5.1, conda-smithy 3.36.3.dev1+g256929e4, and conda-forge-pinning 2024.06.28.19.57.36 --- .azure-pipelines/azure-pipelines-win.yml | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/.azure-pipelines/azure-pipelines-win.yml b/.azure-pipelines/azure-pipelines-win.yml index ca9abaa..a4d1c0a 100755 --- a/.azure-pipelines/azure-pipelines-win.yml +++ b/.azure-pipelines/azure-pipelines-win.yml @@ -19,21 +19,23 @@ jobs: steps: - powershell: | $cleanup_dirs = @( - "C:\hostedtoolcache\windows"; + "C:\hostedtoolcache\windows" ) + $robocopy_flags = @( + "/mir", "/mt", "/zb" + "/ns", "/nc", "/np", "/nfl", "/ndl", "/njh", "/njs" + ) $empty_dir = "C:\empty" - mkdir $empty_dir + mkdir $empty_dir 2>&1>$null foreach ($d in $cleanup_dirs) { - if ($d) { + if ($d -and (Test-Path $d)) { echo "Removing $d" - dir $d - robocopy /mir /mt /zb /ns /nc /nfl /ndl /np /njh /njs $empty_dir $d 2>&1>$null + robocopy @robocopy_flags $empty_dir $d 2>&1>$null Remove-Item $d -Force } } - Remove-Item $empty_dir -Force - wmic logicaldisk get size,freespace,caption + Remove-Item $empty_dir -Force displayName: Manage disk space - powershell: | From f7724dfc2e0716a63c993e9c4a0295f0d734d4bb Mon Sep 17 00:00:00 2001 From: jakirkham Date: Fri, 28 Jun 2024 19:10:42 -0700 Subject: [PATCH 30/39] Revert "MNT: Re-rendered with conda-build 24.5.1, conda-smithy 3.36.3.dev1+g256929e4, and conda-forge-pinning 2024.06.28.19.57.36" This reverts commit 9a0ac0773084ad207b6d142bb56d09040b4f7a59. --- .azure-pipelines/azure-pipelines-win.yml | 16 +++++++--------- 1 file changed, 7 insertions(+), 9 deletions(-) diff --git a/.azure-pipelines/azure-pipelines-win.yml b/.azure-pipelines/azure-pipelines-win.yml index a4d1c0a..ca9abaa 100755 --- a/.azure-pipelines/azure-pipelines-win.yml +++ b/.azure-pipelines/azure-pipelines-win.yml @@ -19,23 +19,21 @@ jobs: steps: - powershell: | $cleanup_dirs = @( - "C:\hostedtoolcache\windows" + "C:\hostedtoolcache\windows"; ) - $robocopy_flags = @( - "/mir", "/mt", "/zb" - "/ns", "/nc", "/np", "/nfl", "/ndl", "/njh", "/njs" - ) $empty_dir = "C:\empty" - mkdir $empty_dir 2>&1>$null + mkdir $empty_dir foreach ($d in $cleanup_dirs) { - if ($d -and (Test-Path $d)) { + if ($d) { echo "Removing $d" - robocopy @robocopy_flags $empty_dir $d 2>&1>$null + dir $d + robocopy /mir /mt /zb /ns /nc /nfl /ndl /np /njh /njs $empty_dir $d 2>&1>$null Remove-Item $d -Force } } - Remove-Item $empty_dir -Force + Remove-Item $empty_dir -Force + wmic logicaldisk get size,freespace,caption displayName: Manage disk space - powershell: | From 4d89d163786d12bb7dd9f879bc58cfa95069493c Mon Sep 17 00:00:00 2001 From: jakirkham Date: Fri, 28 Jun 2024 19:13:20 -0700 Subject: [PATCH 31/39] Try different flags --- .azure-pipelines/azure-pipelines-win.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.azure-pipelines/azure-pipelines-win.yml b/.azure-pipelines/azure-pipelines-win.yml index ca9abaa..443ef8c 100755 --- a/.azure-pipelines/azure-pipelines-win.yml +++ b/.azure-pipelines/azure-pipelines-win.yml @@ -28,7 +28,7 @@ jobs: if ($d) { echo "Removing $d" dir $d - robocopy /mir /mt /zb /ns /nc /nfl /ndl /np /njh /njs $empty_dir $d 2>&1>$null + robocopy /purge /r:0 /w:0 /nocopy /mt /ns /nc /nfl /ndl /np /njh /njs $empty_dir $d 2>&1>$null Remove-Item $d -Force } } From f56c356a80c185f190847d8e00a4ee260b859c7f Mon Sep 17 00:00:00 2001 From: jakirkham Date: Fri, 28 Jun 2024 19:24:24 -0700 Subject: [PATCH 32/39] Add back `/zb` --- .azure-pipelines/azure-pipelines-win.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.azure-pipelines/azure-pipelines-win.yml b/.azure-pipelines/azure-pipelines-win.yml index 443ef8c..d263676 100755 --- a/.azure-pipelines/azure-pipelines-win.yml +++ b/.azure-pipelines/azure-pipelines-win.yml @@ -28,7 +28,7 @@ jobs: if ($d) { echo "Removing $d" dir $d - robocopy /purge /r:0 /w:0 /nocopy /mt /ns /nc /nfl /ndl /np /njh /njs $empty_dir $d 2>&1>$null + robocopy /purge /r:0 /w:0 /nocopy /mt /zb /ns /nc /nfl /ndl /np /njh /njs $empty_dir $d 2>&1>$null Remove-Item $d -Force } } From 739276624cdacf8c882ef00e756a01b6507d2087 Mon Sep 17 00:00:00 2001 From: jakirkham Date: Fri, 28 Jun 2024 19:49:01 -0700 Subject: [PATCH 33/39] MNT: Re-rendered with conda-build 24.5.1, conda-smithy 3.36.3.dev1+g256929e4, and conda-forge-pinning 2024.06.29.01.49.00 --- .azure-pipelines/azure-pipelines-win.yml | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/.azure-pipelines/azure-pipelines-win.yml b/.azure-pipelines/azure-pipelines-win.yml index d263676..9d4f902 100755 --- a/.azure-pipelines/azure-pipelines-win.yml +++ b/.azure-pipelines/azure-pipelines-win.yml @@ -19,20 +19,23 @@ jobs: steps: - powershell: | $cleanup_dirs = @( - "C:\hostedtoolcache\windows"; + "C:\hostedtoolcache\windows" ) + $robocopy_flags = @( + "/purge", "/r:0", "/w:0", "/nocopy", "/mt", "/zb" + "/ns", "/nc", "/np", "/nfl", "/ndl", "/njh", "/njs" + ) $empty_dir = "C:\empty" - mkdir $empty_dir + mkdir $empty_dir 2>&1>$null foreach ($d in $cleanup_dirs) { - if ($d) { + if ($d -and (Test-Path $d)) { echo "Removing $d" - dir $d - robocopy /purge /r:0 /w:0 /nocopy /mt /zb /ns /nc /nfl /ndl /np /njh /njs $empty_dir $d 2>&1>$null + robocopy @robocopy_flags $empty_dir $d 2>&1>$null Remove-Item $d -Force } } - Remove-Item $empty_dir -Force + Remove-Item $empty_dir -Force wmic logicaldisk get size,freespace,caption displayName: Manage disk space From 24fd6fe708b775f41320d0ac1e915c33d2ee5858 Mon Sep 17 00:00:00 2001 From: jakirkham Date: Fri, 28 Jun 2024 20:09:31 -0700 Subject: [PATCH 34/39] MNT: Re-rendered with conda-build 24.5.1, conda-smithy 3.36.3.dev1+g256929e4, and conda-forge-pinning 2024.06.29.01.49.00 --- .azure-pipelines/azure-pipelines-win.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.azure-pipelines/azure-pipelines-win.yml b/.azure-pipelines/azure-pipelines-win.yml index 9d4f902..8c80a63 100755 --- a/.azure-pipelines/azure-pipelines-win.yml +++ b/.azure-pipelines/azure-pipelines-win.yml @@ -32,10 +32,10 @@ jobs: if ($d -and (Test-Path $d)) { echo "Removing $d" robocopy @robocopy_flags $empty_dir $d 2>&1>$null - Remove-Item $d -Force + Remove-Item -Path $d -Force } } - Remove-Item $empty_dir -Force + Remove-Item -Path $empty_dir -Force wmic logicaldisk get size,freespace,caption displayName: Manage disk space From 4cb7a90538883e6e0c6576c39bd5e60844abce86 Mon Sep 17 00:00:00 2001 From: jakirkham Date: Fri, 28 Jun 2024 20:17:46 -0700 Subject: [PATCH 35/39] MNT: Re-rendered with conda-build 24.5.1, conda-smithy 3.36.3.dev1+g256929e4, and conda-forge-pinning 2024.06.29.01.49.00 --- .azure-pipelines/azure-pipelines-win.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.azure-pipelines/azure-pipelines-win.yml b/.azure-pipelines/azure-pipelines-win.yml index 8c80a63..4dfb512 100755 --- a/.azure-pipelines/azure-pipelines-win.yml +++ b/.azure-pipelines/azure-pipelines-win.yml @@ -23,7 +23,7 @@ jobs: ) $robocopy_flags = @( - "/purge", "/r:0", "/w:0", "/nocopy", "/mt", "/zb" + "/purge", "/r:0", "/w:0", "/nocopy", "/nodcopy", "/mt", "/zb" "/ns", "/nc", "/np", "/nfl", "/ndl", "/njh", "/njs" ) $empty_dir = "C:\empty" From df71621a27144992e0e4c556624b999fa5b03cc3 Mon Sep 17 00:00:00 2001 From: jakirkham Date: Fri, 28 Jun 2024 21:55:40 -0700 Subject: [PATCH 36/39] MNT: Re-rendered with conda-build 24.5.1, conda-smithy 3.36.3.dev1+g256929e4, and conda-forge-pinning 2024.06.29.04.41.23 --- .azure-pipelines/azure-pipelines-win.yml | 1 - 1 file changed, 1 deletion(-) diff --git a/.azure-pipelines/azure-pipelines-win.yml b/.azure-pipelines/azure-pipelines-win.yml index 4dfb512..4a5ca0f 100755 --- a/.azure-pipelines/azure-pipelines-win.yml +++ b/.azure-pipelines/azure-pipelines-win.yml @@ -36,7 +36,6 @@ jobs: } } Remove-Item -Path $empty_dir -Force - wmic logicaldisk get size,freespace,caption displayName: Manage disk space - powershell: | From 85a123f0ddf11fa1f97b399b4f893712d92130ec Mon Sep 17 00:00:00 2001 From: jakirkham Date: Fri, 28 Jun 2024 22:32:23 -0700 Subject: [PATCH 37/39] MNT: Re-rendered with conda-build 24.5.1, conda-smithy 3.36.3.dev1+g256929e4, and conda-forge-pinning 2024.06.29.04.41.23 --- .azure-pipelines/azure-pipelines-win.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.azure-pipelines/azure-pipelines-win.yml b/.azure-pipelines/azure-pipelines-win.yml index 4a5ca0f..9317123 100755 --- a/.azure-pipelines/azure-pipelines-win.yml +++ b/.azure-pipelines/azure-pipelines-win.yml @@ -32,10 +32,10 @@ jobs: if ($d -and (Test-Path $d)) { echo "Removing $d" robocopy @robocopy_flags $empty_dir $d 2>&1>$null - Remove-Item -Path $d -Force + Remove-Item -Path $d -Recurse -Force } } - Remove-Item -Path $empty_dir -Force + Remove-Item -Path $empty_dir -Recurse -Force displayName: Manage disk space - powershell: | From 8a72a7ab74e5b4130d004a1eca9431353400cc40 Mon Sep 17 00:00:00 2001 From: jakirkham Date: Fri, 28 Jun 2024 22:37:24 -0700 Subject: [PATCH 38/39] MNT: Re-rendered with conda-build 24.5.1, conda-smithy 3.36.3.dev1+g256929e4, and conda-forge-pinning 2024.06.29.04.41.23 --- .azure-pipelines/azure-pipelines-win.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.azure-pipelines/azure-pipelines-win.yml b/.azure-pipelines/azure-pipelines-win.yml index 9317123..c1611a8 100755 --- a/.azure-pipelines/azure-pipelines-win.yml +++ b/.azure-pipelines/azure-pipelines-win.yml @@ -23,7 +23,7 @@ jobs: ) $robocopy_flags = @( - "/purge", "/r:0", "/w:0", "/nocopy", "/nodcopy", "/mt", "/zb" + "/purge", "/r:0", "/w:0", "/mt" "/ns", "/nc", "/np", "/nfl", "/ndl", "/njh", "/njs" ) $empty_dir = "C:\empty" From 20175bca1b2b0b044f2d5185e734f6998c4a7a93 Mon Sep 17 00:00:00 2001 From: jakirkham Date: Fri, 28 Jun 2024 23:13:11 -0700 Subject: [PATCH 39/39] MNT: Re-rendered with conda-build 24.5.1, conda-smithy 3.36.3.dev1+g256929e4, and conda-forge-pinning 2024.06.29.04.41.23 --- .azure-pipelines/azure-pipelines-win.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.azure-pipelines/azure-pipelines-win.yml b/.azure-pipelines/azure-pipelines-win.yml index c1611a8..c942fef 100755 --- a/.azure-pipelines/azure-pipelines-win.yml +++ b/.azure-pipelines/azure-pipelines-win.yml @@ -32,10 +32,10 @@ jobs: if ($d -and (Test-Path $d)) { echo "Removing $d" robocopy @robocopy_flags $empty_dir $d 2>&1>$null - Remove-Item -Path $d -Recurse -Force + Remove-Item -Path $d -Recurse -Force -ErrorAction SilentlyContinue } } - Remove-Item -Path $empty_dir -Recurse -Force + Remove-Item -Path $empty_dir -Recurse -Force -ErrorAction SilentlyContinue displayName: Manage disk space - powershell: |