LiveAgent icon indicating copy to clipboard operation
LiveAgent copied to clipboard

Release downloads fail the whole job on a single transient 504

Open xiaozhou26 opened this issue 3 weeks ago • 0 comments

The v2.0.15 Desktop Release run (42463029034) failed its Windows x64 job four times in a row. Each failure was a one-off 504 Gateway Time-out while downloading something from GitHub Releases:

  1. Tauri bundling: failed to bundle project: http status: 504
  2. and 3. The protoc download (Invoke-WebRequest ... 504 Gateway Time-out)
  3. The pinned K-brain download (K-brain download failed: HTTP 504)

macOS and Linux built fine, and GitHub reported no incident.

None of these downloads retry, so one transient 5xx fails the whole release job, and each rerun costs about 20 minutes.

Fix: retry transient failures:

  • scripts/release/prepare-kbrain.mjs retries 5xx, 408, 429, network errors and timeouts, with backoff. 4xx answers, redirect errors and hash mismatches still fail at once.
  • The protoc downloads in desktop-release.yml and ci.yml retry too: Invoke-WebRequest -MaximumRetryCount on Windows, and curl --retry --retry-all-errors on Linux.

xiaozhou26 avatar Nov 08 '26 09:11 xiaozhou26