fix: cap caddy-validate download timeout (implements #1127)
The caddy-validate step's `curl -sS` has no network timeout, so when the download hangs (seen repeatedly on 2026-04-21 — queue of 30+ workflows backed up behind a single 55-minute-stuck curl), the step runs to the Woodpecker agent's ~1h deadline before moving on. With agent capacity=1 pipeline, this blocks the entire factory. Cap it: --connect-timeout 10 fail fast on network unreachable --max-time 60 cap total wall time at 60s -f non-zero on HTTP errors (-sS would swallow 5xx) -L follow redirects If the download is unreachable the step now fails in ~60s instead of hanging for an hour, and the queue keeps moving. Diagnosis and full reproduction in #1124. Backlog tracking in #1127. Co-authored-by: Claude (ops) <claude@anthropic.local>
This commit is contained in:
parent
d368f904fb
commit
5d93ff3980
1 changed files with 1 additions and 1 deletions
|
|
@ -104,7 +104,7 @@ steps:
|
|||
image: alpine:3.19
|
||||
commands:
|
||||
- apk add --no-cache ca-certificates curl
|
||||
- curl -sS -o /tmp/caddy "https://caddyserver.com/api/download?os=linux&arch=amd64"
|
||||
- curl -fsSL --connect-timeout 10 --max-time 60 -o /tmp/caddy "https://caddyserver.com/api/download?os=linux&arch=amd64"
|
||||
- chmod +x /tmp/caddy
|
||||
- /tmp/caddy version
|
||||
- /tmp/caddy validate --config edge-render/Caddyfile.rendered --adapter caddyfile
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue