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