Skip to content

Commit 1dfb1ce

Browse files
committed
fix: remove --test-concurrency from test:coverage to stabilize CI
Coverage runs are CPU-bound; forcing 32 concurrent processes on a 4-CPU CI runner causes timer contention in runtime-monitor tests, dropping line coverage below the 95% gate. Plain tests keep --test-concurrency=32 because they are I/O-bound (sleeping in setTimeout).
1 parent bc4e375 commit 1dfb1ce

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

packages/agent/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@
4040
"format:check": "prettier --check .",
4141
"test": "node --test --test-concurrency=32 --experimental-strip-types tests/**/*.test.ts tests/*.test.ts",
4242
"test:watch": "node --test --test-concurrency=32 --experimental-strip-types --watch tests/**/*.test.ts tests/*.test.ts",
43-
"test:coverage": "node --test --test-concurrency=32 --experimental-test-coverage --test-coverage-lines=95 --test-coverage-functions=90 --test-coverage-branches=90 --experimental-strip-types tests/**/*.test.ts tests/*.test.ts",
43+
"test:coverage": "node --test --experimental-test-coverage --test-coverage-lines=95 --test-coverage-functions=90 --test-coverage-branches=90 --experimental-strip-types tests/**/*.test.ts tests/*.test.ts",
4444
"validate": "pnpm run typecheck && pnpm run lint && pnpm run format:check && pnpm run test:coverage",
4545
"prepublishOnly": "node -e \"require('fs').copyFileSync('../../README.md','./README.md')\" && pnpm run build",
4646
"postpublish": "node -e \"require('fs').unlinkSync('./README.md')\""

0 commit comments

Comments
 (0)