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 more memory for the CI: 10cores/40GB and set the Jest maxWorkers to 8 (#cores-2) #4583

Merged
merged 2 commits into from Feb 28, 2024

Conversation

saberduck
Copy link
Contributor

@saberduck saberduck commented Feb 27, 2024

When using the % in the Jest maxWorkers parameters, it computes the number of cores from an unknown number, not the cpu parameter we provide to the Cirrus node!

So we decided for 4GB of RAM per core as that's the default RAM per node process and set the jest maxWorkers option to: #cores-2 = 8

https://jestjs.io/docs/cli#--maxworkersnumstring

Copy link

Quality Gate passed Quality Gate passed

Issues
0 New issues
0 Fixed issues
0 Accepted issues

Measures
0 Security Hotspots
No data about Coverage
No data about Duplication

See analysis details on SonarQube

@ilia-kebets-sonarsource ilia-kebets-sonarsource marked this pull request as ready for review February 28, 2024 10:48
@ilia-kebets-sonarsource ilia-kebets-sonarsource changed the title Use more memory for build Use more memory for build: 10cores/40GB and set the Jest maxWorkers to 8 (#cores-2) Feb 28, 2024
@ilia-kebets-sonarsource ilia-kebets-sonarsource changed the title Use more memory for build: 10cores/40GB and set the Jest maxWorkers to 8 (#cores-2) Use more memory for the CI: 10cores/40GB and set the Jest maxWorkers to 8 (#cores-2) Feb 28, 2024
Copy link
Contributor

@ilia-kebets-sonarsource ilia-kebets-sonarsource left a comment

Choose a reason for hiding this comment

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

LGTM!

@ilia-kebets-sonarsource ilia-kebets-sonarsource merged commit 000edbb into master Feb 28, 2024
18 checks passed
@ilia-kebets-sonarsource ilia-kebets-sonarsource deleted the update_resources branch February 28, 2024 10:54
@ilia-kebets-sonarsource ilia-kebets-sonarsource changed the title Use more memory for the CI: 10cores/40GB and set the Jest maxWorkers to 8 (#cores-2) Use more memory for the CI: 10cores/40GB and set the Jest maxWorkers to 8 (#cores-2) Feb 28, 2024
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.

None yet

2 participants