fix(reboot): project runtime service green readback
Some checks failed
CD Pipeline / workflow-shape (push) Successful in 1s
CD Pipeline / cancel-stale-cd (push) Has been skipped
CD Pipeline / tests (push) Failing after 1m27s
CD Pipeline / build-and-deploy (push) Has been skipped
CD Pipeline / post-deploy-checks (push) Has been skipped

This commit is contained in:
Your Name
2026-07-03 03:16:38 +08:00
parent c36a65ecfb
commit 2bc73325a4
8 changed files with 211 additions and 53 deletions

View File

@@ -10,6 +10,8 @@ SCRIPT = ROOT / "scripts" / "reboot-recovery" / "post-reboot-readiness-summary.s
def test_unknown_backup_escrow_evidence_stays_blocked() -> None:
text = SCRIPT.read_text(encoding="utf-8")
assert "POST_REBOOT_SKIP_RUNNER_GUARD" in text
assert 'post_start_args+=(--skip-runner-guard)' in text
assert "escrow_evidence_unknown=0" in text
assert 'elif [[ -z "$escrow_missing_count" ]]; then' in text
assert "escrow_evidence_unknown=1" in text

View File

@@ -26,6 +26,11 @@ def test_post_start_self_checks_can_run_locally_on_110() -> None:
def test_runner_pressure_is_capacity_evidence_after_routes_recover() -> None:
text = SCRIPT.read_text(encoding="utf-8")
assert "RUN_RUNNER_GUARD=1" in text
assert "--skip-runner-guard" in text
assert 'RUN_RUNNER_GUARD=0' in text
assert 'if [[ "$RUN_RUNNER_GUARD" -eq 1 ]]; then' in text
assert "110 runner fail-closed guard skipped by caller" in text
assert "service_route_recovered()" in text
assert "capacity_or_runner_issue()" in text
assert "cold-start non-route blockers retained as capacity/freshness evidence" in text

View File

@@ -113,6 +113,7 @@ def test_exporter_projects_each_scorecard_blocker_to_textfile_metric() -> None:
assert "windows99_vmware_verify_fallback_max_age_seconds" in text
assert "find \"$LOG_DIR\" -mindepth 2 -maxdepth 2" in text
assert "POST_REBOOT_READINESS_TIMEOUT_SECONDS" in text
assert "POST_REBOOT_SKIP_RUNNER_GUARD=1" in text
assert "POST_REBOOT_READINESS_SUMMARY_TIMEOUT=1" in text
assert "awoooi_windows99_vmware_missing_vmx_alias" in text
assert "awoooi_windows99_vmware_powered_off_alias" in text