feat(delivery): expose non110 runner readiness readback
This commit is contained in:
@@ -152,6 +152,44 @@ def build_delivery_closure_workbench(
|
||||
"latest_visible_cd_run_jobs_total_count"
|
||||
)
|
||||
),
|
||||
"non110_runner_ready": production_deploy_readback.get(
|
||||
"non110_runner_ready"
|
||||
)
|
||||
is True,
|
||||
"non110_runner_prepare_only_source_ready": production_deploy_readback.get(
|
||||
"non110_runner_prepare_only_source_ready"
|
||||
)
|
||||
is True,
|
||||
"non110_runner_safe_registration_helper_ready": production_deploy_readback.get(
|
||||
"non110_runner_safe_registration_helper_ready"
|
||||
)
|
||||
is True,
|
||||
"non110_runner_registration_condition_required": production_deploy_readback.get(
|
||||
"non110_runner_registration_condition_required"
|
||||
)
|
||||
is True,
|
||||
"non110_runner_ready_config_count": _int(
|
||||
production_deploy_readback.get(
|
||||
"non110_runner_ready_config_count"
|
||||
)
|
||||
),
|
||||
"non110_runner_ready_service_count": _int(
|
||||
production_deploy_readback.get(
|
||||
"non110_runner_ready_service_count"
|
||||
)
|
||||
),
|
||||
"non110_runner_ready_registration_count": _int(
|
||||
production_deploy_readback.get(
|
||||
"non110_runner_ready_registration_count"
|
||||
)
|
||||
),
|
||||
"non110_runner_remaining_blocker_count": len(
|
||||
_strings(
|
||||
production_deploy_readback.get(
|
||||
"non110_runner_remaining_blockers"
|
||||
)
|
||||
)
|
||||
),
|
||||
},
|
||||
"href": "/deployments",
|
||||
"next_action": _first_string(production_deploy.get("next_actions")),
|
||||
@@ -348,6 +386,44 @@ def build_delivery_closure_workbench(
|
||||
"latest_visible_cd_run_jobs_total_count"
|
||||
)
|
||||
),
|
||||
"production_deploy_non110_runner_ready": production_deploy_readback.get(
|
||||
"non110_runner_ready"
|
||||
)
|
||||
is True,
|
||||
"production_deploy_non110_runner_prepare_only_source_ready": (
|
||||
production_deploy_readback.get("non110_runner_prepare_only_source_ready")
|
||||
is True
|
||||
),
|
||||
"production_deploy_non110_runner_safe_registration_helper_ready": (
|
||||
production_deploy_readback.get(
|
||||
"non110_runner_safe_registration_helper_ready"
|
||||
)
|
||||
is True
|
||||
),
|
||||
"production_deploy_non110_runner_registration_condition_required": (
|
||||
production_deploy_readback.get(
|
||||
"non110_runner_registration_condition_required"
|
||||
)
|
||||
is True
|
||||
),
|
||||
"production_deploy_non110_runner_ready_config_count": _int(
|
||||
production_deploy_readback.get("non110_runner_ready_config_count")
|
||||
),
|
||||
"production_deploy_non110_runner_ready_service_count": _int(
|
||||
production_deploy_readback.get("non110_runner_ready_service_count")
|
||||
),
|
||||
"production_deploy_non110_runner_ready_registration_count": _int(
|
||||
production_deploy_readback.get(
|
||||
"non110_runner_ready_registration_count"
|
||||
)
|
||||
),
|
||||
"production_deploy_non110_runner_remaining_blocker_count": len(
|
||||
_strings(
|
||||
production_deploy_readback.get(
|
||||
"non110_runner_remaining_blockers"
|
||||
)
|
||||
)
|
||||
),
|
||||
"github_write_channel_ready": github_preflight.get(
|
||||
"github_write_channel_ready"
|
||||
)
|
||||
|
||||
@@ -34,7 +34,7 @@ def test_delivery_closure_workbench_endpoint_returns_product_summary():
|
||||
data["summary"]["production_deploy_authorized_dispatch_channel_ready"]
|
||||
is False
|
||||
)
|
||||
assert data["summary"]["production_deploy_hard_blocker_count"] == 2
|
||||
assert data["summary"]["production_deploy_hard_blocker_count"] == 3
|
||||
assert data["summary"]["production_deploy_latest_visible_cd_run_id"] == "3853"
|
||||
assert data["summary"]["production_deploy_latest_visible_cd_run_status"] == (
|
||||
"Waiting"
|
||||
@@ -43,6 +43,35 @@ def test_delivery_closure_workbench_endpoint_returns_product_summary():
|
||||
data["summary"]["production_deploy_latest_visible_cd_run_jobs_total_count"]
|
||||
== 0
|
||||
)
|
||||
assert data["summary"]["production_deploy_non110_runner_ready"] is False
|
||||
assert (
|
||||
data["summary"][
|
||||
"production_deploy_non110_runner_prepare_only_source_ready"
|
||||
]
|
||||
is True
|
||||
)
|
||||
assert (
|
||||
data["summary"][
|
||||
"production_deploy_non110_runner_safe_registration_helper_ready"
|
||||
]
|
||||
is True
|
||||
)
|
||||
assert (
|
||||
data["summary"][
|
||||
"production_deploy_non110_runner_registration_condition_required"
|
||||
]
|
||||
is True
|
||||
)
|
||||
assert data["summary"]["production_deploy_non110_runner_ready_config_count"] == 2
|
||||
assert data["summary"]["production_deploy_non110_runner_ready_service_count"] == 1
|
||||
assert (
|
||||
data["summary"]["production_deploy_non110_runner_ready_registration_count"]
|
||||
== 0
|
||||
)
|
||||
assert (
|
||||
data["summary"]["production_deploy_non110_runner_remaining_blocker_count"]
|
||||
== 3
|
||||
)
|
||||
assert data["summary"]["github_write_channel_ready"] is False
|
||||
assert data["summary"]["github_account_status"] == "suspended"
|
||||
assert data["summary"]["github_account_suspended"] is True
|
||||
@@ -83,10 +112,10 @@ def test_delivery_closure_workbench_endpoint_returns_product_summary():
|
||||
assert lanes["production_deploy"]["status"] == (
|
||||
"blocked_waiting_authorized_gitea_workflow_dispatch_and_runner_queue"
|
||||
)
|
||||
assert lanes["production_deploy"]["blocker_count"] == 2
|
||||
assert lanes["production_deploy"]["blocker_count"] == 3
|
||||
assert lanes["production_deploy"]["metric"][
|
||||
"observed_source_control_main_short_sha"
|
||||
] == "5f20d654d4dc"
|
||||
] == "c18200c23ca2"
|
||||
assert lanes["production_deploy"]["metric"][
|
||||
"production_image_tag_short_sha"
|
||||
] == "af45811e87"
|
||||
@@ -110,6 +139,39 @@ def test_delivery_closure_workbench_endpoint_returns_product_summary():
|
||||
]
|
||||
== 0
|
||||
)
|
||||
assert lanes["production_deploy"]["metric"]["non110_runner_ready"] is False
|
||||
assert (
|
||||
lanes["production_deploy"]["metric"][
|
||||
"non110_runner_prepare_only_source_ready"
|
||||
]
|
||||
is True
|
||||
)
|
||||
assert (
|
||||
lanes["production_deploy"]["metric"][
|
||||
"non110_runner_safe_registration_helper_ready"
|
||||
]
|
||||
is True
|
||||
)
|
||||
assert (
|
||||
lanes["production_deploy"]["metric"][
|
||||
"non110_runner_registration_condition_required"
|
||||
]
|
||||
is True
|
||||
)
|
||||
assert lanes["production_deploy"]["metric"]["non110_runner_ready_config_count"] == 2
|
||||
assert lanes["production_deploy"]["metric"]["non110_runner_ready_service_count"] == 1
|
||||
assert (
|
||||
lanes["production_deploy"]["metric"][
|
||||
"non110_runner_ready_registration_count"
|
||||
]
|
||||
== 0
|
||||
)
|
||||
assert (
|
||||
lanes["production_deploy"]["metric"][
|
||||
"non110_runner_remaining_blocker_count"
|
||||
]
|
||||
== 3
|
||||
)
|
||||
assert lanes["github"]["metric"]["kind"] == "private_backup_verified"
|
||||
assert lanes["gitea"]["metric"]["kind"] == "workflow_count"
|
||||
assert lanes["runtime"]["metric"]["kind"] == "surface_count"
|
||||
|
||||
Reference in New Issue
Block a user