Skip to content

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

TypeScript

ci: isolate private recovery integration from public postgres lane

Josué1451aa07eb2b
diff --git a/.github/workflows/ci-public.yml b/.github/workflows/ci-public.yml
index c6e151d98..1532734f9 100644
--- a/.github/workflows/ci-public.yml
+++ b/.github/workflows/ci-public.yml
@@ -297,16 +297,18 @@ jobs:
run: npx tsc --noEmit
# ─── real-Postgres integration suites ─────────────────────────────────────
- # Runs EVERY *.realPostgres.integration suite against a real Postgres 16: the
- # DB migration plus the GFS reader-role / blob-migration / blob-reconciler /
+ # Runs repository-local *.realPostgres.integration suites against real
+ # Postgres 16: the DB migration plus the GFS reader-role / blob-migration / blob-reconciler /
# audit-evidence / copy / readiness / structural-integrity suites in
# control-api, and the rename-publication concurrency suite in gfs-controller.
- # All of them are gated on CONTROL_API_REAL_PG_ADMIN_URL and SKIP when it is
- # unset, so the matrix `npm test` never exercises them — this job is the only
- # place they actually run. Catches the exact class of failure (a config/env or
- # role/credential gap surfacing at migration or query time) that otherwise
- # only appears at deploy. Runs unconditionally in the public repo (no
- # paths-filter): correctness over CI minutes on a low-volume repo.
+ # Repository-local suites are gated on CONTROL_API_REAL_PG_ADMIN_URL and skip
+ # when it is unset, so this job runs them against real PostgreSQL 16. The
+ # cross-service password-recovery suite using the private Member Registration
+ # producer is excluded below and runs in the owner-controlled integration
+ # environment with that producer and its database. Catches the exact class of
+ # failure (a config/env or role/credential gap surfacing at migration or query
+ # time) that otherwise only appears at deploy. Runs unconditionally in the
+ # public repo (no paths-filter): correctness over CI minutes on a low-volume repo.
control-api-migration:
name: Real Postgres integration (Postgres 16)
runs-on: ubuntu-latest
@@ -366,7 +368,12 @@ jobs:
report="$(mktemp)"
trap 'rm -f "$log_file" "$normalized_log" "$report"' EXIT
test -n "${CONTROL_API_REAL_PG_ADMIN_URL}"
+ # This cross-service recovery suite uses the private Member Registration
+ # producer and its database, neither of which is available to public CI.
+ # It is run with the real producer and PostgreSQL in the dedicated local
+ # integration lane; do not replace it with a test-only token producer.
FORCE_COLOR=0 NO_COLOR=1 npm test -- --run realPostgres \
+ --exclude 'test/bug192.passwordRecovery.memberRegistration.realPostgres.integration.test.ts' \
--reporter=default --reporter=json --outputFile="$report" 2>&1 | tee "$log_file"
sed $'s/\033\\[[0-9;]*m//g' "$log_file" > "$normalized_log"
grep -Eq 'Test Files[[:space:]]+[1-9][0-9]* passed' "$normalized_log" || {