ci: extend macOS race test budget

This commit is contained in:
chichuan
2026-08-04 17:23:04 +08:00
parent eb571e6e73
commit c1f96241af
2 changed files with 11 additions and 1 deletions
+1 -1
View File
@@ -694,7 +694,7 @@ jobs:
go-version-file: go.mod
- name: Test macOS auth and Keychain paths with Race Detection
run: go test -v -race -count=1 -timeout=10m ./internal/keychain ./internal/auth ./internal/app
run: go test -v -race -count=1 -timeout=12m ./internal/keychain ./internal/auth ./internal/app
test-windows:
name: Test (Windows)
+10
View File
@@ -537,6 +537,16 @@ func TestChangelogPRFastPathWorkflowContract(t *testing.T) {
t.Error("full race shards must retain enough package-level time for internal/app")
}
darwinStart := strings.Index(admission, "\n test-darwin:\n")
darwinEnd := strings.Index(admission, "\n test-windows:\n")
if darwinStart < 0 || darwinEnd <= darwinStart {
t.Fatal("Code Admission workflow missing macOS test job boundaries")
}
darwinJob := admission[darwinStart:darwinEnd]
if !strings.Contains(darwinJob, `go test -v -race -count=1 -timeout=12m ./internal/keychain ./internal/auth ./internal/app`) {
t.Error("macOS race tests must retain enough package-level time for internal/app")
}
coverageStart := strings.Index(admission, "\n coverage:\n")
coverageEnd := strings.Index(admission, "\n policy:\n")
if coverageStart < 0 || coverageEnd <= coverageStart {