Evenfire is an intelligence layer platform for running LLM agents that take real actions, on your infrastructure
TypeScript
fix: make release gate probes wait for ready dependencies
Alfredo Lopez42edb91f5506
diff --git a/scripts/minikube/pre-gate-sync.sh b/scripts/minikube/pre-gate-sync.shindex 82c2efbd3..ea114de5e 100755--- a/scripts/minikube/pre-gate-sync.sh+++ b/scripts/minikube/pre-gate-sync.sh@@ -287,6 +287,11 @@ assert_no_legacy_prompt_bridge_grants() {# This check deliberately does not infer a provider, model, slot, or order;# migration remains an explicit operator-reviewed action.local legacy_count query+ # A full image sync restarts the database deployment without waiting for the+ # whole namespace. Wait for the exact Postgres deployment here before+ # kubectl exec; otherwise the deployment resolver can select a completed+ # migration Job during the restart window and produce a false gate failure.+ rollout_if_present control-plane control-postgresquery="SELECT count(*)::intFROM plugin_workload_sdk_grants@@ -406,6 +411,13 @@ if [[ "${cluster_changed}" == "true" ]]; then--overlay "${PROJECT_DIR}/deploy/overlays/minikube"CONTEXT="${PROFILE}" ALLOWED_CONTEXTS="${PROFILE}" \bash "${PROJECT_DIR}/deploy/scripts/provision-control-api-runtime-roles.sh"+ # The GFS DSN authentication probe deliberately runs inside control-api so+ # the connection material stays on stdin and never enters argv or the host.+ # Control API was fenced only for the schema migration/writer window; the+ # runtime roles now exist, so restore it before GFS provisioning makes that+ # probe. The workflow reconciler remains fenced until the complete+ # schema/credential/overlay sequence has converged.+ restore_control_api# The base manifest no longer declares connection-string (provisioning-owned# key), so deploy-all cannot clobber it. Provisioning must still run AFTER# control-api migrations (0048 creates the least-privilege gfs_controllerdiff --git a/scripts/tests/test-minikube-pre-gate-sync-state.sh b/scripts/tests/test-minikube-pre-gate-sync-state.shindex 00fc7700b..f29cb73d4 100755--- a/scripts/tests/test-minikube-pre-gate-sync-state.sh+++ b/scripts/tests/test-minikube-pre-gate-sync-state.sh@@ -143,14 +143,20 @@ elsefail "pre-gate sync does not build workflow-runtime-core before dependent package tests"fi-control_api_restore_line="$(grep -nF 'restore_control_api' "$SCRIPT" | tail -n 1 | cut -d: -f1)"-gfs_provision_line="$(grep -nF 'provision_gfs_serving' "$SCRIPT" | tail -n 1 | cut -d: -f1)"-if [[ -n "$control_api_restore_line" &&+control_api_migration_line="$(grep -nF 'run-control-api-db-migration.sh' "$SCRIPT" | head -n 1 | cut -d: -f1)"+runtime_roles_line="$(grep -nF 'provision-control-api-runtime-roles.sh' "$SCRIPT" | head -n 1 | cut -d: -f1)"+control_api_probe_restore_line="$(grep -nF ' restore_control_api' "$SCRIPT" | tail -n 1 | cut -d: -f1)"+gfs_provision_line="$(grep -nF ' provision_gfs_serving' "$SCRIPT" | tail -n 1 | cut -d: -f1)"+if [[ -n "$control_api_migration_line" &&+ -n "$runtime_roles_line" &&+ -n "$control_api_probe_restore_line" &&-n "$gfs_provision_line" &&- "$gfs_provision_line" -lt "$control_api_restore_line" ]]; then- pass "pre-gate sync waits for control-api migrations and gfs provisioning before writer restore"+ "$control_api_migration_line" -lt "$runtime_roles_line" &&+ "$runtime_roles_line" -lt "$control_api_probe_restore_line" &&+ "$control_api_probe_restore_line" -lt "$gfs_provision_line" ]]; then+ pass "pre-gate restores the control-api probe only after migration/roles and before gfs provisioning"else- fail "pre-gate sync can restore control-api before migrations or gfs provisioning"+ fail "pre-gate sync can run the GFS authentication probe while control-api is fenced"fiif contains 'fence_control_api()' &&@@ -215,4 +221,12 @@ elsefail "pre-gate sync lacks an explicit workflow reconciliation fence"fi+if contains 'assert_no_legacy_prompt_bridge_grants()' &&+ contains 'rollout_if_present control-plane control-postgres' &&+ contains '${KC} exec -n control-plane deployment/control-postgres'; then+ pass "legacy grant inventory waits for the Ready control-postgres deployment before exec"+else+ fail "legacy grant inventory can race a restarting or completed control-postgres pod"+fi+exit "$FAIL"