feat: add post-deploy verification checklist and script
This commit is contained in:
@@ -202,10 +202,38 @@ if [ -f "scripts/check-invariants.py" ]; then
|
||||
# Use internal Docker network URL or localhost
|
||||
CITY_URL="${CITY_SERVICE_URL:-http://localhost:7001}"
|
||||
|
||||
# Install requests if needed (for check-deploy-post.py)
|
||||
pip3 install requests --quiet || true
|
||||
|
||||
python3 scripts/check-invariants.py --base-url "$CITY_URL" || {
|
||||
INVARIANTS_FAILED=1
|
||||
log_error "Infrastructure invariants check FAILED!"
|
||||
}
|
||||
|
||||
# Run extended post-deploy checks
|
||||
if [ -f "scripts/check-deploy-post.py" ]; then
|
||||
log_info "Running extended post-deploy checks..."
|
||||
REPORT_PATH="logs/deploy/checks_$(date +%Y%m%d_%H%M%S).json"
|
||||
LATEST_PATH="logs/deploy/checks_latest.json"
|
||||
|
||||
python3 scripts/check-deploy-post.py \
|
||||
--base-url "$CITY_URL" \
|
||||
--skip-smoke \
|
||||
--output-file "$REPORT_PATH" || {
|
||||
INVARIANTS_FAILED=1
|
||||
log_error "Extended post-deploy checks FAILED!"
|
||||
}
|
||||
|
||||
# Create symlink/copy to latest if report exists
|
||||
if [ -f "$REPORT_PATH" ]; then
|
||||
mkdir -p logs/deploy
|
||||
cp "$REPORT_PATH" "$LATEST_PATH"
|
||||
log_success "Check report saved to $LATEST_PATH"
|
||||
fi
|
||||
else
|
||||
log_warning "check-deploy-post.py not found, skipping extended checks"
|
||||
fi
|
||||
|
||||
else
|
||||
log_warning "Python3 not found, skipping invariants check"
|
||||
fi
|
||||
|
||||
Reference in New Issue
Block a user