macOS builds stalling w/10 min timeout before installing dependencies (after cache install)

A significant percentage (including last three in a row) of our macOS builds are hitting the 10 min no output timeout, but the logs aren’t very informative as to exactly what’s timing out. On the surface, it’s the command $ java -Xmx32m -version which doesn’t really make any sense.

Failed build logs look like this:

Setting up build cache
74
75$ java -Xmx32m -version
76
77
78No output has been received in the last 10m0s, this potentially indicates a stalled build or something wrong with the build itself.

While successful build logs contain:

Setting up build cache
71
72$ java -Xmx32m -version
73openjdk version "14.0.2" 2020-07-14
74OpenJDK Runtime Environment (build 14.0.2+12-46)
75OpenJDK 64-Bit Server VM (build 14.0.2+12-46, mixed mode, sharing)
76$ javac -J-Xmx32m -version
77javac 14.0.2
brew
78Installing Homebrew Packages

It seems much more likely that it’s actually the Homebrew installation of prerequisites that’s timing out than the java version command, but that’s not what the logs are showing, although perhaps there’s some buffering that’s causing output to be discarded.

Successful build: https://travis-ci.org/github/OpenRefine/OpenRefine/jobs/729007491
Failed builds:
https://travis-ci.org/github/OpenRefine/OpenRefine/jobs/730171563
https://travis-ci.org/github/OpenRefine/OpenRefine/jobs/730297839
https://travis-ci.org/github/OpenRefine/OpenRefine/jobs/730299885

Since the Homebrew install is managed by Travis, is there a way that I can increase the timeout for it?
Any suggestions for how to figure out exactly what’s timing out and/or fix it?

Thanks in advance!

Tom

Hey @tfmorris,

Is this still occurring?

Montana
Travis CI Staff

@Montana Yes. See, for example, this build from last night: https://travis-ci.org/github/OpenRefine/OpenRefine/jobs/731478252

I migrated the repo to travis-ci.com in the hopes that the problem was unique to the .org site, but it’s failing on the .com site as well: https://travis-ci.com/github/tfmorris/OpenRefine/jobs/393278245

Tom

Hello @tfmorris, thanks for your patience. Our Engineers have identified a bug with Java on the Xcode 11.6 image. A fix is on the way and it should be ready by Thursday Pacific Time. Thanks

Thanks for following up! Was the fix deployed on travis-ci.com as well? We migrated there since I first reported the problem (partly to see if it would help, but it didn’t).

We are still seeing occasional failures, including both yesterday and the day before:


We had two successful builds in the last couple of days, so the failure is intermittent.

Now that Travis has dropped support for open source software projects, we’ve switched to Github Actions, so we no longer need this fixed.