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 “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use default concurrency value for lerna run #8462

Merged
merged 1 commit into from
Sep 6, 2024
Merged

Conversation

dlarocque
Copy link
Contributor

The default concurrency value for lerna run is the number of logical CPU cores. This is better than arbitrarily using 4 threads, since different machines may be able to handle more.

The tests were able to run faster on my machine after this, since it has 8 logical cpu cores (os.cpus().length is 8)

Related:

The default concurrency value for leran run is the number of logical CPU
cores. This is better than arbitrarily using 4 threads, since different
machines may be able to handle more.
@dlarocque dlarocque requested a review from a team as a code owner August 26, 2024 17:31
Copy link

changeset-bot bot commented Aug 26, 2024

⚠️ No Changeset found

Latest commit: 684d641

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

@google-oss-bot
Copy link
Contributor

@google-oss-bot
Copy link
Contributor

Copy link
Contributor

@hsubox76 hsubox76 left a comment

Choose a reason for hiding this comment

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

My only concern is whether this could cause increased flakiness on CI if a CI VM has more than 4 cores, since it seems more tests running concurrently sometimes causes race conditions that lead to flakiness. But I guess we can try it out and revert it if there is any significantly increased flakiness.

@dlarocque dlarocque merged commit 3670ab8 into main Sep 6, 2024
35 checks passed
@dlarocque dlarocque deleted the dl/lerna-concurrency branch September 6, 2024 15:22
dlarocque added a commit that referenced this pull request Sep 16, 2024
The default concurrency value for leran run is the number of logical CPU
cores. This is better than arbitrarily using 4 threads, since different
machines may be able to handle more.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants