From b38fa45303a53d73edde991369f84b40f1ce8235 Mon Sep 17 00:00:00 2001 From: Ignacio Van Droogenbroeck Date: Mon, 2 Mar 2026 15:07:38 -0600 Subject: [PATCH] fix(ci): prevent race test OOM and fix cross-platform check (#33) - Add -count=1 -timeout=5m to race tests to prevent unbounded runs - Set GOGC=50 in CI to reduce memory pressure under the race detector - Change cross-platform step from go test (requires runner) to go vet (compile-only check) --- .github/workflows/build.yml | 2 ++ Makefile | 4 ++-- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index a496b67..215e000 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -25,3 +25,5 @@ jobs: - name: Test run: make test + env: + GOGC: 50 diff --git a/Makefile b/Makefile index e9aade7..674eb3f 100644 --- a/Makefile +++ b/Makefile @@ -1,6 +1,6 @@ test: go test ./... - go test ./... -short -race + go test ./... -short -race -count=1 -timeout=5m go test ./... -run=NONE -bench=. -benchmem - env GOOS=linux GOARCH=386 go test ./... + env GOOS=linux GOARCH=386 go vet ./... go vet