fix(test): pin real-PI DATA_DIR to runner-mounted data/dev

go test under internal/server previously preferred package-local
data/test, so materials never reached the pi-agent bind mount and
intake quality gates failed closed on empty sandboxes.
This commit is contained in:
WeiCHEN
2026-09-22 19:40:28 +08:00
parent 3df99cf509
commit 63f8cfebe7
3 changed files with 88 additions and 12 deletions
+4
View File
@@ -127,6 +127,10 @@ export RUNNER_AUTH_TOKEN="${TOKEN}"
export PI_AGENT_MODEL="${MODEL_ID}"
export RUN_PI_E2E=1
export KB_REQUIRE_ONLINE="${KB_REQUIRE_ONLINE:-1}"
# Host Go tests must write workspaces into the same tree the runner mounts
# (docker-compose.dev.yml: ./data/dev/workspaces → /app/data/workspaces).
export DATA_DIR="${DATA_DIR:-${ROOT}/data/dev}"
echo "==> DATA_DIR=${DATA_DIR}"
# Shared KB preflight (host :5432). Fail closed unless KB_ALLOW_OFFLINE=1.
preflight_shared_kb() {