gradle-s3-build-cache icon indicating copy to clipboard operation
gradle-s3-build-cache copied to clipboard

Add a configuration option to limit the maximum size of the cached entry

Open vlsi opened this issue 4 years ago • 2 comments

I've seen a case when the cached object was 35MiB, and it was caused by a single unit-test that had extremely long test name. The test in question did include a multi-megabyte String in the test name (it was a parameterized test, and the string was included into the parameter).

Apparently, 30MiB retrieval over the internet does not sound right, so I would like to have an option to cap the maximum size of the cached entries.

vlsi avatar Jul 20 '20 07:07 vlsi

This sounds like good idea. Would you mind opening a pull request?

myniva avatar Jul 24 '20 09:07 myniva

I'm sorry, I have already rewritten everything to Kotlin and implemented this (and many other) features. I see no reason to file pull requests provided you want to stick with Java: https://github.com/myniva/gradle-s3-build-cache/issues/42

vlsi avatar Jul 24 '20 09:07 vlsi