feat(api): expose onboarding template copy receipt
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 21s
CD Pipeline / build-and-deploy (push) Successful in 8m58s
CD Pipeline / post-deploy-checks (push) Has been cancelled
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 21s
CD Pipeline / build-and-deploy (push) Successful in 8m58s
CD Pipeline / post-deploy-checks (push) Has been cancelled
This commit is contained in:
@@ -12,6 +12,9 @@ from typing import Any
|
||||
from src.services.awoooi_gitea_onboarding_warning_step_template_copy_apply_gate import (
|
||||
load_latest_awoooi_gitea_onboarding_warning_step_template_copy_apply_gate,
|
||||
)
|
||||
from src.services.awoooi_gitea_onboarding_warning_step_template_copy_receipt import (
|
||||
load_latest_awoooi_gitea_onboarding_warning_step_template_copy_receipt,
|
||||
)
|
||||
from src.services.awoooi_production_deploy_readback_blocker import (
|
||||
load_latest_awoooi_production_deploy_readback_blocker,
|
||||
)
|
||||
@@ -52,6 +55,9 @@ def load_delivery_closure_workbench() -> dict[str, Any]:
|
||||
cicd_template_copy_apply_gate = (
|
||||
load_latest_awoooi_gitea_onboarding_warning_step_template_copy_apply_gate()
|
||||
)
|
||||
cicd_template_copy_receipt = (
|
||||
load_latest_awoooi_gitea_onboarding_warning_step_template_copy_receipt()
|
||||
)
|
||||
gitea = load_latest_gitea_workflow_runner_health()
|
||||
runtime = load_latest_runtime_surface_inventory()
|
||||
backup = load_latest_backup_dr_readiness_matrix()
|
||||
@@ -63,6 +69,7 @@ def load_delivery_closure_workbench() -> dict[str, Any]:
|
||||
private_inventory=private_inventory,
|
||||
cicd_baseline=cicd_baseline,
|
||||
cicd_template_copy_apply_gate=cicd_template_copy_apply_gate,
|
||||
cicd_template_copy_receipt=cicd_template_copy_receipt,
|
||||
gitea=gitea,
|
||||
runtime=runtime,
|
||||
backup=backup,
|
||||
@@ -78,6 +85,7 @@ def build_delivery_closure_workbench(
|
||||
private_inventory: dict[str, Any],
|
||||
cicd_baseline: dict[str, Any],
|
||||
cicd_template_copy_apply_gate: dict[str, Any],
|
||||
cicd_template_copy_receipt: dict[str, Any],
|
||||
gitea: dict[str, Any],
|
||||
runtime: dict[str, Any],
|
||||
backup: dict[str, Any],
|
||||
@@ -104,6 +112,15 @@ def build_delivery_closure_workbench(
|
||||
cicd_apply_gate_boundaries = _dict(
|
||||
cicd_template_copy_apply_gate.get("operation_boundaries")
|
||||
)
|
||||
cicd_template_copy_receipt_readback = _dict(
|
||||
cicd_template_copy_receipt.get("readback")
|
||||
)
|
||||
cicd_template_copy_receipt_rollups = _dict(
|
||||
cicd_template_copy_receipt.get("rollups")
|
||||
)
|
||||
cicd_template_copy_receipt_boundaries = _dict(
|
||||
cicd_template_copy_receipt.get("operation_boundaries")
|
||||
)
|
||||
production_deploy_readback = _dict(production_deploy.get("readback"))
|
||||
production_deploy_rollups = _dict(production_deploy.get("rollups"))
|
||||
gitea_status = _dict(gitea.get("program_status"))
|
||||
@@ -798,6 +815,64 @@ def build_delivery_closure_workbench(
|
||||
cicd_apply_gate_readback.get("runner_pressure_guard_required")
|
||||
is True
|
||||
),
|
||||
"template_copy_receipt_status": str(
|
||||
cicd_template_copy_receipt.get("status") or ""
|
||||
),
|
||||
"template_copy_receipt_ready": (
|
||||
cicd_template_copy_receipt.get("status")
|
||||
== "controlled_template_copy_receipt_ready"
|
||||
),
|
||||
"template_copy_receipt_active_blocker_count": _int(
|
||||
cicd_template_copy_receipt_rollups.get("active_blocker_count")
|
||||
),
|
||||
"source_template_path": str(
|
||||
cicd_template_copy_receipt_readback.get("source_template_path")
|
||||
or ""
|
||||
),
|
||||
"destination_workflow_path": str(
|
||||
cicd_template_copy_receipt_readback.get(
|
||||
"destination_workflow_path"
|
||||
)
|
||||
or ""
|
||||
),
|
||||
"source_template_file_present": (
|
||||
cicd_template_copy_receipt_rollups.get("template_file_present")
|
||||
is True
|
||||
),
|
||||
"destination_workflow_file_present": (
|
||||
cicd_template_copy_receipt_rollups.get("workflow_file_present")
|
||||
is True
|
||||
),
|
||||
"destination_workflow_matches_template": (
|
||||
cicd_template_copy_receipt_rollups.get("workflow_matches_template")
|
||||
is True
|
||||
),
|
||||
"destination_workflow_dispatch_declared": (
|
||||
cicd_template_copy_receipt_rollups.get(
|
||||
"workflow_dispatch_declared"
|
||||
)
|
||||
is True
|
||||
),
|
||||
"destination_workflow_auto_branch_event_count": _int(
|
||||
cicd_template_copy_receipt_rollups.get("auto_branch_event_count")
|
||||
),
|
||||
"destination_workflow_generic_runner_label_count": _int(
|
||||
cicd_template_copy_receipt_rollups.get(
|
||||
"generic_runner_label_count"
|
||||
)
|
||||
),
|
||||
"destination_workflow_active_file_created": (
|
||||
cicd_template_copy_receipt_boundaries.get(
|
||||
"active_workflow_file_created"
|
||||
)
|
||||
is True
|
||||
),
|
||||
"destination_workflow_trigger_performed": (
|
||||
cicd_template_copy_receipt_boundaries.get(
|
||||
"workflow_trigger_performed"
|
||||
)
|
||||
is True
|
||||
),
|
||||
"required_source_count": _int(
|
||||
cicd_baseline_rollups.get("required_source_count")
|
||||
),
|
||||
@@ -1191,6 +1266,53 @@ def build_delivery_closure_workbench(
|
||||
cicd_apply_gate_readback.get("runner_pressure_guard_required")
|
||||
is True
|
||||
),
|
||||
"p0_cicd_template_copy_receipt_status": str(
|
||||
cicd_template_copy_receipt.get("status") or ""
|
||||
),
|
||||
"p0_cicd_template_copy_receipt_ready": (
|
||||
cicd_template_copy_receipt.get("status")
|
||||
== "controlled_template_copy_receipt_ready"
|
||||
),
|
||||
"p0_cicd_template_copy_receipt_active_blocker_count": _int(
|
||||
cicd_template_copy_receipt_rollups.get("active_blocker_count")
|
||||
),
|
||||
"p0_cicd_template_copy_source_template_path": str(
|
||||
cicd_template_copy_receipt_readback.get("source_template_path")
|
||||
or ""
|
||||
),
|
||||
"p0_cicd_template_copy_destination_workflow_path": str(
|
||||
cicd_template_copy_receipt_readback.get("destination_workflow_path")
|
||||
or ""
|
||||
),
|
||||
"p0_cicd_template_copy_source_template_file_present": (
|
||||
cicd_template_copy_receipt_rollups.get("template_file_present")
|
||||
is True
|
||||
),
|
||||
"p0_cicd_template_copy_destination_workflow_file_present": (
|
||||
cicd_template_copy_receipt_rollups.get("workflow_file_present") is True
|
||||
),
|
||||
"p0_cicd_template_copy_destination_workflow_matches_template": (
|
||||
cicd_template_copy_receipt_rollups.get("workflow_matches_template")
|
||||
is True
|
||||
),
|
||||
"p0_cicd_template_copy_workflow_dispatch_declared": (
|
||||
cicd_template_copy_receipt_rollups.get("workflow_dispatch_declared")
|
||||
is True
|
||||
),
|
||||
"p0_cicd_template_copy_auto_branch_event_count": _int(
|
||||
cicd_template_copy_receipt_rollups.get("auto_branch_event_count")
|
||||
),
|
||||
"p0_cicd_template_copy_generic_runner_label_count": _int(
|
||||
cicd_template_copy_receipt_rollups.get("generic_runner_label_count")
|
||||
),
|
||||
"p0_cicd_template_copy_active_workflow_file_created": (
|
||||
cicd_template_copy_receipt_boundaries.get("active_workflow_file_created")
|
||||
is True
|
||||
),
|
||||
"p0_cicd_template_copy_workflow_trigger_performed": (
|
||||
cicd_template_copy_receipt_boundaries.get("workflow_trigger_performed")
|
||||
is True
|
||||
),
|
||||
"production_deploy_status": str(production_deploy.get("status") or ""),
|
||||
"production_deploy_source_control_main_ready": production_deploy_rollups.get(
|
||||
"source_control_main_ready"
|
||||
|
||||
Reference in New Issue
Block a user