fix(api): clear resolved ai loop control blocker
Some checks failed
CD Pipeline / workflow-shape (push) Successful in 1s
CD Pipeline / cancel-stale-cd (push) Has been skipped
CD Pipeline / build-and-deploy (push) Has been cancelled
CD Pipeline / post-deploy-checks (push) Has been cancelled
CD Pipeline / tests (push) Has been cancelled
Some checks failed
CD Pipeline / workflow-shape (push) Successful in 1s
CD Pipeline / cancel-stale-cd (push) Has been skipped
CD Pipeline / build-and-deploy (push) Has been cancelled
CD Pipeline / post-deploy-checks (push) Has been cancelled
CD Pipeline / tests (push) Has been cancelled
This commit is contained in:
@@ -841,7 +841,13 @@ def test_awoooi_priority_work_order_readback_does_not_reopen_stale_cd_failure_af
|
||||
state = payload["mainline_execution_state"]
|
||||
evidence = payload["in_progress_or_blocked_in_priority_order"][0]["evidence"]
|
||||
blockers = state["active_p0_live_active_blockers"]
|
||||
assert payload["status"] == "p0_006_blocked_reboot_auto_recovery_slo_not_ready"
|
||||
assert state["active_p0_state"] == "blocked_reboot_auto_recovery_slo_not_ready"
|
||||
assert state["next_executable_mainline_workplan_id"] == (
|
||||
"P0-006-REBOOT-AUTO-RECOVERY-SLO-SCORECARD"
|
||||
)
|
||||
assert state["current_main_cd_run_status"] == "production_readback_verified"
|
||||
assert state["ai_loop_current_blocker_resolved_by_production_readback"] is True
|
||||
assert state["ai_loop_current_blocker_deploy_marker_readback_required"] is False
|
||||
assert state["ai_loop_current_blocker_cd_failed_after_registry_ready"] is False
|
||||
assert (
|
||||
@@ -854,14 +860,24 @@ def test_awoooi_priority_work_order_readback_does_not_reopen_stale_cd_failure_af
|
||||
assert state["ai_loop_current_blocker_current_cd_run_id"] == (
|
||||
f"production_readback:{runtime_short_sha}"
|
||||
)
|
||||
assert state["ai_loop_current_blocker_control_path_blocker"] == ""
|
||||
assert state["ai_loop_current_blocker_historical_control_path_blocker"] == (
|
||||
"remote_ssh_publickey_offer_timeout"
|
||||
)
|
||||
assert state["ai_loop_current_blocker_historical_current_cd_run_id"] == "4258"
|
||||
assert state["ai_loop_current_blocker_historical_current_cd_run_status"] == (
|
||||
"Failure"
|
||||
)
|
||||
assert "deploy_marker_readback_required_after_registry_ready" not in blockers
|
||||
assert "current_cd_failure_after_registry_ready" not in blockers
|
||||
assert "remote_ssh_publickey_offer_timeout" not in blockers
|
||||
assert evidence["ai_loop_current_blocker_resolved_by_production_readback"] is True
|
||||
assert evidence["ai_loop_current_blocker_deploy_marker_readback_required"] is False
|
||||
assert evidence["ai_loop_current_blocker_cd_failed_after_registry_ready"] is False
|
||||
assert evidence["ai_loop_current_blocker_control_path_blocker"] == ""
|
||||
assert evidence["ai_loop_current_blocker_historical_control_path_blocker"] == (
|
||||
"remote_ssh_publickey_offer_timeout"
|
||||
)
|
||||
assert evidence[
|
||||
"ai_loop_current_blocker_historical_deploy_marker_readback_required"
|
||||
] is True
|
||||
@@ -874,6 +890,10 @@ def test_awoooi_priority_work_order_readback_does_not_reopen_stale_cd_failure_af
|
||||
assert payload["summary"]["ai_loop_current_blocker_current_cd_run_status"] == (
|
||||
"production_readback_verified"
|
||||
)
|
||||
assert payload["summary"]["ai_loop_current_blocker_control_path_blocker"] == ""
|
||||
assert payload["summary"][
|
||||
"ai_loop_current_blocker_historical_control_path_blocker"
|
||||
] == "remote_ssh_publickey_offer_timeout"
|
||||
assert all(
|
||||
"P0-006-CD-DEPLOY-MARKER-READBACK" not in item
|
||||
for item in payload["next_execution_order"]
|
||||
|
||||
Reference in New Issue
Block a user