mirror of
https://github.com/openclaw/openclaw.git
synced 2026-08-12 21:53:00 -06:00
fix(ci): bound CLI installer smoke curl with connect and max-time (#109927)
* fix(ci): bound CLI installer smoke curl with connect and max-time The non-root CLI installer smoke pipes curl directly into bash under a single docker-run timeout. curl has no default connect or total timeout, so a stalled CDN connect or hung response body could pin the container until the outer docker-run budget kills it. Bound the curl with the same --connect-timeout 30 --max-time 300 shape already used by install-sh-smoke and install-sh-e2e, and enable pipefail so curl failures are not masked by the bash consumer. * test(ci): cover bounded CLI installer pipeline * fix(ci): bound preceding non-root installer download * fix(ci): harden bounded installer URL handoff Co-authored-by: zhang-guiping <zhang.guiping@xydigit.com> --------- Co-authored-by: Peter Steinberger <steipete@gmail.com>
This commit is contained in:
@@ -62,7 +62,7 @@ node -e '
|
||||
command -v npm >/dev/null
|
||||
|
||||
echo "==> Run installer (non-root user)"
|
||||
curl -fsSL "$INSTALL_URL" | bash
|
||||
curl -fsSL --connect-timeout 30 --max-time 300 -- "$INSTALL_URL" | bash
|
||||
|
||||
# Ensure PATH picks up user npm prefix
|
||||
export PATH="$HOME/.npm-global/bin:$PATH"
|
||||
|
||||
Reference in New Issue
Block a user