incubator-hivemall icon indicating copy to clipboard operation
incubator-hivemall copied to clipboard

[HIVEMALL-221] Add cache to reduce Maven build time on Travis CI

Open chezou opened this issue 6 years ago • 7 comments

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

chezou avatar Oct 22 '18 05:10 chezou

Seems not working..

timeout: 1000 helps (?) https://docs.travis-ci.com/user/caching/#setting-the-timeout

Please add [HIVEMALL-221] to the PR title.

myui avatar Oct 23 '18 14:10 myui

I'm not sure the exact timing of caching, though, I'd add timeout on travis.yml.

chezou avatar Oct 23 '18 23:10 chezou

Same issue has been started from this September https://github.com/travis-ci/travis-ci/issues/10108

chezou avatar Oct 24 '18 05:10 chezou

See what happens.

myui avatar Oct 25 '18 00:10 myui

[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 ?

myui avatar Oct 25 '18 01:10 myui

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.

chezou avatar Oct 25 '18 01:10 chezou

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

myui avatar Oct 29 '18 06:10 myui