diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index f436d5053..64815e770 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -138,7 +138,8 @@ jobs: - name: Race + shuffle run: | go list ./... | grep -v '/frontend/node_modules/' > /tmp/go-packages.txt - go test -race -shuffle=on -count=1 $(cat /tmp/go-packages.txt) + # internal/web/service runs ~10x slower under -race and overruns the 10m default. + go test -race -shuffle=on -count=1 -timeout 25m $(cat /tmp/go-packages.txt) # Brief native-fuzz smoke on the security-/parser-critical decoders. Each runs the # generated corpus plus 30s of exploration; a crash here is a real input-handling bug. diff --git a/Makefile b/Makefile index c177f8412..8b36b610d 100644 --- a/Makefile +++ b/Makefile @@ -54,8 +54,9 @@ test-go: dist-stub ## Go tests (shuffle, no cache) go test -shuffle=on -count=1 $(GO_PKGS) .PHONY: race +# internal/web/service runs ~10x slower under -race and overruns go test's 10m default. race: dist-stub ## Go tests with the race detector (needs a C compiler) - go test -race -shuffle=on -count=1 $(GO_PKGS) + go test -race -shuffle=on -count=1 -timeout 25m $(GO_PKGS) .PHONY: test-fe test-fe: ## Frontend tests (vitest)