2 Commits

Author SHA1 Message Date
Nico
5964ca55e1 Prepare local dev for tenant DB switching
- Add .env.local to .gitignore (gitignored local overrides for DB_HOST/DB_PORT)
- Load .env.local with override in node tests — create this file to point at
  local MariaDB (DB_HOST=localhost DB_PORT=30310) instead of VPS via WireGuard
- MariaDB NodePorts added to K8s manifests (infra/k8s/local/):
  mariadb dev: 30310, mariadb-test: 30311

Workflow: dump tenant DB → load into local mariadb pod → set .env.local → run node tests locally

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-04-03 22:19:41 +02:00
Nico
b35610cf6f Add node-level test suite for ErasExpertNode
6 tests that instantiate ErasExpertNode directly (no HTTP, no pipeline).
Assert SQL table selection, JOIN patterns, and response hygiene.
2 LLM calls per test vs 4+ for matrix — runs in ~22s total locally.
Requires pymysql in venv and DB access (WireGuard or NodePort).

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-04-03 22:12:01 +02:00