Skip to content

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

ci: retry e2e scream download

Louis Beaumont807f06beed91
diff --git a/.github/workflows/e2e-test.yml b/.github/workflows/e2e-test.yml
index b76d07390..d2de08365 100644
--- a/.github/workflows/e2e-test.yml
+++ b/.github/workflows/e2e-test.yml
@@ -34,7 +34,18 @@ jobs:
- name: Install Scream on Windows
shell: powershell
run: |
- Invoke-WebRequest https://github.com/duncanthrax/scream/releases/download/4.0/Scream4.0.zip -OutFile Scream4.0.zip
+ $ErrorActionPreference = "Stop"
+ $screamUrl = "https://github.com/duncanthrax/scream/releases/download/4.0/Scream4.0.zip"
+ for ($attempt = 1; $attempt -le 5; $attempt++) {
+ try {
+ Invoke-WebRequest -Uri $screamUrl -OutFile Scream4.0.zip
+ break
+ } catch {
+ if ($attempt -eq 5) { throw }
+ Write-Host "Scream download failed on attempt $attempt; retrying..."
+ Start-Sleep -Seconds (10 * $attempt)
+ }
+ }
Expand-Archive -Path Scream4.0.zip -DestinationPath Scream
openssl req -batch -verbose -x509 -newkey rsa -keyout ScreamCertificate.pvk -out ScreamCertificate.cer -nodes -extensions v3_req
openssl pkcs12 -export -nodes -in ScreamCertificate.cer -inkey ScreamCertificate.pvk -out ScreamCertificate.pfx -passout pass: