Skip to content

Evenfire is an intelligence layer platform for running LLM agents that take real actions, on your infrastructure

TypeScript

test(codex): build real Worktracker baseline locally

Alfredo Lopezab8010c27cd1
diff --git a/Makefile b/Makefile
index a0cb7572f..b12e68bc5 100644
--- a/Makefile
+++ b/Makefile
@@ -259,6 +259,10 @@ minikube-build-custom-coordinator-fixture-body:
minikube-install-627-real-tools: ## Install real Worktracker and Wikipedia baseline under the owned profile lease
@bash scripts/minikube/with-t2-mutation-lock.sh -- node scripts/e2e/install-627-real-tools.mjs
+.PHONY: minikube-build-627-worktracker
+minikube-build-627-worktracker: ## Build the reviewed Worktracker sources locally without registry credentials or publication
+ @bash scripts/minikube/with-t2-mutation-lock.sh -- bash scripts/e2e/build-627-worktracker.sh
+
.PHONY: minikube-build-codex-approved-tools-fixtures minikube-build-codex-approved-tools-fixtures-body
minikube-build-codex-approved-tools-fixtures: ## Acquire optional Codex tools fixture images before T2 reconcile
@T2_PROJECT_DIR="$(CURDIR)" T2_PROFILE="$(MINIKUBE_PROFILE)" T2_CONTEXT="$(MINIKUBE_PROFILE)" \
diff --git a/scripts/e2e/build-627-worktracker.sh b/scripts/e2e/build-627-worktracker.sh
new file mode 100644
index 000000000..fd9daa1a7
--- /dev/null
+++ b/scripts/e2e/build-627-worktracker.sh
@@ -0,0 +1,25 @@
+#!/usr/bin/env bash
+set -euo pipefail
+root="$(cd "$(dirname "$0")/../.." && pwd -P)"
+source_dir="${WORKTRACKER_SOURCE_DIR:?Provide the reviewed local Worktracker checkout}"
+revision=2b2dbd403d817fcfc20b0051a6d8ef637ee072c5
+bash "$root/scripts/minikube/require-t2-mutation-lock.sh"
+[[ "$(git -C "$source_dir" rev-parse HEAD)" == "$revision" ]]
+[[ -z "$(git -C "$source_dir" status --porcelain)" ]]
+docker_endpoint="$(node "$root/scripts/minikube/run-with-deadline.mjs" --timeout-seconds 30 --kill-grace-seconds 5 --label docker-endpoint -- docker context inspect --format '{{.Endpoints.docker.Host}}')"
+case "$docker_endpoint" in
+ unix:///*) [[ -S "${docker_endpoint#unix://}" ]] ;;
+ *) echo 'A verified local Docker Unix socket is required' >&2; exit 1 ;;
+esac
+task_docker_config="$(mktemp -d)"
+trap 'rm -rf -- "$task_docker_config"' EXIT
+printf '{"auths":{}}\n' > "$task_docker_config/config.json"
+export DOCKER_CONFIG="$task_docker_config" DOCKER_HOST="$docker_endpoint" DOCKER_BUILDKIT=1
+unset DOCKER_CONTEXT
+for service in api mcp ui; do
+ node "$root/scripts/minikube/run-with-deadline.mjs" \
+ --timeout-seconds 900 --kill-grace-seconds 5 --label "worktracker-$service-build" -- \
+ minikube --profile "${MINIKUBE_PROFILE:?}" image build \
+ --tag "clerum/issue627-worktracker-$service:${revision:0:12}" \
+ --file "$source_dir/$service/Dockerfile" "$source_dir/$service"
+done