Skip to content

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

TypeScript

fix(harness): require node 24 for canonical gates

Alfredo Lopez38cd312d75f5
diff --git a/scripts/e2e/real-postgres-local-preflight.sh b/scripts/e2e/real-postgres-local-preflight.sh
index fa653dae9..ba4acb104 100755
--- a/scripts/e2e/real-postgres-local-preflight.sh
+++ b/scripts/e2e/real-postgres-local-preflight.sh
@@ -40,9 +40,12 @@ real_pg_local_preflight() {
done
node_major="$(node -p 'Number(process.versions.node.split(".")[0])' 2>/dev/null || true)"
- if ! [[ "$node_major" =~ ^[0-9]+$ ]] || (( node_major < 24 )); then
+ # CI and the local runtime contract pin Node 24. Newer majors have already
+ # changed deep-JSON behavior and must fail before T0 rather than pass the
+ # old ">=24" check and break package suites mid-flight.
+ if ! [[ "$node_major" =~ ^[0-9]+$ ]] || (( node_major != 24 )); then
real_pg_preflight_fail LOCAL_DEPENDENCY_MISSING \
- "Node.js >=24 is required for T1; found ${node_major:-unknown}"
+ "Node.js 24.x is required for the canonical T0/T1/T2 harness; found ${node_major:-unknown}"
return 1
fi