You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: azure-pipelines/end-to-end-tests-dir/asset-caching.ps1
+23-37Lines changed: 23 additions & 37 deletions
Original file line number
Diff line number
Diff line change
@@ -59,7 +59,8 @@ Throw-IfNotFailed
59
59
$expected=@(
60
60
"A suitable version of cmake was not found \(required v[0-9.]+\)\.",
61
61
"Trying to download cmake-[0-9.]+-[^.]+\.(zip|tar\.gz) using asset cache file://$assetCacheRegex/[0-9a-z]+",
62
-
"error: curl: \(37\) Couldn't open file [^\n]+",
62
+
"error: curl operation failed with error code 37 \((Couldn't|Could not) read a file:\/\/ file\)\.",
63
+
"error: Not a transient network error, won't retry download from file://$assetCacheRegex/[0-9a-z]+"
63
64
"error: there were no asset cache hits, and x-block-origin blocks trying the authoritative source https://github\.com/Kitware/CMake/releases/download/[^ ]+",
64
65
"note: If you are using a proxy, please ensure your proxy settings are correct\.",
65
66
"Possible causes are:",
@@ -111,7 +112,8 @@ if (-not ($actual -match $expected)) {
"error: curl operation failed with error code 37 \((Couldn't|Could not) read a file:// file\)\.",
295
+
"error: Not a transient network error, won't retry download from file://$assetCacheRegex/[0-9a-z]+",
296
+
"[^\n]+example3\.html\.\d+\.part: error: download from https://raw\.githubusercontent\.com/microsoft/vcpkg-tool/1767aaee7b229c609f7ad5cf2f57b6a6cc309fb8/LICENSE\.txt had an unexpected hash",
"note: Actual : 65077997890f66f6041bb3284bb7b88e27631411ccbc253201ca4e00c4bcc58c0d77edffda4975498797cc10772c7fd68fbeb13cc4ac493a3471a9d49e5b6f24",
311
299
"note: If you are using a proxy, please ensure your proxy settings are correct\.",
312
300
"Possible causes are:",
313
301
"1\. You are actually using an HTTP proxy, but setting HTTPS_PROXY variable to ``https//address:port``\.",
@@ -317,9 +305,6 @@ $expected = @(
317
305
"The value set by your proxy might be wrong, or have same ``https://`` prefix issue\.",
318
306
"3\. Your proxy's remote server is out of service\.",
319
307
"If you believe this is not a temporary download server failure and vcpkg needs to be changed to download this file from a different location, please submit an issue to https://github\.com/Microsoft/vcpkg/issues",
320
-
"[^\n]+example3\.html\.\d+\.part: error: download from https://raw\.githubusercontent\.com/microsoft/vcpkg-tool/1767aaee7b229c609f7ad5cf2f57b6a6cc309fb8/LICENSE\.txt had an unexpected hash",
@@ -369,7 +354,8 @@ if (-not ($actual -match $expected)) {
369
354
Refresh-TestRoot
370
355
$expected=@(
371
356
"^Trying to download example3\.html using asset cache file://$assetCacheRegex/[0-9a-z]+",
372
-
"error: curl: \(37\) Couldn't open file [^\n]+",
357
+
"error: curl operation failed with error code 37 \((Couldn't|Could not) read a file:// file\)\.",
358
+
"error: Not a transient network error, won't retry download from file://$assetCacheRegex/[0-9a-z]+",
373
359
"error: there were no asset cache hits, and x-block-origin blocks trying the authoritative source https://raw\.githubusercontent\.com/microsoft/vcpkg-tool/1767aaee7b229c609f7ad5cf2f57b6a6cc309fb8/LICENSE\.txt",
374
360
"note: or https://alternate\.example\.com",
375
361
"note: If you are using a proxy, please ensure your proxy settings are correct\.",
0 commit comments