Evenfire is an intelligence layer platform for running LLM agents that take real actions, on your infrastructure
TypeScript
fix(minikube): start run_t0 children without the origin/dev pin
Alfredo Lopez504cc7b8bfee
diff --git a/scripts/minikube/t2-common.sh b/scripts/minikube/t2-common.shindex 2e613f407..45b6c096a 100755--- a/scripts/minikube/t2-common.sh+++ b/scripts/minikube/t2-common.sh@@ -230,6 +230,15 @@ t2_canonical_path() {# lease validates against the pin. The pin is honored only under an inherited# lease: an exported pin cannot certify a branch against an older dev, and a# lease child that lost the pin fails instead of re-reading the moved ref.+#+# A child the lease owner starts without handing it the lease (T0 in t2.sh+# run_t0) must not inherit the pin either, or it is refused as an unleased pin.+# t2_run_outside_lease starts it without T2_PINNED_ORIGIN_DEV; the arguments+# are those of env(1), so NAME=VALUE assignments may precede the command.+t2_run_outside_lease() {+ env -u T2_PINNED_ORIGIN_DEV "$@"+}+t2_resolve_origin_dev() {local pin="${T2_PINNED_ORIGIN_DEV:-}" currentcurrent="$(git -C "$T2_PROJECT_DIR" rev-parse --verify origin/dev 2>/dev/null || true)"diff --git a/scripts/minikube/t2.sh b/scripts/minikube/t2.shindex d9bec234c..4b55eb2e3 100755--- a/scripts/minikube/t2.sh+++ b/scripts/minikube/t2.sh@@ -93,13 +93,15 @@ run_t0() {bash -n "$SCRIPT_DIR/t2-common.sh" "$SCRIPT_DIR/t2-preflight.sh" "$SCRIPT_DIR/t2.sh" \"$SCRIPT_DIR/t2-setup-handoff.sh" \"$T2_PROJECT_DIR/scripts/tests/test-minikube-t2-setup-handoff.sh"- T0_PROJECT_DIR="$T2_PROJECT_DIR" T0_ORIGIN_DEV="$T2_ORIGIN_DEV" T0_HEAD="$T2_HEAD" \+ # T0 does not hold the lease, so its children must not inherit the pinned+ # origin/dev (see t2_run_outside_lease); T0 receives it as T0_ORIGIN_DEV.+ t2_run_outside_lease T0_PROJECT_DIR="$T2_PROJECT_DIR" T0_ORIGIN_DEV="$T2_ORIGIN_DEV" T0_HEAD="$T2_HEAD" \bash "$T2_PROJECT_DIR/scripts/minikube/t0.sh"if [ -n "$T2_T0_COMMAND" ]; then- bash -c "$T2_T0_COMMAND"+ t2_run_outside_lease bash -c "$T2_T0_COMMAND"fi- bash "$T2_PROJECT_DIR/scripts/tests/test-minikube-t2-contract.sh"- bash "$T2_PROJECT_DIR/scripts/tests/test-minikube-t2-setup-handoff.sh"+ t2_run_outside_lease bash "$T2_PROJECT_DIR/scripts/tests/test-minikube-t2-contract.sh"+ t2_run_outside_lease bash "$T2_PROJECT_DIR/scripts/tests/test-minikube-t2-setup-handoff.sh"T2_T0_STATUS=PASSt2_evidence_write T0 PASS "syntax, ShellCheck when available, affected package test/build/typecheck, contract, and diff checks passed; duration=$((SECONDS - phase_started_seconds))s"}