Evenfire is an intelligence layer platform for running LLM agents that take real actions, on your infrastructure
TypeScript
fix(minikube): restore gfs runtime after real pg tests
Alfredo Lopez3475e432d733
diff --git a/scripts/e2e/minikube-real-postgres.sh b/scripts/e2e/minikube-real-postgres.shindex adce83f13..7d627fade 100755--- a/scripts/e2e/minikube-real-postgres.sh+++ b/scripts/e2e/minikube-real-postgres.sh@@ -27,6 +27,7 @@ T1_NEXT_COMMAND='repair the first reported Real PostgreSQL precondition, then reT1_TOTAL_TESTS=0T1_PASSED_TESTS=0T1_PENDING_TESTS=0+T1_GFS_RESTORE_REQUIRED=falsedie_t1() {local code="$1"@@ -49,6 +50,12 @@ cleanup_t1() {wait "$PORT_FORWARD_PID" >/dev/null 2>&1 || truefifi+ if [ "$T1_GFS_RESTORE_REQUIRED" = true ] && \+ ! GFS_RESTORE_ACTIVE_NOLOGIN=true CONTEXT="$T2_CONTEXT" \+ bash "$PROJECT_DIR/deploy/scripts/reconcile-gfs-deploy-credentials.sh"; then+ printf '[minikube-t1] ERROR: failed to restore branch-profile GFS credentials\n' >&2+ status=1+ fiif [ -n "$T1_TMP_DIR" ] && [ -d "$T1_TMP_DIR" ]; then rm -rf "$T1_TMP_DIR"; fiexit "$status"}@@ -241,6 +248,12 @@ main() {T1_NEXT_COMMAND='repair the profile-owned port-forward and re-run T1'die_t1 REAL_PG_REQUIRED_BUT_UNAVAILABLE 'control-postgres port-forward exited before the T1 lane started'fi+ if t2_kc -n gfs get secret gfs-controller-db >/dev/null 2>&1; then+ # Real role-contract suites intentionally leave their cluster-global GFS+ # roles NOLOGIN during teardown. Restore the branch profile before T1+ # exits so the following T2 gate observes the production-like runtime.+ T1_GFS_RESTORE_REQUIRED=true+ fiADMIN_DSN="$(printf '%s\0%s\0%s' "$PG_USER" "$PG_PASSWORD" "$LOCAL_PORT" | python3 -c 'from urllib.parse import quotediff --git a/scripts/tests/test-minikube-t2-contract.sh b/scripts/tests/test-minikube-t2-contract.shindex 2bb96a16a..65408f82c 100755--- a/scripts/tests/test-minikube-t2-contract.sh+++ b/scripts/tests/test-minikube-t2-contract.sh@@ -35,6 +35,8 @@ grep -Fq 'pending_tests' "$T1"grep -Fq 'numTotalTests' "$T1"grep -Fq 'numTotalTestSuites' "$T1"grep -Fq 'passed_suites' "$T1"+grep -Fq 'GFS_RESTORE_ACTIVE_NOLOGIN=true' "$T1"+grep -Fq 'reconcile-gfs-deploy-credentials.sh' "$T1"if grep -Fq "[ \"\$passed_files\" -ne \"\$expected\" ]" "$T1"; thenecho 'FAIL: T1 compares Vitest nested suite counts to physical file counts' >&2exit 1