Skip to content
This repository has been archived by the owner on Oct 14, 2023. It is now read-only.

Enable faster parallel testing #1556

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

s-m-e
Copy link
Contributor

@s-m-e s-m-e commented Jul 23, 2022

It automatically scales to the number of cores that a machine has, so it should not break single-core-CI. As a bonus, if you have a laptop, it checks if its cooling is sufficient ;)

For this change to take effect, cached tox environments must be updated or removed and recreated.

Nice to have on a few more cores. tox -e py310-fast passes in 1:24 without and in 0:41 with this change applied on my system. "Your mileage may vary."

Copy link
Member

@astrojuanlu astrojuanlu left a comment

Choose a reason for hiding this comment

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

Nice! I recall talking about this some months ago, and @jorgepiloto and I discussed it last week again.

However, this did make CI a bit more than 1.5x slower, so I'd rather find another solution. Besides, it would be nice to have this for -slow tests too. I think there are other ways to achieve this in tox.ini, I can investigate a bit.

@s-m-e
Copy link
Contributor Author

s-m-e commented Jul 23, 2022

Quick and dirty: Add a (parallel) veryfast target, leave the fast target as it is?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants