incubator-hivemall
incubator-hivemall copied to clipboard
[HIVEMALL-221] Add cache to reduce Maven build time on Travis CI
What changes were proposed in this pull request?
This PR will speed up the build time on Travis CI. Travis CI will timeout when the build time over 50 minutes (See documentation).
What type of PR is it?
Improvement
What is the Jira issue?
https://issues.apache.org/jira/browse/HIVEMALL-221
Seems not working..
timeout: 1000
helps (?)
https://docs.travis-ci.com/user/caching/#setting-the-timeout
Please add [HIVEMALL-221]
to the PR title.
I'm not sure the exact timing of caching, though, I'd add timeout
on travis.yml.
Same issue has been started from this September https://github.com/travis-ci/travis-ci/issues/10108
See what happens.
[WARNING] Could not transfer metadata org.apache.hivemall:hivemall-spark2.1:0.5.1-incubating-SNAPSHOT/maven-metadata.xml from/to apache.snapshots (https://repository.apache.org/snapshots): Connect to repository.apache.org:443 [repository.apache.org/207.244.88.140] failed: Connection timed out (Connection timed out)
[WARNING] Failure to transfer org.apache.hivemall:hivemall-spark2.1:0.5.1-incubating-SNAPSHOT/maven-metadata.xml from https://repository.apache.org/snapshots/ was cached in the local repository, resolution will not be reattempted until the update interval of apache-snapshots has elapsed or updates are forced. Original error: Could not transfer metadata org.apache.hivemall:hivemall-spark2.1:0.5.1-incubating-SNAPSHOT/maven-metadata.xml from/to apache-snapshots (https://repository.apache.org/snapshots/): Connect to repository.apache.org:443 [repository.apache.org/207.244.88.140] failed: Connection timed out (Connection timed out)
[WARNING] Failure to transfer org.apache.hivemall:hivemall-spark2.1:0.5.1-incubating-SNAPSHOT/maven-metadata.xml from https://repository.apache.org/snapshots was cached in the local repository, resolution will not be reattempted until the update interval of apache.snapshots has elapsed or updates are forced. Original error: Could not transfer metadata org.apache.hivemall:hivemall-spark2.1:0.5.1-incubating-SNAPSHOT/maven-metadata.xml from/to apache.snapshots (https://repository.apache.org/snapshots): Connect to repository.apache.org:443 [repository.apache.org/207.244.88.140] failed: Connection timed out (Connection timed out)
[INFO] Downloading from apache-snapshots: https://repository.apache.org/snapshots/org/apache/hivemall/hivemall-spark2.1/0.5.1-incubating-SNAPSHOT/hivemall-spark2.1-0.5.1-incubating-SNAPSHOT-sources.jar
[INFO] Downloading from apache.snapshots: https://repository.apache.org/snapshots/org/apache/hivemall/hivemall-spark2.1/0.5.1-incubating-SNAPSHOT/hivemall-spark2.1-0.5.1-incubating-SNAPSHOT-sources.jar
hmm.... could we provide mirror repository in travis-ci ?
Per this discussion https://github.com/travis-ci/travis-ci/issues/10108, it seems Apache snapshot repo server changed their policy and it eventually blocks travis-ci jobs. I don't know it's a travis issue or Apache server's one.
We might need to set asf mirror to avoid timeout by the default ASF repository.
https://maven.apache.org/guides/mini/guide-mirror-settings.html https://code.i-harness.com/ja/q/c326f0