Yeah, you do have a lot of clone failures. I experience them on occasion, but it is like once in 300 or 500 jobs. Restarting the job usually clears the failure for me.
Maybe several things. First, add the following to .travis.yml
:
language: cpp
compiler: gcc
git:
depth: 5
submodules: false
Second, sync your account with GitHub. Go to travis-ci.org | settings, and select Sync account. Be sure you are at travis-ci.org, and not travis-ci.com.
While on travis-ci.org, go to settings and clear the cache. You are not using ccache
, but it probably won’t hurt.
Third, try Bionic:
- name: GCC, Linux, Aarch64
os: linux
arch: arm64
compiler: gcc
dist: bionic
...
Finally, you might try switching from default-jre
to the openjdk-8-jdk
package. My thinking is, the default JRE may be mucking with network settings in a bad way. I install openjdk-8-jdk
in several machines while testing Android builds on Travis and I have never had a problem. YMMV.
You might also investigate reducing the MTU from 1500 to 1492 or lower. MTU is the sort of thing that can cause unexplained network losses. Especially after the JRE install (and if the JRE changes a setting). Maybe something like:
sudo /sbin/ifconfig eth0 mtu 1492
I would also be interested in learning if you can Restart the job with success.
The clone of your GitHub is lightening fast, so its not like Git is choking on big binary objects. I wish my repos cloned that quickly.
$ time git clone https://github.com/stephengold/Libbulletjme.git
Cloning into 'Libbulletjme'...
remote: Enumerating objects: 771, done.
remote: Counting objects: 100% (771/771), done.
remote: Compressing objects: 100% (371/371), done.
remote: Total 7904 (delta 450), reused 631 (delta 336), pack-reused 7133
Receiving objects: 100% (7904/7904), 4.73 MiB | 14.32 MiB/s, done.
Resolving deltas: 100% (5181/5181), done.
real 0m0.986s
user 0m0.533s
sys 0m0.157s