chore(runner): record non110 ready deploy blocker readback
Some checks failed
CD Pipeline / workflow-shape (push) Successful in 0s
CD Pipeline / cancel-stale-cd (push) Has been skipped
CD Pipeline / tests (push) Failing after 30s
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-06-29 11:13:03 +08:00
parent 1ca806fd5d
commit ec0a2b9985
3 changed files with 60 additions and 42 deletions

View File

@@ -25,7 +25,7 @@ def test_delivery_closure_workbench_endpoint_returns_product_summary():
assert data["summary"]["refs_sync_authorized"] is True
assert data["summary"]["workflow_trigger_authorized"] is True
assert data["summary"]["production_deploy_status"] == (
"blocked_waiting_authorized_gitea_workflow_dispatch_and_runner_queue"
"blocked_production_image_not_current"
)
assert data["summary"]["production_deploy_source_control_main_ready"] is True
assert data["summary"]["production_deploy_image_tag_matches_main"] is False
@@ -44,7 +44,7 @@ def test_delivery_closure_workbench_endpoint_returns_product_summary():
data["summary"]["production_deploy_dispatch_without_token_message"]
== "token is required"
)
assert data["summary"]["production_deploy_hard_blocker_count"] == 3
assert data["summary"]["production_deploy_hard_blocker_count"] == 2
assert data["summary"]["production_deploy_latest_visible_cd_run_id"] == "3853"
assert data["summary"]["production_deploy_latest_visible_cd_run_status"] == (
"Waiting"
@@ -101,7 +101,7 @@ def test_delivery_closure_workbench_endpoint_returns_product_summary():
)
assert (
data["summary"]["production_deploy_non110_runner_cd_closure_status"]
== "blocked_non110_runner_not_ready"
== "blocked_production_image_not_current"
)
assert (
data["summary"]["production_deploy_non110_runner_cd_closure_required"]
@@ -121,44 +121,42 @@ def test_delivery_closure_workbench_endpoint_returns_product_summary():
data["summary"][
"production_deploy_non110_runner_cd_closure_ordered_completed_prefix_count"
]
== 0
== 4
)
assert (
data["summary"][
"production_deploy_non110_runner_cd_closure_evidence_completed_step_count"
]
== 2
== 4
)
assert (
data["summary"][
"production_deploy_non110_runner_cd_closure_ordered_completion_percent"
]
== 0
== 67
)
assert (
data["summary"][
"production_deploy_non110_runner_cd_closure_evidence_completion_percent"
]
== 33
== 67
)
assert (
data["summary"][
"production_deploy_non110_runner_cd_closure_next_blocked_step_index"
]
== 1
== 5
)
assert (
data["summary"][
"production_deploy_non110_runner_cd_closure_next_blocked_step_id"
]
== "non110_runner_registration_metadata"
== "production_image_tag_current"
)
assert data["summary"][
"production_deploy_non110_runner_cd_closure_next_blocked_step_action"
] == (
"run_register_awoooi_non110_runner_script_without_printing_token_then_autostart_path_will_enable_service_and_rerun_this_verifier"
)
assert data["summary"]["production_deploy_non110_runner_ready"] is False
] == "complete_authorized_cd_then_verify_image_tag_matches_main"
assert data["summary"]["production_deploy_non110_runner_ready"] is True
assert (
data["summary"][
"production_deploy_non110_runner_prepare_only_source_ready"
@@ -185,7 +183,7 @@ def test_delivery_closure_workbench_endpoint_returns_product_summary():
)
assert (
data["summary"]["production_deploy_non110_runner_online_label_match"]
is False
is True
)
assert (
data["summary"]["production_deploy_non110_runner_autostart_path_armed"]
@@ -207,14 +205,14 @@ def test_delivery_closure_workbench_endpoint_returns_product_summary():
assert data["summary"]["production_deploy_non110_runner_ready_service_count"] == 1
assert (
data["summary"]["production_deploy_non110_runner_ready_registration_count"]
== 0
== 1
)
assert data["summary"]["production_deploy_non110_runner_safe_next_step"] == (
"run_register_awoooi_non110_runner_script_without_printing_token_then_autostart_path_will_enable_service_and_rerun_this_verifier"
"complete_authorized_cd_then_verify_image_tag_matches_main"
)
assert (
data["summary"]["production_deploy_non110_runner_remaining_blocker_count"]
== 3
== 0
)
assert (
data["summary"][
@@ -288,12 +286,12 @@ def test_delivery_closure_workbench_endpoint_returns_product_summary():
assert lanes["release"]["metric"]["total"] == 5
assert lanes["production_deploy"]["metric"]["kind"] == "deploy_readback"
assert lanes["production_deploy"]["status"] == (
"blocked_waiting_authorized_gitea_workflow_dispatch_and_runner_queue"
"blocked_production_image_not_current"
)
assert lanes["production_deploy"]["blocker_count"] == 3
assert lanes["production_deploy"]["blocker_count"] == 2
assert lanes["production_deploy"]["metric"][
"observed_source_control_main_short_sha"
] == "f3634db18477"
] == "1ca806fd5d28"
assert lanes["production_deploy"]["metric"][
"production_image_tag_short_sha"
] == "af45811e87"
@@ -383,7 +381,7 @@ def test_delivery_closure_workbench_endpoint_returns_product_summary():
)
assert (
lanes["production_deploy"]["metric"]["non110_runner_cd_closure_status"]
== "blocked_non110_runner_not_ready"
== "blocked_production_image_not_current"
)
assert (
lanes["production_deploy"]["metric"]["non110_runner_cd_closure_required"]
@@ -403,44 +401,42 @@ def test_delivery_closure_workbench_endpoint_returns_product_summary():
lanes["production_deploy"]["metric"][
"non110_runner_cd_closure_ordered_completed_prefix_count"
]
== 0
== 4
)
assert (
lanes["production_deploy"]["metric"][
"non110_runner_cd_closure_evidence_completed_step_count"
]
== 2
== 4
)
assert (
lanes["production_deploy"]["metric"][
"non110_runner_cd_closure_ordered_completion_percent"
]
== 0
== 67
)
assert (
lanes["production_deploy"]["metric"][
"non110_runner_cd_closure_evidence_completion_percent"
]
== 33
== 67
)
assert (
lanes["production_deploy"]["metric"][
"non110_runner_cd_closure_next_blocked_step_index"
]
== 1
== 5
)
assert (
lanes["production_deploy"]["metric"][
"non110_runner_cd_closure_next_blocked_step_id"
]
== "non110_runner_registration_metadata"
== "production_image_tag_current"
)
assert lanes["production_deploy"]["metric"][
"non110_runner_cd_closure_next_blocked_step_action"
] == (
"run_register_awoooi_non110_runner_script_without_printing_token_then_autostart_path_will_enable_service_and_rerun_this_verifier"
)
assert lanes["production_deploy"]["metric"]["non110_runner_ready"] is False
] == "complete_authorized_cd_then_verify_image_tag_matches_main"
assert lanes["production_deploy"]["metric"]["non110_runner_ready"] is True
assert (
lanes["production_deploy"]["metric"][
"non110_runner_prepare_only_source_ready"
@@ -469,7 +465,7 @@ def test_delivery_closure_workbench_endpoint_returns_product_summary():
)
assert (
lanes["production_deploy"]["metric"]["non110_runner_online_label_match"]
is False
is True
)
assert (
lanes["production_deploy"]["metric"]["non110_runner_autostart_path_armed"]
@@ -493,16 +489,16 @@ def test_delivery_closure_workbench_endpoint_returns_product_summary():
lanes["production_deploy"]["metric"][
"non110_runner_ready_registration_count"
]
== 0
== 1
)
assert lanes["production_deploy"]["metric"]["non110_runner_safe_next_step"] == (
"run_register_awoooi_non110_runner_script_without_printing_token_then_autostart_path_will_enable_service_and_rerun_this_verifier"
"complete_authorized_cd_then_verify_image_tag_matches_main"
)
assert (
lanes["production_deploy"]["metric"][
"non110_runner_remaining_blocker_count"
]
== 3
== 0
)
assert lanes["github"]["metric"]["kind"] == "private_backup_verified"
assert lanes["gitea"]["metric"]["kind"] == "workflow_count"