Files
dance-lessons-coach/scripts/validate-test-suite.sh
Gabriel Radureau 98596f42d7
Some checks failed
CI/CD Pipeline / Build Docker Cache (push) Successful in 9s
CI/CD Pipeline / CI Pipeline (push) Failing after 4m20s
feat: add schema-per-scenario isolation with BDD_SCHEMA_ISOLATION env var
- Add BDD_SCHEMA_ISOLATION env var to enable PostgreSQL schema-per-scenario isolation
- Generate unique schema names: test_{sha256(feature:scenario)[:8]}
- Implement SetupScenarioSchema() and TeardownScenarioSchema() with search_path handling
- Add CASCADE drop to clean up all scenario-created DB objects
- Add isSchemaIsolationEnabled() helpers to both suite.go and server.go
- Skip table clearing when schema isolation is active (schema drop replaces it)
- Update validate-test-suite.sh to set FIXED_TEST_PORT and BDD_SCHEMA_ISOLATION
- Add isCleanupLoggingEnabled() for optional CLEANUP: prefixed logs
- Add ADR 0025 documenting all isolation strategies and decision rationale

Activation:
  BDD_SCHEMA_ISOLATION=true - Enable schema-per-scenario isolation
  BDD_ENABLE_CLEANUP_LOGS=true - Enable verbose cleanup/isolation logging

Generated by Mistral Vibe.
Co-Authored-By: Mistral Vibe <vibe@mistral.ai>
2026-04-10 23:07:50 +02:00

5.7 KiB
Executable File