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

Parallelize Tests #932

Merged
merged 1 commit into from
Jul 16, 2023
Merged

Parallelize Tests #932

merged 1 commit into from
Jul 16, 2023

Conversation

rahulsom
Copy link
Contributor

@rahulsom rahulsom commented Jul 16, 2023

This will use all available cores to run tests, and parallelize by all - suite/class/method. On machines with multiple cores, this will vastly improve test performance. These times are on my M1 MBP with 10 (8P + 2E) cores. They were reported by maven on running mvn verify.

I first ran mvn verify and ignored the time.
Then I ran it thrice without this change, and thrice with this change.

All times in seconds.

Run 1 Run 2 Run 3 Average
Before 74 72 73 73
After 68 68 68 68
Savings 5
% 7

Testing done

All existing tests run

Submitter checklist

This will use all available cores to run tests, and parallelize by all - suite/class/method.
On machines with multiple cores, this will vastly improve test performance.
These times are on my M1 MBP with 10 (8P + 2E) cores. They were reported by maven on running `mvn verify`.

I first ran `mvn verify` and ignored the time.
Then I ran it thrice without this change, and thrice with this change.

All times in seconds.

|        | Run 1 | Run 2 | Run 3 | Average |
| ------ | ----: | ----: | ----: | ------: |
| Before |    74 |    72 |    73 |      73 |
| After  |    68 |    68 |    68 |      68 |
| Savings|       |       |       |       5 |
| %      |       |       |       |       7 |
@codecov
Copy link

codecov bot commented Jul 16, 2023

Codecov Report

Merging #932 (848f6ce) into master (98d6c78) will not change coverage.
The diff coverage is n/a.

@@            Coverage Diff            @@
##             master     #932   +/-   ##
=========================================
  Coverage     92.89%   92.89%           
  Complexity     2322     2322           
=========================================
  Files           341      341           
  Lines          6450     6450           
  Branches        669      669           
=========================================
  Hits           5992     5992           
  Misses          262      262           
  Partials        196      196           

📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more

@uhafner uhafner added the tests Enhancement of tests label Jul 16, 2023
@uhafner uhafner changed the title chore: Parallelize Tests Parallelize Tests Jul 16, 2023
@uhafner uhafner merged commit ede6ea0 into jenkinsci:master Jul 16, 2023
25 of 26 checks passed
@uhafner
Copy link
Member

uhafner commented Jul 16, 2023

Thanks! Maybe I should make this a default in all my projects...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
tests Enhancement of tests
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants