Skip to content

Speed up parallel_tests by splitting integration tests. - #1156

Merged
MikeMcQuaid merged 2 commits into
Homebrew:masterfrom
reitermarkus:split-integration-tests
Sep 27, 2016
Merged

MikeMcQuaid merged 2 commits into
Homebrew:masterfrom
reitermarkus:split-integration-tests

Conversation

@reitermarkus

Copy link
Copy Markdown
Member
  • Have you followed the guidelines in our Contributing document?
  • Have you checked to ensure there aren't other open Pull Requests for the same change?
  • Have you added an explanation of what your changes do and why you'd like us to include them?
  • Have you written new tests for your changes? Here's an example.
  • Have you successfully run brew tests with your changes locally?

brew tests on my iMac Core i5:

  • before: ~105 seconds
  • after: ~45 seconds

Damn.

@reitermarkus reitermarkus mentioned this pull request Sep 26, 2016
4 of 5 tasks
@MikeMcQuaid

Copy link
Copy Markdown
Member

Nice. I think if there's existing files like e.g. bottle_tests.rb it's worth integrating them in there and otherwise creating a new bottle_tests.rb rather than having dedicated integration tests files.

@alyssais

Copy link
Copy Markdown
Contributor

Took 14 min on master

:O

@reitermarkus

Copy link
Copy Markdown
Member Author

if there's existing files like e.g. bottle_tests.rb it's worth integrating them in there

I think this would be counter-productive, as this would again result in less files being split across multiple processes.

@alyssais

Copy link
Copy Markdown
Contributor

@reitermarkus I don't think it would make much of a difference. The issue before wasn't so much that the files weren't small enough; it was that a single file took longer to run than all the other ones combined. As long as that doesn't happen again, the difference between the way it is now and if some of the tests were moved back in to several other files should be negligible.

@reitermarkus

Copy link
Copy Markdown
Member Author

I don't think it would make much of a difference.

Yes, probably not. Renamed/merged the integration test files with existing files now.

@apjanke

apjanke commented Sep 26, 2016

Copy link
Copy Markdown
Contributor

LGTM.

On my quad-core i7 MacBook Pro:

  • before: 92 seconds
  • after: 30 seconds

@MikeMcQuaid

Copy link
Copy Markdown
Member

Great work, thanks @reitermarkus!

@MikeMcQuaid
MikeMcQuaid merged commit e4ed309 into Homebrew:master Sep 27, 2016
@MikeMcQuaid

Copy link
Copy Markdown
Member

And for @penman for the previous PR using this gem, too.

@reitermarkus
reitermarkus deleted the split-integration-tests branch September 27, 2016 13:39
@Homebrew Homebrew locked and limited conversation to collaborators May 3, 2018
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.

5 participants