Minor improvement to logging in post-action
Some checks are pending
Verify generated outputs / check (push) Waiting to run
Test different action inputs / action-inputs (ubuntu-latest) (push) Waiting to run
Test different action inputs / action-inputs (windows-latest) (push) Waiting to run
Test caching configuration / seed-build (ubuntu-latest) (push) Waiting to run
Test caching configuration / seed-build (windows-latest) (push) Waiting to run
Test caching configuration / verify-build (ubuntu-latest) (push) Blocked by required conditions
Test caching configuration / verify-build (windows-latest) (push) Blocked by required conditions
Test save/restore configuration-cache state / seed-build (ubuntu-latest) (push) Waiting to run
Test save/restore configuration-cache state / seed-build (windows-latest) (push) Waiting to run
Test save/restore configuration-cache state / configuration-cache (ubuntu-latest) (push) Blocked by required conditions
Test save/restore configuration-cache state / configuration-cache (windows-latest) (push) Blocked by required conditions
Test save/restore configuration-cache state / no-bundles-restored (ubuntu-latest) (push) Blocked by required conditions
Test save/restore configuration-cache state / no-bundles-restored (windows-latest) (push) Blocked by required conditions
Test save/restore Gradle Home directory / seed-build (ubuntu-latest) (push) Waiting to run
Test save/restore Gradle Home directory / seed-build (windows-latest) (push) Waiting to run
Test save/restore Gradle Home directory / dependencies-cache (ubuntu-latest) (push) Blocked by required conditions
Test save/restore Gradle Home directory / dependencies-cache (windows-latest) (push) Blocked by required conditions
Test save/restore Gradle Home directory / build-cache (ubuntu-latest) (push) Blocked by required conditions
Test save/restore Gradle Home directory / build-cache (windows-latest) (push) Blocked by required conditions
Test save/restore Gradle Home directory / no-bundles-restored (ubuntu-latest) (push) Blocked by required conditions
Test save/restore Gradle Home directory / no-bundles-restored (windows-latest) (push) Blocked by required conditions
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 (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 (ubuntu-latest) (push) Waiting to run
Test caching with a custom GRADLE_USER_HOME / seed-build (windows-latest) (push) Waiting to run
Test caching with a custom GRADLE_USER_HOME / dependencies-cache (ubuntu-latest) (push) Blocked by required conditions
Test caching with a custom GRADLE_USER_HOME / dependencies-cache (windows-latest) (push) Blocked by required conditions
Test caching with a custom GRADLE_USER_HOME / build-cache (ubuntu-latest) (push) Blocked by required conditions
Test caching with a custom GRADLE_USER_HOME / build-cache (windows-latest) (push) Blocked by required conditions
Test caching with Kotlin DSL / seed-build (ubuntu-latest) (push) Waiting to run
Test caching with Kotlin DSL / seed-build (windows-latest) (push) Waiting to run
Test caching with Kotlin DSL / verify-build (ubuntu-latest) (push) Blocked by required conditions
Test caching with Kotlin DSL / verify-build (windows-latest) (push) Blocked by required conditions
Some checks are pending
Verify generated outputs / check (push) Waiting to run
Test different action inputs / action-inputs (ubuntu-latest) (push) Waiting to run
Test different action inputs / action-inputs (windows-latest) (push) Waiting to run
Test caching configuration / seed-build (ubuntu-latest) (push) Waiting to run
Test caching configuration / seed-build (windows-latest) (push) Waiting to run
Test caching configuration / verify-build (ubuntu-latest) (push) Blocked by required conditions
Test caching configuration / verify-build (windows-latest) (push) Blocked by required conditions
Test save/restore configuration-cache state / seed-build (ubuntu-latest) (push) Waiting to run
Test save/restore configuration-cache state / seed-build (windows-latest) (push) Waiting to run
Test save/restore configuration-cache state / configuration-cache (ubuntu-latest) (push) Blocked by required conditions
Test save/restore configuration-cache state / configuration-cache (windows-latest) (push) Blocked by required conditions
Test save/restore configuration-cache state / no-bundles-restored (ubuntu-latest) (push) Blocked by required conditions
Test save/restore configuration-cache state / no-bundles-restored (windows-latest) (push) Blocked by required conditions
Test save/restore Gradle Home directory / seed-build (ubuntu-latest) (push) Waiting to run
Test save/restore Gradle Home directory / seed-build (windows-latest) (push) Waiting to run
Test save/restore Gradle Home directory / dependencies-cache (ubuntu-latest) (push) Blocked by required conditions
Test save/restore Gradle Home directory / dependencies-cache (windows-latest) (push) Blocked by required conditions
Test save/restore Gradle Home directory / build-cache (ubuntu-latest) (push) Blocked by required conditions
Test save/restore Gradle Home directory / build-cache (windows-latest) (push) Blocked by required conditions
Test save/restore Gradle Home directory / no-bundles-restored (ubuntu-latest) (push) Blocked by required conditions
Test save/restore Gradle Home directory / no-bundles-restored (windows-latest) (push) Blocked by required conditions
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 (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 (ubuntu-latest) (push) Waiting to run
Test caching with a custom GRADLE_USER_HOME / seed-build (windows-latest) (push) Waiting to run
Test caching with a custom GRADLE_USER_HOME / dependencies-cache (ubuntu-latest) (push) Blocked by required conditions
Test caching with a custom GRADLE_USER_HOME / dependencies-cache (windows-latest) (push) Blocked by required conditions
Test caching with a custom GRADLE_USER_HOME / build-cache (ubuntu-latest) (push) Blocked by required conditions
Test caching with a custom GRADLE_USER_HOME / build-cache (windows-latest) (push) Blocked by required conditions
Test caching with Kotlin DSL / seed-build (ubuntu-latest) (push) Waiting to run
Test caching with Kotlin DSL / seed-build (windows-latest) (push) Waiting to run
Test caching with Kotlin DSL / verify-build (ubuntu-latest) (push) Blocked by required conditions
Test caching with Kotlin DSL / verify-build (windows-latest) (push) Blocked by required conditions
- Ensure that "Caching Gradle state" group always has 1 message - Only print cache report when entries were restored or saved
This commit is contained in:
parent
4e899835b3
commit
4137be6a8b
2
dist/main/index.js
vendored
2
dist/main/index.js
vendored
File diff suppressed because one or more lines are too long
2
dist/main/index.js.map
vendored
2
dist/main/index.js.map
vendored
File diff suppressed because one or more lines are too long
2
dist/post/index.js
vendored
2
dist/post/index.js
vendored
File diff suppressed because one or more lines are too long
2
dist/post/index.js.map
vendored
2
dist/post/index.js.map
vendored
File diff suppressed because one or more lines are too long
@ -185,7 +185,7 @@ export abstract class AbstractCache {
|
||||
|
||||
async save(listener: CacheListener): Promise<void> {
|
||||
if (!this.cacheOutputExists()) {
|
||||
this.debug(`No ${this.cacheDescription} to cache.`)
|
||||
core.info(`No ${this.cacheDescription} to cache.`)
|
||||
return
|
||||
}
|
||||
|
||||
@ -193,7 +193,7 @@ export abstract class AbstractCache {
|
||||
const cacheResult = core.getState(this.cacheResultStateKey)
|
||||
|
||||
if (!cacheKey) {
|
||||
this.debug(`${this.cacheDescription} existed prior to cache restore. Not saving.`)
|
||||
core.info(`${this.cacheDescription} existed prior to cache restore. Not saving.`)
|
||||
return
|
||||
}
|
||||
|
||||
|
@ -54,6 +54,10 @@ export async function save(): Promise<void> {
|
||||
}
|
||||
|
||||
function logCachingReport(listener: CacheListener): void {
|
||||
if (listener.cacheEntries.length === 0) {
|
||||
return
|
||||
}
|
||||
|
||||
core.info(`---------- Caching Summary -------------
|
||||
Restored Entries Count: ${getCount(listener.cacheEntries, e => e.restoredSize)}
|
||||
Size: ${getSum(listener.cacheEntries, e => e.restoredSize)}
|
||||
|
Loading…
x
Reference in New Issue
Block a user