Skip to content

armgit / cua

Public Imported from GitHub
0

Scale computer-use 2.0 with open-source drivers, cross-OS sandboxes, and benchmarks for training, evaluation, and data generation.

ci(spaces): retry GitHub CDN 5xx in the nightly link check and the cua-spacesd pin check (CUA-3503) (#6554)

cua-agents[bot]d00a5bc003bd
diff --git a/.github/scripts/check_spacesd_published.sh b/.github/scripts/check_spacesd_published.sh
index 3ffe64919b..375f5f669b 100755
--- a/.github/scripts/check_spacesd_published.sh
+++ b/.github/scripts/check_spacesd_published.sh
@@ -55,7 +55,9 @@ for name in "${ASSETS[@]}"; do
url="$(jq -r --arg n "$name" '.assets[] | select(.name == $n) | .browser_download_url' <<<"$json")"
if [ -z "$url" ]; then
missing+=("$name (not attached)")
- elif ! curl -fsSIL --retry 3 --max-time 60 -o /dev/null "$url"; then
+ # GitHub's release CDN answers 504 for minutes at a time (5 Nov 2026):
+ # retry transient errors with a pause before calling an asset missing.
+ elif ! curl -fsSIL --retry 6 --retry-delay 15 --retry-max-time 300 --max-time 60 -o /dev/null "$url"; then
missing+=("$name (not downloadable: $url)")
fi
done
diff --git a/.github/workflows/nightly-cua-spaces.yml b/.github/workflows/nightly-cua-spaces.yml
index 89bd43afb8..54d84b31cf 100644
--- a/.github/workflows/nightly-cua-spaces.yml
+++ b/.github/workflows/nightly-cua-spaces.yml
@@ -397,7 +397,12 @@ jobs:
bad=0
while read -r url; do
[ -n "$url" ] || continue
- code="$(curl -s -o /dev/null -w '%{http_code}' -L -r 0-0 "$url")"
+ # GitHub's release CDN answers 5xx for minutes at a time: retry with a pause.
+ for attempt in 1 2 3 4 5; do
+ code="$(curl -s -o /dev/null -w '%{http_code}' -L -r 0-0 --max-time 60 "$url" || true)"
+ case "$code" in 200|206|404) break ;; esac
+ sleep $((15 * attempt))
+ done
if [ "$code" = 200 ] || [ "$code" = 206 ]; then echo "ok $url"; else echo "::error::$url answers $code"; bad=1; fi
done <<<"$urls"
# The stable feeds are not this workflow's: they hold no nightly.