Reserve a core in runtests-parallel on non-CI machines (#48502)

This commit is contained in:
Ryan Cavanaugh 2022-03-31 21:27:58 -07:00 committed by GitHub
parent 70585aa0c0
commit 9153eaaee0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -31,7 +31,7 @@ module.exports = minimist(process.argv.slice(2), {
reporter: process.env.reporter || process.env.r,
lint: process.env.lint || true,
fix: process.env.fix || process.env.f,
workers: process.env.workerCount || os.cpus().length,
workers: process.env.workerCount || ((os.cpus().length - (process.env.CI ? 0 : 1)) || 1),
failed: false,
keepFailed: false,
lkg: true,