feat(delivery): expose queue verifier contract

This commit is contained in:
Your Name
2026-06-29 09:38:21 +08:00
parent 69682e4c32
commit 76071f21a8
5 changed files with 93 additions and 4 deletions

View File

@@ -71,6 +71,10 @@ def test_delivery_closure_workbench_endpoint_returns_product_summary():
data["summary"]["production_deploy_latest_visible_waiting_runner_workflow"]
== "ai-technology-watch.yaml"
)
assert (
data["summary"]["production_deploy_latest_visible_waiting_runner_kind"]
== "Scheduled"
)
assert (
data["summary"]["production_deploy_latest_visible_waiting_runner_status"]
== "No matching online runner with label: awoooi-non110-ubuntu"
@@ -79,6 +83,16 @@ def test_delivery_closure_workbench_endpoint_returns_product_summary():
data["summary"]["production_deploy_latest_visible_waiting_runner_label"]
== "awoooi-non110-ubuntu"
)
assert (
data["summary"][
"production_deploy_public_actions_queue_readback_schema_version"
]
== "awoooi_public_gitea_actions_queue_readback_v1"
)
assert (
data["summary"]["production_deploy_public_actions_queue_readback_verifier"]
== "ops/runner/read-public-gitea-actions-queue.py --json"
)
assert data["summary"]["production_deploy_non110_runner_ready"] is False
assert (
data["summary"][
@@ -130,6 +144,9 @@ def test_delivery_closure_workbench_endpoint_returns_product_summary():
data["summary"]["production_deploy_non110_runner_ready_registration_count"]
== 0
)
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"
)
assert (
data["summary"]["production_deploy_non110_runner_remaining_blocker_count"]
== 3
@@ -177,7 +194,7 @@ def test_delivery_closure_workbench_endpoint_returns_product_summary():
assert lanes["production_deploy"]["blocker_count"] == 4
assert lanes["production_deploy"]["metric"][
"observed_source_control_main_short_sha"
] == "f84269453834"
] == "c53cbca4a26d"
assert lanes["production_deploy"]["metric"][
"production_image_tag_short_sha"
] == "af45811e87"
@@ -235,6 +252,10 @@ def test_delivery_closure_workbench_endpoint_returns_product_summary():
]
== "ai-technology-watch.yaml"
)
assert (
lanes["production_deploy"]["metric"]["latest_visible_waiting_runner_kind"]
== "Scheduled"
)
assert (
lanes["production_deploy"]["metric"][
"latest_visible_waiting_runner_status"
@@ -245,6 +266,16 @@ def test_delivery_closure_workbench_endpoint_returns_product_summary():
lanes["production_deploy"]["metric"]["latest_visible_waiting_runner_label"]
== "awoooi-non110-ubuntu"
)
assert (
lanes["production_deploy"]["metric"][
"public_actions_queue_readback_schema_version"
]
== "awoooi_public_gitea_actions_queue_readback_v1"
)
assert (
lanes["production_deploy"]["metric"]["public_actions_queue_readback_verifier"]
== "ops/runner/read-public-gitea-actions-queue.py --json"
)
assert lanes["production_deploy"]["metric"]["non110_runner_ready"] is False
assert (
lanes["production_deploy"]["metric"][
@@ -300,6 +331,9 @@ def test_delivery_closure_workbench_endpoint_returns_product_summary():
]
== 0
)
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"
)
assert (
lanes["production_deploy"]["metric"][
"non110_runner_remaining_blocker_count"