Evenfire is an intelligence layer platform for running LLM agents that take real actions, on your infrastructure
TypeScript
test(pr-416): update pre-gate state contract
Alfredo Lopeza0621eba4e1f
diff --git a/scripts/tests/test-minikube-pre-gate-sync-state.sh b/scripts/tests/test-minikube-pre-gate-sync-state.shindex 3af20ddeb..3e6b7a063 100755--- a/scripts/tests/test-minikube-pre-gate-sync-state.sh+++ b/scripts/tests/test-minikube-pre-gate-sync-state.sh@@ -64,7 +64,8 @@ elsefail "evenfire registry deploy helper has invalid bash syntax"fi-if contains 'WORKTREE_ID="$(printf '\''%s'\'' "${PROJECT_DIR}" | shasum | awk '\''{print $1}'\'')"' &&+if contains 'source "$SCRIPT_DIR/t2-worktree-id.sh"' &&+ contains 'WORKTREE_ID="$(t2_worktree_id "${PROJECT_DIR}")"' &&contains 'STATE_DIR="${STATE_ROOT}/${WORKTREE_ID}"' &¬_contains 'STATE_DIR="${TMPDIR:-/tmp}/clerum-pre-gate-sync"'; thenpass "pre-gate sync state is scoped per worktree"@@ -72,11 +73,12 @@ elsefail "pre-gate sync state can be shared across worktrees"fi-if contains 'cluster_marker_matches()' &&+if contains 'cluster_marker_value()' &&+ contains 'cluster_marker_matches()' &&contains 'persist_cluster_marker()' &&contains '--from-literal=clusterFingerprint=' &&contains '--from-literal=worktreeId=' &&- contains "-o jsonpath='{.data.gitHead}'" &&+ contains '-o "jsonpath={.data.${field}}"' &&contains 'actual_git_head' &¬_contains '--from-literal=worktreePath='; thenpass "pre-gate sync records and verifies a non-sensitive cluster marker"