mirror of
https://github.com/paperclipai/paperclip.git
synced 2026-10-28 12:04:41 +01:00
fix(install): honor ambient GitHub tokens; e2e onboards before service test
- install --ref resolves refs via anonymous api.github.com, which 403s from rate-limited shared IPs (CI runners, corporate NAT). Use GH_TOKEN/GITHUB_TOKEN when present, passed through a 0600 curl --config file so the token never appears in process args. - e2e: run the real quickstart (onboard --yes --install-service) before the service assertions, and capture install.sh guard output before grep so pipefail does not eat the expected nonzero exit. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
1 parent
a2394ce0d9
commit
8699e457e0
2 files changed
+31
-6
No files matched your search
@@ -177,10 +177,11 @@ else
|
||||
skip_ "8 service lifecycle" "no systemd user bus at /run/user/$(id -u)/bus"
|
||||
else
|
||||
note "8. service lifecycle ($(uname -s): systemd/launchd)"
|
||||
if shim service install --json; then
|
||||
pass "8a service install exits 0"
|
||||
# Real quickstart path: onboard with defaults, then install + start the service.
|
||||
if shim onboard --yes --install-service; then
|
||||
pass "8a onboard --yes --install-service exits 0"
|
||||
else
|
||||
fail_ "8a service install exits 0"
|
||||
fail_ "8a onboard --yes --install-service exits 0"
|
||||
fi
|
||||
DEADLINE=$(( $(date +%s) + E2E_SERVICE_TIMEOUT_SECS ))
|
||||
ACTIVE=0
|
||||
@@ -203,9 +204,12 @@ else
|
||||
fi
|
||||
|
||||
note "9. installer script guardrails (from the bootstrap checkout)"
|
||||
if bash "$BOOT/scripts/install.sh" --ref deadbeef 2>&1 | grep -qi "not supported"; then
|
||||
# Capture first: under pipefail, install.sh's expected exit 1 would fail the pipeline.
|
||||
GUARD_OUT="$(bash "$BOOT/scripts/install.sh" --ref deadbeef 2>&1 || true)"
|
||||
if echo "$GUARD_OUT" | grep -qi "not supported"; then
|
||||
pass "9a install.sh rejects --ref with guidance to npx path"
|
||||
else
|
||||
echo "$GUARD_OUT" | tail -3
|
||||
fail_ "9a install.sh rejects --ref"
|
||||
fi
|
||||
|
||||
|
||||
Reference in new issue
Block a user