14 lines
710 B
Bash
Executable File
14 lines
710 B
Bash
Executable File
#!/usr/bin/env bash
|
|
set -euo pipefail
|
|
ROOT="$(cd "$(dirname "$0")/.." && pwd)"
|
|
python3 "$ROOT/scripts/validate_roles_and_domains.py"
|
|
python3 "$ROOT/scripts/validate_no_legacy_roles.py"
|
|
if ! python3 "$ROOT/scripts/run_v5_uat.py"; then
|
|
echo "V5 UAT failed; running self-diagnosis and safe rollback-ready repair plan" >&2
|
|
AIOS_WEBOPS_ROOT="$ROOT/active-runtime" python3 "$ROOT/active-runtime/scripts/apply_migrations.py" || true
|
|
AIOS_WEBOPS_ROOT="$ROOT/active-runtime" python3 "$ROOT/scripts/self_diagnose_v5.py" || true
|
|
AIOS_WEBOPS_ROOT="$ROOT/active-runtime" python3 "$ROOT/scripts/self_optimize_v5.py" --safe-only || true
|
|
python3 "$ROOT/scripts/run_v5_uat.py"
|
|
fi
|
|
echo "V5_ACCEPTANCE_WITH_AUTOFIX_OK"
|