Allow jvm tool tests to bootstrap from the artifact cache.

Review Request #2311 - Created June 2, 2015 and submitted

Information
Benjy Weinberger
pants
1625
d46af82...
Reviewers
pants-reviews
jsirois, patricklaw, zundel
This makes those tests quite a bit faster. For example,

./pants test tests/python/pants_test/backend/jvm/tasks:junit_run

Runs in 35 seconds with no cached junit jar, but in under 5 seconds with.

This was also a useful exercise in reasoning about test isolation:
To use cached jars they must have the same path under .pants.d, and
in our tests those paths included a randomly named tmpdir and
a randomly named options scope. Switching those to stable names
forced me to think about whether that was OK, and my conclusion was
that it is, which is a good sign for our test isolation.

Ran tests locally before and after, and compared run times.

CI passes: https://travis-ci.org/pantsbuild/pants/builds/65024765.

John Sirois
Eric Ayers
Benjy Weinberger
Benjy Weinberger
Review request changed

Status: Closed (submitted)

Change Summary:

Thanks John and Eric! Submitted as 45b49e7e06998307a06c363bf9af95d999e6fc94. Enjoy your faster tests!

Benjy Weinberger

Thanks John and Eric! Submitted as 45b49e7e06998307a06c363bf9af95d999e6fc94. Enjoy your faster tests!

Loading...