YC (S26) | Open Computer History | Continuously record your company computer work, map your workflows, help you find work worth automating, and power your agents' context
Rust agentsagiaiai-memoryaudio-recordingcomputer-visionhermeshermes-agentllmlocal-ailocal-firstmachine-learningmcpmultimodalopenclawprivacyrewindscreen-recordingspeech-to-textycombinator
build(windows): fail fast on SSL.com QuotaExceededError instead of burning 5 retries (#3637)
Louis Beaumont14f99acf00fe
diff --git a/apps/screenpipe-app-tauri/src-tauri/sign-ssl.ps1 b/apps/screenpipe-app-tauri/src-tauri/sign-ssl.ps1index e1f26f290..bc5e41876 100644--- a/apps/screenpipe-app-tauri/src-tauri/sign-ssl.ps1+++ b/apps/screenpipe-app-tauri/src-tauri/sign-ssl.ps1@@ -105,20 +105,40 @@ while (-not $signed -and $attempt -lt $maxAttempts) {}Push-Location $env:CODESIGNTOOL_PATH- & $javaFile.FullName -jar $jarFile.FullName sign `+ # Capture stdout+stderr so we can detect SSL.com QuotaExceededError+ # and fail fast — burning 5 retries × exponential backoff (~7.5 min)+ # on a quota wall is pure waste; the next attempt fails the same way.+ # Recurring concretely on build 26478881028 (2026-05-26): both Windows+ # targets hit QuotaExceededError on every attempt. Detect the error+ # body shape `{"error":"server_error","error_description":"code:+ # QuotaExceededError ..."}` and exit 1 immediately so the operator+ # sees the actual ask (top up SSL.com or wait for monthly reset)+ # instead of a generic "5 attempts failed".+ $signOutput = & $javaFile.FullName -jar $jarFile.FullName sign `"-username=$env:ESIGNER_USERNAME" `"-password=$env:ESIGNER_PASSWORD" `"-totp_secret=$env:ESIGNER_TOTP_SECRET" `"-credential_id=$env:ESIGNER_CREDENTIAL_ID" `"-input_file_path=$FilePath" `- "-output_dir_path=$signedDir"+ "-output_dir_path=$signedDir" 2>&1$signExit = $LASTEXITCODEPop-Location+ # Mirror output to the build log so we keep the existing visibility.+ $signOutput | ForEach-Object { Write-Host $_ }+if ($signExit -eq 0 -and (Test-Path $signedFile)) {$signed = $truebreak}++ $signOutputText = ($signOutput | Out-String)+ if ($signOutputText -match "QuotaExceededError") {+ Write-Host "ERROR: SSL.com signing quota exceeded — every retry will hit the same wall."+ Write-Host "ERROR: Top up the account at https://www.ssl.com/dashboard or wait for the monthly quota reset, then re-run this workflow."+ Write-Host "ERROR: Failed file: $FilePath"+ exit 1+ }Write-Host "WARN: sign attempt $attempt failed (exit=$signExit, signed file present=$(Test-Path $signedFile))"}