X Tutup
The Wayback Machine - https://web.archive.org/web/20220402154629/https://github.com/microsoft/TypeScript/pull/48502
Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking 鈥淪ign up for GitHub鈥, you agree to our terms of service and privacy statement. We鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Merged
merged 1 commit into from Apr 1, 2022

Conversation

RyanCavanaugh
Copy link
Member

@RyanCavanaugh RyanCavanaugh commented Mar 31, 2022

馃敟馃捇馃敟

@typescript-bot typescript-bot added Author: Team For Uncommitted Bug labels Mar 31, 2022
@@ -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),
Copy link
Member

@weswigham weswigham Mar 31, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

|| 1, just in case someone's running inside a vm with a single core allocated. Nice.

@RyanCavanaugh RyanCavanaugh merged commit 9153eaa into microsoft:main Apr 1, 2022
10 checks passed
@RyanCavanaugh RyanCavanaugh deleted the save-a-core branch Apr 1, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Author: Team For Uncommitted Bug
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants
X Tutup