Document and harden DetMir production maintenance

This commit is contained in:
igor04091968
2026-07-03 00:31:28 +03:00
parent 77c054dcad
commit 130d4cd94f
13 changed files with 2468 additions and 92 deletions
+23
View File
@@ -0,0 +1,23 @@
#!/usr/bin/env bash
set -euo pipefail
ROOT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")/.." && pwd)"
cd "$ROOT_DIR"
if ! command -v node >/dev/null 2>&1; then
echo "run_full_validation=fail node_not_found" >&2
exit 127
fi
run_preflight_self_test=1
for arg in "$@"; do
if [[ "$arg" == "--self-test" || "$arg" == "--help" || "$arg" == "-h" ]]; then
run_preflight_self_test=0
fi
done
if [[ "${AW_VALIDATION_SKIP_SELF_TEST:-0}" != "1" && "$run_preflight_self_test" == "1" ]]; then
node scripts/full-validation-orchestrator.mjs --self-test
fi
exec node scripts/full-validation-orchestrator.mjs "$@"