Skip to content

The fastest, cheapest, most efficient open-source agent harness. Run more than 500 agents on a $10 VPS.

fix(e2e-web-session): fail hard when core address is unreadable

Steven Enamakel32e39fa85211
diff --git a/app/scripts/e2e-web-session.sh b/app/scripts/e2e-web-session.sh
index 6230523ed1..a0ef942b46 100755
--- a/app/scripts/e2e-web-session.sh
+++ b/app/scripts/e2e-web-session.sh
@@ -325,8 +325,9 @@ fi
CORE_BOUND="$(sed -n 's/.*listening on http:\/\/\([^ ]*\).*/\1/p' \
"$OPENHUMAN_WORKSPACE/core.log" | tail -n 1)"
if [ -z "$CORE_BOUND" ]; then
- echo "WARNING: could not read the core's bound address from core.log; the" >&2
- echo " requested-port check below is skipped for this run." >&2
+ echo "ERROR: could not read the core's bound address from core.log." >&2
+ echo " Refusing to continue without binding evidence." >&2
+ exit 1
elif [ "$CORE_BOUND" != "127.0.0.1:${OPENHUMAN_CORE_PORT}" ]; then
echo "ERROR: the core bound ${CORE_BOUND}, not 127.0.0.1:${OPENHUMAN_CORE_PORT}." >&2
echo " Something took that port between the preflight check and startup, so the" >&2