rein-aharness/deploy/scripts/railiance-smoke.sh

30 lines
1.1 KiB
Bash
Raw Normal View History

#!/usr/bin/env bash
# Host-level Railiance smoke for rein-aharness (HARNESS-WP-0001-T06).
# Run on railiance01 after install. Uses deploy key + AppRole env + hub :18000.
#
# HARNESS-WP-0002-T02 rename: ROOT default and the AppRole env path below
# changed from agent-harness to rein-aharness. Both must exist under the
# NEW name on the host (checkout dir + ~/.local/rein-aharness/) before this
# script is deployed — see deploy/README.md "Rename cutover checklist".
set -euo pipefail
ROOT="${REIN_AHARNESS_ROOT:-$HOME/rein-aharness}"
# shellcheck disable=SC1090
source "${HOME}/.local/rein-aharness/env"
export STATE_HUB_URL="${STATE_HUB_URL:-http://127.0.0.1:18000}"
export PATH="${HOME}/.local/bin:${PATH}"
export PYTHONPATH="${ROOT}:${HOME}/llm-connect${PYTHONPATH:+:$PYTHONPATH}"
cd "$ROOT"
if ! command -v rein-aharness >/dev/null 2>&1; then
python3 -m pip install --user -e . -q
fi
echo "STATE_HUB_URL=$STATE_HUB_URL"
curl -sS -m 5 "$STATE_HUB_URL/state/health" || curl -sS -m 5 "${STATE_HUB_URL%/}/" || true
echo
rein-aharness smoke \
--work-dir "${HOME}/work/executor-sandbox" \
--remote "ssh://git@forgejo-agent-harness/coulomb/executor-sandbox.git"