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

CI: Fast finish Travis builds, disable tvOS and JS tests #12603

Closed
wants to merge 3 commits into from

Conversation

mkonicek
Copy link
Contributor

@mkonicek mkonicek commented Feb 27, 2017

On Travis all fb projects share the same org and wait around a day for test results.

When a test fails we're still using Travis capacity to run other tests:

screenshot 2017-02-28 16 03 45

https://travis-ci.org/facebook/react-native/builds/206214009

Could failing fast help? Docs: https://docs.travis-ci.com/user/customizing-the-build/#Fast-Finishing

Also disable tvOS tests. The reason is it turns out React Native builds are a major contributor to slowing down Travis on Mac for everyone int the world, and the tvOS tests take a significant portion of the work. Messaged @dlowder-salesforce about this. Sorry we have to do this for now until Travis hopefully adds lots of Mac capacity.

Also disable JS tests. We now spend around 10% of time on Travis running these. The exact same tests run on Circle CI.

Test Plan

This PR is based on master which is currently failing, so Travis tests will fail.

Looks like builds were canceled after some builds failed:

screenshot 2017-03-01 13 29 48

@facebook-github-bot facebook-github-bot added CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. GH Review: review-needed labels Feb 27, 2017
@mkonicek mkonicek force-pushed the fast_finish branch 2 times, most recently from 115f47b to 90c146c Compare February 27, 2017 18:17
@mkonicek mkonicek changed the title [DON'T MERGE BEFORE TESTS PASS] CI: Fast finish Travis builds CI: Fast finish Travis builds Feb 27, 2017
@mkonicek
Copy link
Contributor Author

mkonicek commented Feb 27, 2017

@hramos liked this PR and @lacker liked the comment on an internal post about this PR, so I take it it's been accepted :) Tests passed except one unrelated failure:

screenshot 2017-02-27 20 22 47

screenshot 2017-02-27 20 22 53

See https://travis-ci.org/facebook/react-native/builds/205892984

Merging.

@facebook-github-bot facebook-github-bot added GH Review: accepted Import Started This pull request has been imported. This does not imply the PR has been approved. and removed GH Review: review-needed labels Feb 27, 2017
@mkonicek
Copy link
Contributor Author

@facebook-github-bot shitpit-ninja

@facebook-github-bot
Copy link
Contributor

Something went wrong when importing this pull request. Please cc someone from the team at fb to help with importing this.

@facebook-github-bot facebook-github-bot added Import Failed and removed Import Started This pull request has been imported. This does not imply the PR has been approved. labels Feb 27, 2017
@lacker
Copy link
Contributor

lacker commented Feb 27, 2017

Awesome. I wonder if it would similarly help to take the most-faily tests, and have them run first?

@mkonicek
Copy link
Contributor Author

@lacker That could help actually!

@mkonicek mkonicek force-pushed the fast_finish branch 2 times, most recently from 4db0cd5 to c9ce627 Compare February 28, 2017 15:22
@mkonicek
Copy link
Contributor Author

mkonicek commented Feb 28, 2017

@lacker The builds run in parallel but there is a part in the Travis docs suggesting the order can matter ("test suite ... is usually going to be done before ..."):

screenshot 2017-02-28 15 14 07

https://docs.travis-ci.com/user/speeding-up-the-build/

The tests are rendered in the Travis UI in the order defined in this PR (seems like it might work):

screenshot 2017-02-28 15 28 14

https://travis-ci.org/facebook/react-native/builds/206218787

@mkonicek mkonicek force-pushed the fast_finish branch 3 times, most recently from d006eaf to b366a09 Compare February 28, 2017 15:27
@mkonicek mkonicek changed the title CI: Fast finish Travis builds CI: Fast finish Travis builds, disable tests Mar 1, 2017
@mkonicek mkonicek changed the title CI: Fast finish Travis builds, disable tests CI: Fast finish Travis builds, disable tvOS and JS tests Mar 1, 2017
facebook-github-bot pushed a commit that referenced this pull request Mar 1, 2017
Reviewed By: mkonicek

Differential Revision:
D4635182
Ninja: Manual import #12603

fbshipit-source-id: f512bf3ce7840b3fbc229e9225e06e3112d849d3
@mkonicek
Copy link
Contributor Author

mkonicek commented Mar 1, 2017

Imported to fb codebase manually in e44730c

@mkonicek mkonicek closed this Mar 1, 2017
dudeinthemirror pushed a commit to dudeinthemirror/react-native that referenced this pull request Mar 1, 2017
Reviewed By: mkonicek

Differential Revision:
D4635182
Ninja: Manual import facebook#12603

fbshipit-source-id: f512bf3ce7840b3fbc229e9225e06e3112d849d3
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants