Skip to content

gh-109276: libregrtest: limit number workers #109288

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

Merged
merged 1 commit into from
Sep 12, 2023

Conversation

vstinner
Copy link
Member

@vstinner vstinner commented Sep 11, 2023

Don't spawn more threads than the number of jobs: these worker threads would never get anything to do.

Add RunTests.get_jobs() method.

Don't spawn more threads than the number of jobs: these worker
threads would never get anything to do.

* Add the number of tests in "Run ... tests in ..." message.
* Add RunTests.get_jobs() method.
* Add plural() function.
* count() uses f-string.
@vstinner vstinner force-pushed the regrtest_num_workers branch from 5cc6ae9 to b68232c Compare September 12, 2023 02:56
@vstinner vstinner enabled auto-merge (squash) September 12, 2023 03:34
@vstinner vstinner merged commit 8c813fa into python:main Sep 12, 2023
@vstinner vstinner deleted the regrtest_num_workers branch September 12, 2023 03:47
vstinner added a commit to vstinner/cpython that referenced this pull request Sep 13, 2023
Don't spawn more threads than the number of jobs: these worker
threads would never get anything to do.

* Add the number of tests in "Run ... tests in ..." message.
* Add RunTests.get_jobs() method.
* Add plural() function.
* count() uses f-string.
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.

1 participant