Avoid ivy cache thrash due to ivydata updates.

Review Request #2333 - Created June 8, 2015 and submitted

Information
John Sirois
pants
jsirois/travis-ci/avoid_ivydata_cache_thrash
1650
2344
6e9a0ba...
Reviewers
pants-reviews
davidt, dturner-tw, zundel

The ivydata-*.properties and root-level *.{properties,xml} files'
effect on resolution time is in the noise, but they are re-timestamped
in internal comments and fields by ivy on each run and this leads to
cache thrash in travis-ci. Kill these files before the cache check to
avoid un-needed cache re-packing and re-upload which is a ~100s
operation that occurs at the end of the build on 9 of our 10 ci
shards.

.travis.yml | 8 ++++++++
1 file changed, 8 insertions(+)

Ran travis lint, which fails with:

$ travis lint
Warnings for .travis.yml:
[x] unexpected key before_cache, dropping

However, this is a newish documented feature:
https://github.com/travis-ci/docs-travis-ci-com/commit/088be0f8de1c45135bcfa6d3b48ee0a561448716

As a result, giving this a whirl since the savings should be large if
the feature does actually exist.

CI went green here:
https://travis-ci.org/pantsbuild/pants/builds/65978345

John Sirois
John Sirois
Eric Ayers
John Sirois
Eric Ayers
John Sirois
John Sirois
John Sirois
John Sirois
John Sirois
Review request changed

Status: Closed (submitted)

John Sirois
Figured out the dangling com.example cache-thrash problem here: https://rbcommons.com/s/twitter/r/2344/
Loading...