Skip to content

Commit 2f67d21

Browse files
committed
ci: ride out transient CDN errors on registry artifact downloads
comfyui_essentials@1.1.0 failed to download during a cdn.comfy.org outage that outlived three 2s retries, then fetched cleanly minutes later at the same URL. Retry all errors with backoff for up to 60s and drop partial files so a resumed retry cannot unzip a truncated artifact.
1 parent bebb24d commit 2f67d21

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

.github/workflows/ci-tests-custom-nodes.yaml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -360,7 +360,9 @@ jobs:
360360
if ! [[ "$download" =~ ^https://cdn\.comfy\.org/ ]]; then
361361
echo "::error::$pack: registry downloadUrl is not on cdn.comfy.org (got '$download')"; exit 1
362362
fi
363-
curl --retry 3 --retry-delay 2 --retry-connrefused -sfL "$download" -o /tmp/pack.zip || {
363+
curl --retry 6 --retry-delay 5 --retry-all-errors \
364+
--retry-max-time 60 --remove-on-error -sfL \
365+
"$download" -o /tmp/pack.zip || {
364366
echo "::error::$pack: deployRef '$ref' is unfetchable - the registry artifact $download did not download"; exit 1
365367
}
366368
# Registry zips are the pack root, with no wrapper directory

0 commit comments

Comments
 (0)