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
ci: retry onnxruntime download on windows e2e/enterprise builds
Louis Beaumont4cdb413615f6
diff --git a/.github/workflows/e2e-test.yml b/.github/workflows/e2e-test.ymlindex 9f770b05b..baaf513aa 100644--- a/.github/workflows/e2e-test.yml+++ b/.github/workflows/e2e-test.yml@@ -130,7 +130,17 @@ jobs:$url = "https://github.com/microsoft/onnxruntime/releases/download/v1.22.0/onnxruntime-win-x64-1.22.0.zip"$tauriDir = "apps/screenpipe-app-tauri/src-tauri/onnxruntime-win-x64-1.22.0"$ortDir = "ort-system-lib"- Invoke-WebRequest -Uri $url -OutFile "onnxruntime-win-x64-1.22.0.zip"+ # retry: the GitHub release CDN intermittently returns 504, which would otherwise fail the whole job+ for ($attempt = 1; $attempt -le 5; $attempt++) {+ try {+ Invoke-WebRequest -Uri $url -OutFile "onnxruntime-win-x64-1.22.0.zip"+ break+ } catch {+ if ($attempt -eq 5) { throw }+ Write-Host "onnxruntime download failed on attempt $attempt; retrying..."+ Start-Sleep -Seconds (10 * $attempt)+ }+ }if (Test-Path $tauriDir) { Remove-Item $tauriDir -Recurse -Force }7z x onnxruntime-win-x64-1.22.0.zip -o"apps/screenpipe-app-tauri/src-tauri/" -yif (Test-Path $ortDir) { Remove-Item $ortDir -Recurse -Force }diff --git a/.github/workflows/release-enterprise.yml b/.github/workflows/release-enterprise.ymlindex 479370ac2..49b3c4980 100644--- a/.github/workflows/release-enterprise.yml+++ b/.github/workflows/release-enterprise.yml@@ -145,7 +145,17 @@ jobs:$url = "https://github.com/microsoft/onnxruntime/releases/download/v1.22.0/onnxruntime-win-x64-1.22.0.zip"$tauriDir = "apps/screenpipe-app-tauri/src-tauri/onnxruntime-win-x64-1.22.0"$ortDir = "ort-system-lib"- Invoke-WebRequest -Uri $url -OutFile "onnxruntime-win-x64-1.22.0.zip"+ # retry: the GitHub release CDN intermittently returns 504, which would otherwise fail the whole job+ for ($attempt = 1; $attempt -le 5; $attempt++) {+ try {+ Invoke-WebRequest -Uri $url -OutFile "onnxruntime-win-x64-1.22.0.zip"+ break+ } catch {+ if ($attempt -eq 5) { throw }+ Write-Host "onnxruntime download failed on attempt $attempt; retrying..."+ Start-Sleep -Seconds (10 * $attempt)+ }+ }if (Test-Path $tauriDir) { Remove-Item $tauriDir -Recurse -Force }7z x onnxruntime-win-x64-1.22.0.zip -o"apps/screenpipe-app-tauri/src-tauri/" -yif (Test-Path $ortDir) { Remove-Item $ortDir -Recurse -Force }