fix(deploy): render new authority paths in plan

This commit is contained in:
Codex
2026-07-21 14:27:37 +03:00
parent 77bf8036d2
commit bc23c550db
2 changed files with 83 additions and 26 deletions
+50 -26
View File
@@ -5457,6 +5457,53 @@ def preflight_engine_depttrans_zone_authority_v1_predecessor():
}
def print_engine_depttrans_zone_authority_v1_plan(preflight):
print("engine_provider_authority_transition=platform-service-v1")
print("engine_provider_package=moscow-department-of-transport.pmd-slow-zones.v1")
print("engine_provider_id=moscow-department-of-transport")
print("engine_provider_authority_boundary=platform-service")
print("engine_provider_platform_service=nodedc-map-gateway")
print("engine_provider_platform_network=engine")
print("engine_data_product=map.zones.current.v2")
print("provider_credential_values=preserved")
predecessor_sha256 = preflight["predecessor_sha256"]
target_sha256 = preflight["target_sha256"]
for changed_path in ENGINE_DEPTTRANS_ZONE_AUTHORITY_V1_ARTIFACT_ENTRIES:
print(f"engine_depttrans_zone_authority_changed_path={changed_path}")
if changed_path in predecessor_sha256:
print(
f"engine_depttrans_zone_authority_predecessor_sha256[{changed_path}]="
f"{predecessor_sha256[changed_path]}"
)
elif changed_path in ENGINE_DEPTTRANS_ZONE_AUTHORITY_V1_NEW_PATHS:
print(
f"engine_depttrans_zone_authority_predecessor_state[{changed_path}]="
"absent"
)
else:
die(
"Engine Depttrans zone authority v1 plan has no predecessor state: "
f"{changed_path}"
)
if changed_path not in target_sha256:
die(
"Engine Depttrans zone authority v1 plan has no target sha256: "
f"{changed_path}"
)
print(
f"engine_depttrans_zone_authority_target_sha256[{changed_path}]="
f"{target_sha256[changed_path]}"
)
print(f"backend_current_barrier={preflight['backend_mode']}")
print("backend_force_recreate=yes")
print("backend_pull=never")
print("l2_graph=untouched")
print("n8n_l1=untouched")
print("engine_ui=untouched")
print("engine_databases=untouched")
print("mcp_nginx=untouched")
def preflight_engine_provider_target_host_policy_predecessor():
root = component_root("engine")
actual = {}
@@ -7984,32 +8031,9 @@ def plan_artifact(artifact):
print("engine_ui=untouched")
print("engine_databases=untouched")
if depttrans_zone_authority_v1_preflight:
print("engine_provider_authority_transition=platform-service-v1")
print("engine_provider_package=moscow-department-of-transport.pmd-slow-zones.v1")
print("engine_provider_id=moscow-department-of-transport")
print("engine_provider_authority_boundary=platform-service")
print("engine_provider_platform_service=nodedc-map-gateway")
print("engine_provider_platform_network=engine")
print("engine_data_product=map.zones.current.v2")
print("provider_credential_values=preserved")
for changed_path in ENGINE_DEPTTRANS_ZONE_AUTHORITY_V1_ARTIFACT_ENTRIES:
print(f"engine_depttrans_zone_authority_changed_path={changed_path}")
print(
f"engine_depttrans_zone_authority_predecessor_sha256[{changed_path}]="
f"{depttrans_zone_authority_v1_preflight['predecessor_sha256'][changed_path]}"
)
print(
f"engine_depttrans_zone_authority_target_sha256[{changed_path}]="
f"{depttrans_zone_authority_v1_preflight['target_sha256'][changed_path]}"
)
print(f"backend_current_barrier={depttrans_zone_authority_v1_preflight['backend_mode']}")
print("backend_force_recreate=yes")
print("backend_pull=never")
print("l2_graph=untouched")
print("n8n_l1=untouched")
print("engine_ui=untouched")
print("engine_databases=untouched")
print("mcp_nginx=untouched")
print_engine_depttrans_zone_authority_v1_plan(
depttrans_zone_authority_v1_preflight
)
if provider_target_host_policy_preflight:
print("engine_provider_transport_transition=exact-literal-target-host")
print("engine_provider_package=gelios.provider.v4")