🐛 fix(ci): enable BDD_SCHEMA_ISOLATION to prevent flaky AuthBDD failures #26
Reference in New Issue
Block a user
Delete Branch "fix/ci-bdd-schema-isolation"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
CI was failing intermittently on AuthBDD scenarios due to test state pollution. ADR-0025 (per-scenario schema isolation) is fully implemented but opt-in via
BDD_SCHEMA_ISOLATION=true. CI didn't set this flag.Evidence of flakiness
0abc383Different scenarios fail in each run = classic shared-state issue.
Fix
Single line added to
.gitea/workflows/ci-cd.yaml:export BDD_SCHEMA_ISOLATION=truebefore therun-bdd-tests.shinvocation.This activates the
SetupScenarioSchema()/TeardownScenarioSchema()hooks already implemented inpkg/bdd/suite.go.Out of scope
Test plan
Diagnosed during the 2026-05-03 autonomous trainer session.