19 lines
730 B
Bash
Executable File
19 lines
730 B
Bash
Executable File
#!/usr/bin/env bash
|
|
set -euo pipefail
|
|
: "${AIOS_RUNTIME_ROOT:=$(pwd)}"
|
|
PORT="${AIOS_WEBOPS_PORT:-18081}"
|
|
if ! curl -fsS "http://127.0.0.1:$PORT/health/ready" >/dev/null 2>&1; then
|
|
echo "WebOps not running; starting local instance for acceptance"
|
|
bash "$AIOS_RUNTIME_ROOT/webops/scripts/run_webops_local.sh" >/tmp/aios-webops-uat.log 2>&1 &
|
|
PID=$!
|
|
trap 'kill $PID >/dev/null 2>&1 || true' EXIT
|
|
sleep 1
|
|
fi
|
|
python3 "$(dirname "$0")/run_wechat_behavior_simulation.py" || python3 "$(dirname "$0")/self_diagnose.py"
|
|
python3 "$(dirname "$0")/run_full_uat.py" || {
|
|
echo "UAT failed; running self optimization suggestion pass"
|
|
python3 "$(dirname "$0")/self_optimize.py" || true
|
|
exit 2
|
|
}
|
|
echo "ACCEPTANCE_WITH_AUTOFIX_PASS"
|