Retry sentry uploads (#43267)

We see internal server errors occasionally; and it's very annoying to
have to re-run the entire step

Release Notes:

- N/A
This commit is contained in:
Conrad Irwin
2025-11-21 13:29:08 -07:00
committed by GitHub
parent dfa102c5ae
commit 279b76d440
3 changed files with 43 additions and 6 deletions
+14 -1
View File
@@ -147,7 +147,20 @@ function UploadToSentry {
return
}
Write-Output "Uploading zed debug symbols to sentry..."
sentry-cli debug-files upload --include-sources --wait -p zed -o zed-dev $CargoOutDir
for ($i = 1; $i -le 3; $i++) {
try {
sentry-cli debug-files upload --include-sources --wait -p zed -o zed-dev $CargoOutDir
break
}
catch {
Write-Output "Sentry upload attempt $i failed: $_"
if ($i -eq 3) {
Write-Output "All sentry upload attempts failed"
throw
}
Start-Sleep -Seconds 2
}
}
}
function MakeAppx {