fix: add test parallelism and increase Windows CI timeout

- Increase Windows test timeout from 20m to 30m
- Add -parallel=4 flag to allow concurrent test execution
- Add t.Parallel() to safe table-driven tests in validate_test.go,
  autoimport_test.go, and sync_test.go

This should prevent the Windows CI timeout caused by the cumulative
runtime of cmd/bd tests exceeding 20 minutes.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
Steve Yegge
2025-12-03 18:30:53 -08:00
parent 76f7341cf4
commit 6267f3b7f5
4 changed files with 24 additions and 1 deletions

View File

@@ -9,6 +9,7 @@ import (
)
func TestParseChecks(t *testing.T) {
t.Parallel()
tests := []struct {
name string
input string
@@ -63,7 +64,9 @@ func TestParseChecks(t *testing.T) {
}
for _, tt := range tests {
tt := tt // capture range variable
t.Run(tt.name, func(t *testing.T) {
t.Parallel()
got, err := parseChecks(tt.input)
if tt.wantError {
if err == nil {
@@ -88,6 +91,7 @@ func TestParseChecks(t *testing.T) {
}
func TestValidationResultsHasFailures(t *testing.T) {
t.Parallel()
tests := []struct {
name string
checks map[string]checkResult
@@ -125,7 +129,9 @@ func TestValidationResultsHasFailures(t *testing.T) {
}
for _, tt := range tests {
tt := tt // capture range variable
t.Run(tt.name, func(t *testing.T) {
t.Parallel()
r := &validationResults{checks: tt.checks}
got := r.hasFailures()
if got != tt.want {
@@ -136,6 +142,7 @@ func TestValidationResultsHasFailures(t *testing.T) {
}
func TestValidationResultsToJSON(t *testing.T) {
t.Parallel()
r := &validationResults{
checks: map[string]checkResult{
"orphans": {