Skip to content

Commit ba9690e

Browse files
AhmedTMMclaude
andauthored
fix: tarball workflow failures (root ownership, swapfile, hermes TTY) (#2240)
- Use sudo mv + chown for tarball in release step (root-owned from capture) - Skip swapfile creation if /swapfile already exists (GitHub Actions runners) - Tolerate hermes setup wizard failure when /dev/tty unavailable in CI Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
1 parent 8072c08 commit ba9690e

2 files changed

Lines changed: 6 additions & 5 deletions

File tree

.github/workflows/agent-tarballs.yml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ jobs:
113113
fi
114114
115115
echo "==> Running: ${cmd}"
116-
sudo HOME=/root bash -c "${cmd}"
116+
sudo HOME=/root bash -c "${cmd}" < /dev/null
117117
i=$((i + 1))
118118
done
119119
@@ -134,8 +134,9 @@ jobs:
134134
DATE=$(date -u +%Y%m%d)
135135
TARBALL="spawn-agent-${AGENT_NAME}-x86_64-${DATE}.tar.gz"
136136
137-
# Move tarball to expected name
138-
mv "/tmp/spawn-agent-${AGENT_NAME}.tar.gz" "${TARBALL}"
137+
# Move tarball to expected name (tarball is owned by root from sudo capture)
138+
sudo mv "/tmp/spawn-agent-${AGENT_NAME}.tar.gz" "${TARBALL}"
139+
sudo chown "$(id -u):$(id -g)" "${TARBALL}"
139140
140141
# Delete existing release if present (rolling release)
141142
gh release delete "${TAG}" --yes 2>/dev/null || true

packer/agents.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,14 +32,14 @@
3232
"zeroclaw": {
3333
"tier": "minimal",
3434
"install": [
35-
"fallocate -l 4G /swapfile && chmod 600 /swapfile && mkswap /swapfile && swapon /swapfile",
35+
"if [ ! -f /swapfile ]; then fallocate -l 4G /swapfile && chmod 600 /swapfile && mkswap /swapfile && swapon /swapfile; fi",
3636
"curl -LsSf https://raw.githubusercontent.com/zeroclaw-labs/zeroclaw/a117be64fdaa31779204beadf2942c8aef57d0e5/scripts/bootstrap.sh | bash -s -- --install-rust --install-system-deps --prefer-prebuilt"
3737
]
3838
},
3939
"hermes": {
4040
"tier": "minimal",
4141
"install": [
42-
"curl -fsSL https://raw.githubusercontent.com/NousResearch/hermes-agent/main/scripts/install.sh | bash"
42+
"curl -fsSL https://raw.githubusercontent.com/NousResearch/hermes-agent/main/scripts/install.sh | bash || [ -f ~/.local/bin/hermes ]"
4343
]
4444
}
4545
}

0 commit comments

Comments
 (0)