OneBusAway / onebusaway-android

The official Android app for OneBusAway
http://www.onebusaway.org/
Other
469 stars 289 forks source link

Travis builds failing with `gradlew... exited with 137` #203

Closed barbeau closed 9 years ago

barbeau commented 9 years ago

Travis builds have been failing intermittently for over a month (see the history).

I initially thought this was something intermittent on Travis's end, but it appears not.

I filed an issue on Github with Travis two weeks ago, but no response. I initially thought it was an issue with the Android builds tools killing things prematurely (see above issue for details).

I also found this issue today, which is essentially the same problem (not sure why this didn't turn up in initial Google searches): https://github.com/SecUpwN/Android-IMSI-Catcher-Detector/issues/236

It sounds like they fixed the issue by moving to a new Travis "Container-Based Infrastructure" - see details about this new feature on Travis here: http://blog.travis-ci.com/2014-12-17-faster-builds-with-container-based-infrastructure/

It seems like this may let you escape the build time limit, since the new infrastructure promises more dedicated resources for the build, which lets it run faster.

I'm going to give this a shot and see what happens.

barbeau commented 9 years ago

Builds on container-based infrastructure seem stable so far (after I got the formatting right), so I'm going to merge https://github.com/OneBusAway/onebusaway-android/pull/206. I'll re-open if I see the same problem again. Interestingly, it doesn't seem that builds are running much faster, it may just be that in the container the opportunity for a long-running build to be canceled is greatly reduced.

barbeau commented 9 years ago

Fixed in develop branch via https://github.com/OneBusAway/onebusaway-android/pull/206