fix(reboot): include edge nginx source in slo package
Some checks failed
CD Pipeline / workflow-shape (push) Successful in 1s
CD Pipeline / cancel-stale-cd (push) Has been skipped
CD Pipeline / tests (push) Successful in 1m12s
CD Pipeline / post-deploy-checks (push) Has been cancelled
CD Pipeline / build-and-deploy (push) Has been cancelled

This commit is contained in:
Your Name
2026-07-03 15:14:41 +08:00
parent bb687d37d0
commit 5963687e62
6 changed files with 42 additions and 5 deletions

View File

@@ -218,6 +218,7 @@ create_payload() {
scripts/reboot-recovery \
scripts/security \
apps/api/migrations/awooop_conversation_event_hot_path_indexes_2026-07-01.sql \
ops/nginx \
ops/maintenance \
ops/monitoring \
docs/runbooks/PUBLIC-MAINTENANCE-FALLBACK-RUNBOOK.md
@@ -230,7 +231,7 @@ case "$MODE" in
cat <<DRYRUN
DRY_RUN=1
would_create_tarball_from=$ROOT_DIR/scripts/reboot-recovery,$ROOT_DIR/scripts/security
would_include_source_gates=$ROOT_DIR/apps/api/migrations/awooop_conversation_event_hot_path_indexes_2026-07-01.sql,$ROOT_DIR/ops/maintenance,$ROOT_DIR/ops/monitoring,$ROOT_DIR/docs/runbooks/PUBLIC-MAINTENANCE-FALLBACK-RUNBOOK.md
would_include_source_gates=$ROOT_DIR/apps/api/migrations/awooop_conversation_event_hot_path_indexes_2026-07-01.sql,$ROOT_DIR/ops/nginx,$ROOT_DIR/ops/maintenance,$ROOT_DIR/ops/monitoring,$ROOT_DIR/docs/runbooks/PUBLIC-MAINTENANCE-FALLBACK-RUNBOOK.md
would_copy_tarball_to=$HOST:$REMOTE_TARBALL
would_enable_timer=${UNIT_NAME}.timer
would_start_service_once=$RUN_ONCE

View File

@@ -25,6 +25,7 @@ def test_installer_dry_run_exposes_apply_rollback_and_verify_contract() -> None:
assert "verify_command=bash scripts/reboot-recovery/install-reboot-auto-recovery-slo-110.sh --verify-only" in result.stdout
assert "would_include_source_gates=" in result.stdout
assert "awooop_conversation_event_hot_path_indexes_2026-07-01.sql" in result.stdout
assert "ops/nginx" in result.stdout
assert "would_enable_timer=awoooi-reboot-auto-recovery-slo.timer" in result.stdout
@@ -58,6 +59,7 @@ def test_installer_is_limited_to_verifier_timer_not_product_restarts() -> None:
assert 'payload_dir="$(mktemp -d "${TMPDIR:-/tmp}/${UNIT_NAME}.XXXXXX")"' in text
assert 'payload="${payload_dir}/payload.tar.gz"' in text
assert "apps/api/migrations/awooop_conversation_event_hot_path_indexes_2026-07-01.sql" in text
assert "ops/nginx" in text
assert "ops/maintenance" in text
assert "ops/monitoring" in text
assert "PUBLIC-MAINTENANCE-FALLBACK-RUNBOOK.md" in text