Usability improvements:
Some checks are pending
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
Some checks are pending
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'
This commit is contained in:
parent
6084a4eb65
commit
bebb162342
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
@ -53,7 +53,7 @@ export class GradleUserHomeCache extends AbstractCache {
|
||||
const cacheKey = fs.readFileSync(cacheMetaFile, 'utf-8').trim()
|
||||
const restoreKey = await this.restoreCache([pattern], cacheKey)
|
||||
if (restoreKey) {
|
||||
this.debug(
|
||||
core.info(
|
||||
`Restored ${bundle} with key ${cacheKey} to ${pattern}`
|
||||
)
|
||||
} else {
|
||||
@ -149,14 +149,17 @@ export class GradleUserHomeCache extends AbstractCache {
|
||||
const previouslyRestoredKey = fs.existsSync(cacheMetaFile)
|
||||
? fs.readFileSync(cacheMetaFile, 'utf-8').trim()
|
||||
: ''
|
||||
const cacheKey = this.createCacheKey(hashStrings(commonArtifactFiles))
|
||||
const cacheKey = this.createCacheKey(
|
||||
bundle,
|
||||
hashStrings(commonArtifactFiles)
|
||||
)
|
||||
|
||||
if (previouslyRestoredKey === cacheKey) {
|
||||
this.debug(
|
||||
`No change to previously restored ${bundle}. Not caching.`
|
||||
)
|
||||
} else {
|
||||
this.debug(`Caching ${bundle} with cache key: ${cacheKey}`)
|
||||
core.info(`Caching ${bundle} with cache key: ${cacheKey}`)
|
||||
await this.saveCache([pattern], cacheKey)
|
||||
|
||||
this.debug(`Writing cache metafile: ${cacheMetaFile}`)
|
||||
@ -168,9 +171,9 @@ export class GradleUserHomeCache extends AbstractCache {
|
||||
}
|
||||
}
|
||||
|
||||
protected createCacheKey(key: string): string {
|
||||
protected createCacheKey(bundle: string, key: string): string {
|
||||
const cacheKeyPrefix = process.env['CACHE_KEY_PREFIX'] || ''
|
||||
return `${cacheKeyPrefix}${key}`
|
||||
return `${cacheKeyPrefix}${bundle}-${key}`
|
||||
}
|
||||
|
||||
protected getGradleUserHome(): string {
|
||||
|
@ -107,7 +107,7 @@ export abstract class AbstractCache {
|
||||
core.saveState(this.cacheResultStateKey, cacheResult)
|
||||
|
||||
core.info(
|
||||
`${this.cacheDescription} restored from cache key: ${cacheResult}`
|
||||
`Restored ${this.cacheDescription} from cache key: ${cacheResult}`
|
||||
)
|
||||
|
||||
await this.afterRestore()
|
||||
|
Loading…
x
Reference in New Issue
Block a user