Daz DeBoer
aa2ed2e033
Use cache protocol version for bundle keys too
2021-10-16 09:49:14 -06:00
Daz DeBoer
263f84178a
Prefix cache key with protocol version
...
Verify generated outputs / check (push) Waiting to run
Test different action inputs / action-inputs (push) Waiting to run
Test caching / seed-build (macos-latest) (push) Waiting to run
Test caching / seed-build (ubuntu-latest) (push) Waiting to run
Test caching / seed-build (windows-latest) (push) Waiting to run
Test caching / dependencies-cache (macos-latest) (push) Blocked by required conditions
Test caching / dependencies-cache (ubuntu-latest) (push) Blocked by required conditions
Test caching / dependencies-cache (windows-latest) (push) Blocked by required conditions
Test caching / build-cache (macos-latest) (push) Blocked by required conditions
Test caching / build-cache (ubuntu-latest) (push) Blocked by required conditions
Test caching / build-cache (windows-latest) (push) Blocked by required conditions
Test caching / configuration-cache (macos-latest) (push) Blocked by required conditions
Test caching / configuration-cache (ubuntu-latest) (push) Blocked by required conditions
Test caching / configuration-cache (windows-latest) (push) Blocked by required conditions
Test caching / no-bundles-restored (push) Blocked by required conditions
Test Gradle execution / gradle-execution (macos-latest) (push) Waiting to run
Test Gradle execution / gradle-execution (ubuntu-latest) (push) Waiting to run
Test Gradle execution / gradle-execution (windows-latest, .bat) (push) Waiting to run
Test Gradle execution / gradle-versions (macos-latest) (push) Waiting to run
Test Gradle execution / gradle-versions (ubuntu-latest) (push) Waiting to run
Test Gradle execution / gradle-versions (windows-latest, .bat) (push) Waiting to run
Test caching with a custom GRADLE_USER_HOME / seed-build (push) Waiting to run
Test caching with a custom GRADLE_USER_HOME / dependencies-cache (push) Blocked by required conditions
Test caching with a custom GRADLE_USER_HOME / build-cache (push) Blocked by required conditions
Test caching with Kotlin DSL / seed-build (push) Waiting to run
Test caching with Kotlin DSL / verify-build (push) Blocked by required conditions
This will ensure that incompatiblee cache entries generated by previous action releases
will not be used.
2021-10-16 08:33:42 -06:00
Daz DeBoer
709ded51a5
Treat directory for instrumented jar as single artifact
...
Leaving the `.lock` and `.receipt` files lying around was causing
issues when the actual jar files were not restored. Now the entire
directory will either be missing, or completely restored.
2021-10-15 14:54:29 -06:00
Daz DeBoer
53ccc3e0d7
Add more cache debug logging
2021-10-15 11:45:15 -06:00
Daz DeBoer
8ab7c9d8dd
Do not fail action on cache errors
...
Ensure that we catch and log errors in `beforeSave` and `afterRestore`,
and do not fail the entire workflow in these cases.
2021-10-14 12:19:24 -06:00
Daz DeBoer
4968d2280b
Allow time for processes to release file locks on windows
2021-10-04 23:59:08 +02:00
Daz DeBoer
5a5a5b4387
Normalize paths to Gradle User Home when calculating cache keys
...
Fixes #77
2021-09-27 21:52:03 -06:00
Daz DeBoer
bebb162342
Usability improvements:
...
dev / check (push) Waiting to run
failure-cases / wrapper-missing (push) Waiting to run
failure-cases / bad-configuration (push) Waiting to run
integration-testing-kotlin-dsl / seed-build (push) Waiting to run
integration-testing-kotlin-dsl / verify-build (push) Blocked by required conditions
integration-testing / seed-build (macos-latest) (push) Waiting to run
integration-testing / seed-build (ubuntu-latest) (push) Waiting to run
integration-testing / seed-build (windows-latest) (push) Waiting to run
integration-testing / gradle-execution (macos-latest) (push) Blocked by required conditions
integration-testing / gradle-execution (ubuntu-latest) (push) Blocked by required conditions
integration-testing / gradle-execution (windows-latest, .bat) (push) Blocked by required conditions
integration-testing / dependencies-cache (macos-latest) (push) Blocked by required conditions
integration-testing / dependencies-cache (ubuntu-latest) (push) Blocked by required conditions
integration-testing / dependencies-cache (windows-latest) (push) Blocked by required conditions
integration-testing / build-cache (macos-latest) (push) Blocked by required conditions
integration-testing / build-cache (ubuntu-latest) (push) Blocked by required conditions
integration-testing / build-cache (windows-latest) (push) Blocked by required conditions
integration-testing / configuration-cache (macos-latest) (push) Blocked by required conditions
integration-testing / configuration-cache (ubuntu-latest) (push) Blocked by required conditions
integration-testing / configuration-cache (windows-latest) (push) Blocked by required conditions
- Include bundle name in cache key
- Emit a few more messages at 'info'
2021-09-15 17:50:53 -06:00
Daz DeBoer
dbb485d80d
Only perform post-restore and pre-save cache actions when required
2021-09-15 17:45:47 -06:00
Daz DeBoer
decca791c5
Consolidate error handling for cache restore/save
2021-09-14 13:39:37 -06:00
Daz DeBoer
3390540145
Simplify setting caches to disabled or read-only
2021-09-13 11:04:42 -06:00
Daz DeBoer
1c72a31463
Allow cache debug logging to be selectively enabled
...
- Move more messages out of main 'info' log
- Only log cache entry size when debugging
- Process cache entries sequentially when debugging
2021-09-13 10:52:09 -06:00
Daz DeBoer
9b3abaad52
Use current matrix values for workflow job context
2021-09-07 16:26:28 -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
777a6fc967
Generate cache key based on Job invocation
...
Attempt to capture as much context as possible about the job run
to generate a unique cache key. Unfortunately much of the matrix context
is not available to the action implementation.
2021-09-05 21:35:17 -06:00
Daz DeBoer
d7ed6d7e8d
Extract cache key generation into common function
2021-09-05 17:11:50 -06:00
Daz DeBoer
6fca6b3929
Add support for read-only caching in v2
2021-08-26 17:25:49 -06:00
Daz DeBoer
d9cc0aeccf
Remove old caching code
2021-08-24 12:54:21 -06:00
Daz DeBoer
b3afdc78a7
Truncate Gradle args when constructing cache key ( #71 )
...
dev / check (push) Has been cancelled
prod / basic-build (macos-latest) (push) Has been cancelled
prod / basic-build (ubuntu-latest) (push) Has been cancelled
prod / basic-build (windows-latest) (push) Has been cancelled
prod / gradle-execution (macos-latest) (push) Has been cancelled
prod / gradle-execution (ubuntu-latest) (push) Has been cancelled
prod / gradle-execution (windows-latest, .bat) (push) Has been cancelled
prod / dependencies-cache (macos-latest) (push) Has been cancelled
prod / dependencies-cache (ubuntu-latest) (push) Has been cancelled
prod / dependencies-cache (windows-latest) (push) Has been cancelled
prod / configuration-cache (macos-latest) (push) Has been cancelled
prod / configuration-cache (ubuntu-latest) (push) Has been cancelled
prod / configuration-cache (windows-latest) (push) Has been cancelled
prod / cache-read-only (macos-latest) (push) Has been cancelled
prod / cache-read-only (ubuntu-latest) (push) Has been cancelled
prod / cache-read-only (windows-latest) (push) Has been cancelled
prod / failures (push) Has been cancelled
Cache keys have a hard limit of 512 characters, so we need to ensure that we don't generate a key longer than this.
- Remove excess whitespace
- Truncate to 400 characters
Fixes #70
2021-08-24 12:46:48 -06:00