Skip to content

Commit 9153eaa

Browse files
Reserve a core in runtests-parallel on non-CI machines (microsoft#48502)
1 parent 70585aa commit 9153eaa

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: scripts/build/options.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ module.exports = minimist(process.argv.slice(2), {
3131
reporter: process.env.reporter || process.env.r,
3232
lint: process.env.lint || true,
3333
fix: process.env.fix || process.env.f,
34-
workers: process.env.workerCount || os.cpus().length,
34+
workers: process.env.workerCount || ((os.cpus().length - (process.env.CI ? 0 : 1)) || 1),
3535
failed: false,
3636
keepFailed: false,
3737
lkg: true,

0 commit comments

Comments
 (0)