Skip to content

Commit 5da5977

Browse files
committed
ci: add -p=1 to CoverArgs to prevent OOM with race detector
The -coverpkg=./... flag combined with -race instruments all packages in every test binary, causing excessive memory usage. Serializing test package execution with -p=1 reduces peak memory to fit within CI runner limits (Go 1.26 race detector uses more memory than 1.25).
1 parent 4e18b32 commit 5da5977

2 files changed

Lines changed: 11 additions & 0 deletions

File tree

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
{
2+
"sessionID": "ses_1cf41125affeTuqAftzDwdL4xg",
3+
"updatedAt": "2026-05-16T12:41:45.622Z",
4+
"sources": {
5+
"background-task": {
6+
"state": "idle",
7+
"updatedAt": "2026-05-16T12:41:45.622Z"
8+
}
9+
}
10+
}

targets/test/test.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ var (
3232
CoverArgs = []string{
3333
"test",
3434
"-mod=vendor",
35+
"-p=1",
3536
"-coverpkg=./...",
3637
"-covermode=atomic",
3738
"-coverprofile=coverage.txt",

0 commit comments

Comments
 (0)