Run make in parallel instead of adding cpus to tests #2892
Closed
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Running tests locally, I noticed that setting "EACH_MODULE_CONCURRENCY" had little effect on how fast we run the tests. I suspect the likely reason is that tests are small, so trying to parallelize something that takes half a second to run achieves very little.
I did notice that running
make
with the-j
flag (for--jobs
) speeds this up quite a bit. Locally I run it with the output ofnproc
, but on GitHub runners I ran it with "4" since both Windows and Ubuntu runners have 4 cores https://docs.github.com/en/actions/using-github-hosted-runners/using-github-hosted-runners/about-github-hosted-runners#standard-github-hosted-runners-for-public-repositoriesVerified that locally this runs significantly faster, will use this last run as a reference to see how much faster (or slower) these tests run https://github.com/aws/aws-sdk-go-v2/actions/runs/11726345786