Daz DeBoer
aedc5fc8f9
Mention that CACHE_DEBUG_ENABLED
will disable parallel save/restore
2021-10-14 10:41:45 -06:00
Daz DeBoer
78e25cd233
Document the CACHE_DEBUG_ENABLED
flag
2021-10-14 10:39:12 -06:00
Daz DeBoer
29894757f3
Merge pull request #90 from gradle/dd/windows-locks
...
Allow time for processes to delete file locks on windows
2021-10-05 01:30:13 +02:00
Daz DeBoer
5328161026
Build outputs
2021-10-04 23:59:42 +02:00
Daz DeBoer
4968d2280b
Allow time for processes to release file locks on windows
2021-10-04 23:59:08 +02:00
Daz DeBoer
c000a0b58f
Merge pull request #87 from gradle/dd/gradle-versions
...
Fix build-scan link detection with older build-scan plugins
Fixes #86
2021-09-29 15:15:24 -06:00
Daz DeBoer
6ff498182a
Add checks for build scan links
2021-09-29 15:10:39 -06:00
Daz DeBoer
60b1ffac6b
Fix build-scan-init script to work with build-in build-scan plugins
2021-09-29 14:39:48 -06:00
Daz DeBoer
9b7c81f8f6
Test execution with older Gradle versions
2021-09-29 13:34:05 -06:00
Daz DeBoer
b650771559
Cleanup samples
2021-09-29 13:23:25 -06:00
Daz DeBoer
17f624cb5b
Rename 'basic' sample to 'groovy-dsl'
2021-09-28 20:31:11 -06:00
Daz DeBoer
21dee71590
Update README for v2
2021-09-28 11:30:55 -06:00
Daz DeBoer
83e2129213
Merge pull request #84 from gradle/dependabot/npm_and_yarn/ansi-regex-5.0.1
...
Bump ansi-regex from 5.0.0 to 5.0.1
2021-09-28 08:45:48 -06:00
Daz DeBoer
b16787d530
Merge pull request #80 from gradle/dependabot/npm_and_yarn/tmpl-1.0.5
...
Bump tmpl from 1.0.4 to 1.0.5
2021-09-28 08:45:34 -06:00
Daz DeBoer
204870af89
Merge pull request #85 from gradle/dd/init-script
...
Use an init-script to capture buildScanPublished event
2021-09-28 00:08:42 -06:00
Daz DeBoer
0918f5f2a4
Rename source file for clarity
2021-09-28 00:04:50 -06:00
Daz DeBoer
1b1a3c48ad
Publish scans from no-wrapper sample build
...
This allows more testing of build scan capture functionality
2021-09-28 00:04:50 -06:00
Daz DeBoer
a7174b82a2
Use init script to capture build scan URL
...
Instead of parsing the log output, we instead register a
buildScanPublished listener and record the build scan URL
to a file. This file is subsequently read to report the
build scan URL.
Fixes #30
2021-09-28 00:04:41 -06:00
dependabot[bot]
3de71f2c52
Bump ansi-regex from 5.0.0 to 5.0.1
...
Bumps [ansi-regex](https://github.com/chalk/ansi-regex ) from 5.0.0 to 5.0.1.
- [Release notes](https://github.com/chalk/ansi-regex/releases )
- [Commits](https://github.com/chalk/ansi-regex/compare/v5.0.0...v5.0.1 )
---
updated-dependencies:
- dependency-name: ansi-regex
dependency-type: indirect
...
Signed-off-by: dependabot[bot] <support@github.com>
2021-09-28 04:09:27 +00:00
Daz DeBoer
5576baa56b
Merge pull request #83 from gradle/dd/v2
...
Adapt paths to differing Gradle User Home
2021-09-27 22:08:40 -06:00
Daz DeBoer
1026c62889
Only run failure-cases workflow on manual trigger
2021-09-27 22:05:23 -06:00
Daz DeBoer
1fb8644035
Build outputs
2021-09-27 21:53:19 -06: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
cc5cdb7fe0
Adapt caching for GRADLE_USER_HOME env var
...
Fixes #74
2021-09-27 21:50:14 -06:00
Daz DeBoer
e0d37eb073
Workflow to test with custom GRADLE_USER_HOME
2021-09-27 19:48:26 -06:00
Daz DeBoer
bdd89aa34f
Refactored workflows
...
- Improve workflow names
- Split execution testing from cache testing
2021-09-27 19:33:22 -06:00
dependabot[bot]
18cdc8bf28
Bump tmpl from 1.0.4 to 1.0.5
...
Bumps [tmpl](https://github.com/daaku/nodejs-tmpl ) from 1.0.4 to 1.0.5.
- [Release notes](https://github.com/daaku/nodejs-tmpl/releases )
- [Commits](https://github.com/daaku/nodejs-tmpl/commits/v1.0.5 )
---
updated-dependencies:
- dependency-name: tmpl
dependency-type: indirect
...
Signed-off-by: dependabot[bot] <support@github.com>
2021-09-21 13:17:04 +00:00
Daz DeBoer
656ad4b5f2
Move continue-on-error into the step definition
...
Hopefully this will allow GitHub to ignore the failure.
2021-09-15 17:57:43 -06:00
Daz DeBoer
bebb162342
Usability improvements:
...
- Include bundle name in cache key
- Emit a few more messages at 'info'
2021-09-15 17:50:53 -06:00
Daz DeBoer
6084a4eb65
Cache artifacts with single entry per type
...
When caching is too fine-grained, an excessive number of cache
requests can result in HTTP 429 errors due to rate limiting.
By caching all artifacts of a particular type in a single entry
we hope to mitigate this, at the expense of some reduction in
cache space optimization.
This change also adds caching for all dependency jars, as well as
instrumented jars in the 'caches/jars-X' directory.
2021-09-15 17:45:47 -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
9bfa003014
Build outputs
2021-09-14 18:11:31 -06:00
Daz DeBoer
fe64d05f86
Do not cache dependency jars individually
...
Unfortunately, doing this overloads the GitHub actions cache infrastructure
leading to failures and unpredictable results.
A later solution may re-implement artifact sharing for dependency jars
as well as jars within the `caches/jars-9` directory. But for now these
will be duplicated across each Gradle User Home cache entry.
2021-09-14 18:07:28 -06:00
Daz DeBoer
decca791c5
Consolidate error handling for cache restore/save
2021-09-14 13:39:37 -06:00
Daz DeBoer
bd08e7b7cd
Do not fail build on error restoring artifact for marker
...
Instead, catch and report these errors before continuing.
2021-09-14 13:38:48 -06:00
Daz DeBoer
cca55d0890
Fail action execution on unhandled errors
...
Without this, the error logs contain an "UnhandledPromiseRejectionError"
but the action is reported as succeeding.
2021-09-14 07:48:06 -06:00
Daz DeBoer
a802a3c0ce
Generate source-map files when compiling
...
This will make reported errors easier to link back to Typescript sources.
2021-09-14 05:46:11 -06:00
Daz DeBoer
d06e19f862
Build outputs
2021-09-13 11:50:07 -06:00
Daz DeBoer
bbe1574290
Add some TODOs to the code for future reference
2021-09-13 11:50:07 -06:00
Daz DeBoer
4264cda558
Group log messages generated when provisioning Gradle
2021-09-13 11:50:07 -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
7dfbe33bba
Improve formatting for cache entry size reporting
2021-09-13 10:51:24 -06:00
Daz DeBoer
e63ddf9c00
Avoid warning for cache reservation errors
...
We have no way of knowing if another build has already cached these
artifacts, so CacheReservationError is expected.
2021-09-13 10:50:47 -06:00
Daz DeBoer
d5cd9d86a1
Split the 'prod' workflow up into different isolated workflows
...
This is required to ensure that cache entries are namespaced correctly
for the integration tests.
2021-09-12 12:17:05 -06:00
Daz DeBoer
cae99bf6d9
Tidy up cache entry de-duplication
...
- Rename feature to "common artifact caching"
- Cleanup logging
- Refactor/rename for clarity
2021-09-12 10:31:52 -06:00
Daz DeBoer
5a90152b1f
Restore/cache deduplicated files in parallel
2021-09-12 10:31:52 -06:00
Daz DeBoer
4b92b8d013
Cache downloaded dependency jars separately
...
This will further remove common files out the the Gradle User Home
cache entries, reducing cache usage by removing redundancy.
2021-09-12 10:31:51 -06:00
Daz DeBoer
693293c29a
Consolidate logic for separate artifact file caching
...
Making this functionality more general will make it easier to add other
artifacts to the set that we cache separately.
2021-09-12 10:31:51 -06:00
Daz DeBoer
ac5d8920dd
Cache generated-gradle-jars separately from Gradle User Home
...
Similar to wrapper distributions, these large files are common
to many Gradle User Home cache entries. Storing them separately removes
this redundancy from the Gradle User Home cache.
2021-09-12 10:31:51 -06:00