fix(api): surface gitops runtime readback current
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 42s
CD Pipeline / post-deploy-checks (push) Has been cancelled
CD Pipeline / build-and-deploy (push) Has been cancelled

This commit is contained in:
Your Name
2026-07-01 23:55:57 +08:00
parent 492881ded3
commit 1433f151f6
3 changed files with 92 additions and 0 deletions

View File

@@ -157,6 +157,22 @@ def build_delivery_closure_workbench(
)
production_deploy_readback = _dict(production_deploy.get("readback"))
production_deploy_rollups = _dict(production_deploy.get("rollups"))
production_deploy_runtime_matches_gitops_desired = (
production_deploy_readback.get("runtime_build_matches_gitops_desired_image_tag")
is True
)
production_deploy_runtime_readback_status = str(
production_deploy_readback.get("runtime_build_readback_status") or ""
)
production_deploy_runtime_committed_drift_accepted = (
production_deploy_runtime_readback_status
== "matches_gitops_desired_image_tag_with_committed_deploy_readback_drift"
)
production_deploy_runtime_readback_current = (
production_deploy_runtime_matches_gitops_desired
and production_deploy_readback.get("desired_main_api_image_tag_readback_status")
== "ok"
)
gitea_status = _dict(gitea.get("program_status"))
gitea_rollups = _dict(gitea.get("rollups"))
gitea_runner_request_readback = _dict(
@@ -310,6 +326,15 @@ def build_delivery_closure_workbench(
production_deploy_readback.get("runtime_build_readback_status")
or ""
),
"runtime_build_matches_gitops_desired_image_tag": (
production_deploy_runtime_matches_gitops_desired
),
"runtime_build_deploy_readback_current": (
production_deploy_runtime_readback_current
),
"runtime_build_committed_readback_drift_accepted": (
production_deploy_runtime_committed_drift_accepted
),
"runtime_build_matches_committed_source_control_readback": (
production_deploy_readback.get(
"runtime_build_matches_committed_source_control_readback"
@@ -1849,6 +1874,15 @@ def build_delivery_closure_workbench(
"production_deploy_runtime_build_readback_status": str(
production_deploy_readback.get("runtime_build_readback_status") or ""
),
"production_deploy_runtime_build_matches_gitops_desired_image_tag": (
production_deploy_runtime_matches_gitops_desired
),
"production_deploy_runtime_build_deploy_readback_current": (
production_deploy_runtime_readback_current
),
"production_deploy_runtime_build_committed_readback_drift_accepted": (
production_deploy_runtime_committed_drift_accepted
),
"production_deploy_runtime_build_matches_committed_source_control_readback": (
production_deploy_readback.get(
"runtime_build_matches_committed_source_control_readback"