Evenfire is an intelligence layer platform for running LLM agents that take real actions, on your infrastructure
TypeScript
test(minikube): model mutation lease in image verifier fixture
Alfredo Lopez2c4e64c4525f
diff --git a/scripts/tests/test-minikube-verify-images.sh b/scripts/tests/test-minikube-verify-images.shindex 29ba13862..28251f4cf 100755--- a/scripts/tests/test-minikube-verify-images.sh+++ b/scripts/tests/test-minikube-verify-images.sh@@ -94,6 +94,12 @@ STUB#!/usr/bin/env bashprintf '%s\n' "$*" >>"${TEST_LOG_FILE:?}"case "${1:-}" in+ context)+ case "$*" in+ *SkipTLSVerify*) printf 'unix:///tmp/evenfire-docker.sock\tfalse\t{}\n' ;;+ *) printf 'unix:///tmp/evenfire-docker.sock\n' ;;+ esac+ ;;inspect) echo "sha256:deadbeef0000cafedeadbeef0000cafedeadbeef" ;;images) echo "sha256:deadbeef0000" ;;esac@@ -114,6 +120,21 @@ prepare_repo() {rm -rf "$d/repo/deploy/minikube"}+# Full and --only builds are mutation paths and now require the inherited T2+# lease. This fixture is intentionally not a Git worktree or a live profile, so+# those two manifest-writer cases inject a no-op lease boundary below. The real+# ownership/lock contract is exercised separately by+# test-minikube-build-images-hardening.sh.+write_fixture_mutation_lock_stub() {+ local d=$1+ cat > "$d/repo/scripts/minikube/require-t2-mutation-lock.sh" <<'STUB'+#!/usr/bin/env bash+set -euo pipefail+exit 0+STUB+ chmod +x "$d/repo/scripts/minikube/require-t2-mutation-lock.sh"+}+# $2 is the newline-separated set of refs the stubbed daemon holds.## MINIKUBE_IMAGE_TAG is passed EXPLICITLY, defaulting to empty, so a value@@ -295,8 +316,12 @@ assert_a_full_build_records_local_and_the_verifier_reads_it_back() {local d build_rc out rc recordedd="$(mktemp -d)"prepare_repo "$d"+ write_fixture_mutation_lock_stub "$d"write_present_json "$d/present.json" "$(all_local_refs)"PATH="$d/bin:$PATH" TEST_LOG_FILE="$d/ops.log" TEST_PRESENT_JSON="$d/present.json" \+ T2_PROJECT_DIR="$d/repo" T2_PROFILE=clerum-test T2_CONTEXT=clerum-test \+ MINIKUBE_PROFILE=clerum-test CONTROL_API_REAL_PG_CONTEXT=clerum-test \+ DOCKER_HOST=unix:///tmp/evenfire-docker.sock \MINIKUBE_PRELOAD_BASE_IMAGES=false \bash "$d/repo/scripts/minikube/build-images.sh" --skip-public >"$d/build.out" 2>&1build_rc=$?@@ -323,9 +348,13 @@ assert_an_only_build_carries_the_recorded_mode_forward() {local d build_rc recordedd="$(mktemp -d)"prepare_repo "$d"+ write_fixture_mutation_lock_stub "$d"write_recorded_manifest "$d" '{"generated":"x","profile":"clerum-test","imageSource":"ghcr","images":{}}'write_present_json "$d/present.json" "$(all_local_refs)"PATH="$d/bin:$PATH" TEST_LOG_FILE="$d/ops.log" TEST_PRESENT_JSON="$d/present.json" \+ T2_PROJECT_DIR="$d/repo" T2_PROFILE=clerum-test T2_CONTEXT=clerum-test \+ MINIKUBE_PROFILE=clerum-test CONTROL_API_REAL_PG_CONTEXT=clerum-test \+ DOCKER_HOST=unix:///tmp/evenfire-docker.sock \MINIKUBE_PRELOAD_BASE_IMAGES=false \bash "$d/repo/scripts/minikube/build-images.sh" --only=workflow-custom-sdk-e2e \>"$d/build.out" 2>&1