- Gate slow git E2E tests with testing.Short() (saves ~5s) - Use shallow/shared clones for test repos - Disable git hooks in test setup (major speedup) - Reduce sync rounds from 3→1 (2 for dedup test) - Add git speed configs (gc.auto=0, fsync=false, gpgSign=false) Results: - cmd/bd tests: 41s → 33s with -short (~20% faster) - Full suite: >300s timeout → ~40s (no timeout!) - E2E tests: 2-3s each → skipped with -short Run full E2E tests with: go test ./... Run fast tests with: go test -short ./...
11 KiB
11 KiB