Daz DeBoer
c317ccac62
Refactor: extract cache-base out of cache-utils
2021-10-30 12:15:00 -06:00
Daz DeBoer
a74bb0fad6
Monitor cache saves and add basic caching report
...
- Restore `CachingReport` instance in 'post' action
- Record keys for any entries saved
- Report caching activity as JSON in post action
2021-10-30 12:14:59 -06:00
Daz DeBoer
8ba5a0033b
Track 'fully-restored' by tracking each cache restore
...
Instead of tracking a single 'fully-restored' flag, track the restore status of each
cache entry restore. If any of these are requested but not restored, then the overall
Gradle User Home cache is not fully restored.
Added special handling for the case when zero artifact bundles are set: this is used
in tests to simulate a not-fully-restored state.
2021-10-30 06:05:21 -06:00
Daz DeBoer
9edc2a11bd
Only restore configuration-cache if Gradle Home is fully restored
...
Fixes #107
2021-10-29 09:34:36 -06:00
Daz DeBoer
063fc6a872
Allow source files to contain lines up to 120 characters
...
This avoids excessive line-feeds when reformatting code to 80 char lines.
2021-10-29 07:50:06 -06:00
Daz DeBoer
a94b9252d5
Improve cache logging
2021-10-16 10:15:40 -06:00
Daz DeBoer
cc5cdb7fe0
Adapt caching for GRADLE_USER_HOME env var
...
Fixes #74
2021-09-27 21:50:14 -06:00
Daz DeBoer
3390540145
Simplify setting caches to disabled or read-only
2021-09-13 11:04:42 -06:00
Daz DeBoer
378bd0b6f8
Save and restore caches in parallel
2021-09-07 15:17:39 -06:00
Daz DeBoer
6d1455a33e
Tidy-up caching code
...
- Extracted common code for Gradle User Home and Project .gradle caches
into abstract supertype.
- Improve error handling by checking error types
2021-09-07 15:17:39 -06:00
Daz DeBoer
4d37378696
Consolidate cache-enabled options
2021-09-05 21:38:33 -06:00
Daz DeBoer
0ecbac99f3
Group log messsages for restore/save cache
2021-09-03 11:34:22 -06:00
Daz DeBoer
5340f6e816
Add cache for project .gradle dir
...
- For now, this is limited to configuration-cache directory
2021-08-24 12:52:51 -06:00