ualbertalib / Hydranorth2

[deprecated] Sufia 7 based application
1 stars 2 forks source link

Need to cache solr/fedora on TravisCI due to bandwidth limitations #95

Closed murny closed 5 years ago

murny commented 7 years ago

TravisCI appears to be failing sometimes when running a build due to bandwidth limit being exceeded when downloading solr/fedora.

Example build: https://travis-ci.org/ualbertalib/Hydranorth2/builds/194918538

SolrWrapper::SolrWrapperError: Unable to download solr from https://archive.apache.org/dist/lucene/solr/6.3.0/solr-6.3.0.zip
503 Service Unavailable: <!DOCTYPE HTML>
<html>
<head>
<meta charset="utf8">
<title>Bandwidth limit exceeded</title>
</head>
<body style="background-image:url('/gnomes.png'); background-position: top center; background-repeat: no-repeat;">
    <h1 style="text-align: center; height: 60px;">Bandwidth limit exceeded</h1>
    <p style="text-align: center;">
    The daily allowance of 5GB for this IP has been exceeded, and downloads disabled until midnight, UTC (circa 19 hours from now).<br/>
    If you have any questions about this, feel free to reach out to us at infrastructure@apache.org.
    </p>
</body>
</html>

Need to modify our .travis.yml to do this smarter to cache the installs of solr/fedora. Scholarsphere has just recently did this themselves, we could probably just copy and paste:

https://github.com/psu-stewardship/scholarsphere/commit/ad4e7d90d553542be4a870c1733dc5b1968a7657