Skip to content

Commit 1cbeaee

Browse files
committed
ci: allow skipping firewall bootstrap on constrained kernels
1 parent 9de5bed commit 1cbeaee

2 files changed

Lines changed: 15 additions & 9 deletions

File tree

bin/ci/setup-arch.sh

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,10 @@ BAUDBOT_BOOTSTRAP_TARGET="/usr/local/bin/baudbot" \
2929
# Prompts: admin user, LLM choice(1=Anthropic), Anthropic key,
3030
# Slack mode(2=advanced), Slack bot, Slack app, Slack users,
3131
# Browser?(n), Sentry?(n), launch(n)
32+
# Arch CI droplets frequently lack netfilter modules required by setup-firewall;
33+
# skip firewall bootstrap here to keep install/integration coverage stable.
3234
printf 'baudbot_admin\n1\nsk-ant-testkey\n2\nxoxb-test\nxapp-test\nU01TEST\nn\nn\nn\n' \
33-
| BAUDBOT_INSTALL_SCRIPT_URL="file:///home/baudbot_admin/baudbot/install.sh" baudbot install
35+
| BAUDBOT_SKIP_FIREWALL=1 BAUDBOT_INSTALL_SCRIPT_URL="file:///home/baudbot_admin/baudbot/install.sh" baudbot install
3436

3537
echo "=== Verifying install ==="
3638
# .env exists with correct permissions

setup.sh

Lines changed: 12 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -274,14 +274,18 @@ echo "=== Protecting source repo ==="
274274
# mount --bind "$REPO_DIR" "$REPO_DIR" && mount -o remount,bind,ro "$REPO_DIR"
275275
echo "Source repo at $REPO_DIR is admin-owned (not writable by baudbot_agent)"
276276

277-
echo "=== Setting up firewall ==="
278-
"$REPO_DIR/bin/setup-firewall.sh"
279-
280-
echo "=== Making firewall persistent ==="
281-
sed "s|__REPO_DIR__|$REPO_DIR|g" "$REPO_DIR/bin/baudbot-firewall.service" > /etc/systemd/system/baudbot-firewall.service
282-
systemctl daemon-reload
283-
systemctl enable baudbot-firewall
284-
echo "Firewall will be restored on boot via systemd"
277+
if [ "${BAUDBOT_SKIP_FIREWALL:-0}" = "1" ]; then
278+
echo "=== Skipping firewall setup (BAUDBOT_SKIP_FIREWALL=1) ==="
279+
else
280+
echo "=== Setting up firewall ==="
281+
"$REPO_DIR/bin/setup-firewall.sh"
282+
283+
echo "=== Making firewall persistent ==="
284+
sed "s|__REPO_DIR__|$REPO_DIR|g" "$REPO_DIR/bin/baudbot-firewall.service" > /etc/systemd/system/baudbot-firewall.service
285+
systemctl daemon-reload
286+
systemctl enable baudbot-firewall
287+
echo "Firewall will be restored on boot via systemd"
288+
fi
285289

286290
echo "=== Verifying baudbot CLI path ==="
287291
if [ -x /usr/local/bin/baudbot ]; then

0 commit comments

Comments
 (0)