feat: fixed systemd preproduction deployment with safe state reset

This commit is contained in:
2026-10-09 01:58:52 +08:00
parent 5b2cb11c2f
commit e5f46ba016
11 changed files with 1270 additions and 2 deletions
+2 -1
View File
@@ -4,7 +4,7 @@ set -euo pipefail
ROOT=$(cd -- "$(dirname -- "${BASH_SOURCE[0]}")/.." && pwd)
cd "$ROOT"
unformatted=$(find contracts internal cmd -type f -name '*.go' -print0 | xargs -0 gofmt -l)
unformatted=$(find contracts internal cmd deploys/preprod -type f -name '*.go' -print0 | xargs -0 gofmt -l)
if [[ -n "$unformatted" ]]; then
printf 'Go files need gofmt:\n%s\n' "$unformatted" >&2
exit 1
@@ -19,6 +19,7 @@ if [[ -e scripts/mq-only-acceptance-local.sh ]]; then
exit 1
fi
PYTHONDONTWRITEBYTECODE=1 python3 -m unittest discover -s deploys/preprod -p 'test_*.py'
./scripts/check-contracts.sh
bash ./scripts/check-install-diagnostics.sh
go mod verify