Skip to content

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

TypeScript

chore(minikube): retain dev real-postgres requirement files

Alfredo Lopezf50f3b1c3abc
diff --git a/control-api/test/realPostgres.requirement.ts b/control-api/test/realPostgres.requirement.ts
new file mode 100644
index 000000000..ec96dcc66
--- /dev/null
+++ b/control-api/test/realPostgres.requirement.ts
@@ -0,0 +1,11 @@
+/**
+ * Real-Postgres suites are intentionally opt-in for the ordinary unit matrix.
+ * A gate that explicitly requests them must never turn a missing DSN into a
+ * green run with skipped files.
+ */
+if (
+ process.env.CONTROL_API_REAL_PG_REQUIRED === '1' &&
+ !process.env.CONTROL_API_REAL_PG_ADMIN_URL
+) {
+ throw new Error('CONTROL_API_REAL_PG_ADMIN_URL is required when CONTROL_API_REAL_PG_REQUIRED=1')
+}
diff --git a/gfs-controller/test/realPostgres.requirement.ts b/gfs-controller/test/realPostgres.requirement.ts
new file mode 100644
index 000000000..3f51cd62b
--- /dev/null
+++ b/gfs-controller/test/realPostgres.requirement.ts
@@ -0,0 +1,12 @@
+/**
+ * Real-Postgres suites remain opt-in for the normal unit matrix, but an
+ * explicit T1 gate must fail rather than silently report a skipped suite.
+ */
+if (
+ process.env.CONTROL_API_REAL_PG_REQUIRED === '1' &&
+ !process.env.CONTROL_API_REAL_PG_ADMIN_URL
+) {
+ throw new Error(
+ 'CONTROL_API_REAL_PG_ADMIN_URL is required when CONTROL_API_REAL_PG_REQUIRED=1'
+ )
+}