From c1f96241afa1720543a036dd675b6900a0605de1 Mon Sep 17 00:00:00 2001 From: chichuan Date: Tue, 4 Aug 2026 17:23:04 +0800 Subject: [PATCH] ci: extend macOS race test budget --- .github/workflows/ci.yml | 2 +- test/scripts/changelog_pr_gate_test.go | 10 ++++++++++ 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 6e3df6c7..7edd3f3a 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -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) diff --git a/test/scripts/changelog_pr_gate_test.go b/test/scripts/changelog_pr_gate_test.go index 8418b64a..af42e8c8 100644 --- a/test/scripts/changelog_pr_gate_test.go +++ b/test/scripts/changelog_pr_gate_test.go @@ -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 {