LiveAgent
LiveAgent copied to clipboard
Release downloads fail the whole job on a single transient 504
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:
- Tauri bundling:
failed to bundle project: http status: 504 - and 3. The protoc download (
Invoke-WebRequest ... 504 Gateway Time-out) - 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.mjsretries 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.ymlandci.ymlretry too:Invoke-WebRequest -MaximumRetryCounton Windows, andcurl --retry --retry-all-errorson Linux.