Replace database-per-test with Dolt branch-per-test using COW snapshots for three internal packages. Each TestMain creates one shared database with committed schema; each test branches from main via DOLT_CHECKOUT with MaxOpenConns=1 for session-level isolation. New infrastructure: - testutil.StartTestBranch / CleanTestBranches / SetupSharedTestDB - dolt.Config.MaxOpenConns field wired into openServerConnection - dolt.CreateIgnoredTables for wisps tables (not in commits) cmd/bd and doctor packages stay on database-per-test because they reopen stores from metadata.json via NewFromConfig, which creates new connections on main branch. Closes: bd--6tf4 Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com> Executed-By: beads/crew/emma Rig: beads Role: crew |
||
|---|---|---|
| .. | ||
| engine.go | ||
| engine_test.go | ||
| registry.go | ||
| registry_test.go | ||
| testmain_test.go | ||
| tracker.go | ||
| types.go | ||