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

fix: prevent 100% CPU usage in large-scale test suites #606

Merged
merged 1 commit into from
Jul 26, 2024
Merged

Conversation

wellwelwel
Copy link
Owner

@wellwelwel wellwelwel commented Jul 26, 2024

Fixes #603.

  • It's still possible to set concurrency to unlimited by manually setting it to 0.
  • The concurrency limit also apply to the watch mode.

@wellwelwel wellwelwel marked this pull request as ready for review July 26, 2024 06:12
Copy link

codecov bot commented Jul 26, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 97.85%. Comparing base (2c002c0) to head (05e174e).

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #606      +/-   ##
==========================================
- Coverage   97.94%   97.85%   -0.10%     
==========================================
  Files          26       26              
  Lines        2188     2189       +1     
  Branches      432      399      -33     
==========================================
- Hits         2143     2142       -1     
- Misses         39       41       +2     
  Partials        6        6              
Flag Coverage Δ
linux 97.85% <100.00%> (-0.10%) ⬇️
osx 97.85% <100.00%> (-0.10%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@wellwelwel wellwelwel merged commit 382631b into main Jul 26, 2024
27 checks passed
@wellwelwel wellwelwel deleted the concurrency branch July 26, 2024 06:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Use os.availableParallelism() to calculate default concurrency
1 participant