Skip to content
This repository has been archived by the owner on Dec 11, 2019. It is now read-only.

split Travis into parallel test suites #7773

Merged
merged 3 commits into from
Mar 20, 2017
Merged

Conversation

diracdeltas
Copy link
Member

Breaks it up so we can run 9 test suites in parallel. Also caches NPM dependencies so that these are not re-downloaded for every test suite.

Test Plan:
N/A

This will speed up builds by several minutes, but we will have to clear
the cache when dependencies are updated.
See https://docs.travis-ci.com/user/caching/#Clearing-Caches
@diracdeltas
Copy link
Member Author

https://travis-ci.org/brave/browser-laptop/builds/212314661 finished in 32 minutes (much of which was waiting for jobs to start) so it's like a 15min improvement

Copy link
Member

@bsclifton bsclifton left a comment

Choose a reason for hiding this comment

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

++ looks great to me! 😄 Only concern I have would be: what's a good "path of least resistance" way to take care of clearing the cache? If we can't solve that, I would suggest removing that commit for now (and creating an issue which captures the config and the challenge we face)

@diracdeltas
Copy link
Member Author

@bsclifton i think we will generally only need to clear the cache when changing the runtime environment (ex: upgrading Node), so it should be fine. to be extra safe, we can use shrinkwrap. https://docs.npmjs.com/cli/shrinkwrap

@bsclifton
Copy link
Member

@diracdeltas ah nice! 😄 In that case, let's merge 🎉

@bsclifton bsclifton merged commit d717669 into master Mar 20, 2017
@bsclifton bsclifton deleted the feature/parallel-travis branch March 20, 2017 04:03
@bsclifton bsclifton added this to the 0.14.0 milestone Mar 20, 2017
bsclifton added a commit to NejcZdovc/browser-laptop that referenced this pull request Mar 20, 2017
…s-ci with brave#7773 and this broke the `uitest` task. Since the unit tests run quickly and `npm run unittest` still works great, this task isn't really needed anymore.

Auditors: @NejcZdovc, @diracdeltas
@bsclifton bsclifton mentioned this pull request Mar 29, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants