Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 5 of 5 for hasCacheEntry (0.17 sec)

  1. subprojects/core/src/integTest/groovy/org/gradle/api/tasks/CacheTaskArchiveErrorIntegrationTest.groovy

            errorOutput =~ /Could not pack tree 'output'/
            def cacheKey = cacheOperations.getCacheKeyForTask(":customTask")
            !localCache.hasCacheEntry(cacheKey)
            localCache.listCacheTempFiles().empty
        }
    
        @ToBeFixedForConfigurationCache(skip = INVESTIGATE)
        def "archive is not pushed to remote when packing fails"() {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Apr 03 15:21:23 UTC 2024
    - 9.7K bytes
    - Viewed (0)
  2. platforms/core-execution/build-cache-local/src/integTest/groovy/org/gradle/caching/BuildCacheLocalCacheIntegrationTest.groovy

            localCache.empty
            def cacheKey = cacheOperations.getCacheKeyForTask(":t")
            remoteCache.hasCacheEntry(cacheKey)
    
            when:
            settingsFile << """
                buildCache.local.push = true
            """
            execute()
    
            then:
            cached()
            localCache.hasCacheEntry(cacheKey)
    
            when:
            settingsFile << """
                buildCache.remote.enabled = false
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Feb 05 16:15:24 UTC 2024
    - 3.9K bytes
    - Viewed (0)
  3. platforms/core-execution/build-cache/src/integTest/groovy/org/gradle/caching/internal/BuildCacheBuildOperationsIntegrationTest.groovy

                assert localStoreOp.details.archiveSize == localCacheArtifact.bytes.length
                assert localStoreOp.result.stored
            } else {
                assert !localCache.hasCacheEntry(cacheKey.toString())
                operations.none(BuildCacheLocalStoreBuildOperationType)
            }
    
            packOp.result.archiveEntryCount == 5
            remoteStoreOp.details.archiveSize == packOp.result.archiveSize
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Apr 12 08:51:14 UTC 2024
    - 14.9K bytes
    - Viewed (0)
  4. subprojects/core/src/integTest/groovy/org/gradle/api/tasks/CacheTaskOutputIntegrationTest.groovy

            metadata.gradleVersion == GradleVersion.current().version
        }
    
        private Properties readMetadata() {
            def cacheKey = cacheOperations.getCacheKeyForTask(":compileJava")
            assert localCache.hasCacheEntry(cacheKey)
            def cacheEntry = localCache.getCacheEntry(cacheKey)
    
            // Must rename to "*.tgz" for unpacking to work
            def tgzCacheEntry = temporaryFolder.file("cache.tgz")
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Feb 20 17:51:57 UTC 2024
    - 2.8K bytes
    - Viewed (0)
  5. testing/internal-integ-testing/src/main/groovy/org/gradle/integtests/fixtures/TestBuildCache.groovy

        }
    
        void deleteCacheEntry(String cacheKey) {
            def entry = getTestFileCacheEntry(cacheKey)
            if (entry.file.exists()) {
                entry.file.deleteDir()
            }
        }
    
        boolean hasCacheEntry(String cacheKey) {
            return getTestFileCacheEntry(cacheKey).file.exists()
        }
    
        TestCacheEntry getCacheEntry(String cacheKey) {
            def cacheEntry = getTestFileCacheEntry(cacheKey)
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 04 07:21:38 UTC 2024
    - 3.9K bytes
    - Viewed (0)
Back to top