feat(agent): add harbor recovery phase receipts
Some checks failed
CD Pipeline / workflow-shape (push) Successful in 0s
CD Pipeline / cancel-stale-cd (push) Has been skipped
CD Pipeline / tests (push) Successful in 34s
CD Pipeline / build-and-deploy (push) Failing after 2m48s
CD Pipeline / post-deploy-checks (push) Has been skipped
Some checks failed
CD Pipeline / workflow-shape (push) Successful in 0s
CD Pipeline / cancel-stale-cd (push) Has been skipped
CD Pipeline / tests (push) Successful in 34s
CD Pipeline / build-and-deploy (push) Failing after 2m48s
CD Pipeline / post-deploy-checks (push) Has been skipped
This commit is contained in:
@@ -31,6 +31,21 @@ def test_harbor_recovery_receipt_accepts_verified_repair() -> None:
|
||||
] is True
|
||||
assert payload["readback"]["watchdog_repair"]["harbor_ready"] is True
|
||||
assert payload["readback"]["post_apply_verifier"]["registry_v2_ready"] is True
|
||||
phase_readback = payload["local_console_phase_readback"]
|
||||
assert phase_readback["phase_count"] == 5
|
||||
assert phase_readback["completed_phase_count"] == 5
|
||||
assert phase_readback["blocked_phase_count"] == 0
|
||||
assert phase_readback["phase_ids"] == [
|
||||
"diagnose_ssh_publickey",
|
||||
"preflight_control_path_and_harbor",
|
||||
"repair_ssh_metadata_if_check_confirms_metadata_drift",
|
||||
"repair_harbor_once_if_v2_still_502",
|
||||
"verify_controlled_cd_lane",
|
||||
]
|
||||
assert all(phase["raw_output_returned"] is False for phase in phase_readback["phases"])
|
||||
assert payload["rollups"]["local_console_phase_count"] == 5
|
||||
assert payload["rollups"]["local_console_completed_phase_count"] == 5
|
||||
assert payload["rollups"]["local_console_blocked_phase_count"] == 0
|
||||
assert payload["input_redaction"]["raw_output_returned"] is False
|
||||
assert payload["operation_boundaries"]["ssh_used"] is False
|
||||
assert payload["operation_boundaries"]["docker_command_performed"] is False
|
||||
@@ -60,6 +75,21 @@ def test_harbor_recovery_receipt_routes_unhealthy_check_to_repair_once() -> None
|
||||
assert payload["safe_next_step"] == (
|
||||
"run_harbor_watchdog_repair_once_then_submit_receipt_with_verifier"
|
||||
)
|
||||
phases = {
|
||||
phase["phase_id"]: phase
|
||||
for phase in payload["local_console_phase_readback"]["phases"]
|
||||
}
|
||||
assert phases["diagnose_ssh_publickey"]["status"] == (
|
||||
"blocked_waiting_ssh_publickey_diagnosis_receipt"
|
||||
)
|
||||
assert phases["preflight_control_path_and_harbor"]["status"] == "ready"
|
||||
assert phases["repair_ssh_metadata_if_check_confirms_metadata_drift"][
|
||||
"status"
|
||||
] == "skipped_not_required"
|
||||
assert phases["repair_harbor_once_if_v2_still_502"]["status"] == (
|
||||
"blocked_waiting_harbor_repair_once_receipt"
|
||||
)
|
||||
assert payload["rollups"]["local_console_blocked_phase_count"] == 3
|
||||
assert payload["controlled_apply_policy"]["manual_end_state"] is False
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user